:root {
  color-scheme: dark;
  --ink: #f6f0e5;
  --muted: #a9a398;
  --night: #090a0e;
  --panel: #121318;
  --panel-raised: #191a20;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #f2b84b;
  --gold-soft: #ffd98c;
  --red: #d95145;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 184, 75, 0.08), transparent 34rem),
    var(--night);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: 30%;
  right: -14rem;
  background: var(--gold);
}

.ambient-two {
  bottom: 5%;
  left: -16rem;
  background: var(--red);
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #17120a;
  background: var(--gold);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  box-shadow: 0 0 28px rgba(242, 184, 75, 0.18);
}

.status-pill {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; margin-right: 20px; }
.main-nav a, footer a, .legal-page a { color: var(--muted); text-decoration: none; }
.main-nav a:hover, footer a:hover, .legal-page a:hover { color: var(--gold); }
.link-button { color: var(--muted); background: none; border: 0; cursor: pointer; font: inherit; }

.status-dot {
  width: 7px;
  height: 7px;
  background: #7d7d7d;
  border-radius: 50%;
}

.status-pill.online .status-dot {
  background: #6fd18a;
  box-shadow: 0 0 12px #6fd18a;
}

.status-pill.offline .status-dot {
  background: var(--red);
}

.hero {
  padding: 100px 0 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8.4vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

h1 span {
  color: var(--gold-soft);
  font-style: italic;
}

.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.current-section,
.upcoming-section {
  margin-bottom: 108px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.live-label {
  display: flex;
  gap: 9px;
  align-items: center;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(217, 81, 69, 0.8);
}

.schedule-id,
.timezone-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.screen-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.screen-frame {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #06070a;
  background-size: 40px 40px;
  aspect-ratio: 16 / 9;
}

#cinema-player {
  display: none;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.empty-player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-player strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.empty-icon {
  margin-bottom: 10px;
  font-size: 2rem;
  filter: grayscale(0.3);
}

.movie-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px 32px;
}

.movie-kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.movie-info h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
}

.time-grid {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.time-block {
  min-width: 110px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.time-block span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-block strong {
  font-size: 1.05rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.schedule-card,
.loading-card,
.empty-schedule {
  min-height: 210px;
  padding: 26px;
  background: linear-gradient(145deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease;
}

.schedule-card:hover {
  border-color: rgba(242, 184, 75, 0.34);
  transform: translateY(-3px);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.schedule-card h3 {
  margin: 34px 0 auto;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
}

.card-details {
  display: flex;
  gap: 16px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.78rem;
}

.loading-card,
.empty-schedule {
  display: grid;
  grid-column: 1 / -1;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 40px;
  color: #79766f;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.page-main { padding-top: 72px; }
.page-intro { margin-bottom: 70px; }
.page-intro.compact { margin-bottom: 44px; }
.page-intro h1, .legal-page h1 { font-size: clamp(3rem, 7vw, 6rem); }
.feature-card, .admin-card { margin-bottom: 24px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.feature-card h3, .admin-card h2 { margin: 0 0 10px; font: 500 clamp(1.5rem, 3vw, 2.2rem) Georgia, serif; }
.feature-card p { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.admin-card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.admin-form { display: grid; gap: 15px; margin-top: 24px; }
.admin-form label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-form input, .admin-form select { width: 100%; padding: 12px; color: var(--ink); background: #0b0c10; border: 1px solid var(--line); border-radius: 10px; font: inherit; color-scheme: dark; }
.primary-button, .secondary-button, .danger-button { display: inline-block; padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 700; text-decoration: none; }
.primary-button { color: #17120a; background: var(--gold); }
.secondary-button { color: var(--ink); background: rgba(255,255,255,.06); border-color: var(--line); }
.danger-button { color: #ffd8d4; background: rgba(217,81,69,.15); border-color: rgba(217,81,69,.4); }
.danger-button.small { padding: 8px 11px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.library-list { display: grid; gap: 9px; margin-top: 20px; color: var(--muted); }
.library-row { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; }
.library-row strong { color: var(--ink); }
.library-row.horizontal { flex-direction: row; align-items: center; justify-content: space-between; }
.library-row.horizontal > div { display: grid; gap: 4px; }
.state-box { overflow: auto; padding: 16px; color: #b6e7c2; background: #08090b; border-radius: 10px; }
.error-text { color: #ff9e94; }
.legal-page { width: min(780px, calc(100% - 40px)); margin: 80px auto; }
.legal-page p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }

@media (max-width: 820px) {
  .hero {
    padding: 76px 0 70px;
  }

  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-info {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1160px);
  }

  .brand > span:last-child {
    display: none;
  }
  .main-nav { margin-right: 0; font-size: .8rem; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-frame {
    min-height: 210px;
  }

  .movie-info {
    padding: 22px;
  }

  .time-grid {
    width: 100%;
  }

  .time-block {
    flex: 1;
    min-width: 0;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
