/* Watch & Live pages — shares tokens with styles.css */

/* Header nav additions */
.site-nav { gap: 24px; }
.site-nav a[aria-current="page"]:not(.nav-cta)::after { right: 0; }
.nav-live { display: inline-flex; align-items: center; gap: 8px; }
.nav-live .live-dot { width: 7px; height: 7px; background: rgba(255,255,255,.45); box-shadow: none; animation: none; }
.nav-live.is-live { padding: 6px 12px 6px 10px; color: white; background: #c4302b; border-radius: 999px; box-shadow: 0 0 0 0 rgba(196,48,43,.5); animation: nav-live-pulse 2.4s ease-out infinite; }
.nav-live.is-live::after { display: none; }
.nav-live.is-live .live-dot { background: white; animation: live-blink 1.4s ease-in-out infinite; }
@keyframes nav-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(196,48,43,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(196,48,43,0); } }
.contact-row > .contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }

/* Shared live badge */
.live-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1; }
.live-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(237,198,110,.6); }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes live-ring { 0% { box-shadow: 0 0 0 0 rgba(255,90,80,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255,90,80,0); } }

/* Shared player frame */
.theater-frame { position: relative; padding: 10px; background: linear-gradient(145deg, rgba(237,198,110,.22), rgba(237,198,110,.04) 40%, rgba(237,198,110,.16)); box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 0 0 1px rgba(237,198,110,.28); }
.frame-corner { position: absolute; width: 26px; height: 26px; border-color: var(--gold-light); border-style: solid; pointer-events: none; z-index: 2; }
.frame-corner-tl { top: -9px; left: -9px; border-width: 1px 0 0 1px; }
.frame-corner-tr { top: -9px; right: -9px; border-width: 1px 1px 0 0; }
.frame-corner-bl { bottom: -9px; left: -9px; border-width: 0 0 1px 1px; }
.frame-corner-br { bottom: -9px; right: -9px; border-width: 0 1px 1px 0; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #020b1a; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, #041431 30%, #0b2550 50%, #041431 70%); background-size: 300% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.player-poster { position: absolute; inset: 0; display: block; width: 100%; padding: 0; color: white; background: #020b1a; border: 0; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease; filter: saturate(.92); }
.player-poster:hover img, .player-poster:focus-visible img { transform: scale(1.05); filter: saturate(1.05); }
.player-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(4,20,44,.1), rgba(4,20,44,.72) 85%), linear-gradient(0deg, rgba(4,20,44,.75), transparent 45%); }
.player-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 92px; height: 92px; color: var(--navy); background: linear-gradient(145deg, #fff1c2, var(--gold-light) 45%, var(--gold)); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 10px rgba(237,198,110,.16), 0 0 0 22px rgba(237,198,110,.07); transition: transform .35s cubic-bezier(.2,1.4,.4,1), box-shadow .35s ease; }
.player-play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.player-poster:hover .player-play, .player-poster:focus-visible .player-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 22px 46px rgba(0,0,0,.45), 0 0 0 14px rgba(237,198,110,.22), 0 0 0 30px rgba(237,198,110,.08); }
.player-label { position: absolute; left: 50%; top: calc(50% + 74px); transform: translateX(-50%); color: rgba(255,255,255,.88); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.player-live-badge { position: absolute; top: 18px; left: 18px; background: #c4302b; border-color: transparent; }
.player-live-badge .live-dot, .media-page-live [data-state="live"] .live-status .live-dot { background: white; animation: live-blink 1.4s ease-in-out infinite, live-ring 1.6s ease-out infinite; }
.player-poster.is-live .player-play { color: white; background: linear-gradient(145deg, #ff6b5f, #c4302b); box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 10px rgba(196,48,43,.25), 0 0 0 22px rgba(196,48,43,.1); }
.theater-kicker { margin: 0 0 8px; color: var(--gold-light); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.theater-title { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; color: white; }

/* ---------- Watch page ---------- */
.watch-hero { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 5vw, 80px); align-items: center; padding: 150px max(24px, calc((100vw - 1240px) / 2)) 110px; color: white; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(24,93,168,.38), transparent 70%), var(--navy); }
.watch-hero::before { content: ""; position: absolute; width: 760px; height: 760px; left: -460px; bottom: -480px; border: 1px solid rgba(237,198,110,.25); border-radius: 50%; box-shadow: 0 0 0 90px rgba(237,198,110,.035), 0 0 0 180px rgba(237,198,110,.025); }
.watch-hero-copy { position: relative; z-index: 1; }
.watch-hero h1 { font-size: clamp(46px, 5.4vw, 78px); }
.watch-lede { max-width: 470px; margin: 28px 0 34px; color: rgba(255,255,255,.72); font-size: clamp(16px, 1.6vw, 19px); }
.theater { position: relative; z-index: 1; min-width: 0; }
.theater-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 30px; }
.theater-link { flex: none; color: var(--gold-light); font-size: 12px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(237,198,110,.5); padding-bottom: 3px; }
.live-banner { position: relative; z-index: 2; order: -1; grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 14px 22px; color: white; text-decoration: none; background: linear-gradient(90deg, rgba(196,48,43,.95), rgba(150,30,30,.9)); box-shadow: 0 18px 40px rgba(196,48,43,.3); transition: transform .25s ease; }
.live-banner:hover { transform: translateY(-2px); }
.live-banner .live-badge { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.35); }
.live-banner .live-dot { background: white; animation: live-blink 1.4s ease-in-out infinite; }
.live-banner-title { flex: 1; font-family: var(--serif); font-size: 19px; }
.live-banner-cta { font-size: 13px; font-weight: 700; }
.live-banner[hidden] { display: none; }

.library { width: min(1240px, calc(100vw - 48px)); margin: auto; padding: 120px 0; }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.library-head h2 { color: var(--navy); font-size: clamp(42px, 5vw, 70px); }
.library-head h2 em { color: var(--gold); }
.library-filters { display: flex; gap: 6px; padding: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; }
.library-filters button { padding: 10px 18px; color: var(--navy); background: transparent; border: 0; border-radius: 999px; font: 600 13px var(--sans); transition: background .25s ease, color .25s ease; }
.library-filters button[aria-selected="true"] { color: white; background: var(--navy); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 30px; }
.video-card { min-width: 0; }
.video-thumb { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); border: 0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,61,.55), transparent 55%); opacity: .7; transition: opacity .4s ease; }
.video-card:hover .video-thumb img, .video-thumb:focus-visible img { transform: scale(1.06); }
.video-card:hover .video-thumb::after { opacity: 1; }
.video-thumb-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 58px; height: 58px; color: var(--navy); background: var(--gold-light); border-radius: 50%; transform: translate(-50%, -50%) scale(.8); opacity: 0; box-shadow: 0 0 0 8px rgba(237,198,110,.22); transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .3s ease; }
.video-thumb-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video-card:hover .video-thumb-play, .video-thumb:focus-visible .video-thumb-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-duration, .video-tag { position: absolute; z-index: 1; bottom: 12px; padding: 4px 8px; color: white; background: rgba(4,20,44,.82); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.video-duration { right: 12px; }
.video-tag { left: 12px; color: var(--navy); background: var(--gold-light); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.video-body { padding-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.video-body h3 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.28; }
.video-body h3 button { padding: 0; color: var(--navy); background: none; border: 0; font: inherit; text-align: left; }
.video-body h3 button:hover { color: var(--blue); }
.video-body p { margin: 8px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.video-card.is-current .video-thumb { outline: 2px solid var(--gold); outline-offset: 4px; }
.video-card.is-current .video-body h3 button::before { content: "Now showing · "; color: var(--gold); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.video-card.is-skeleton .video-thumb { background: linear-gradient(100deg, #ece4d4 30%, #f7f1e6 50%, #ece4d4 70%); background-size: 300% 100%; animation: shimmer 1.8s linear infinite; }
.video-card.is-skeleton .video-body span { display: block; height: 14px; margin-bottom: 10px; background: #efe7d8; }
.video-card.is-skeleton .video-body span:last-child { width: 50%; }
.library-empty { grid-column: 1 / -1; color: var(--muted); }
.library-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.library-foot p { margin: 0; }

/* ---------- Live page ---------- */
.live-stage { position: relative; padding: 140px max(24px, calc((100vw - 1320px) / 2)) 110px; color: white; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(237,198,110,.16), transparent 70%), radial-gradient(ellipse 60% 60% at 50% 110%, rgba(24,93,168,.35), transparent 70%), #04142c; }
.live-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 3px 3px; opacity: .25; mix-blend-mode: overlay; }
.live-rays { position: absolute; inset: -20% 0 auto; height: 120%; pointer-events: none; }
.live-rays span { position: absolute; top: 0; left: 50%; width: 32vw; height: 100%; background: linear-gradient(180deg, rgba(237,198,110,.12), transparent 65%); transform-origin: top center; filter: blur(12px); animation: ray-sway 14s ease-in-out infinite; }
.live-rays span:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.live-rays span:nth-child(2) { transform: translateX(-50%) rotate(0deg); animation-delay: -5s; opacity: .8; }
.live-rays span:nth-child(3) { transform: translateX(-50%) rotate(24deg); animation-delay: -9s; }
@keyframes ray-sway { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.media-page-live [data-state="live"] .live-rays span { background: linear-gradient(180deg, rgba(255,120,100,.1), rgba(237,198,110,.06) 40%, transparent 70%); }
.live-head { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; margin-bottom: 52px; text-align: center; }
.live-head h1 { font-size: clamp(44px, 6vw, 92px); }
.live-status { display: flex; align-items: center; gap: 16px; margin: 0; flex-wrap: wrap; justify-content: center; }
.live-status-note { color: rgba(255,255,255,.6); font-size: 13px; }
.media-page-live [data-state="live"] .live-status .live-badge { background: #c4302b; border-color: transparent; }
.media-page-live [data-state="upcoming"] .live-status .live-dot { animation: live-blink 2s ease-in-out infinite; }
.media-page-live [data-state="offline"] .live-status .live-dot { background: rgba(255,255,255,.4); }
.live-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: auto; transition: max-width .4s ease; }
.live-layout.has-chat { grid-template-columns: minmax(0, 1fr) 360px; max-width: 1320px; }
.live-screen { min-width: 0; }
.live-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.live-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.live-action { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; color: white; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font: 600 12px var(--sans); text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.live-action:hover { background: rgba(237,198,110,.14); border-color: rgba(237,198,110,.55); }
.live-action[hidden] { display: none; }
.live-chat { display: grid; grid-template-rows: auto 1fr; min-height: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(237,198,110,.25); }
.live-chat[hidden] { display: none; }
.live-chat-head { display: grid; gap: 2px; padding: 16px 18px; border-bottom: 1px solid rgba(237,198,110,.2); }
.live-chat-head span { font-family: var(--serif); font-size: 20px; }
.live-chat-head small { color: rgba(255,255,255,.5); font-size: 11px; }
.live-chat-frame { position: relative; min-height: 480px; }
.live-chat-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.offline-card { position: relative; aspect-ratio: 16 / 9; display: grid; align-content: center; justify-items: center; gap: 0; padding: 40px; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(237,198,110,.14), transparent 60%), linear-gradient(160deg, #0b2d59, #04142c 70%); }
.offline-card[hidden] { display: none; }
.offline-card::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 55%; border: 1px solid rgba(237,198,110,.16); border-radius: 50%; box-shadow: 0 0 0 60px rgba(237,198,110,.03); }
.offline-logo { position: relative; width: 74px; height: 74px; margin-bottom: 16px; object-fit: contain; opacity: .95; filter: drop-shadow(0 6px 20px rgba(237,198,110,.3)); }
.offline-card .eyebrow { position: relative; margin-bottom: 10px; }
.offline-heading { position: relative; margin: 0; color: rgba(255,255,255,.6); font-size: 13px; }
.offline-service { position: relative; margin: 4px 0 24px; font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); line-height: 1.1; }
.countdown { position: relative; display: flex; gap: clamp(10px, 2vw, 24px); }
.countdown div { display: grid; justify-items: center; min-width: clamp(64px, 8vw, 104px); padding: 14px 6px 12px; background: rgba(4,20,44,.55); border: 1px solid rgba(237,198,110,.28); }
.countdown strong { color: var(--gold-light); font-family: var(--serif); font-size: clamp(30px, 4.2vw, 58px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 8px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.offline-note { position: relative; max-width: 460px; margin: 22px 0 18px; color: rgba(255,255,255,.55); font-size: 13px; }
.offline-actions { position: relative; justify-content: center; }
.offline-actions .button { min-height: 44px; }
.offline-actions [hidden] { display: none; }

.live-program { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8%; width: min(1180px, calc(100vw - 48px)); margin: auto; padding: 120px 0; }
.live-program-head h2 { color: var(--navy); font-size: clamp(42px, 5vw, 70px); }
.live-program-head h2 em { color: var(--gold); }
.live-program-head > p:not(.eyebrow) { max-width: 360px; margin-top: 24px; color: var(--muted); }
.program-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.program-list li { display: grid; grid-template-columns: 210px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 12px; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.program-list li:hover { background: var(--cream); }
.program-list li.is-today { background: linear-gradient(90deg, rgba(237,198,110,.22), transparent); }
.program-day { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.program-day em { margin-left: 6px; padding: 2px 7px; color: white; background: var(--navy); font-size: 9px; font-style: normal; }
.program-list strong { color: var(--navy); font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.3; }
.program-time { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }

.live-replays { padding: 110px max(24px, calc((100vw - 1240px) / 2)) 120px; color: white; background: var(--navy); }
.live-replays .library-head h2 { color: white; }
.live-replays .library-head h2 em { color: var(--gold-light); }
.video-grid-dark .video-body { border-color: rgba(255,255,255,.14); }
.video-grid-dark .video-body h3 button { color: white; }
.video-grid-dark .video-body h3 button:hover { color: var(--gold-light); }
.video-grid-dark .video-body p { color: rgba(255,255,255,.5); }
.video-grid-dark:empty::before { content: "Recent broadcasts will appear here."; color: rgba(255,255,255,.5); }

.live-toast { position: fixed; z-index: 70; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 40px)); padding: 12px 12px 12px 14px; color: white; background: rgba(4,20,44,.96); border: 1px solid rgba(196,48,43,.6); box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: toast-in .5s cubic-bezier(.2,1.2,.4,1); }
.live-toast .live-badge { flex: none; background: #c4302b; border-color: transparent; }
.live-toast .live-dot { background: white; animation: live-blink 1.4s ease-in-out infinite; }
.live-toast > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.live-toast .button { min-height: 38px; padding: 0 16px; }
.live-toast-close { padding: 4px 8px; color: rgba(255,255,255,.6); background: none; border: 0; font-size: 22px; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .site-nav { gap: 18px; }
  .live-layout.has-chat { grid-template-columns: minmax(0, 1fr); }
  .live-chat-frame { min-height: 420px; }
}

@media (max-width: 960px) {
  .nav-live.is-live { padding: 6px 16px 6px 14px; }
  .watch-hero { grid-template-columns: 1fr; padding-top: 128px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-program { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .watch-hero { padding: 116px 18px 80px; }
  .theater-frame { padding: 6px; }
  .frame-corner { width: 18px; height: 18px; }
  .frame-corner-tl, .frame-corner-tr { top: -6px; }
  .frame-corner-bl, .frame-corner-br { bottom: -6px; }
  .frame-corner-tl, .frame-corner-bl { left: -6px; }
  .frame-corner-tr, .frame-corner-br { right: -6px; }
  .theater-meta { flex-direction: column; align-items: flex-start; }
  .player-play { width: 68px; height: 68px; }
  .player-play svg { width: 26px; height: 26px; }
  .player-label { top: calc(50% + 54px); font-size: 9px; }
  .live-banner { flex-wrap: wrap; gap: 10px 16px; }
  .live-banner-title { flex-basis: 100%; order: 3; font-size: 17px; }
  .library { width: calc(100vw - 36px); padding: 84px 0; }
  .library-filters { width: 100%; overflow-x: auto; }
  .library-filters button { flex: 1; white-space: nowrap; padding-inline: 12px; }
  .video-grid { grid-template-columns: 1fr; gap: 34px; }
  .live-stage { padding: 112px 14px 80px; }
  .live-head { margin-bottom: 34px; }
  .offline-card { aspect-ratio: auto; padding: 36px 18px 30px; }
  .countdown div { min-width: 0; flex: 1; padding: 10px 4px; }
  .live-program { width: calc(100vw - 36px); padding: 84px 0; }
  .program-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .program-time { text-align: left; }
  .live-replays { padding: 84px 18px; }
  .live-replays .library-head .button { width: 100%; }
  .live-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-rays span, .nav-live.is-live, .player-skeleton { animation: none !important; }
}
