@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

:root {
  --color-primary: #b8000b;
  --color-primary-hover: #d10914;
  --color-primary-active: #910007;
  --color-bg: #080b10;
  --color-surface: #121418;
  --color-surface-hover: #1a1d22;
  --color-text: #f2f4f6;
  --color-text-secondary: #a9afb8;
  --color-text-disabled: #6b7280;
  --color-accent-amber: #f59e0b;
  --color-accent-glow: #ffb703;
  --color-accent-cool: #3a86ff;
  --color-accent: var(--color-accent-amber);
  --color-accent-on: #2f1f00;
  --color-border: #2a3038;
  --color-divider: #323a45;

  --surface: var(--color-surface);
  --surface-dim: var(--color-bg);
  --surface-low: var(--color-surface);
  --surface-base: var(--color-surface);
  --surface-high: var(--color-surface-hover);
  --surface-highest: var(--color-surface-hover);
  --surface-bright: var(--color-surface-hover);
  --surface-lowest: var(--color-bg);

  --on-surface: var(--color-text);
  --on-surface-soft: var(--color-text-secondary);
  --on-strong: var(--color-text);
  --outline-ghost: rgba(31, 41, 55, 0.7);

  --primary: var(--color-primary);
  --primary-container: var(--color-primary);
  --primary-dark: var(--color-primary-active);
  --secondary-container: var(--color-surface-hover);
  --tertiary: var(--color-accent-amber);
  --tertiary-container: var(--color-accent-glow);

  --primary-rgb: 164 22 26;
  --accent-rgb: 245 158 11;
  --cool-rgb: 58 134 255;
  --danger-rgb: 127 18 21;

  --ok: var(--color-accent-amber);
  --error: #ffd8da;

  --radius: 14px;
  --container: 1280px;
  --elev-shadow: 0 20px 42px -18px rgba(0, 0, 0, 0.75);

  --bg-start: #080b10;
  --bg-end: #10151c;
  --hero-start: #11151b;
  --hero-end: #171b22;
  --card-start: rgba(18, 24, 33, 0.95);
  --card-end: rgba(18, 24, 33, 0.95);
  --table-row-bg: rgba(18, 24, 33, 0.92);
  --table-row-hover-bg: rgba(26, 34, 48, 0.96);
  --nav-panel-bg: rgba(18, 24, 33, 0.98);
  --input-bg: rgba(15, 21, 30, 0.94);
  --table-wrap-bg: rgba(11, 15, 20, 0.8);
  --nav-bg: rgba(18, 24, 33, 0.9);
  --nav-divider: var(--color-divider);
  --dropdown-bg: var(--color-surface);
  --dropdown-link-hover: rgb(var(--primary-rgb) / 0.18);
  --footer-start: rgba(18, 24, 33, 0.85);
  --footer-end: rgba(11, 15, 20, 0.95);
  --home-meta-bg: rgba(15, 21, 30, 0.94);
  --home-meta-span: var(--color-text-secondary);
  --home-meta-strong: var(--color-text);
  --status-info-bg: rgb(var(--cool-rgb) / 0.24);
  --status-info-fg: #dce9ff;
  --status-error-bg: rgb(var(--primary-rgb) / 0.28);
  --status-error-fg: #ffd8da;
  --status-success-bg: rgb(var(--primary-rgb) / 0.34);
  --status-success-fg: #ffe8e9;
  --title-overlay-bg: rgba(11, 15, 20, 0.58);
  --title-overlay-border: rgba(230, 230, 230, 0.14);
  --hero-text: #ffffff;
  --hero-text-secondary: rgb(255 255 255 / 0.85);
  --hero-text-muted: rgb(255 255 255 / 0.7);
  --hero-shadow: 0 2px 12px rgb(0 0 0 / 0.6);
  --hero-overlay-main: linear-gradient(92deg, rgba(8, 11, 16, 0.9) 0%, rgba(8, 11, 16, 0.7) 40%, rgba(8, 11, 16, 0.25) 75%, transparent 100%);
  --hero-overlay-bottom: linear-gradient(to top, rgb(6 8 12 / 0.96) 0%, rgb(6 8 12 / 0.66) 42%, rgb(6 8 12 / 0.22) 100%);
}

/* Seat map */
.seat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--on-surface-soft);
}

.seat-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.seat-sample {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid transparent;
}

.seat-sample.available { background: var(--surface-high); border-color: var(--outline-ghost); }
.seat-sample.vip { background: #3d2d17; border-color: #8b5f24; }
.seat-sample.selected { background: var(--color-primary); border-color: var(--color-primary); }
.seat-sample.sold { background: #4b5563; border-color: #4b5563; }
.seat-sample.locked { background: var(--surface-low); border-color: var(--outline-ghost); opacity: 0.5; }

.seat-col-headers {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.15rem;
}

.seat-col-label {
  display: inline-flex;
  justify-content: center;
  width: 38px;
  font-size: 0.7rem;
  color: var(--on-surface-soft);
  flex-shrink: 0;
}

.seat-col-label.gap {
  width: 20px;
}

.seat-row-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-surface-soft);
  flex-shrink: 0;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.seat-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 1px !important;
  font-size: 0.7rem !important;
  line-height: 1 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.seat-btn:not(:disabled):hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
  z-index: 2;
}

.seat-btn:not(:disabled):active {
  transform: scale(0.95);
}

.seat-btn.primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.35);
}

.seat-btn.danger {
  background: #374151 !important;
  color: #6b7280 !important;
  border-color: #374151 !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

.seat-btn.seat-gap {
  background: transparent !important;
  border-color: transparent !important;
  color: transparent !important;
  cursor: default !important;
}

.seat-btn.secondary:not(.seat-gap) {
  background: var(--surface-high) !important;
  color: var(--on-surface) !important;
  border-color: var(--outline-ghost) !important;
}

#seat-lock-timer {
  font-weight: 600;
  color: var(--color-accent-amber);
  margin-bottom: 0.5rem;
}

#selected-seats-list {
  font-family: monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--on-surface);
}

:root[data-theme="light"] {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-hover: #f3f4f5;
  --color-text: #191c1d;
  --color-text-secondary: #5e646e;
  --color-text-disabled: #9ca3af;
  --color-border: #e1e3e4;
  --color-divider: #d5d8dc;
  --color-accent-on: #2f1f00;

  --surface: var(--color-surface);
  --surface-dim: var(--color-bg);
  --surface-low: #ffffff;
  --surface-base: var(--color-surface);
  --surface-high: var(--color-surface-hover);
  --surface-highest: var(--color-surface-hover);
  --surface-bright: var(--color-surface);
  --surface-lowest: #f9fafb;

  --on-surface: var(--color-text);
  --on-surface-soft: var(--color-text-secondary);
  --on-strong: var(--color-text);

  --primary: var(--color-primary);
  --primary-container: var(--color-primary);
  --primary-dark: var(--color-primary-active);
  --tertiary: var(--color-accent-amber);
  --tertiary-container: var(--color-accent-glow);

  --primary-rgb: 164 22 26;
  --accent-rgb: 245 158 11;
  --cool-rgb: 58 134 255;
  --danger-rgb: 127 18 21;

  --ok: var(--color-accent-amber);
  --error: #b91c1c;
  --outline-ghost: rgba(209, 213, 219, 0.8);

  --elev-shadow: 0 16px 30px -16px rgba(17, 24, 39, 0.22);

  --bg-start: var(--color-bg);
  --bg-end: #eceff2;
  --hero-start: var(--color-surface);
  --hero-end: var(--color-surface-hover);
  --card-start: rgba(255, 255, 255, 0.98);
  --card-end: rgba(255, 255, 255, 0.98);
  --table-row-bg: #ffffff;
  --table-row-hover-bg: #f3f4f6;
  --nav-panel-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #ffffff;
  --table-wrap-bg: rgba(249, 250, 251, 0.95);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-divider: var(--color-divider);
  --dropdown-bg: var(--color-surface);
  --dropdown-link-hover: rgb(var(--primary-rgb) / 0.09);
  --footer-start: #f2f4f6;
  --footer-end: #e8ebef;
  --home-meta-bg: #f9fafb;
  --home-meta-span: var(--color-text-secondary);
  --home-meta-strong: var(--color-text);
  --status-info-bg: rgb(var(--cool-rgb) / 0.14);
  --status-info-fg: #1e3a8a;
  --status-error-bg: rgb(var(--primary-rgb) / 0.12);
  --status-error-fg: #7f1d1d;
  --status-success-bg: rgb(var(--primary-rgb) / 0.1);
  --status-success-fg: #7f1215;
  --title-overlay-bg: rgba(248, 249, 250, 0.76);
  --title-overlay-border: rgba(25, 28, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html.theme-transition,
html.theme-transition *,
body.theme-switching,
body.theme-switching * {
  transition:
    background-color 280ms ease,
    color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease,
    outline-color 280ms ease,
    fill 280ms ease,
    stroke 280ms ease;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--color-bg);
  color: var(--on-surface);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
}

h1,
h2 {
  margin-top: 0;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3,
h4 {
  margin-top: 0;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.125rem, 1.7vw, 1.25rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--nav-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 var(--color-divider);
  transition: background-color 260ms ease, box-shadow 260ms ease, backdrop-filter 260ms ease;
}

.site-nav.home-transparent {
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
}

.site-nav.home-transparent .nav-links a,
.site-nav.home-transparent .nav-menu-btn,
.site-nav.home-transparent .brand-text {
  color: var(--hero-text);
}

.site-nav.home-transparent .nav-primary {
  border-right-color: rgb(255 255 255 / 0.22);
}

.site-nav.home-transparent.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 var(--color-divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
}

.seat-btn.seat-vip.secondary:not(.seat-gap) {
  background: #342716 !important;
  border-color: #8f632b !important;
  color: #f9e4bd !important;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  image-rendering: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  color: var(--on-strong);
  font-size: 0.78rem;
  box-shadow: 0 0 0 1px rgb(var(--primary-rgb) / 0.45), 0 10px 20px rgb(var(--primary-rgb) / 0.3);
}

.brand-text {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--on-strong);
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-primary {
  padding-right: 10px;
  border-right: 1px solid var(--nav-divider);
}

.nav-actions {
  padding-left: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--on-surface-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.nav-menu-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--on-surface-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-menu-btn:hover,
.nav-menu-btn.active,
.nav-menu-btn[aria-expanded="true"] {
  color: var(--on-strong);
  background: rgb(var(--primary-rgb) / 0.2);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-radius: 12px;
  background: var(--dropdown-bg);
  box-shadow: var(--elev-shadow);
  z-index: 50;
}

.nav-dropdown-panel.show {
  display: flex;
}

.nav-dropdown-panel a {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--on-surface-soft);
  transform: none;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a.active {
  background: var(--dropdown-link-hover);
  color: var(--on-strong);
  transform: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--on-strong);
  background: rgb(var(--primary-rgb) / 0.18);
  transform: translateY(-1px);
}

.nav-links a.active,
.nav-menu-btn.active {
  border: 1px solid rgb(var(--primary-rgb) / 0.35);
  border-radius: 999px;
  background: rgb(var(--primary-rgb) / 0.22);
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--on-surface);
}

.hero {
  padding: 56px 0 42px;
  animation: fade-slide-in 0.6s ease both;
}

.hero-panel {
  border-radius: 24px;
  padding: 56px 42px;
  background:
    linear-gradient(180deg, rgb(var(--primary-rgb) / 0.08) 0%, rgb(var(--primary-rgb) / 0) 100%),
    radial-gradient(340px 340px at 88% 10%, rgb(var(--accent-rgb) / 0.28), transparent 72%),
    linear-gradient(132deg, var(--hero-start) 0%, var(--hero-end) 100%);
  box-shadow: var(--elev-shadow);
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--on-strong);
}

.hero p {
  margin: 0;
  color: var(--on-surface-soft);
  max-width: 60ch;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 15px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.button:hover,
button:hover {
  filter: brightness(1.06);
}

.button:active,
button:active {
  transform: translateY(1px);
}

.button.primary,
button.primary {
  background: var(--color-primary);
  color: var(--on-strong);
  box-shadow: 0 8px 20px rgb(var(--primary-rgb) / 0.35);
}

:root .button.primary:hover,
:root button.primary:hover {
  background: var(--color-primary-hover);
}

:root .button.primary:active,
:root button.primary:active {
  background: var(--color-primary-active);
}

:root:not([data-theme="light"]) .button.primary,
:root:not([data-theme="light"]) button.primary {
  box-shadow: 0 0 12px rgba(164, 22, 26, 0.4), 0 8px 20px rgb(var(--primary-rgb) / 0.34);
}

.button.ghost,
button.ghost {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.4);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.button.ghost:hover,
button.ghost:hover {
  background: rgb(255 255 255 / 0.16);
}

.button.secondary,
button.secondary {
  background: var(--surface-high);
  border-color: var(--color-border);
  color: var(--on-surface);
}

.site-nav .btn-small {
  background: var(--surface-high);
  border-color: var(--color-border);
  color: var(--on-surface);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.section {
  padding: 18px 0 30px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  color: var(--on-strong);
}

.home-section-title {
  color: var(--on-strong);
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0;
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.24;
}

.subtle {
  color: var(--on-surface-soft);
  font-size: clamp(0.875rem, 0.84rem + 0.2vw, 1rem);
  line-height: 1.6;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card,
.panel,
.kpi-card,
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgb(0 0 0 / 0.2);
}

.card {
  overflow: hidden;
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  box-shadow: 0 14px 26px rgb(0 0 0 / 0.28);
}

.card-media {
  height: 160px;
  background: linear-gradient(135deg, var(--surface-high) 0%, var(--surface-base) 100%);
  display: grid;
  place-items: center;
  color: var(--on-surface-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-poster {
  width: 52px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.35);
}

.card-body {
  padding: 15px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.125rem, 1.7vw, 1.25rem);
  font-weight: 600;
  color: var(--on-strong);
}

.home-show-card .card-body {
  padding: 15px;
}

.home-show-head {
  background: var(--title-overlay-bg);
  border: 1px solid var(--title-overlay-border);
  box-shadow: inset 4px 0 0 rgb(var(--accent-rgb) / 0.85);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 10px;
}

.home-show-title {
  margin: 0;
  font-size: clamp(1.125rem, 1.7vw, 1.25rem);
  font-weight: 600;
  color: var(--on-strong);
}

.home-show-meta {
  display: grid;
  gap: 8px;
}

.home-show-meta p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--home-meta-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-show-meta span {
  color: var(--home-meta-span);
  font-size: 0.8125rem;
  font-weight: 500;
}

.home-show-meta strong {
  color: var(--home-meta-strong);
  font-size: 0.9375rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--surface-high);
  border: 1px solid var(--color-border);
  color: var(--on-surface);
}

.tag.accent {
  background: rgb(var(--accent-rgb) / 0.24);
  border-color: rgb(var(--accent-rgb) / 0.45);
  color: var(--color-accent-on);
}

.tag.secondary {
  background: var(--color-surface-hover);
  color: var(--on-surface);
}

.tag.info {
  background: var(--surface-high);
  color: var(--on-surface);
}

.tag.disabled {
  background: var(--surface-high);
  border-color: var(--color-border);
  color: var(--on-surface-soft);
  text-decoration: line-through;
}

.dashboard-top {
  padding: 26px 0 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kpi-card {
  padding: 16px;
}

.kpi-card .kpi-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.kpi-card .kpi-value {
  margin-top: 6px;
  font-size: 1.9rem;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--on-strong);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.dashboard-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dashboard-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-high);
  border: 1px solid var(--color-border);
  color: var(--on-surface-soft);
}

.dashboard-mini-list li strong {
  color: var(--on-strong);
  font-weight: 600;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.stat {
  padding: 12px;
}

.stat .v {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--on-strong);
}

.page-title {
  margin: 22px 0 12px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--on-strong);
}

.page-shell {
  padding: 20px 0 24px;
}

.ops-shell {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.ops-top-hero {
  margin-top: 18px;
  border-radius: 10px;
  padding: 34px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 28px rgb(0 0 0 / 0.16);
}

.ops-top-hero .eyebrow {
  color: var(--color-primary);
}

.ops-title {
  margin: 8px 0;
}

.ops-subtitle {
  margin: 0;
  max-width: 72ch;
  color: var(--on-surface-soft);
}

.ops-section-head {
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
}

.ops-section-head::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgb(var(--primary-rgb) / 0.28) 60%, transparent 100%);
}

.ops-shell .panel {
  background: var(--color-surface);
}

.ops-shell .table-wrap {
  border-radius: 12px;
}

.ops-shell .status {
  border: 1px solid var(--color-border);
}

.page-shell .stats-row {
  margin-bottom: 14px;
}

.page-shell .panel + .panel {
  margin-top: 14px;
}

.panel {
  padding: 22px;
  border-radius: 10px;
  animation: fade-slide-in 0.45s ease both;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  color: var(--on-strong);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--on-surface);
  padding: 10px 11px;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-disabled);
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgb(var(--primary-rgb) / 0.44);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--table-wrap-bg);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-surface-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px 6px;
  white-space: nowrap;
}

tbody td {
  padding: 11px 10px;
  vertical-align: top;
  background: var(--table-row-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

tbody td:first-child {
  border-radius: 6px 0 0 6px;
}

tbody td:last-child {
  border-radius: 0 6px 6px 0;
}

tbody tr:hover td {
  background: var(--table-row-hover-bg);
}

.actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 7px 9px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
}

.danger {
  background: rgb(var(--danger-rgb) / 0.24);
  color: var(--error);
  border-color: rgb(var(--danger-rgb) / 0.34);
}

.status {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.status.info {
  background: var(--status-info-bg);
  color: var(--status-info-fg);
}

.status.error {
  background: var(--status-error-bg);
  color: var(--status-error-fg);
}

.status.success {
  background: var(--status-success-bg);
  color: var(--status-success-fg);
}

.home-shell {
  padding-top: 0;
}

.hero-cinematic {
  --hero-feature-image: url("/assets/hero-dune.svg");
  width: 100%;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: visible;
  background:
    var(--hero-overlay-bottom),
    var(--hero-overlay-main),
    var(--hero-feature-image) center/cover no-repeat;
}

:root[data-theme="light"] .hero-cinematic {
  --hero-overlay-main: linear-gradient(92deg, rgba(248, 249, 250, 0.9) 0%, rgba(248, 249, 250, 0.76) 42%, rgba(248, 249, 250, 0.38) 74%, transparent 100%);
  --hero-overlay-bottom: linear-gradient(to top, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.58) 46%, rgba(248, 249, 250, 0.12) 100%);
  --hero-text: #191c1d;
  --hero-text-secondary: rgb(25 28 29 / 0.8);
  --hero-text-muted: rgb(25 28 29 / 0.62);
  --hero-shadow: none;
}

.hero-text-block {
  display: inline-block;
  padding: 22px 20px 18px;
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

:root[data-theme="light"] .hero-text-block {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(25, 28, 29, 0.1);
}

.hero-cinematic-inner {
  padding-top: 132px;
  padding-bottom: 112px;
  position: relative;
}

.hero-nav-controls {
  position: absolute;
  left: -62px;
  right: -62px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 10px;
}

.hero-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(8, 11, 16, 0.56);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-nav-btn:hover {
  background: rgba(8, 11, 16, 0.8);
}

:root[data-theme="light"] .hero-nav-btn {
  border-color: rgba(25, 28, 29, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #191c1d;
}

.hero-cinematic h1 {
  margin: 12px 0;
  max-width: 13ch;
  color: var(--hero-text);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: var(--hero-shadow);
}

.hero-cinematic p {
  margin: 0;
  max-width: 58ch;
  color: var(--hero-text-secondary);
  font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.08rem);
  text-shadow: var(--hero-shadow);
}

.hero-cinematic .eyebrow {
  color: var(--hero-text-muted);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-kpis {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-kpi {
  min-width: 172px;
  border-radius: 6px;
  padding: 12px 14px;
  background: rgb(8 11 16 / 0.55);
  border: 1px solid rgb(230 230 230 / 0.16);
  backdrop-filter: blur(10px);
}

:root[data-theme="light"] .hero-kpi {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(25, 28, 29, 0.14);
}

.hero-kpi span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hero-text-muted);
}

.hero-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--hero-text);
  font-size: 1.3rem;
}

.hero-aux,
.hero-aux * {
  color: var(--hero-text-secondary);
}

.section-title-underline {
  position: relative;
}

.section-title-underline::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgb(var(--primary-rgb) / 0.25) 55%, transparent 100%);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-home-films {
  padding-top: 54px;
}

.movie-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 230px);
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.home-poster-card {
  position: relative;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  min-height: auto;
  cursor: pointer;
  transition: all 0.25s ease;
}

.home-poster-card:focus-visible {
  outline: 2px solid rgb(var(--primary-rgb) / 0.6);
  outline-offset: 2px;
}

.home-poster-card .card-media {
  height: 332px;
  min-height: 332px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.home-poster-overlay {
  position: absolute;
  inset: auto 0 38px 0;
  padding: 12px 11px;
  background: linear-gradient(180deg, transparent 0%, rgb(6 8 12 / 0.72) 58%, rgb(6 8 12 / 0.92) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.home-poster-title {
  margin: 0;
  color: var(--hero-text);
  font-size: 1rem;
  font-weight: 700;
}

.home-poster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgb(0 0 0 / 0.34);
}

:root[data-theme="light"] .home-poster-card:hover {
  box-shadow: 0 18px 26px rgb(17 24 39 / 0.18);
}

.home-poster-card:hover .home-poster-overlay {
  opacity: 1;
  transform: translateY(0);
}

.section-quick-access {
  padding-top: 42px;
  padding-bottom: 56px;
}

.quick-access-panel {
  border-radius: 8px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.2);
  backdrop-filter: blur(6px);
}

.quick-glass-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  overflow: visible !important;
}

.quick-glass-card > img:first-child {
  border-radius: 14px 14px 0 0;
}

.quick-glass-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--primary-rgb) / 0.1) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

:root[data-theme="light"] .quick-glass-card {
  background: var(--color-surface);
}

:root[data-theme="light"] .quick-access-panel {
  background: var(--color-surface);
  box-shadow: 0 10px 22px rgb(17 24 39 / 0.1);
}

.quick-glass-card .card-body {
  padding: 16px 18px;
  border-radius: 0 0 14px 14px;
  background: var(--color-surface);
}

.quick-glass-card h3 {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  line-height: 1.3;
}

.quick-glass-card .subtle {
  color: var(--on-surface-soft);
  font-size: 0.78rem;
  margin: 0;
}

.quick-glass-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.25);
}

.home-poster-caption {
  margin-top: 10px;
  padding: 0 1px;
}

.home-poster-caption h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-strong);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.home-poster-caption p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-soft);
}

:root[data-theme="light"] .brand-logo {
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}

:root[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: inset 0 -1px 0 var(--color-divider);
}

:root[data-theme="light"] .site-footer {
  border-top-color: var(--color-divider);
  background: linear-gradient(180deg, #f5f6f7 0%, #eceff2 100%);
}

:root[data-theme="light"] .site-footer h3,
:root[data-theme="light"] .site-footer h4 {
  color: var(--on-strong);
}

:root[data-theme="light"] .site-footer p,
:root[data-theme="light"] .site-footer a,
:root[data-theme="light"] .site-footer .footer-bottom {
  color: var(--on-surface-soft);
}

.quick-glass-card .tag.accent {
  background: rgb(var(--accent-rgb) / 0.2);
  border-color: rgb(var(--accent-rgb) / 0.35);
  color: var(--on-strong);
  font-size: 0.72rem;
  padding: 3px 10px;
}

.quick-glass-card .tag.info {
  font-size: 0.72rem;
  padding: 3px 10px;
}

.quick-card-action {
  font-size: 0.83rem;
  padding: 7px 12px;
  border-color: var(--color-border);
}

.auth-panel {
  max-width: 520px;
}

.auth-panel-wide {
  max-width: 720px;
}

.full-row {
  grid-column: 1 / -1;
}

.category-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.media-fallback {
  display: none;
}

.media-fallback.show {
  display: grid;
}

.text-small {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.75rem, 0.74rem + 0.08vw, 0.8125rem);
  font-weight: 400;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgb(11 15 20 / 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  width: min(100%, 860px);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, var(--card-start), var(--card-end));
  box-shadow: var(--elev-shadow);
  padding: 16px;
  animation: fade-slide-in 220ms ease both;
}

.quick-add-modal-panel {
  width: min(100%, 980px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.quick-add-grid {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 4px 0 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px;
}

.quick-add-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.quick-add-card.selected {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3), 0 12px 24px rgb(0 0 0 / 0.22);
}

.quick-add-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.quick-add-card .card-body {
  padding: 14px 16px;
}

.quick-add-card h3 {
  margin: 8px 0 4px;
  font-size: 0.9rem;
}

.quick-add-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  display: block;
  background: var(--surface-high);
  border-radius: 14px 14px 0 0;
}

.quick-add-card .card-media {
  width: 100%;
  aspect-ratio: 2/3;
  display: grid;
  place-items: center;
  background: var(--surface-high);
  color: var(--on-surface-soft);
  font-size: 0.8rem;
  border-radius: 14px 14px 0 0;
}

.quick-add-confirm-panel {
  width: min(100%, 640px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-add-confirm-list {
  max-height: 42vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--surface-high);
}

.quick-add-confirm-item {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.quick-add-confirm-item:last-child {
  border-bottom: 0;
}

.modal-close {
  margin-left: auto;
  display: block;
}

.modal-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
}

.modal-poster-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-high);
  border: 1px solid var(--color-border);
  min-height: 330px;
}

.modal-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-poster-fallback {
  min-height: 330px;
  display: grid;
  place-items: center;
  color: var(--on-surface-soft);
  font-size: 0.9rem;
}

.modal-meta {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.modal-meta p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-high);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-meta span {
  color: var(--on-surface-soft);
  font-size: 0.8125rem;
}

.modal-meta strong {
  color: var(--on-strong);
  font-size: 0.94rem;
}

.hidden {
  display: none !important;
}

.site-footer {
  margin-top: 44px;
  background: linear-gradient(180deg, var(--footer-start), var(--footer-end));
  box-shadow: inset 0 1px 0 var(--color-divider);
}

.ops-shell .panel,
.ops-top-hero,
.table-wrap,
.site-footer,
.nav-dropdown-panel,
.quick-access-panel,
.quick-glass-card {
  transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 26px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 8px;
  color: var(--on-strong);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 6px 0;
}

.footer-grid a {
  color: var(--on-surface-soft);
}

.footer-grid a:hover {
  color: var(--tertiary);
}

code {
  background: var(--surface-high);
  border: 1px solid var(--outline-ghost);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.86em;
}

.footer-bottom {
  box-shadow: inset 0 1px 0 var(--color-divider);
  padding: 10px 0 16px;
  color: var(--on-surface-soft);
  font-size: 0.8125rem;
}

.theme-toggle {
  white-space: nowrap;
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

button.theme-toggle {
  position: relative;
  overflow: hidden;
}

button.theme-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgb(var(--primary-rgb) / 0.28) 50%, transparent 100%);
  transform: translateX(-120%);
  pointer-events: none;
}

button.theme-toggle:active::after,
button.theme-toggle:focus-visible::after {
  animation: theme-toggle-sheen 360ms ease;
}

@keyframes theme-toggle-sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .brand-logo {
    height: 41px;
  }

  .mobile-nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 62px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--nav-panel-bg);
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--elev-shadow);
  }

  .nav-primary,
  .nav-actions {
    width: 100%;
    padding: 0;
    border: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-menu-btn {
    width: 100%;
    text-align: left;
  }

  .nav-dropdown-panel {
    position: static;
    min-width: 0;
    display: none;
    margin-top: 2px;
    box-shadow: none;
    background: rgb(var(--primary-rgb) / 0.08);
  }

  .nav-dropdown-panel.show {
    display: flex;
  }

  .nav-actions .btn-small,
  .nav-actions a {
    width: 100%;
    text-align: left;
  }

  .nav-links.show {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    margin-top: 20px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-panel {
    padding: 34px 22px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-cinematic {
    min-height: 66vh;
  }

  .hero-cinematic-inner {
    padding-top: 96px;
    padding-bottom: 68px;
  }

  .hero-nav-controls {
    left: 0;
    right: 0;
    top: auto;
    bottom: 16px;
    transform: none;
    justify-content: flex-end;
    gap: 8px;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
  }

  .movie-carousel {
    grid-auto-columns: minmax(136px, 158px);
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-poster-wrap,
  .modal-poster-fallback {
    min-height: 240px;
  }

  .quick-add-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 12px;
  }

  .quick-add-grid {
    max-height: 55vh;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 12px;
  }
}

/* Stitch project 13048687290410572275 visual refresh */
:root {
  --stitch-primary: #135bec;
  --stitch-primary-dark: #0f44ae;
  --stitch-accent: #2e86ff;
  --stitch-paper: #eef3ff;
}

.brand {
  gap: 12px;
  font-family: "Poppins", system-ui, sans-serif;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--stitch-primary) 0%, var(--stitch-accent) 58%, #74b3ff 100%);
  color: #f7fbff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(19, 91, 236, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark {
  display: none;
}

.brand-mark-n,
.brand-mark-f {
  display: none;
}

.brand-mark-f {
  right: auto;
}

.brand-mark-bar {
  display: none;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text {
  display: none;
}

.brand-subtext {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-soft);
  font-weight: 600;
}

.site-nav.home-transparent .brand-subtext {
  color: var(--hero-text-secondary);
}

.ops-top-hero {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 24%, var(--color-border));
  background:
    radial-gradient(140% 120% at 100% 0%, rgb(19 91 236 / 0.22) 0%, transparent 55%),
    linear-gradient(140deg, color-mix(in srgb, var(--card-start) 82%, #ffffff 18%) 0%, var(--card-end) 100%);
  box-shadow: 0 24px 42px -28px rgba(19, 91, 236, 0.45);
}

.programmazione-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 18%, var(--color-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-high) 84%, #ffffff 16%);
}

.cinema-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 18%, var(--color-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-high) 84%, #ffffff 16%);
}

.cinema-filter-bar .filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cinema-filter-bar .filter-row label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.cinema-filter-bar .filter-row input[type="search"] {
  flex: 1;
  min-width: 160px;
}

.cinema-filter-bar .filter-row select {
  min-width: 160px;
}

.cinema-filter-bar .filter-row input[type="range"] {
  flex: 1;
  max-width: 240px;
  accent-color: var(--noir-red);
}

.cinema-filter-bar .filter-row span {
  font-size: 0.85rem;
  color: var(--color-text);
  min-width: 52px;
  text-align: right;
}

.cinema-distance-badge .tag.accent {
  display: inline-block;
}

#cinema-selezionato-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(19 91 236 / 0.16);
  border: 1px solid rgb(19 91 236 / 0.32);
  color: color-mix(in srgb, var(--stitch-primary) 75%, var(--on-surface));
}

.schedule-film-card,
.cinema-card,
.my-cinemas-film-row,
.film-sheet {
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--stitch-primary) 18%, var(--color-border));
  box-shadow: 0 14px 28px rgba(11, 27, 61, 0.18);
}

.schedule-film-card .card-media {
  height: 236px;
}

.date-strip-shell {
  margin: 12px 0 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 16%, var(--color-border));
  background: color-mix(in srgb, var(--surface-high) 88%, #ffffff 12%);
}

.date-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-strip .btn-small.active,
.date-strip button.active {
  background: linear-gradient(140deg, var(--stitch-primary) 0%, var(--stitch-primary-dark) 100%);
  border-color: transparent;
  color: #f7fbff;
}

.show-list-shell,
.my-cinemas-day-body {
  display: grid;
  gap: 12px;
}

.showtime-btn,
.cinema-showtime {
  border-radius: 999px;
  min-width: 74px;
  background: linear-gradient(135deg, var(--stitch-primary) 0%, var(--stitch-primary-dark) 100%);
  border-color: transparent;
}

.film-sheet-grid,
.my-cinemas-film-grid {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 14px;
  align-items: start;
}

.film-sheet-media,
.my-cinemas-film-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 240px;
}

.film-sheet-media img,
.my-cinemas-film-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#acquista-summary {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 20%, var(--color-border));
}

.seat-grid {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--stitch-primary) 16%, var(--color-border));
  background:
    linear-gradient(180deg, rgb(19 91 236 / 0.08) 0%, transparent 22%),
    var(--surface-low);
}

.seat-legend {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in srgb, var(--stitch-primary) 25%, var(--color-border));
}

.seat-btn {
  border-radius: 10px !important;
}

.seat-btn.primary {
  background: linear-gradient(145deg, var(--stitch-primary) 0%, var(--stitch-primary-dark) 100%) !important;
}

.seat-btn.secondary:not(.seat-gap) {
  background: color-mix(in srgb, var(--stitch-paper) 32%, var(--surface-high)) !important;
}

@media (max-width: 860px) {
  .brand-subtext {
    display: none;
  }

  .programmazione-toolbar {
    align-items: stretch;
  }

  .film-sheet-grid,
  .my-cinemas-film-grid {
    grid-template-columns: 1fr;
  }

  .film-sheet-media,
  .my-cinemas-film-media {
    min-height: 210px;
  }
}

/* Noir graphics refresh from nuovaGrafica */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700&family=Manrope:wght@400;600;700&display=swap");

.screen-cinema-list,
.screen-gestione-film,
.screen-programmazione-grid,
.screen-programmazione-detail,
.screen-seat-selection {
  --noir-bg: #0a0a0a;
  --noir-surface: #141414;
  --noir-surface-soft: #1c1c1c;
  --noir-border: rgba(255, 255, 255, 0.12);
  --noir-red: #e50914;
  --noir-red-hover: #f40612;
  --noir-text: #f5f5f5;
  --noir-muted: #a3a3a3;
  --noir-chip: #2f2f2f;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(229, 9, 20, 0.14) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(229, 9, 20, 0.1) 0%, transparent 55%),
    var(--noir-bg);
  color: var(--noir-text);
  font-family: "Manrope", sans-serif;
}

.screen-cinema-list .ops-shell,
.screen-gestione-film .ops-shell,
.screen-programmazione-grid .ops-shell,
.screen-programmazione-detail .ops-shell,
.screen-seat-selection .ops-shell {
  width: min(100% - 2.25rem, 1240px);
}

.screen-cinema-list .ops-top-hero,
.screen-gestione-film .ops-top-hero,
.screen-programmazione-grid .ops-top-hero,
.screen-programmazione-detail .ops-top-hero,
.screen-seat-selection .ops-top-hero {
  border-radius: 20px;
  border: 1px solid var(--noir-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 24px 48px -30px rgba(229, 9, 20, 0.52);
}

.screen-cinema-list .eyebrow,
.screen-gestione-film .eyebrow,
.screen-programmazione-grid .eyebrow,
.screen-programmazione-detail .eyebrow,
.screen-seat-selection .eyebrow {
  color: var(--noir-red);
  letter-spacing: 0.12em;
}

.screen-cinema-list .ops-title,
.screen-gestione-film .ops-title,
.screen-programmazione-grid .ops-title,
.screen-programmazione-detail .ops-title,
.screen-seat-selection .ops-title,
.screen-programmazione-detail #scheda-details h2,
.screen-cinema-list h3,
.screen-programmazione-grid .card h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.screen-cinema-list .panel,
.screen-gestione-film .panel,
.screen-programmazione-grid .panel,
.screen-programmazione-detail .panel,
.screen-seat-selection .panel {
  border-radius: 16px;
  border: 1px solid var(--noir-border);
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.9), rgba(15, 15, 15, 0.95));
}

.screen-cinema-list .status,
.screen-gestione-film .status,
.screen-programmazione-grid .status,
.screen-programmazione-detail .status,
.screen-seat-selection .status {
  border: 1px solid var(--noir-border);
}

.screen-cinema-list .button.primary,
.screen-cinema-list button.primary,
.screen-gestione-film .button.primary,
.screen-gestione-film button.primary,
.screen-programmazione-grid .button.primary,
.screen-programmazione-grid button.primary,
.screen-programmazione-detail .button.primary,
.screen-programmazione-detail button.primary,
.screen-seat-selection .button.primary,
.screen-seat-selection button.primary {
  background: linear-gradient(140deg, var(--noir-red), #b9070f);
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.34);
}

.screen-cinema-list .button.secondary,
.screen-cinema-list button.secondary,
.screen-gestione-film .button.secondary,
.screen-gestione-film button.secondary,
.screen-programmazione-grid .button.secondary,
.screen-programmazione-grid button.secondary,
.screen-programmazione-detail .button.secondary,
.screen-programmazione-detail button.secondary,
.screen-seat-selection .button.secondary,
.screen-seat-selection button.secondary {
  background: var(--noir-surface-soft);
  border-color: var(--noir-border);
  color: var(--noir-text);
}

.screen-cinema-list .cinema-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--noir-red);
}

.screen-cinema-list .cinema-card .subtle,
.screen-programmazione-grid .subtle,
.screen-programmazione-detail .subtle,
.screen-seat-selection .subtle,
.screen-gestione-film .subtle {
  color: var(--noir-muted);
}

.screen-cinema-list .tag,
.screen-programmazione-grid .tag,
.screen-programmazione-detail .tag {
  background: var(--noir-chip);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d6d6d6;
}

.screen-cinema-list .tag.accent,
.screen-programmazione-grid .tag.accent,
.screen-programmazione-detail .tag.accent {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.56);
  color: #ffd8db;
}

.screen-programmazione-grid .programmazione-toolbar {
  border-radius: 14px;
  border: 1px solid var(--noir-border);
  background: rgba(255, 255, 255, 0.03);
}

.screen-programmazione-grid .programmazione-toolbar input,
.screen-programmazione-grid .programmazione-toolbar select {
  background: #121212;
  border: 1px solid var(--noir-border);
  color: var(--noir-text);
}

.screen-programmazione-grid #cinema-selezionato-badge {
  background: rgba(229, 9, 20, 0.14);
  border-color: rgba(229, 9, 20, 0.35);
  color: #ffd9dc;
}

.screen-programmazione-grid .schedule-film-card {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.screen-programmazione-grid .schedule-film-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.58);
  box-shadow: 0 20px 36px -20px rgba(229, 9, 20, 0.54);
}

.screen-programmazione-grid .schedule-film-card .card-media {
  height: 260px;
}

.screen-programmazione-grid .schedule-film-card .card-body {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.88), rgba(16, 16, 16, 1));
}

.screen-programmazione-detail .film-sheet,
.screen-programmazione-detail #show-body .panel,
.screen-seat-selection #acquista-summary,
.screen-seat-selection #seat-grid {
  border-radius: 16px;
  border: 1px solid var(--noir-border);
  background: rgba(24, 24, 24, 0.92);
}

.screen-programmazione-detail .date-strip-shell,
.screen-cinema-list .date-strip-shell {
  border-radius: 14px;
  border: 1px solid var(--noir-border);
  background: rgba(255, 255, 255, 0.03);
}

.screen-programmazione-detail .date-strip .active,
.screen-cinema-list .date-strip .active {
  background: linear-gradient(145deg, var(--noir-red), #bc0911);
  color: #fff;
  border-color: transparent;
}

.screen-programmazione-detail .showtime-btn,
.screen-cinema-list .cinema-showtime {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.screen-programmazione-detail .showtime-btn:hover,
.screen-cinema-list .cinema-showtime:hover {
  border-color: var(--noir-red);
}

.screen-cinema-list .cinema-filter-bar {
  border-radius: 14px;
  border: 1px solid var(--noir-border);
  background: rgba(255, 255, 255, 0.03);
}

.screen-cinema-list .cinema-filter-bar input,
.screen-cinema-list .cinema-filter-bar select {
  background: #121212;
  border: 1px solid var(--noir-border);
  color: var(--noir-text);
}

.screen-cinema-list .cinema-filter-bar input[type="range"] {
  background: transparent;
  border: none;
}

.screen-cinema-list .cinema-filter-bar label {
  color: var(--noir-muted);
}

.screen-cinema-list .cinema-filter-bar span {
  color: var(--noir-text);
}

.screen-cinema-list .cinema-distance-badge {
  margin-left: 6px;
}

.screen-seat-selection #acquista-summary h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.screen-seat-selection #seat-grid {
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.08), rgba(229, 9, 20, 0.01) 35%),
    #101010;
}

.screen-seat-selection .seat-legend {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.screen-seat-selection .seat-btn {
  border-radius: 8px !important;
}

.screen-seat-selection .seat-btn.primary {
  background: linear-gradient(145deg, var(--noir-red), #bf0811) !important;
  border-color: transparent !important;
}

.screen-seat-selection .seat-btn.secondary:not(.seat-gap) {
  background: #2a2a2a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.screen-seat-selection .seat-btn.danger {
  background: #4a4a4a !important;
  border-color: #4a4a4a !important;
  color: #9a9a9a !important;
}

.screen-seat-selection .seat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr minmax(250px, 310px);
  gap: 16px;
  align-items: start;
}

.screen-seat-selection .seat-movie-panel {
  min-height: 520px;
}

.screen-seat-selection .seat-stage-panel {
  min-height: 520px;
  text-align: center;
}

.screen-seat-selection .seat-screen-wrap {
  width: min(100%, 700px);
  margin: 0 auto 16px;
}

.screen-seat-selection .seat-screen {
  height: 14px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #dce0e8 0%, #aeb4c2 100%);
  box-shadow: 0 7px 20px rgba(255, 255, 255, 0.15);
}

.screen-seat-selection .seat-screen-label {
  margin-top: 4px;
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.45em;
  color: #8c919d;
}

.screen-seat-selection .seat-grid {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.screen-seat-selection .seat-row {
  justify-content: center;
}

.screen-seat-selection .seat-aisle {
  width: 18px;
  min-width: 18px;
  display: inline-flex;
}

.screen-seat-selection .seat-aisle.side {
  width: 10px;
  min-width: 10px;
}

.screen-seat-selection .seat-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  font-size: 0.63rem !important;
}

.screen-seat-selection .seat-btn.seat-vip.secondary:not(.seat-gap) {
  background: #3a2a16 !important;
  border-color: #a7742e !important;
  color: #ffdca5 !important;
}

.screen-seat-selection .seat-col-label {
  width: 34px;
}

.screen-seat-selection .seat-col-label.gap {
  width: 18px;
}

.screen-seat-selection .seat-row-label.right {
  margin-left: 4px;
}

.screen-seat-selection .seat-col-headers.bottom {
  margin-top: 3px;
  margin-bottom: 0;
}

.screen-seat-selection .seat-booking-panel {
  position: sticky;
  top: 96px;
}

.screen-seat-selection .seat-booking-panel h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #d7d7d7;
}

.screen-seat-selection .seat-booking-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.screen-seat-selection .seat-booking-lines p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.screen-seat-selection .seat-booking-lines span {
  color: #9f9f9f;
  font-size: 0.8rem;
}

.screen-seat-selection .seat-booking-lines strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.screen-seat-selection .seat-vip-note {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(229, 9, 20, 0.35);
  background: rgba(229, 9, 20, 0.08);
  color: #ffd8db;
  font-size: 0.8rem;
  line-height: 1.35;
}

.screen-seat-selection #acquista-continue {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.screen-gestione-film #film-form .form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.screen-gestione-film #film-form .full-row {
  grid-column: 1 / -1;
}

.screen-gestione-film label {
  color: #b5b5b5;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.screen-gestione-film input,
.screen-gestione-film select,
.screen-gestione-film textarea {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--noir-text);
  border-radius: 8px;
}

.screen-gestione-film input:focus,
.screen-gestione-film select:focus,
.screen-gestione-film textarea:focus {
  outline: 1px solid rgba(229, 9, 20, 0.6);
}

.screen-gestione-film #film-categorie-options {
  gap: 14px;
}

.screen-gestione-film .category-option {
  padding: 5px 0;
}

.screen-gestione-film #film-quick-add-modal .modal-panel,
.screen-gestione-film #film-quick-add-confirm-modal .modal-panel {
  background: #141414;
  border-color: var(--noir-border);
}

@media (max-width: 860px) {
  .screen-cinema-list .ops-shell,
  .screen-gestione-film .ops-shell,
  .screen-programmazione-grid .ops-shell,
  .screen-programmazione-detail .ops-shell,
  .screen-seat-selection .ops-shell {
    width: min(100% - 1.2rem, 1240px);
  }

  .screen-gestione-film #film-form .form-grid {
    grid-template-columns: 1fr;
  }

  .screen-programmazione-grid .schedule-film-card .card-media {
    height: 220px;
  }

  .screen-seat-selection .seat-layout {
    grid-template-columns: 1fr;
  }

  .screen-seat-selection .seat-booking-panel {
    position: static;
  }
}

/* Stronger page refresh for requested screens */
.screen-cinema-list .ops-top-hero,
.screen-gestione-film .ops-top-hero,
.screen-programmazione-grid .ops-top-hero,
.screen-programmazione-detail .ops-top-hero,
.screen-seat-selection .ops-top-hero {
  padding: 42px 34px;
}

.screen-cinema-list #my-cinemas-list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.screen-cinema-list .cinema-card .card-body {
  padding: 18px;
}

.screen-cinema-list .cinema-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.screen-cinema-list .my-cinemas-film-row {
  border-left: 4px solid var(--noir-red);
}

.screen-cinema-list .my-cinemas-film-grid {
  grid-template-columns: minmax(170px, 220px) 1fr;
  gap: 18px;
}

.screen-gestione-film .panel {
  border-radius: 18px;
}

.screen-gestione-film .ops-section-head::after {
  background: linear-gradient(90deg, var(--noir-red) 0%, rgba(229, 9, 20, 0.2) 65%, transparent 100%);
}

.screen-gestione-film #film-form .actions {
  gap: 10px;
}

.screen-gestione-film .table-wrap {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.14);
}

.screen-gestione-film tbody td {
  background: rgba(22, 22, 22, 0.95);
}

.screen-gestione-film tbody tr:hover td {
  background: rgba(31, 31, 31, 0.98);
}

.screen-programmazione-grid #programmazione-cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.screen-programmazione-grid .schedule-film-card h3 {
  font-size: 1.5rem;
  margin-bottom: 7px;
}

.screen-programmazione-grid .schedule-film-card .actions {
  margin-top: 8px;
}

.screen-programmazione-detail .film-sheet-grid {
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 18px;
}

.screen-programmazione-detail .screening-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr minmax(250px, 300px);
  gap: 16px;
  align-items: start;
}

.screen-programmazione-detail .screening-movie {
  border-radius: 16px;
  overflow: hidden;
}

.screen-programmazione-detail .screening-movie .film-sheet {
  margin: 0;
  height: 100%;
}

.screen-programmazione-detail .screening-movie .film-sheet-grid {
  grid-template-columns: 1fr;
}

.screen-programmazione-detail .screening-movie .film-sheet-media {
  min-height: 360px;
}

.screen-programmazione-detail .screening-movie .film-sheet h2 {
  font-size: 2.3rem;
  line-height: 1.05;
}

.screen-programmazione-detail .screening-movie .film-sheet .subtle {
  font-size: 0.92rem;
}

.screen-programmazione-detail .screening-schedule {
  min-height: 520px;
}

.screen-programmazione-detail .screening-booking {
  position: sticky;
  top: 96px;
}

.screen-programmazione-detail .screening-booking h3 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #d7d7d7;
}

.screen-programmazione-detail .booking-summary-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.screen-programmazione-detail .booking-summary-lines p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.screen-programmazione-detail .booking-summary-lines span {
  color: #9f9f9f;
  font-size: 0.8rem;
}

.screen-programmazione-detail .booking-summary-lines strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.screen-programmazione-detail #booking-cta-btn {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.screen-programmazione-detail #booking-cta-btn:disabled {
  opacity: 0.55;
}

.screen-programmazione-detail .showtime-btn.active {
  border-color: transparent;
  background: linear-gradient(145deg, var(--noir-red), #b90910);
  color: #fff;
}

.screen-programmazione-detail #show-body {
  display: grid;
  gap: 12px;
}

.screen-programmazione-detail #show-body .panel h4 {
  color: #d5d5d5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.screen-programmazione-detail .showtime-btn,
.screen-cinema-list .cinema-showtime {
  font-weight: 700;
  border-radius: 999px;
  padding-inline: 16px;
}

.screen-seat-selection #acquista-summary {
  border-left: 4px solid var(--noir-red);
  padding: 18px;
}

.screen-seat-selection #seat-grid {
  padding: 16px;
}

.screen-seat-selection .seat-col-label,
.screen-seat-selection .seat-row-label {
  color: #b8b8b8;
}

.screen-seat-selection #selected-seats-list {
  color: #f2f2f2;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .screen-cinema-list .ops-top-hero,
  .screen-gestione-film .ops-top-hero,
  .screen-programmazione-grid .ops-top-hero,
  .screen-programmazione-detail .ops-top-hero,
  .screen-seat-selection .ops-top-hero {
    padding: 30px 18px;
  }

  .screen-cinema-list .my-cinemas-film-grid,
  .screen-programmazione-detail .film-sheet-grid {
    grid-template-columns: 1fr;
  }

  .screen-programmazione-detail .screening-layout {
    grid-template-columns: 1fr;
  }

  .screen-programmazione-detail .screening-booking {
    position: static;
  }
}

/* Light theme support for stitched noir pages */
:root[data-theme="light"] .screen-cinema-list,
:root[data-theme="light"] .screen-gestione-film,
:root[data-theme="light"] .screen-programmazione-grid,
:root[data-theme="light"] .screen-programmazione-detail,
:root[data-theme="light"] .screen-seat-selection {
  --noir-bg: #f4f6fa;
  --noir-surface: #ffffff;
  --noir-surface-soft: #eef2f7;
  --noir-border: rgba(16, 24, 40, 0.14);
  --noir-text: #101828;
  --noir-muted: #475467;
  --noir-chip: #eef2f7;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(229, 9, 20, 0.08) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(229, 9, 20, 0.06) 0%, transparent 55%),
    var(--noir-bg);
  color: var(--noir-text);
}

:root[data-theme="light"] .screen-cinema-list .ops-top-hero,
:root[data-theme="light"] .screen-gestione-film .ops-top-hero,
:root[data-theme="light"] .screen-programmazione-grid .ops-top-hero,
:root[data-theme="light"] .screen-programmazione-detail .ops-top-hero,
:root[data-theme="light"] .screen-seat-selection .ops-top-hero,
:root[data-theme="light"] .screen-cinema-list .panel,
:root[data-theme="light"] .screen-gestione-film .panel,
:root[data-theme="light"] .screen-programmazione-grid .panel,
:root[data-theme="light"] .screen-programmazione-detail .panel,
:root[data-theme="light"] .screen-seat-selection .panel {
  background: #ffffff;
  border-color: var(--noir-border);
  box-shadow: 0 14px 26px -24px rgba(17, 24, 39, 0.28);
}

:root[data-theme="light"] .screen-cinema-list .subtle,
:root[data-theme="light"] .screen-gestione-film .subtle,
:root[data-theme="light"] .screen-programmazione-grid .subtle,
:root[data-theme="light"] .screen-programmazione-detail .subtle,
:root[data-theme="light"] .screen-seat-selection .subtle {
  color: var(--noir-muted);
}

:root[data-theme="light"] .screen-programmazione-grid .programmazione-toolbar,
:root[data-theme="light"] .screen-programmazione-grid .programmazione-toolbar input,
:root[data-theme="light"] .screen-programmazione-grid .programmazione-toolbar select,
:root[data-theme="light"] .screen-gestione-film input,
:root[data-theme="light"] .screen-gestione-film select,
:root[data-theme="light"] .screen-gestione-film textarea {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .screen-programmazione-grid .schedule-film-card,
:root[data-theme="light"] .screen-programmazione-detail .film-sheet,
:root[data-theme="light"] .screen-programmazione-detail #show-body .panel,
:root[data-theme="light"] .screen-seat-selection #acquista-summary,
:root[data-theme="light"] .screen-seat-selection #seat-grid {
  background: #ffffff;
  border-color: var(--noir-border);
}

:root[data-theme="light"] .screen-programmazione-grid .schedule-film-card .card-body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

:root[data-theme="light"] .screen-programmazione-grid .tag,
:root[data-theme="light"] .screen-programmazione-detail .tag,
:root[data-theme="light"] .screen-cinema-list .tag {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(51, 65, 85, 0.2);
}

:root[data-theme="light"] .screen-programmazione-grid #cinema-selezionato-badge {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.3);
  color: #b91c1c;
}

:root[data-theme="light"] .screen-programmazione-detail .booking-summary-lines p,
:root[data-theme="light"] .screen-seat-selection .seat-booking-lines p {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .screen-seat-selection #seat-grid {
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.05), rgba(229, 9, 20, 0.01) 35%),
    #f8fafc;
}

:root[data-theme="light"] .screen-seat-selection .seat-btn.secondary:not(.seat-gap) {
  background: #e8edf4 !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .screen-seat-selection .seat-btn.danger {
  background: #d0d5dd !important;
  border-color: #d0d5dd !important;
  color: #667085 !important;
}

:root[data-theme="light"] .screen-seat-selection .seat-vip-note {
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.24);
  color: #8a1020;
}

/* Seat legend swatches — light theme */
:root[data-theme="light"] .seat-sample.available {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.22);
}
:root[data-theme="light"] .seat-sample.vip {
  background: #fef3c7;
  border-color: #d4a017;
}
:root[data-theme="light"] .seat-sample.sold {
  background: #cbd5e1;
  border-color: #94a3b8;
}
:root[data-theme="light"] .seat-sample.locked {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.18);
}

/* Base seat buttons — light theme (outside .screen-seat-selection) */
:root[data-theme="light"] .seat-btn.danger {
  background: #d0d5dd !important;
  border-color: #d0d5dd !important;
  color: #667085 !important;
}

/* VIP seat button — light theme (outside .screen-seat-selection) */
:root[data-theme="light"] .seat-btn.seat-vip.secondary:not(.seat-gap) {
  background: #fef9e7 !important;
  border-color: #d4a017 !important;
  color: #92400e !important;
}

/* Noir VIP seat button — light theme (inside .screen-seat-selection) */
:root[data-theme="light"] .screen-seat-selection .seat-btn.seat-vip.secondary:not(.seat-gap) {
  background: #fef9e7 !important;
  border-color: #d4a017 !important;
  color: #92400e !important;
}

/* Booking panel text — light theme */
:root[data-theme="light"] .screen-seat-selection .seat-booking-panel h3 {
  color: #334155;
}
:root[data-theme="light"] .screen-seat-selection .seat-booking-lines span {
  color: #475569;
}
:root[data-theme="light"] .screen-seat-selection .seat-booking-lines strong {
  color: #0f172a;
}
:root[data-theme="light"] .screen-seat-selection #selected-seats-list {
  color: #334155;
}
:root[data-theme="light"] .screen-seat-selection .seat-col-label,
:root[data-theme="light"] .screen-seat-selection .seat-row-label {
  color: #64748b;
}

:root[data-theme="light"] .screen-cinema-list .cinema-filter-bar {
  border-color: rgba(16, 24, 40, 0.14);
  background: #f8fafc;
}

:root[data-theme="light"] .screen-cinema-list .cinema-filter-bar input,
:root[data-theme="light"] .screen-cinema-list .cinema-filter-bar select {
  background: #ffffff;
  border-color: rgba(16, 24, 40, 0.14);
  color: #101828;
}

:root[data-theme="light"] .screen-cinema-list .cinema-filter-bar label {
  color: #475467;
}

:root[data-theme="light"] .screen-cinema-list .cinema-filter-bar span {
  color: #101828;
}

.geo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(8px);
  animation: geo-fade-in 220ms ease;
}

.geo-popup-card {
  background: var(--color-surface);
  border: 1px solid var(--noir-border);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(229, 9, 20, 0.18);
  animation: geo-slide-up 260ms ease;
}

.geo-popup-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  color: var(--color-text);
  margin: 0 0 8px;
}

.geo-popup-card .subtle {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.geo-popup-icon {
  font-size: 2.6rem;
  margin: 0 0 10px;
}

.geo-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.geo-popup-actions .button {
  min-width: 130px;
}

.geo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 180ms ease;
}

.geo-toggle-btn:hover {
  border-color: var(--ok);
}

.geo-toggle-btn svg {
  flex-shrink: 0;
}

@keyframes geo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes geo-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

:root[data-theme="light"] .geo-popup-overlay {
  background: rgba(240, 242, 245, 0.8);
}

:root[data-theme="light"] .geo-popup-card {
  background: #fff;
  border-color: rgba(16, 24, 40, 0.14);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
}

/* ===== Cart Layout ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
}
.cart-item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
}
.cart-item-main { display: flex; gap: 0.75rem; align-items: flex-start; flex: 1; }
.cart-item-icon { font-size: 1.5rem; width: 2.2rem; text-align: center; }
.cart-item-info h4 { margin: 0 0 0.25rem 0; font-size: 0.95rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.cart-seat-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.cart-seat-chips button { font-size: 0.75rem; padding: 0.1rem 0.5rem; }
.cart-qty-row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.cart-qty-row button { width: 28px; height: 28px; padding: 0; font-size: 1rem; }
.cart-qty-val { min-width: 1.5rem; text-align: center; font-weight: 600; }
.cart-summary-section { position: sticky; top: 1rem; }
.cart-summary-lines { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; }
.cart-summary-row span { color: var(--color-text-muted); }
.cart-coupon-section { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.cart-coupon-section input { flex: 1; }

/* ===== Navbar Cart Icon ===== */
.nav-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem;
}
.nav-cart-icon:hover { color: var(--color-primary); }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Cart Toast ===== */
.cart-toast-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  animation: fadeIn 0.2s ease;
}
.cart-toast-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.cart-toast-icon { font-size: 2.5rem; margin: 0 0 0.5rem; }
.cart-toast-actions { display: flex; gap: 0.75rem; margin-top: 1rem; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Gift Card Card ===== */
.giftcard-card { text-align: center; }
.giftcard-amount { font-size: 1.8rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.shop-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.shop-tab { padding: 0.5rem 1.2rem; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 0.5rem; cursor: pointer; font-weight: 500; }
.shop-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.shop-tab-content { }
.shop-tab-content.hidden { display: none; }

/* ===== Cinema filter bar ===== */
.cinema-radius-unlimited { font-style: italic; color: var(--color-primary); }

/* ===== Profile Layout ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-sidebar { position: sticky; top: 1rem; }
.profile-sidebar label { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.profile-sidebar input { width: 100%; }
.profile-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.profile-tab { padding: 0.5rem 1.2rem; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 0.5rem; cursor: pointer; font-weight: 500; }
.profile-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.profile-tab-content.hidden { display: none; }

/* ===== Password row ===== */
.pw-row { display: flex; gap: 0.25rem; }
.pw-row input { flex: 1; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); }
.modal-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1.5rem; max-width: 420px; width: 90%; }
.modal-card label { display: block; margin-top: 0.5rem; font-size: 0.85rem; }

/* ===== Layout fixes ===== */
.shop-tab-content { padding-top: 0.5rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.grid-cards .card { margin: 0; }
article.panel + article.panel { margin-top: 1.5rem; }
#shop-admin-section .panel + .panel { margin-top: 1.5rem; }
#shop-admin-section h3 { margin-top: 0; }
#admin-prod-list .card,
#admin-coupon-list .card { margin-bottom: 0.5rem; }
#admin-prod-list .card:last-child,
#admin-coupon-list .card:last-child { margin-bottom: 0; }
label + input, label + select { margin-top: 0; }
input + label, select + label { margin-top: 1rem; }
