:root{
    --bg:#0a0d12; --bg-elevated:#10151c; --bg-card:#141a22; --border:rgba(255,255,255,.08);
    --primary:#1ca9e8; --primary-dim:#15789f; --accent:#ff6a1a; --live:#e0313d;
    --text:#f5f7fa; --text-muted:#a6b0bc; --text-faint:#7d8996; --radius:8px;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ background:var(--bg); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* ---------- App shell: left icon sidebar (desktop/tablet) ---------- */
/* This — not a wider top bar — is what actually reads as "app, not website":
   Netflix's TV app, Disney+ desktop, and most streaming platforms use a
   persistent icon rail rather than a page-style top nav. Collapsed to icons
   only by default, expands on hover to show labels (overlays content rather
   than reflowing the page, so hovering doesn't shift anything else). */
body{ padding-left:0; }
@media (min-width:900px){ body{ padding-left:76px; } }
.app-sidebar{ position:fixed; top:0; left:0; bottom:0; width:76px; z-index:100; display:none; flex-direction:column; align-items:center; padding:20px 0; background:rgba(10,13,18,.7); backdrop-filter:blur(16px); border-right:1px solid var(--border); transition:width .18s ease; overflow:hidden; }
@media (min-width:900px){ .app-sidebar{ display:flex; } }
.app-sidebar:hover{ width:230px; align-items:flex-start; }
.sidebar-logo{ width:36px; height:36px; border-radius:9px; margin-bottom:28px; flex:0 0 auto; }
.app-sidebar:hover .sidebar-logo{ margin-left:20px; }
.sidebar-nav{ display:flex; flex-direction:column; gap:6px; width:100%; }
.sidebar-item{ display:flex; align-items:center; gap:16px; height:44px; width:100%; padding:0 26px; color:var(--text-muted); white-space:nowrap; }
.sidebar-item svg{ flex:0 0 auto; width:21px; height:21px; }
.sidebar-item span{ font-size:13.5px; font-weight:600; opacity:0; transition:opacity .15s; }
.app-sidebar:hover .sidebar-item span{ opacity:1; }
.sidebar-item:hover, .sidebar-item.active{ color:var(--text); }
.sidebar-item.active{ position:relative; }
.sidebar-item.active::before{ content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--primary); }
.sidebar-item.active svg{ color:var(--primary); }
.sidebar-bottom{ margin-top:auto; padding-top:12px; }

/* ---------- Bottom tab bar (mobile — stronger "app" signal than a squeezed sidebar) ---------- */
.tab-bar{ display:flex; position:fixed; left:0; right:0; bottom:0; z-index:100; background:rgba(10,13,18,.94); backdrop-filter:blur(16px); border-top:1px solid var(--border); padding:8px 4px calc(8px + env(safe-area-inset-bottom)); }
@media (min-width:900px){ .tab-bar{ display:none; } }
@media (max-width:900px){ body{ padding-bottom:64px; } }
.tab-item{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--text-faint); padding:4px 0; }
.tab-item svg{ width:21px; height:21px; }
.tab-item span{ font-size:10px; font-weight:600; }
.tab-item.active{ color:var(--primary); }

/* ---------- Minimal top bar: search + profile only, nav moved to sidebar ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:60; display:flex; align-items:center; justify-content:flex-end; padding:16px 40px; transition:.3s; border-bottom:1px solid transparent; }
.nav.is-scrolled{ background:rgba(10,13,18,.7); backdrop-filter:blur(14px); border-color:var(--border); }
@media (min-width:900px){ .nav{ left:76px; } }
@media (max-width:900px){ .nav, .nav.is-scrolled{ padding-left:16px; padding-right:16px; } }
.nav-right{ display:flex; align-items:center; gap:16px; }
.nav-icon-btn{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-muted); cursor:pointer; }
.nav-icon-btn:hover{ color:var(--text); }
.nav-icon-btn.is-subscribed{ color:var(--primary); }
.nav-icon-btn.has-unread{ color:var(--primary); animation:nav-msg-pulse 1.6s ease-in-out infinite; }
@keyframes nav-msg-pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.22); } }
.nav-avatar{ width:30px; height:30px; border-radius:7px; background:linear-gradient(135deg,var(--primary),var(--primary-dim)); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }

/* ---------- Hero (shorter, blurred logo as ambient backdrop) ---------- */
/* Background matches the page itself — a flat/near-flat surface, not a
   blurred image — so there's nothing to "blend": it already is the site
   background. The visual interest instead comes from the thumbnail + accent
   stripes on the right. */
.hero{ position:relative; height:58vh; min-height:420px; overflow:hidden; background:radial-gradient(120% 100% at 78% 50%, #121a22 0%, var(--bg) 62%); }
.hero-slide{ position:absolute; inset:0; display:flex; align-items:center; opacity:0; transition:opacity 1.1s ease; pointer-events:none; }
.hero-slide.is-active{ opacity:1; pointer-events:auto; z-index:1; }
.hero-content{ position:relative; z-index:2; padding:0 40px; max-width:600px; }

/* Thumbnail + two thick diagonal accent stripes, right-hand side. Stripes sit
   behind the framed thumbnail, in the brand's primary/accent colors. */
.hero-thumb-wrap{ position:absolute; right:70px; top:50%; transform:translateY(-50%); width:300px; height:300px; z-index:1; }
@media (max-width:1150px){ .hero-thumb-wrap{ right:30px; width:230px; height:230px; } }
@media (max-width:900px){ .hero-thumb-wrap{ display:none; } }
.hero-accent-line{ position:absolute; left:50%; top:50%; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.hero-accent-line.line-1{ width:440px; height:34px; background:var(--primary); transform:translate(-50%,-50%) rotate(-16deg) translateY(-46px); }
.hero-accent-line.line-2{ width:440px; height:34px; background:var(--accent); transform:translate(-50%,-50%) rotate(-16deg) translateY(38px); }
.hero-thumb{ position:relative; z-index:1; width:100%; height:100%; border-radius:18px; overflow:hidden; border:4px solid rgba(255,255,255,.92); box-shadow:0 24px 54px rgba(0,0,0,.5); background:#fff; }
.hero-thumb img{ width:100%; height:100%; display:block; }
.hero-thumb.thumb-station img{ object-fit:contain; padding:22px; }
.hero-thumb.thumb-vod img{ object-fit:cover; }

.hero-dots{ position:absolute; left:40px; bottom:34px; z-index:3; display:flex; gap:8px; }
@media (max-width:900px){ .hero-dots{ left:16px; bottom:22px; } }
.hero-dot{ width:22px; height:3px; border-radius:2px; background:rgba(255,255,255,.3); border:none; padding:0; cursor:pointer; transition:background .2s; }
.hero-dot.is-active{ background:var(--primary); }
.hero-dot:hover{ background:rgba(255,255,255,.55); }
@media (max-width:900px){ .hero-content{ padding:0 16px; } .hero{ height:50vh; min-height:370px; } }
.hero-eyebrow{ display:flex; align-items:center; gap:8px; color:var(--primary); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.hero-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--primary); }
.hero-title{ font-size:clamp(28px,4.4vw,48px); font-weight:800; line-height:1.08; margin:0 0 12px; letter-spacing:-.015em; }
.hero-meta{ color:var(--text-muted); font-size:14px; margin:0 0 14px; }
.hero-desc{ color:var(--text-muted); font-size:14.5px; line-height:1.6; margin:0 0 24px; max-width:520px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.location-bar-wrap{ display:flex; justify-content:flex-end; padding:12px 40px 0; }
@media (max-width:900px){ .location-bar-wrap{ padding:10px 16px 0; } }
.location-chip{ display:inline-flex; align-items:center; gap:7px; appearance:none; cursor:pointer; font-family:inherit; padding:8px 14px; border-radius:100px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text); font-size:12.5px; font-weight:700; transition:.15s; }
.location-chip:hover{ background:rgba(255,255,255,.12); }
.location-flag{ width:18px; height:13px; object-fit:cover; border-radius:2px; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:7px; font-size:14px; font-weight:600; border:1px solid transparent; cursor:pointer; transition:.18s; }
.btn-primary{ background:var(--text); color:#0a0d12; }
.btn-primary:hover{ background:#e4e9ee; }
.btn-outline{ background:rgba(255,255,255,.08); color:var(--text); border-color:rgba(255,255,255,.16); }
.btn-outline:hover{ background:rgba(255,255,255,.14); }
.btn-ghost{ background:transparent; color:var(--text-muted); padding:11px 8px; }
.btn-ghost:hover{ color:var(--text); }

/* ---------- Rail shell ---------- */
.rails{ padding:20px 0 80px; position:relative; z-index:2; }
.rail{ margin-bottom:34px; }
.rail-head{ display:flex; align-items:baseline; justify-content:space-between; padding:0 40px; margin-bottom:12px; }
@media (max-width:900px){ .rail-head{ padding:0 16px; } }
.rail-title{ font-size:17px; font-weight:700; margin:0; letter-spacing:-.005em; }
.rail-see-all{ font-size:12px; color:var(--text-muted); font-weight:600; }
.rail-see-all:hover{ color:var(--primary); }
.rail-viewport{ position:relative; }
.rail-scroll{ display:flex; overflow-x:auto; padding:4px 40px 16px; scroll-snap-type:x proximity; scrollbar-width:none; scroll-behavior:smooth; }
.rail-scroll::-webkit-scrollbar{ display:none; }
@media (max-width:900px){ .rail-scroll{ padding-left:16px; padding-right:16px; } }
.rail-nav{ position:absolute; top:0; bottom:16px; width:56px; display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; transition:opacity .2s; z-index:6; background:linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.rail-nav.next{ right:0; background:linear-gradient(270deg, var(--bg) 0%, transparent 100%); }
.rail-viewport:hover .rail-nav{ opacity:1; }
@media (max-width:900px){ .rail-nav{ display:none; } }
.rail-nav-btn{ width:36px; height:36px; border-radius:50%; background:rgba(20,26,34,.92); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text); }
.rail-nav-btn:hover{ background:var(--bg-card); border-color:var(--primary); }

/* ---------- Landscape cards (16:9) — TV stations: kept LARGE & WIDE (own identity) ---------- */
.rail-landscape .rail-scroll{ gap:14px; }
.card-landscape{ flex:0 0 auto; width:300px; scroll-snap-align:start; position:relative; border-radius:var(--radius); background:var(--bg-card); border:1px solid var(--border); transition:transform .25s cubic-bezier(.2,.8,.2,1); cursor:pointer; }
.card-landscape:hover{ transform:scale(1.05) translateY(-4px); z-index:20; box-shadow:0 20px 40px rgba(0,0,0,.5); }
@media (max-width:900px){ .card-landscape{ width:230px; } }
.card-landscape .media{ position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:var(--radius) var(--radius) 0 0; background:#0e131a; }
.card-landscape .media img{ width:100%; height:100%; object-fit:cover; }
.card-landscape .body{ padding:11px 13px 13px; }
.card-landscape .title{ font-size:13.5px; }

/* ---------- Poster cards (2:3) — deliberately SMALL, MovieBox-style dense library exposure ---------- */
.rail-poster .rail-scroll{ gap:8px; }
.card-poster{ flex:0 0 auto; width:118px; scroll-snap-align:start; position:relative; border-radius:6px; overflow:hidden; background:var(--bg-card); border:1px solid var(--border); transition:transform .22s ease, box-shadow .22s; cursor:pointer; }
.card-poster:hover{ transform:translateY(-4px) scale(1.07); box-shadow:0 14px 26px rgba(0,0,0,.5); z-index:15; }
@media (max-width:900px){ .card-poster{ width:96px; } }
.card-poster .media{ position:relative; aspect-ratio:2/3; background:#0e131a; overflow:hidden; }
.card-poster .media img{ width:100%; height:100%; object-fit:cover; }
.card-poster .body{ padding:7px 8px 9px; }
.card-poster .title{ font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; font-weight:600; }
.card-poster .sub{ font-size:9.5px; color:var(--text-faint); margin:2px 0 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Top 10 rank treatment on posters */
.rank-card{ position:relative; display:flex; align-items:flex-end; flex:0 0 auto; }
.rank-num{ font-size:64px; font-weight:800; line-height:.8; color:transparent; -webkit-text-stroke:2px rgba(255,255,255,.2); margin-right:-12px; margin-bottom:2px; font-family:Georgia,'Times New Roman',serif; user-select:none; }
.rank-num.top3{ -webkit-text-stroke:2px var(--accent); }
@media (max-width:900px){ .rank-num{ font-size:48px; margin-right:-8px; } }

/* Standalone placement of .card-feature between the hero and the rails, for
   the homepage ad spotlight (SuperAdmin\AdSpotlightController) — same card,
   not inside a horizontally-scrolling rail. */
.ad-spotlight-wrap{ padding:24px 40px 4px; }
@media (max-width:900px){ .ad-spotlight-wrap{ padding:16px 16px 0; } }

/* ---------- Cinematic wide cards — ~2:1, Apple TV premium feeling, used sparingly ---------- */
.rail-wide .rail-scroll{ gap:18px; }
.card-feature{ position:relative; flex:0 0 auto; width:min(74vw, 560px); aspect-ratio:2/1; scroll-snap-align:start; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); cursor:pointer; display:flex; align-items:flex-end; transition:transform .25s; }
.card-feature:hover{ transform:translateY(-3px); }
.card-feature .bg-blur{ position:absolute; inset:-10%; background-size:cover; background-position:center; filter:blur(26px) brightness(.5); }
.card-feature::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,13,18,.1) 0%, rgba(10,13,18,.9) 92%); }
.card-feature .info{ position:relative; z-index:1; padding:20px 22px; }
.feature-eyebrow{ font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.feature-title{ font-size:19px; font-weight:700; margin:0 0 4px; }
.feature-sub{ font-size:12px; color:var(--text-muted); margin:0; }

/* ---------- Square logo cards (1:1) — stations with strong branding, no artwork needed ---------- */
.rail-square .rail-scroll{ gap:14px; }
.card-square{ flex:0 0 auto; width:140px; scroll-snap-align:start; cursor:pointer; }
@media (max-width:900px){ .card-square{ width:112px; } }
.card-square .media{ position:relative; aspect-ratio:1/1; border-radius:12px; overflow:hidden; background:var(--bg-card); border:1px solid var(--border); transition:transform .22s ease, border-color .22s; }
.card-square:hover .media{ transform:scale(1.05); border-color:rgba(255,255,255,.2); }
.card-square .media img{ width:100%; height:100%; object-fit:cover; }
.card-square .body{ padding-top:9px; text-align:center; }
.card-square .title{ font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- Circular channel cards — channel/profile-discovery style ---------- */
.rail-circle .rail-scroll{ gap:18px; }
.card-circle{ position:relative; flex:0 0 auto; width:96px; scroll-snap-align:start; cursor:pointer; text-align:center; }
/* Sits outside .media (which clips to a circle) so the ribbon isn't cut off.
   Positioned/rotated so the text lands over the visible circle, not hanging
   off the card edge — a plain diagonal stripe with no legible text reads as
   a rendering bug, not a badge. */
.circle-new-badge{ position:absolute; z-index:2; top:16px; left:-24px; width:100px; padding:3px 0; background:var(--accent); color:#fff; font-size:10px; font-weight:800; letter-spacing:.04em; text-align:center; transform:rotate(-40deg); box-shadow:0 2px 6px rgba(0,0,0,.4); pointer-events:none; }
@media (max-width:900px){ .circle-new-badge{ width:82px; left:-20px; top:12px; font-size:9px; } }
@media (max-width:900px){ .card-circle{ width:80px; } }
.card-circle .media{ position:relative; z-index:1; width:88px; height:88px; margin:0 auto; border-radius:50%; overflow:hidden; background:var(--bg-card); border:2px solid var(--border); transition:transform .22s ease, border-color .22s; }
@media (max-width:900px){ .card-circle .media{ width:72px; height:72px; } }
.card-circle:hover .media{ transform:scale(1.06); border-color:var(--primary); }
.card-circle .media img{ width:100%; height:100%; object-fit:cover; }
.card-circle .body{ padding-top:9px; }
.card-circle .title{ font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Two-row variant — same circle card, but the scroller becomes a 2-row grid
   (grid-auto-flow:column) instead of a single flex row, so scrolling moves
   through columns of 2 stacked stations at a time. Used for Recently Added. */
/* Row-major fill: row 1 fills left-to-right first, then wraps to row 2 once
   it reaches the column count (set inline per-rail, from the real item
   count) — reading order matches recency order (newest first, top-left).
   grid-auto-flow:column would instead pair items top/bottom by column,
   scattering the newest-first order across both rows. */
.rail-circle-2row .rail-scroll{ display:grid; grid-template-rows:repeat(2, auto); grid-auto-flow:row; row-gap:18px; column-gap:18px; overflow-x:hidden; }
.rail-circle-2row .rail-scroll > .card-circle{ width:100%; }

/* ---------- Near You cards — rectangular, state+country both shown ---------- */
.rail-nearyou .rail-scroll{ gap:16px; }
.card-nearyou{ flex:0 0 auto; width:220px; scroll-snap-align:start; border-radius:var(--radius); overflow:hidden; background:var(--bg-card); border:1px solid var(--border); transition:transform .22s ease, border-color .22s; cursor:pointer; }
.card-nearyou:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.2); }
@media (max-width:900px){ .card-nearyou{ width:172px; } }
.card-nearyou .media{ position:relative; aspect-ratio:16/9; background:#0e131a; overflow:hidden; }
.card-nearyou .media img{ width:100%; height:100%; object-fit:cover; }
.card-nearyou .body{ padding:10px 12px 12px; }
.card-nearyou .title{ font-size:13px; }
.card-nearyou .sub{ font-size:11px; }

/* ---------- Brand / network tile rail — category discovery, Disney+-style tiles ---------- */
.tile-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; padding:0 40px; }
@media (max-width:900px){ .tile-grid{ padding:0 16px; grid-template-columns:repeat(2,1fr); } }
.card-tile{ position:relative; aspect-ratio:2.2/1; border-radius:10px; overflow:hidden; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition:transform .2s, border-color .2s; }
.card-tile:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.22); }
.card-tile .tile-label{ font-size:15px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--text); position:relative; z-index:1; }
.card-tile .tile-count{ position:relative; z-index:1; font-size:10.5px; color:rgba(255,255,255,.75); margin-top:4px; display:block; text-align:center; }

/* ---------- Country cards ---------- */
.country-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; padding:0 40px; }
@media (max-width:900px){ .country-grid{ padding:0 16px; grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); } }
.card-country{ position:relative; border-radius:7px; overflow:hidden; border:1px solid var(--border); padding:14px 14px; background:linear-gradient(135deg, #141f28 0%, #0d131a 100%); transition:.2s; }
.card-country:hover{ border-color:var(--primary); transform:translateY(-2px); }
.card-country img{ width:28px; height:19px; object-fit:cover; border-radius:3px; margin-bottom:10px; }
.card-country .name{ font-size:12.5px; font-weight:700; margin-bottom:2px; }
.card-country .count{ font-size:10px; color:var(--text-faint); }

/* ---------- Shared card chrome ---------- */
.card-badge{ position:absolute; top:8px; left:8px; display:flex; align-items:center; gap:4px; background:rgba(10,13,18,.78); border:1px solid rgba(255,255,255,.14); padding:3px 8px; border-radius:100px; font-size:9.5px; font-weight:700; letter-spacing:.05em; }
.card-badge.live{ color:var(--live); }
.card-badge.live .dot{ width:5px; height:5px; border-radius:50%; background:var(--live); }
.card-progress{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.18); }
.card-progress > span{ display:block; height:100%; background:var(--primary); }
.sub{ font-size:11px; color:var(--text-faint); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- Skeleton ---------- */
.skel{ background:linear-gradient(100deg, #10151c 30%, #182130 50%, #10151c 70%); background-size:220% 100%; animation:skel-shimmer 1.5s ease-in-out infinite; border-radius:var(--radius); }
@keyframes skel-shimmer{ 0%{ background-position:120% 0; } 100%{ background-position:-20% 0; } }
.skel-poster{ flex:0 0 auto; width:118px; aspect-ratio:2/3; }
@media (max-width:900px){ .skel-poster{ width:96px; } }
.skeleton-rail.is-hidden{ display:none; }

footer.preview-note{ text-align:center; padding:36px 20px 56px; color:var(--text-faint); font-size:12px; border-top:1px solid var(--border); margin-top:16px; }
footer.preview-note a{ color:var(--primary); }

/* ---------- "See All" listing pages — tabular listing, search + category tabs, paginated ---------- */
.see-all-page{ padding:104px 40px 80px; }
@media (max-width:900px){ .see-all-page{ padding:88px 16px 64px; } }
.see-all-back{ display:inline-block; font-size:13px; font-weight:600; color:var(--text-muted); margin-bottom:16px; }
.see-all-back:hover{ color:var(--primary); }
.see-all-title{ font-size:26px; font-weight:800; margin:0 0 4px; letter-spacing:-.01em; }
.see-all-count{ font-size:13px; color:var(--text-faint); margin:0 0 24px; }
.see-all-empty{ color:var(--text-muted); font-size:14px; padding:32px 0; text-align:center; }

/* Toolbar: search box + category/type tabs. Tabs are a single horizontally-
   scrolling row (never wrap) — same pattern as the homepage rails — so a
   long category list never breaks into several stacked rows of pills. */
.see-all-toolbar{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-bottom:22px; }
.see-all-search{ flex:0 0 auto; display:flex; align-items:center; gap:9px; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:9px 14px; min-width:240px; color:var(--text-faint); }
.see-all-search:focus-within{ border-color:var(--primary); color:var(--text-muted); }
.see-all-search input{ background:none; border:none; outline:none; color:var(--text); font-size:13.5px; width:100%; font-family:inherit; }
.see-all-search input::placeholder{ color:var(--text-faint); }
.see-all-tabs{ display:flex; flex-wrap:nowrap; flex:1 1 auto; min-width:0; gap:8px; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.see-all-tabs::-webkit-scrollbar{ display:none; }
.sa-tab{ flex:0 0 auto; appearance:none; cursor:pointer; font-family:inherit; padding:8px 15px; border-radius:100px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text-muted); font-size:12.5px; font-weight:600; white-space:nowrap; transition:.15s; }
.sa-tab:hover{ background:rgba(255,255,255,.12); color:var(--text); }
.sa-tab.is-active{ background:var(--primary); border-color:var(--primary); color:#0a0d12; }
@media (max-width:900px){
    .see-all-toolbar{ flex-direction:column; align-items:stretch; }
    .see-all-search{ min-width:0; width:100%; }
    /* flex-direction:column makes width the cross axis, where flex-shrink/
       min-width:0 (main-axis properties) no longer constrain it — without an
       explicit width the tabs row was sizing to its full unwrapped content
       width and pushing the whole page into horizontal overflow. */
    .see-all-tabs{ width:100%; }
}

/* Table */
.see-all-table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); }
.see-all-table{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:560px; }
.see-all-table thead th{ text-align:left; padding:12px 16px; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-faint); background:var(--bg-elevated); border-bottom:1px solid var(--border); }
.see-all-table tbody tr{ cursor:pointer; border-bottom:1px solid var(--border); transition:background .15s; }
.see-all-table tbody tr:last-child{ border-bottom:none; }
.see-all-table tbody tr:hover{ background:rgba(255,255,255,.04); }
.see-all-table td{ padding:9px 16px; vertical-align:middle; color:var(--text-muted); }
.see-all-table td.sa-name{ color:var(--text); font-weight:600; }
.sa-thumb{ width:64px; height:36px; object-fit:cover; border-radius:5px; background:#0e131a; display:block; }
.sa-thumb-poster{ width:40px; height:56px; object-fit:cover; border-radius:4px; }
.sa-live-badge{ display:inline-flex; align-items:center; gap:5px; color:var(--live); font-size:10.5px; font-weight:700; letter-spacing:.04em; }
.sa-live-badge .dot{ width:5px; height:5px; border-radius:50%; background:var(--live); }

/* Dashboard home — stat cards, quick links, recent-uploads list. */
.dash-stats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:14px; margin:20px 0 24px; }
.dash-stat-card{ background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; }
.dash-stat-card .stat-value{ font-size:28px; font-weight:800; letter-spacing:-.02em; color:var(--text); }
.dash-stat-card .stat-label{ font-size:11.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }

.dash-quicklinks{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:32px; }
.dash-quicklink{ display:inline-flex; align-items:center; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:11px 16px; color:var(--text); text-decoration:none; font-size:13.5px; font-weight:600; transition:.15s; }
.dash-quicklink:hover{ border-color:var(--primary); transform:translateY(-2px); }

.dash-section-title{ font-size:16px; font-weight:800; margin:0 0 14px; color:var(--text); }

.dash-recent-list{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.dash-recent-row{ display:flex; align-items:center; gap:14px; padding:11px 16px; border-bottom:1px solid var(--border); text-decoration:none; color:inherit; }
.dash-recent-row:last-child{ border-bottom:none; }
.dash-recent-row:hover{ background:rgba(255,255,255,.04); }
.dash-recent-thumb{ width:80px; height:45px; object-fit:cover; border-radius:5px; background:#0e131a; flex:0 0 auto; }
.dash-recent-title{ font-size:13.5px; font-weight:600; color:var(--text); }
.dash-recent-meta{ font-size:11.5px; color:var(--text-faint); margin-top:2px; }

/* Owner comment moderation. */
.dash-comment-list{ display:flex; flex-direction:column; gap:16px; }
.dash-comment{ background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; }
.dash-comment-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.dash-comment-user{ font-weight:700; font-size:13.5px; color:var(--text); }
.dash-comment-meta{ font-size:11.5px; color:var(--text-faint); }
.dash-comment-content{ font-size:13.5px; color:var(--text-muted); margin:0 0 10px; white-space:pre-wrap; }
.dash-comment-replies{ margin:12px 0 12px 20px; padding-left:14px; border-left:2px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.dash-comment-reply-form{ margin-top:12px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.dash-comment-reply-form textarea{ width:100%; resize:vertical; }

/* Pagination — custom template (app/Views/pager/streaming_v2.php), not Bootstrap. */
.see-all-pager{ margin-top:28px; display:flex; justify-content:center; }
.pgr{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center; }
.pgr-btn{ appearance:none; cursor:pointer; font-family:inherit; padding:8px 14px; border-radius:7px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text); font-size:13px; font-weight:600; text-decoration:none; }
.pgr-btn:hover{ background:rgba(255,255,255,.12); }
.pgr-btn.is-disabled{ color:var(--text-faint); opacity:.5; pointer-events:none; }
.pgr-pages{ display:flex; gap:4px; margin:0 4px; }
.pgr-page{ appearance:none; cursor:pointer; font-family:inherit; min-width:34px; height:34px; padding:0 4px; border-radius:7px; border:none; background:none; display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:13px; font-weight:600; text-decoration:none; }
.pgr-page:hover{ background:rgba(255,255,255,.08); color:var(--text); }
.pgr-page.is-active{ background:var(--primary); color:#0a0d12; }
.pgr-count{ width:100%; text-align:center; margin-top:10px; font-size:12px; color:var(--text-faint); order:10; }

/* ---------- Shared chrome for non-hero pages (flash alerts, generic page padding) ---------- */
.alert{ padding:12px 18px; border-radius:8px; font-size:13.5px; border:1px solid var(--border); }
.alert-success{ background:rgba(28,169,232,.12); border-color:rgba(28,169,232,.3); color:#8fd7f7; }
.alert-danger{ background:rgba(224,49,61,.12); border-color:rgba(224,49,61,.3); color:#f5a3a9; }

/* ---------- Station player page ---------- */
.player-page{ padding:104px 40px 80px; }
@media (max-width:900px){ .player-page{ padding:88px 16px 64px; } }

/* Video + comments side by side (Twitch/YouTube-Live style) — the comments
   panel matches the video block's height and scrolls its own message list
   internally, with the "add a comment" box pinned below it. Below this row,
   station info/schedule/etc. run full width regardless. */
.player-layout{ display:grid; grid-template-columns:1fr 360px; gap:24px; margin-bottom:8px; }
@media (max-width:1100px){ .player-layout{ grid-template-columns:1fr; } }
.player-main{ min-width:0; }
.player-sidebar{ display:flex; flex-direction:column; min-height:0; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.player-sidebar .section-title{ flex:0 0 auto; }
@media (max-width:1100px){ .player-sidebar{ max-height:none; } }

/* VOD page: player column capped narrower than the live station page's, sidebar
   back to a normal fixed width (not 1fr — that stretched it to fill the whole
   rest of the row on wide screens, leaving the Comments/More Videos tabs
   swimming in empty space). The pair is capped and centered rather than
   force-filling the row, so neither side balloons on wide viewports. */
.vod-page .player-layout{ grid-template-columns:minmax(0,700px) 380px; max-width:1140px; margin:0 auto; }
@media (max-width:1100px){ .vod-page .player-layout{ grid-template-columns:1fr; max-width:none; } }

.sidebar-tabs{ display:flex; gap:8px; flex:0 0 auto; margin-bottom:16px; }
.sidebar-tab-panel{ display:none; }
.sidebar-tab-panel.is-active{ display:flex; flex-direction:column; min-height:0; flex:1 1 auto; }

/* Owner-set event countdown card — now lives directly under the player
   (player-main) rather than the sidebar, so it's a wider, more spotlight-y
   treatment than the old sidebar widget: a soft primary-tinted glow behind
   the card and a bigger, gradient-filled countdown block. */
.station-event-card{ position:relative; background:var(--bg-card); border:1px solid var(--border); border-top:3px solid var(--primary); border-radius:12px; overflow:hidden; margin:20px 0 18px; box-shadow:0 18px 40px -20px rgba(0,0,0,.6); }
.station-event-image{ width:100%; aspect-ratio:21/9; object-fit:cover; display:block; }
.station-event-body{ padding:18px 20px 20px; position:relative; }
.station-event-eyebrow{ display:flex; align-items:center; gap:8px; color:var(--primary); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; }
.station-event-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 4px rgba(28,169,232,.18); animation:eventDotPulse 1.8s ease-in-out infinite; }
@keyframes eventDotPulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.station-event-title{ font-size:19px; font-weight:800; margin:0 0 6px; letter-spacing:-.01em; }
.station-event-desc{ font-size:13px; color:var(--text-muted); line-height:1.55; margin:0 0 18px; max-width:640px; }
.station-event-countdown{ display:flex; gap:10px; margin-bottom:18px; max-width:460px; }
.station-event-unit{ flex:1; text-align:center; background:linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border:1px solid var(--border); border-radius:10px; padding:12px 4px 10px; position:relative; overflow:hidden; }
.station-event-unit::before{ content:''; position:absolute; inset:0 0 auto 0; height:2px; background:linear-gradient(90deg, transparent, var(--primary), transparent); opacity:.7; }
.station-event-num{ display:block; font-size:24px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-.02em; background:linear-gradient(180deg, var(--text), var(--text-muted)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.station-event-label{ display:block; font-size:9.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-top:4px; }
.station-event-cta{ justify-content:center; }
@media (max-width:520px){ .station-event-countdown{ max-width:none; } .station-event-num{ font-size:20px; } }

/* Events sidebar tab — upcoming/past history list, styled after the
   comments list's row pattern (border-bottom rows in a scrollable panel). */
.event-list-heading{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin:0 0 10px; }
.event-list-heading:not(:first-child){ margin-top:18px; }
.event-list{ display:flex; flex-direction:column; }
.event-list-item{ display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); }
.event-list-item:first-child{ padding-top:0; }
.event-list-item:last-child{ border-bottom:none; }
.event-list-item.is-past{ opacity:.6; }
.event-list-thumb{ width:64px; height:40px; border-radius:6px; object-fit:cover; flex:0 0 auto; background:var(--bg-card); border:1px solid var(--border); }
.event-list-body{ min-width:0; }
.event-list-title{ font-size:13px; font-weight:700; margin:0 0 3px; letter-spacing:-.005em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.event-list-date{ font-size:11.5px; color:var(--text-muted); margin:0; }

/* Owner-created poll widget — under the player (event/general) or on a VOD
   page. Shares the countdown/eyebrow visual language of .station-event-card
   (same gradient boxes, pulsing dot) but is its own set of classes since the
   options-with-result-bars layout has no equivalent there. */
.poll-widget{ position:relative; background:var(--bg-card); border:1px solid var(--border); border-top:3px solid var(--accent); border-radius:12px; overflow:hidden; margin:20px 0 18px; box-shadow:0 18px 40px -20px rgba(0,0,0,.6); }
.poll-widget-image{ width:100%; aspect-ratio:21/9; object-fit:cover; display:block; }
.poll-widget-body{ padding:18px 20px 20px; }
.poll-widget-eyebrow{ display:flex; align-items:center; gap:8px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; }
.poll-widget-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(255,106,26,.18); animation:eventDotPulse 1.8s ease-in-out infinite; }
.poll-widget-question{ font-size:17px; font-weight:800; margin:0 0 14px; letter-spacing:-.01em; }

.poll-widget-countdown{ display:flex; gap:10px; margin-bottom:16px; max-width:420px; }
.poll-countdown-unit{ flex:1; text-align:center; background:linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border:1px solid var(--border); border-radius:10px; padding:10px 4px 8px; }
.poll-countdown-num{ display:block; font-size:20px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text); }
.poll-countdown-label{ display:block; font-size:9px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); margin-top:3px; }

.poll-widget-price{ font-size:13px; color:var(--accent); font-weight:700; margin:0 0 12px; }

.poll-options{ display:flex; flex-direction:column; gap:8px; }
/* .poll-option is a <button> (free/results) or a <form> (paid, votable) —
   reset to block-level regardless of tag, since a <form> carries its own UA
   margin that a <button> doesn't. */
.poll-option{ position:relative; display:block; width:100%; margin:0; text-align:left; background:rgba(255,255,255,.04); border:1px solid var(--border); border-radius:9px; padding:11px 14px; color:var(--text); font-size:13.5px; font-weight:600; font-family:inherit; cursor:pointer; overflow:hidden; }
.poll-option:hover:not(.is-results){ border-color:var(--accent); background:rgba(255,106,26,.08); }
.poll-option.is-results{ cursor:default; }
.poll-option.is-mine{ border-color:var(--accent); }
.poll-option-bar{ position:absolute; inset:0; width:0; background:rgba(255,106,26,.16); z-index:0; }
.poll-option-inner{ position:relative; z-index:1; display:flex; align-items:center; gap:10px; }
.poll-option-thumb{ width:44px; height:44px; border-radius:7px; object-fit:cover; flex:0 0 auto; background:var(--bg-card); }
.poll-option-text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.poll-option-desc{ font-size:11.5px; font-weight:400; color:var(--text-muted); white-space:normal; }
.poll-option-percent{ font-variant-numeric:tabular-nums; color:var(--text-muted); flex:0 0 auto; }
.poll-option-pay-btn{ flex:0 0 auto; background:var(--accent); border:none; color:#0a0d12; font-weight:800; padding:6px 12px; border-radius:100px; font-size:12px; cursor:pointer; }
.poll-option-pay-btn:hover{ filter:brightness(1.08); }
.poll-widget-meta{ font-size:12px; color:var(--text-muted); margin:12px 0 0; }
.poll-widget-meta a{ color:var(--accent); font-weight:600; }
@media (max-width:520px){ .poll-widget-countdown{ max-width:none; } .poll-countdown-num{ font-size:17px; } }

.player-frame{ position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:var(--radius); overflow:hidden; box-shadow:0 24px 54px rgba(0,0,0,.5); }
.player-frame video{ width:100%; height:100%; object-fit:contain; background:#000; display:block; }
.player-topbar{ position:absolute; top:14px; left:14px; right:14px; display:flex; justify-content:space-between; align-items:flex-start; pointer-events:none; z-index:2; }
.player-hits{ display:flex; align-items:center; gap:6px; background:rgba(10,13,18,.72); backdrop-filter:blur(8px); padding:5px 12px; border-radius:100px; font-size:12px; font-weight:700; color:var(--text); }
.player-mute-hint{ text-align:center; font-size:12px; color:var(--text-faint); margin:10px 0 0; }
.player-pip-btn{ display:inline-flex; align-items:center; gap:6px; margin-top:10px; padding:8px 14px; border-radius:7px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text-muted); font-size:12.5px; font-weight:600; cursor:pointer; font-family:inherit; }
.player-pip-btn:hover{ background:rgba(255,255,255,.12); color:var(--text); }
.player-audio-only{ margin-top:10px; padding:10px 12px; border-radius:8px; background:rgba(255,255,255,.04); border:1px solid var(--border); }
.player-audio-only-label{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.03em; }

.vod-paywall{ position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.vod-paywall-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(10px) brightness(.35); }
.vod-paywall-content{ position:relative; z-index:1; max-width:420px; text-align:center; padding:24px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.vod-paywall-content h3{ color:#fff; font-size:17px; margin:10px 0 2px; }
.vod-paywall-content p{ color:rgba(255,255,255,.75); font-size:13px; line-height:1.5; margin:0 0 6px; }
.vod-paywall-hint{ font-size:12px !important; }
.vod-paywall-hint a{ color:var(--primary); }
.vod-paywall-actions{ display:flex; flex-direction:column; gap:10px; width:100%; max-width:280px; margin-top:10px; }
.vod-paywall-actions form{ display:contents; }
.vod-paywall-actions .btn{ width:100%; justify-content:center; }

/* Google Cast's <google-cast-launcher> is a custom element that renders its
   own icon — it needs an explicit box (defaults to 24x24 unmatched to
   anything around it) sized/colored to sit inline with the PiP/AirPlay
   buttons next to it. */
google-cast-launcher.cast-launcher-btn{ display:inline-block; width:34px; height:34px; margin:10px 8px 0 0; vertical-align:middle; --connected-color:var(--primary); --disconnected-color:var(--text-muted); cursor:pointer; }

.station-info{ display:flex; align-items:flex-start; gap:20px; padding:26px 0; border-bottom:1px solid var(--border); margin-bottom:30px; flex-wrap:wrap; }
.station-info .station-logo{ width:84px; height:84px; border-radius:12px; object-fit:cover; background:var(--bg-card); border:1px solid var(--border); flex:0 0 auto; }
.station-meta{ flex:1 1 320px; min-width:0; }
.station-meta h1{ font-size:24px; font-weight:800; margin:0 0 6px; letter-spacing:-.01em; }
.station-sub{ color:var(--text-muted); font-size:13.5px; margin:0 0 12px; }
.station-desc{ color:var(--text-muted); font-size:13.5px; line-height:1.6; margin:0 0 12px; max-width:640px; }
.station-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag-pill{ font-size:11.5px; font-weight:600; padding:5px 12px; border-radius:100px; background:rgba(255,255,255,.06); border:1px solid var(--border); color:var(--text-muted); }
.tag-pill:hover{ color:var(--text); border-color:var(--primary); }
.station-actions{ display:flex; gap:10px; flex:0 0 auto; align-self:flex-start; }
.station-actions .btn svg{ flex:0 0 auto; }
.love-btn.is-active{ color:var(--live); border-color:var(--live); }
.love-btn.is-active svg{ fill:var(--live); }
.social-row{ display:flex; gap:10px; margin-top:14px; }
.social-row a{ width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-muted); }
.social-row a:hover{ color:var(--text); border-color:var(--primary); }

.onair-strip{ display:flex; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:32px; overflow:hidden; flex-wrap:wrap; }
.onair-block{ flex:1 1 220px; padding:16px 20px; }
.onair-block-flex{ display:flex; align-items:center; gap:12px; }
.onair-thumb{ width:52px; height:52px; border-radius:8px; object-fit:cover; flex:0 0 auto; background:var(--bg-elevated); }
.onair-block + .onair-block{ border-left:1px solid var(--border); }
@media (max-width:600px){ .onair-block + .onair-block{ border-left:none; border-top:1px solid var(--border); } }
.onair-label{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); margin-bottom:5px; }
.onair-title{ font-size:15px; font-weight:700; }
.onair-time{ font-size:12px; color:var(--text-faint); margin-top:2px; }

.section-title{ font-size:18px; font-weight:800; margin:0 0 16px; letter-spacing:-.005em; }
.schedule-section{ margin:40px 0; }
.schedule-tabs{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin-bottom:16px; padding-bottom:2px; }
.schedule-tabs::-webkit-scrollbar{ display:none; }
.schedule-panel .see-all-table{ min-width:420px; }

.comments-list{ flex:1 1 auto; min-height:120px; max-height:520px; overflow-y:auto; margin:0 -16px; padding:0 16px; }
@media (max-width:1100px){ .comments-list{ max-height:none; overflow-y:visible; } }
.comment{ padding:16px 0; border-bottom:1px solid var(--border); }
.comment:first-child{ padding-top:0; }
.comment-user{ font-weight:700; font-size:13.5px; }
.comment-owner-badge{ font-size:9.5px; font-weight:700; text-transform:uppercase; background:var(--primary); color:#0a0d12; padding:2px 7px; border-radius:100px; margin-left:6px; letter-spacing:.03em; }

/* Private-message thread (messages/thread.php): distinct canvas per sender so a
   viewer can tell at a glance which messages came from the station vs themselves. */
.msg-from-owner, .msg-from-me{ margin:0 0 10px; padding:10px 14px; border-radius:10px; border-bottom:none; border-left:3px solid; }
.msg-from-owner{ background:rgba(255,106,26,.12); border-left-color:var(--accent); }
.msg-from-me{ background:rgba(28,169,232,.1); border-left-color:var(--primary); }
.comment-body{ font-size:13.5px; color:var(--text-muted); margin:5px 0; line-height:1.5; }
.comment-date{ font-size:11px; color:var(--text-faint); }
.comment-reply-btn{ font-size:12px; color:var(--primary); font-weight:600; margin-top:8px; cursor:pointer; background:none; border:none; padding:0; font-family:inherit; }
.reply-list{ margin-top:12px; padding-left:18px; border-left:2px solid var(--border); }
.reply-item{ margin-bottom:14px; }
.reply-item:last-child{ margin-bottom:0; }
.login-prompt{ font-size:12.5px; color:var(--text-faint); margin-top:8px; }
.comment-form, .reply-form{ margin-top:10px; }
.player-sidebar .comment-form{ flex:0 0 auto; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.comment-form textarea, .reply-form textarea{ width:100%; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:10px 12px; color:var(--text); font-family:inherit; font-size:13.5px; resize:vertical; min-height:70px; }
.comment-form textarea:focus, .reply-form textarea:focus{ outline:none; border-color:var(--primary); }
.comment-form .btn, .reply-form .btn{ margin-top:10px; }

/* Custom modal (no Bootstrap loaded in this layout) */
.modal-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:200; padding:20px; }
.modal-overlay.is-open{ display:flex; }
.modal-box{ background:var(--bg-elevated); border:1px solid var(--border); border-radius:12px; max-width:420px; width:100%; padding:26px; position:relative; }
.modal-close{ position:absolute; top:14px; right:14px; background:none; border:none; color:var(--text-faint); cursor:pointer; font-size:22px; line-height:1; font-family:inherit; }
.modal-close:hover{ color:var(--text); }
.modal-title{ font-size:17px; font-weight:800; margin:0 0 16px; }
.modal-logo{ width:64px; height:64px; border-radius:12px; object-fit:cover; display:block; margin:0 auto 14px; background:var(--bg-card); border:1px solid var(--border); }
.modal-lede{ text-align:center; font-size:13px; color:var(--text-muted); margin:0 0 18px; }
.share-row{ display:flex; gap:10px; margin-bottom:14px; }
.share-btn{ flex:1; text-align:center; padding:10px; border-radius:8px; font-size:12px; font-weight:700; color:#fff; }
.share-btn.fb{ background:#1877f2; }
.share-btn.x{ background:#15181c; border:1px solid #333; }
.share-btn.wa{ background:#25d366; }
.copy-row{ display:flex; gap:8px; }
.copy-row input{ flex:1; min-width:0; background:var(--bg-card); border:1px solid var(--border); border-radius:7px; padding:9px 10px; color:var(--text-muted); font-size:12px; }
.copy-row .btn{ flex:0 0 auto; padding:9px 14px; }
.form-field{ margin-bottom:14px; }
.form-field label{ display:block; font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select{ width:100%; background:var(--bg-card); border:1px solid var(--border); border-radius:7px; padding:9px 12px; color:var(--text); font-family:inherit; font-size:13.5px; }
.form-field textarea{ resize:vertical; min-height:80px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ outline:none; border-color:var(--primary); }
.form-field-hint{ font-size:11.5px; color:var(--text-faint); margin:5px 0 0; }
.modal-alt{ text-align:center; font-size:12.5px; color:var(--text-faint); margin-top:14px; }

/* ---------- VOD show / series pages ---------- */
.player-frame iframe{ width:100%; height:100%; border:0; display:block; }
.video-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-top:18px; flex-wrap:wrap; }
.video-head h1{ font-size:22px; font-weight:800; margin:0; letter-spacing:-.01em; }
.video-meta{ color:var(--text-muted); font-size:13px; margin:8px 0 14px; }
.video-meta a{ color:var(--text-muted); }
.video-meta a:hover{ color:var(--primary); }
.video-desc{ color:var(--text-muted); font-size:13.5px; line-height:1.6; }

.side-panel + .side-panel{ margin-top:22px; padding-top:22px; border-top:1px solid var(--border); }
.side-panel-title{ font-size:14px; font-weight:800; margin:0 0 8px; }
.side-panel-link{ display:inline-block; font-size:12px; color:var(--primary); font-weight:600; margin-bottom:12px; }
.side-list{ display:flex; flex-direction:column; gap:10px; }
.side-item{ display:flex; align-items:center; gap:10px; }
.side-thumb{ width:80px; height:45px; object-fit:cover; border-radius:5px; flex:0 0 auto; background:#0e131a; }
.side-item-title{ font-size:12.5px; color:var(--text-muted); line-height:1.4; }
.side-item:hover .side-item-title{ color:var(--text); }

.series-head{ display:flex; gap:22px; align-items:flex-start; flex-wrap:wrap; }
.series-poster{ width:180px; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius); background:var(--bg-card); border:1px solid var(--border); flex:0 0 auto; }
.series-meta{ flex:1 1 320px; min-width:0; }
.episode-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; margin-top:16px; }
.episode-grid .card-landscape{ width:100%; }

/* ---------- Auth pages (login/register/forgot/reset) ---------- */
.auth-page{ min-height:calc(100vh - 104px); display:flex; align-items:center; justify-content:center; padding:104px 20px 60px; }
@media (max-width:900px){ .auth-page{ padding:88px 16px 48px; min-height:calc(100vh - 88px); } }
.auth-card{ width:100%; max-width:420px; background:var(--bg-elevated); border:1px solid var(--border); border-radius:14px; padding:32px; }
.auth-logo{ width:52px; height:52px; border-radius:12px; display:block; margin:0 auto 18px; }
.auth-title{ font-size:22px; font-weight:800; text-align:center; margin:0 0 6px; letter-spacing:-.01em; }
.auth-sub{ text-align:center; font-size:13px; color:var(--text-muted); margin:0 0 22px; }
.auth-links-row{ display:flex; justify-content:flex-end; margin:-6px 0 16px; }
.auth-links-row a{ font-size:12.5px; color:var(--text-muted); }
.auth-links-row a:hover{ color:var(--primary); }
.auth-alt{ text-align:center; font-size:12.5px; color:var(--text-faint); margin-top:18px; }
.auth-alt a{ color:var(--primary); font-weight:600; }
.field-error{ font-size:11.5px; color:var(--live); margin:5px 0 0; }
.auth-card .g-recaptcha{ margin-bottom:16px; transform:scale(.95); transform-origin:0 0; }
.auth-card .alert{ margin-bottom:16px; }
.auth-icon{ width:52px; height:52px; border-radius:50%; background:rgba(28,169,232,.12); color:var(--primary); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.auth-divider{ display:flex; align-items:center; gap:12px; margin:18px 0; font-size:12px; color:var(--text-faint); }
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background:var(--border); }

/* ---------- Dashboard shell (station-owner / admin area) ---------- */
/* A separate "mode" from the consumer browsing chrome — the persistent
   left icon rail (Home/Live TV/Categories/...) doesn't apply once you're
   managing a station, so it's hidden in favor of the dashboard's own nav.
   !important is deliberate here: it only needs to beat the one non-!important
   min-width:900px rule that sets body's padding-left, and doing it this way
   means dash-mode doesn't have to duplicate/out-specificity every breakpoint. */
body.dash-mode{ padding-left:0 !important; }
body.dash-mode .app-sidebar,
body.dash-mode .tab-bar{ display:none !important; }
body.dash-mode .nav{ left:0 !important; }

.dash-shell{ display:flex; align-items:stretch; min-height:calc(100vh - 64px); margin-top:64px; }
@media (max-width:900px){ .dash-shell{ flex-direction:column; margin-top:56px; min-height:auto; } }

/* Sits above .dash-shell when impersonating (dashboard/layout.php) — needs
   the same top offset .dash-shell gives itself to clear the fixed .nav bar
   (position:fixed, z-index:60), or it renders underneath that bar and its
   button becomes physically unclickable. The adjacent-sibling rule then
   zeroes .dash-shell's own offset so the two don't stack into a double gap. */
.dash-impersonation-banner{ background:var(--accent); color:#fff; padding:10px 20px; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; font-size:13.5px; font-weight:600; margin-top:64px; position:relative; z-index:10; }
@media (max-width:900px){ .dash-impersonation-banner{ margin-top:56px; } }
.dash-impersonation-banner + .dash-shell{ margin-top:0; }

.dash-sidebar{ width:240px; flex:0 0 auto; background:var(--bg-elevated); border-right:1px solid var(--border); padding:24px 16px; }
@media (max-width:900px){ .dash-sidebar{ width:100%; border-right:none; border-bottom:1px solid var(--border); padding:12px 16px; } }

.dash-nav{ display:flex; flex-direction:column; gap:2px; }
@media (max-width:900px){ .dash-nav{ flex-direction:row; flex-wrap:nowrap; overflow-x:auto; gap:6px; scrollbar-width:none; } .dash-nav::-webkit-scrollbar{ display:none; } }

.dash-nav-item{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:8px; color:var(--text-muted); font-size:13.5px; font-weight:600; }
.dash-nav-item svg{ flex:0 0 auto; width:17px; height:17px; }
.dash-nav-item:hover{ background:rgba(255,255,255,.06); color:var(--text); }
.dash-nav-item.is-active{ background:rgba(28,169,232,.14); color:var(--primary); }
@media (max-width:900px){ .dash-nav-item{ flex:0 0 auto; white-space:nowrap; } }

.dash-nav-divider{ margin:18px 14px 8px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); }
@media (max-width:900px){ .dash-nav-divider{ display:none; } }

/* Content area: dark grey shell matching the rest of the site — the shared
   dark-theme components (.btn, .see-all-table, .dash-stat-card, .sa-tab,
   .form-field, ...) were built for exactly this background, so no recolor
   override is needed for them here. */
.dash-main{ flex:1; min-width:0; background:var(--bg); color:var(--text); padding:28px 32px; }
@media (max-width:900px){ .dash-main{ padding:20px 16px; } }

/* Bootstrap restyle — the dashboard pages not yet rewritten in this theme's
   own markup (.form-field/.see-all-table/...) still use stock Bootstrap 5
   forms/cards/tables/modals. Rather than rewrite every one of those view
   files, their actual Bootstrap class names are recolored here to match the
   site (dark surfaces, the theme's accent color, the theme's radius) — same
   markup, same Bootstrap JS behavior (modals etc. keep working unchanged),
   new look. Semantic button colors are left alone on purpose (.btn-danger/
   .btn-warning/.btn-info/.btn-secondary keep Bootstrap's own red/yellow/
   cyan/grey) — only .btn-primary and shape/spacing are touched, matching
   the "don't touch the ones an admin reads as danger/warning" policy this
   dashboard already uses elsewhere (SuperAdmin delete/deactivate buttons). */
.dash-main .form-label{ font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:6px; }
.dash-main .form-control,
.dash-main .form-select{
    background:var(--bg-card); border:1px solid var(--border); border-radius:7px;
    padding:9px 12px; color:var(--text); font-family:inherit; font-size:13.5px;
}
.dash-main .form-control:focus,
.dash-main .form-select:focus{
    background:var(--bg-card); color:var(--text); border-color:var(--primary);
    outline:none; box-shadow:none;
}
.dash-main .form-control::placeholder{ color:var(--text-faint); }
.dash-main .form-control[type="file"]{ padding:7px 12px; }
.dash-main .form-select{
    background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a6b0bc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat:no-repeat; background-position:right .75rem center; background-size:16px 12px;
    padding-right:2.25rem; appearance:none;
}
.dash-main .form-check-input{ background-color:var(--bg-card); border-color:var(--border); }
.dash-main .form-check-input:checked{ background-color:var(--primary); border-color:var(--primary); }
.dash-main .form-check-label{ color:var(--text-muted); }
.dash-main .form-text,
.dash-main .text-muted{ color:var(--text-faint) !important; }

.dash-main .btn{ border-radius:7px; font-size:13.5px; padding:9px 18px; }
.dash-main .btn-sm{ padding:6px 12px; font-size:12px; }
.dash-main .btn-primary{ background:var(--primary); border-color:var(--primary); color:#fff; }
.dash-main .btn-primary:hover{ background:var(--primary-dim); border-color:var(--primary-dim); }

.dash-main .card{ background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); color:var(--text); }
.dash-main .card-header{ background:var(--bg-elevated); border-bottom:1px solid var(--border); color:var(--text); }
.dash-main .card-body{ color:var(--text-muted); }
.dash-main .card-footer{ background:var(--bg-elevated); border-top:1px solid var(--border); }

.dash-main table{
    --bs-table-bg:transparent; --bs-table-color:var(--text-muted);
    --bs-table-border-color:var(--border); --bs-table-striped-bg:rgba(255,255,255,.03);
    --bs-table-striped-color:var(--text-muted); --bs-table-hover-bg:rgba(255,255,255,.05);
    --bs-table-hover-color:var(--text);
}
.dash-main table thead th{ color:var(--text-faint); border-color:var(--border); background:var(--bg-elevated); }

.dash-main .progress{ background:var(--bg-card); border:1px solid var(--border); }

.dash-main .modal-content{ background:var(--bg-elevated); border:1px solid var(--border); color:var(--text); }
.dash-main .modal-header,
.dash-main .modal-footer{ border-color:var(--border); }
.dash-main .modal-title{ color:var(--text); }
.dash-main .btn-close{ filter:invert(1) grayscale(1) brightness(1.7); }
