:root {
  --cx-bg: #f5f6fa;
  --cx-card: #ffffff;
  --cx-line: #e6e8ef;
  --cx-text: #1f2230;
  --cx-text-soft: #3d4256;
  --cx-muted: #6b7084;
  --cx-shadow: 0 4px 20px rgba(31, 34, 48, 0.06);
  --cx-accent: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
  --cx-pink: #ff55a5;
  --cx-economy: #3fa9f5;
  --cx-business: #a66cff;
  --cx-first: #e0a800;
  --cx-booked: #dfe2ea;
  --cx-held: #ff9f1c;
  --cx-selected: #2ecc71;
}

.cx-page { margin-top: 110px; margin-bottom: 60px; color: var(--cx-text); }
.cx-page h1, .cx-page h2, .cx-page h3, .cx-page h4, .cx-page h5 { color: var(--cx-text); font-family: 'Ubuntu', sans-serif; }
.cx-muted { color: var(--cx-muted); }
.cx-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 10px; box-shadow: var(--cx-shadow); padding: 20px; margin-bottom: 20px; }
.cx-poster { width: 100%; max-width: 180px; border-radius: 6px; display: block; }

.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--cx-accent); color: #fff !important; border: 0; border-radius: 6px; padding: 10px 22px; font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity .2s, transform .1s; }
.cx-btn:hover { opacity: .9; }
.cx-btn:active { transform: scale(.98); }
.cx-btn[disabled], .cx-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.cx-btn-sm { padding: 6px 14px; font-size: 13px; }
.cx-btn-ghost { background: var(--cx-card); border: 1px solid var(--cx-line); color: var(--cx-text) !important; }
.cx-btn-ghost:hover { border-color: var(--cx-pink); color: var(--cx-pink) !important; }

.cx-alert { border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.cx-alert-error { background: #fff1f2; border: 1px solid #ff5860; color: #b4232c; }
.cx-alert-info { background: #eef7ff; border: 1px solid var(--cx-economy); color: #155f99; }
.cx-alert-success { background: #ecfbf2; border: 1px solid var(--cx-selected); color: #1b7a46; }

.cx-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.cx-tab { flex: 0 0 auto; min-width: 86px; text-align: center; padding: 10px 14px; border-radius: 8px; background: var(--cx-card); box-shadow: var(--cx-shadow); border: 1px solid var(--cx-line); color: var(--cx-muted) !important; text-decoration: none; line-height: 1.2; }
.cx-tab strong { display: block; font-size: 20px; color: var(--cx-text); }
.cx-tab.is-active { background: var(--cx-accent); border-color: transparent; color: #fff !important; }
.cx-tab.is-active strong { color: #fff; }

.cx-showtimes { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-showtime { display: inline-block; padding: 8px 14px; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: 6px; color: var(--cx-text) !important; text-decoration: none; text-align: center; min-width: 110px; }
.cx-showtime small { display: block; color: var(--cx-muted); font-size: 11px; }
.cx-showtime:hover { border-color: var(--cx-pink); }
.cx-showtime.is-full { opacity: .4; pointer-events: none; }

.cx-show-list .cx-show-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--cx-line); }
.cx-show-list .cx-show-row:last-child { border-bottom: 0; }

.cx-screen { margin: 0 auto 28px; max-width: 560px; height: 34px; border-top: 4px solid var(--cx-pink); border-radius: 50% 50% 0 0 / 100% 100% 0 0; text-align: center; color: var(--cx-muted); font-size: 12px; letter-spacing: 6px; padding-top: 8px; box-shadow: 0 -12px 25px -12px rgba(255, 85, 165, .6); }
.cx-seat-wrap { overflow-x: auto; padding-bottom: 10px; }
.cx-seats { display: inline-flex; flex-direction: column; gap: 6px; min-width: 100%; align-items: center; }
.cx-row { display: flex; align-items: center; gap: 6px; }
.cx-row-label { width: 22px; text-align: center; color: var(--cx-muted); font-size: 12px; font-weight: 600; }
.cx-aisle { width: 16px; }
.cx-seat { width: 30px; height: 28px; border-radius: 7px 7px 3px 3px; border: 2px solid; background: transparent; color: var(--cx-text); font-size: 10px; padding: 0; cursor: pointer; transition: background .15s, transform .1s; }
.cx-seat:hover:not([disabled]) { transform: translateY(-2px); }
.cx-seat.c-Economy { border-color: var(--cx-economy); }
.cx-seat.c-Business { border-color: var(--cx-business); }
.cx-seat.c-First { border-color: var(--cx-first); }
.cx-seat.is-selected { background: var(--cx-selected); border-color: var(--cx-selected); color: #0b2e1a; font-weight: 700; }
.cx-seat.is-held { background: var(--cx-held); border-color: var(--cx-held); color: #3a2400; cursor: not-allowed; }
.cx-seat.is-booked { background: var(--cx-booked); border-color: var(--cx-booked); color: #9a9fb0; cursor: not-allowed; }
.cx-class-gap { height: 10px; }

.cx-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 20px 0 6px; font-size: 13px; color: var(--cx-muted); }
.cx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cx-legend i { display: inline-block; width: 16px; height: 14px; border-radius: 4px 4px 2px 2px; border: 2px solid; }

.cx-summary { position: sticky; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 24px rgba(31, 34, 48, .08); border-top: 1px solid var(--cx-line); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px 8px 0 0; }
.cx-summary .cx-total { font-size: 22px; font-weight: 700; }

.cx-timer { position: fixed; right: 16px; bottom: 16px; z-index: 1000; background: var(--cx-card); border: 1px solid var(--cx-held); color: #b86a00; border-radius: 30px; padding: 8px 16px; font-weight: 700; box-shadow: 0 6px 20px rgba(31, 34, 48, .15); }
.cx-timer.is-low { background: #ff5860; color: #fff; border-color: #ff5860; }

.cx-table { width: 100%; color: var(--cx-text); border-collapse: collapse; }
.cx-table th, .cx-table td { padding: 10px 8px; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: middle; }
.cx-table th { color: var(--cx-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; }

.cx-input { width: 100%; background: var(--cx-card); border: 1px solid var(--cx-line); color: var(--cx-text); border-radius: 6px; padding: 10px 12px; outline: none; }
.cx-input:focus { border-color: var(--cx-pink); box-shadow: 0 0 0 3px rgba(255, 85, 165, .15); }
.cx-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--cx-bg); color: var(--cx-text); }
.cx-badge-green { background: #e3f7ec; color: #1b7a46; }
.cx-badge-red { background: #ffe9eb; color: #b4232c; }
.cx-badge-orange { background: #fff3e0; color: #a85d00; }
.cx-badge-blue { background: #e6f3fe; color: #155f99; }
.cx-badge-grey { background: #eef0f5; color: var(--cx-muted); }

@media (max-width: 575px) {
  .cx-page { margin-top: 90px; }
  .cx-seat { width: 20px; height: 20px; font-size: 8px; border-width: 1.5px; border-radius: 5px 5px 2px 2px; }
  .cx-row { gap: 2px; }
  .cx-seats { gap: 4px; }
  .cx-row-label { width: 12px; font-size: 10px; }
  .cx-aisle { width: 8px; }
  .cx-card { padding: 14px; }
}
