:root {
  --bg: #050507;
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, .68);
  --soft: rgba(246, 247, 251, .12);
  --red: #e50914;
  --red2: #ff2b35;
  --c1: 229;
  --c2: 9;
  --c3: 20;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.theater-shell {
  min-height: 100svh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  background: #000;
}

.ambient-gradient,
.ambient-canvas,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-gradient {
  background:
    radial-gradient(circle at 22% 16%, rgba(var(--c1), var(--c2), var(--c3), .34), transparent 34%),
    radial-gradient(circle at 78% 26%, rgba(44, 137, 255, .22), transparent 36%),
    linear-gradient(135deg, #030305, #111014 48%, #030305);
  filter: saturate(1.2);
  animation: ambientMove 16s ease-in-out infinite alternate;
}

.ambient-canvas {
  width: 100%;
  height: 100%;
  opacity: .42;
  filter: blur(46px) saturate(1.65);
  transform: scale(1.08);
}

.vignette {
  background:
    radial-gradient(circle at center, transparent 44%, rgba(0,0,0,.72) 100%),
    linear-gradient(to top, rgba(0,0,0,.62), transparent 42%, rgba(0,0,0,.58));
}

@keyframes ambientMove {
  from { transform: scale(1) translate3d(-1.5%, -1%, 0); }
  to { transform: scale(1.08) translate3d(1.5%, 1%, 0); }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
}

.main-video {
  width: min(94vw, 1680px);
  max-height: min(82svh, 920px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow:
    0 34px 140px rgba(0,0,0,.72),
    0 0 0 1px rgba(255,255,255,.09),
    0 0 90px rgba(var(--c1), var(--c2), var(--c3), .20);
}

.topbar {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-home {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8, 9, 12, .54);
  box-shadow: 0 12px 36px rgba(0,0,0,.34);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.back-home:hover {
  transform: translateY(-1px);
  background: rgba(229,9,20,.86);
  border-color: rgba(255,255,255,.26);
}

.back-home svg {
  width: 18px;
  height: 18px;
}

.back-home span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 2px 18px rgba(0,0,0,.68);
}

.brand img {
  display: block;
  max-width: min(190px, 38vw);
  max-height: 42px;
  object-fit: contain;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(229,9,20,.92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 36px rgba(229,9,20,.35);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.live-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .45; transform: scale(.72); }
}

.chrome {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 116px;
  padding: 22px 18px 18px 128px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: rgba(10, 12, 16, .42);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
  transition: opacity .35s ease, transform .35s ease;
}

.poster {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 34px rgba(0,0,0,.48);
  background: rgba(255,255,255,.06);
  z-index: 2;
}

.theater-shell.idle .chrome {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.program {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(180px, 1fr) auto;
  gap: 22px;
  min-width: 0;
  flex: 1;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
  margin-bottom: 5px;
}

h1, p { margin: 0; }
h1 {
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 650;
}

.controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ctrl {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ctrl:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(229,9,20,.72);
  border-color: rgba(229,9,20,.52);
}

.ctrl svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.center-message {
  position: absolute;
  z-index: 5;
  width: min(420px, calc(100vw - 36px));
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(8,10,14,.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}

.center-message.hidden { display: none; }
.message-title { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.message-body { color: var(--muted); font-weight: 650; }

@media (max-width: 760px) {
  .stage { padding: 72px 12px 132px; align-items: center; }
  .main-video {
    width: 100%;
    max-height: 58svh;
    border-radius: 18px;
  }
  .topbar {
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    right: 14px;
  }
  .topbar-meta { gap: 8px; }
  .back-home {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }
  .back-home span { display: none; }
  .brand { font-size: 14px; letter-spacing: .14em; }
  .live-badge { padding: 8px 11px; font-size: 10px; }
  .chrome {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    min-height: 118px;
    padding: 18px 14px 14px 92px;
  }
  .poster {
    position: absolute;
    left: 16px;
    bottom: 16px;
    top: auto;
    right: auto;
    width: 60px;
    border-radius: 10px;
  }
  .program {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .controls { justify-content: space-between; }
  .ctrl { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .stage { padding-bottom: 120px; }
  .program > div:nth-child(2),
  .program > div:nth-child(3) { display: none; }
}
