:root {
  --bg: #05060d;
  --bg-2: #090b17;
  --surface: rgba(14,17,31,.86);
  --surface-strong: #111426;
  --surface-soft: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.17);
  --text: #f8f8ff;
  --muted: #a2a9bd;
  --muted-2: #747b91;
  --brand: #ff2d55;
  --brand-orange: #ff6a2a;
  --brand-2: #8b5cf6;
  --cyan: #25d9f8;
  --gold: #ffc44d;
  --green: #32e5a8;
  --danger: #ff6278;
  --shadow: 0 30px 90px rgba(0,0,0,.46);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1480px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 11% -8%, rgba(139,92,246,.20), transparent 31%),
    radial-gradient(circle at 93% 2%, rgba(37,217,248,.12), transparent 27%),
    radial-gradient(circle at 55% 58%, rgba(255,45,85,.075), transparent 31%),
    linear-gradient(180deg, #090a15 0%, var(--bg) 37%, #070810 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 9999; transform: translateY(-150%); background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; z-index: -2; pointer-events: none; filter: blur(55px); opacity: .34; border-radius: 999px; }
.ambient-one { width: 470px; height: 470px; left: -210px; top: 28vh; background: rgba(255,45,85,.24); }
.ambient-two { width: 520px; height: 520px; right: -250px; top: 43vh; background: rgba(37,217,248,.16); }
.ambient-three { width: 360px; height: 360px; left: 42%; top: 74vh; background: rgba(139,92,246,.12); }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.topbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(5,6,13,.78); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
.topbar-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; width: fit-content; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-orange) 53%, var(--brand-2)); box-shadow: 0 12px 30px rgba(255,45,85,.28), inset 0 1px 0 rgba(255,255,255,.38); }
.brand-mark svg { width: 29px; height: 29px; }
.brand-copy { display: flex; align-items: baseline; gap: 5px; letter-spacing: -.04em; }
.brand-copy strong { font-size: 1.14rem; font-weight: 950; }
.brand-copy em { font-size: .78rem; font-style: normal; font-weight: 950; color: var(--brand); letter-spacing: .08em; }
.desktop-nav { justify-self: center; display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 9px 17px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 800; transition: .2s ease; }
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255,255,255,.095); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.network-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; color: var(--muted); font-size: .73rem; font-weight: 850; }
.network-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,196,77,.12); }
.network-pill.is-online .network-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(50,229,168,.12); }
.network-pill.is-offline .network-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,98,120,.13); }
.icon-button, .profile-button { width: 40px; height: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.05); display: grid; place-items: center; border-radius: 13px; cursor: pointer; transition: .2s ease; }
.icon-button:hover, .profile-button:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: var(--line-strong); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-button { border-radius: 50%; background: linear-gradient(135deg, rgba(255,45,85,.32), rgba(139,92,246,.34)); font-weight: 950; font-size: .76rem; }

.hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; padding-top: 28px; align-items: start; }
.player-slot { min-width: 0; min-height: 1px; }
.hero-player-card, .live-sidebar { border: 1px solid var(--line); background: linear-gradient(155deg, rgba(18,21,38,.92), rgba(7,9,20,.87)); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.hero-player-card { position: relative; transition: width .28s ease, transform .28s ease, box-shadow .28s ease, border-radius .28s ease; }
.player-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #010204; isolation: isolate; }
.player-stage::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 -90px 120px rgba(0,0,0,.10); }
.player-stage video, .youtube-player { width: 100%; height: 100%; border: 0; background: #000; display: block; object-fit: contain; }
.youtube-player { position: absolute; inset: 0; z-index: 2; }
.player-poster { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 48%, rgba(139,92,246,.30), transparent 31%), radial-gradient(circle at 70% 27%, rgba(37,217,248,.14), transparent 24%), linear-gradient(145deg, #10132a, #05060c 60%, #1b091f); }
.poster-rings { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; opacity: .72; }
.poster-rings span { position: absolute; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; animation: ring 10s linear infinite; }
.poster-rings span:nth-child(1) { width: 280px; height: 280px; }
.poster-rings span:nth-child(2) { width: 450px; height: 450px; animation-duration: 15s; animation-direction: reverse; }
.poster-rings span:nth-child(3) { width: 670px; height: 670px; animation-duration: 22s; }
@keyframes ring { to { transform: rotate(360deg) scale(1.03); } }
.poster-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.poster-logo svg { width: 72px; height: 72px; color: var(--brand); filter: drop-shadow(0 0 24px rgba(255,45,85,.38)); }
.poster-logo div { display: flex; align-items: baseline; gap: 8px; }
.poster-logo strong { font-size: clamp(2rem,4vw,4rem); letter-spacing: -.075em; }
.poster-logo span { font-weight: 950; color: var(--brand); letter-spacing: .08em; }
.player-poster p { position: relative; z-index: 1; margin: -5px 0 3px; color: var(--muted); }

.primary-button, .secondary-button, .ghost-button { border: 0; border-radius: 14px; min-height: 44px; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 880; transition: .2s ease; }
.primary-button { position: relative; z-index: 1; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-orange) 58%, var(--brand-2)); box-shadow: 0 12px 30px rgba(255,45,85,.24); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255,45,85,.32); }
.primary-button svg { width: 19px; height: 19px; fill: currentColor; }
.secondary-button { background: #fff; color: #090a12; }
.secondary-button:hover { transform: translateY(-1px); }
.ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.055); color: #fff; }
.ghost-button:hover { background: rgba(255,255,255,.1); border-color: var(--line-strong); }
.ghost-button.compact { min-height: 38px; padding: 0 14px; font-size: .8rem; white-space: nowrap; }
.primary-button.full { width: 100%; }

.player-loading, .player-error { position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; background: rgba(4,5,11,.88); backdrop-filter: blur(12px); }
.player-loading strong, .player-error strong { font-size: 1.12rem; }
.player-loading small { color: var(--muted); margin-top: 6px; }
.loader-orbit { width: 54px; height: 54px; margin-bottom: 16px; border: 2px solid rgba(255,255,255,.1); border-top-color: var(--brand); border-radius: 50%; animation: spin .85s linear infinite; }
.loader-orbit span { display: block; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; transform: translate(39px,4px); box-shadow: 0 0 16px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 14px; color: var(--danger); background: rgba(255,98,120,.1); }
.error-icon svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player-error p { max-width: 530px; margin: 8px 0 18px; color: var(--muted); line-height: 1.5; }
.error-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.live-corner-badge { position: absolute; z-index: 7; left: 13px; top: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #fff; background: rgba(225,15,58,.91); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; font-size: .68rem; font-weight: 950; letter-spacing: .09em; box-shadow: 0 8px 24px rgba(225,15,58,.26); }
.live-corner-badge span { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.player-tools { position: absolute; z-index: 8; right: 13px; top: 13px; display: flex; align-items: center; gap: 7px; opacity: .92; transition: .2s ease; }
.tool-button, .quality-control select { height: 34px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(4,5,11,.72); color: #fff; backdrop-filter: blur(12px); }
.tool-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; cursor: pointer; font-size: .7rem; font-weight: 850; }
.tool-button.icon-only { width: 34px; padding: 0; justify-content: center; }
.tool-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.quality-control select { padding: 0 26px 0 9px; font-size: .7rem; font-weight: 800; cursor: pointer; }
.live-mini-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 8px var(--brand); }
.floating-controls { position: absolute; z-index: 20; right: 8px; top: 8px; display: flex; gap: 6px; }
.floating-controls button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; background: rgba(3,4,9,.78); color: #fff; cursor: pointer; backdrop-filter: blur(10px); }
.floating-controls svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.player-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); }
.channel-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.channel-logo-large, .sidebar-current-logo { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 950; background: linear-gradient(145deg, rgba(255,45,85,.28), rgba(139,92,246,.34)); border: 1px solid rgba(255,255,255,.14); }
.channel-logo-large { width: 58px; height: 58px; border-radius: 17px; }
.channel-logo-large img, .sidebar-current-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: rgba(255,255,255,.95); }
.current-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(255,45,85,.11); }
.source-badge { padding: 3px 6px; border: 1px solid rgba(37,217,248,.22); border-radius: 6px; color: var(--cyan); background: rgba(37,217,248,.07); font-size: .57rem; }
.player-caption h1 { margin: 5px 0 3px; font-size: 1.18rem; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-caption p { margin: 0; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 740px; }
.watch-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.round-action { min-width: 47px; height: 45px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); color: var(--muted); cursor: pointer; transition: .2s ease; }
.round-action:hover, .round-action.is-active { color: #fff; border-color: var(--line-strong); background: rgba(255,255,255,.095); transform: translateY(-1px); }
.round-action.is-active { color: #ff6682; }
.round-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.round-action.is-active svg { fill: currentColor; }
.round-action span { font-size: .7rem; font-weight: 820; }
.official-action { color: var(--cyan); }

.live-sidebar { position: sticky; top: 99px; max-height: calc(100vh - 118px); padding: 19px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-kicker { color: var(--cyan); font-size: .66rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-head h2, .section-heading h2, .cta h2, .about-dialog h2 { margin: 7px 0 0; letter-spacing: -.045em; line-height: 1.05; }
.sidebar-head h2 { font-size: 1.35rem; }
.edge-chip { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(50,229,168,.2); border-radius: 8px; color: var(--green); background: rgba(50,229,168,.07); font-size: .58rem; font-weight: 950; letter-spacing: .1em; }
.now-playing-card { padding: 14px; border: 1px solid rgba(255,255,255,.10); border-radius: 19px; background: radial-gradient(circle at 88% 10%, rgba(255,45,85,.17), transparent 38%), linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); }
.now-playing-top { display: flex; gap: 11px; align-items: center; }
.sidebar-current-logo { width: 54px; height: 54px; border-radius: 16px; }
.sidebar-current-copy { min-width: 0; }
.now-status { display: flex; align-items: center; gap: 7px; color: #ff6c83; font-size: .58rem; font-weight: 950; letter-spacing: .09em; }
.equalizer { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.equalizer i { display: block; width: 2px; border-radius: 2px; background: var(--brand); animation: equalize .8s ease-in-out infinite alternate; }
.equalizer i:nth-child(1) { height: 5px; }
.equalizer i:nth-child(2) { height: 10px; animation-delay: .15s; }
.equalizer i:nth-child(3) { height: 7px; animation-delay: .3s; }
@keyframes equalize { to { height: 3px; opacity: .55; } }
.sidebar-current-copy h3 { margin: 5px 0 3px; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-current-copy p { margin: 0; color: var(--muted); font-size: .69rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 12px; }
.sidebar-action { min-height: 36px; border: 1px solid var(--line); border-radius: 11px; padding: 0 11px; background: rgba(255,255,255,.045); color: #fff; cursor: pointer; font-size: .67rem; font-weight: 850; }
.sidebar-action.primary { border: 0; background: linear-gradient(135deg, rgba(255,45,85,.95), rgba(139,92,246,.9)); }
.sidebar-search, .search-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); }
.sidebar-search { min-height: 41px; padding: 0 11px; gap: 8px; }
.sidebar-search svg, .search-box svg { flex: 0 0 auto; width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.sidebar-search input, .search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; }
.sidebar-search input { font-size: .74rem; }
.sidebar-search input::placeholder, .search-box input::placeholder { color: var(--muted-2); }
.language-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.language-tabs::-webkit-scrollbar { display: none; }
.language-tab { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-size: .64rem; font-weight: 850; }
.language-tab.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 7px 18px rgba(255,45,85,.16); }
.sidebar-list-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.sidebar-list-head strong { color: #fff; font-size: .75rem; }
.sidebar-channel-list { min-height: 0; flex: 1; display: grid; align-content: start; gap: 7px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.sidebar-channel-row { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.025); color: #fff; text-align: left; cursor: pointer; transition: .18s ease; }
.sidebar-channel-row:hover { background: rgba(255,255,255,.065); transform: translateX(2px); }
.sidebar-channel-row.is-active { border-color: rgba(255,45,85,.34); background: linear-gradient(100deg, rgba(255,45,85,.16), rgba(139,92,246,.08)); box-shadow: inset 3px 0 0 var(--brand); }
.sidebar-row-logo { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #fff; font-size: .68rem; font-weight: 950; background: linear-gradient(145deg, rgba(255,45,85,.24), rgba(37,217,248,.18)); border: 1px solid rgba(255,255,255,.1); }
.sidebar-row-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: rgba(255,255,255,.94); }
.sidebar-row-copy { min-width: 0; }
.sidebar-row-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; }
.sidebar-row-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .59rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-live { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .55rem; font-weight: 900; letter-spacing: .06em; }
.row-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.sidebar-channel-row.is-active .row-live { color: #ff7d91; }
.sidebar-channel-row.is-active .row-live i { background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.sidebar-footer-note { display: flex; gap: 8px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.shield-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(37,217,248,.08); }
.sidebar-footer-note p { margin: 0; color: var(--muted-2); font-size: .58rem; line-height: 1.45; }

.content { padding-top: 66px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.55rem,3vw,2.4rem); }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.compact-heading { margin-bottom: 14px; }
.search-box { width: min(390px,100%); min-height: 47px; padding: 0 12px; gap: 10px; }
.search-box input { font-size: .82rem; }
.search-box kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .62rem; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 14px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 850; }
.filter-chip.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 25px rgba(255,45,85,.16); }
.state-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid rgba(255,196,77,.18); border-radius: 15px; background: rgba(255,196,77,.055); }
.state-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--gold); background: rgba(255,196,77,.09); }
.state-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.state-banner > div:nth-child(2) { min-width: 0; flex: 1; }
.state-banner strong { font-size: .78rem; }
.state-banner p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.channel-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.channel-card { min-width: 0; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, rgba(18,21,38,.9), rgba(8,10,20,.88)); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; scroll-snap-align: start; }
.channel-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 40px var(--card-glow,rgba(139,92,246,.14)); }
.channel-card.is-active { border-color: rgba(255,45,85,.55); box-shadow: 0 0 0 2px rgba(255,45,85,.12), 0 16px 42px rgba(0,0,0,.34); }
.channel-visual { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 60% 28%, var(--card-glow,rgba(139,92,246,.24)), transparent 42%), linear-gradient(145deg, #13162b, #070811 66%, #190b1e); }
.channel-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.22)); pointer-events: none; }
.channel-logo { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 21px; color: #fff; font-size: 1rem; font-weight: 950; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 35px rgba(0,0,0,.25); }
.channel-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; background: rgba(255,255,255,.96); }
.card-live, .source-pill { position: absolute; z-index: 2; top: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; font-size: .54rem; font-weight: 950; letter-spacing: .07em; }
.card-live { left: 9px; color: #fff; background: rgba(226,17,58,.92); }
.card-live span { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.source-pill { right: 9px; color: var(--cyan); border: 1px solid rgba(37,217,248,.2); background: rgba(4,8,16,.72); }
.card-favorite { position: absolute; z-index: 3; right: 9px; bottom: 9px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(3,4,9,.67); color: #fff; cursor: pointer; backdrop-filter: blur(10px); }
.card-favorite svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-favorite.is-active { color: #ff6682; background: rgba(255,45,85,.13); }
.card-favorite.is-active svg { fill: currentColor; }
.play-float { position: absolute; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px rgba(255,45,85,.28); opacity: 0; transform: scale(.78); transition: .2s ease; }
.play-float svg { width: 18px; fill: currentColor; }
.channel-card:hover .play-float, .channel-card.is-active .play-float { opacity: 1; transform: scale(1); }
.now-playing-ribbon { position: absolute; z-index: 4; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, rgba(255,45,85,.96), rgba(139,92,246,.9)); font-size: .52rem; font-weight: 950; letter-spacing: .06em; }
.channel-body { padding: 13px; }
.channel-body .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: .6rem; font-weight: 850; }
.channel-body .meta span:first-child { color: var(--cyan); }
.channel-body h3 { margin: 7px 0 4px; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-body p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2em; }
.channel-skeleton { min-height: 245px; border-radius: 20px; background: linear-gradient(90deg, rgba(255,255,255,.035) 25%, rgba(255,255,255,.075) 50%, rgba(255,255,255,.035) 75%); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.empty-state { padding: 58px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); }
.empty-orb { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 20px; background: rgba(255,255,255,.055); color: #fff; font-size: 2rem; }
.empty-state h3 { color: #fff; margin: 0; }
.empty-state p { margin: 7px 0 18px; }
.favorites-section { padding-bottom: 30px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px,290px); gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.personal-empty { min-height: 110px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; text-align: center; padding: 20px; }
.personal-empty p { margin: 0; }
.cta { position: relative; overflow: hidden; margin-top: 34px; margin-bottom: 72px; min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, rgba(255,45,85,.15), rgba(139,92,246,.12) 45%, rgba(37,217,248,.09)); }
.cta-glow { position: absolute; right: 8%; top: -60%; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,45,85,.19); filter: blur(60px); }
.cta > div:not(.cta-glow) { position: relative; z-index: 1; max-width: 820px; }
.cta h2 { font-size: clamp(1.8rem,4vw,3.1rem); max-width: 820px; }
.cta p { color: var(--muted); line-height: 1.65; max-width: 760px; }
.cta .primary-button { flex: 0 0 auto; }
.footer { border-top: 1px solid var(--line); background: rgba(3,4,10,.66); padding: 32px 0 95px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 780; }
.footer-links button:hover { color: #fff; }
.copyright { color: var(--muted-2); font-size: .76rem; }
.mobile-nav { display: none; }
.about-dialog { width: min(520px,calc(100% - 28px)); color: var(--text); border: 1px solid var(--line-strong); border-radius: 26px; padding: 28px; background: linear-gradient(155deg,#15182b,#090a13); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.about-dialog::backdrop { background: rgba(1,2,6,.73); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 12px; cursor: pointer; }
.dialog-close svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dialog-brand { margin-bottom: 20px; }
.about-dialog h2 { font-size: 1.65rem; margin: 9px 0 12px; }
.about-dialog > p { color: var(--muted); line-height: 1.6; }
.dialog-points { display: grid; gap: 9px; margin: 20px 0; }
.dialog-points div { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.dialog-points strong { font-size: .8rem; }
.dialog-points span { color: var(--muted); text-align: right; font-size: .72rem; }
.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(360px,calc(100% - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(18,21,38,.94); box-shadow: 0 18px 50px rgba(0,0,0,.38); backdrop-filter: blur(16px); animation: toast-in .25s ease both; }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(50,229,168,.1); }
.toast.is-error .toast-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,98,120,.1); }
.toast p { margin: 0; font-size: .78rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.hero-player-card.is-floating { position: fixed; z-index: 180; right: 22px; bottom: 22px; width: min(430px,calc(100vw - 44px)); border-radius: 19px; box-shadow: 0 26px 80px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.09); animation: float-in .25s ease both; }
.hero-player-card.is-floating .player-caption { display: none; }
.hero-player-card.is-floating .player-stage { aspect-ratio: 16/9; }
.hero-player-card.is-floating .player-tools, .hero-player-card.is-floating .live-corner-badge { display: none !important; }
.hero-player-card.is-floating .floating-controls { display: flex !important; }
@keyframes float-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
body.theater-mode .hero { width: 100%; max-width: none; grid-template-columns: 1fr; padding: 0; gap: 0; }
body.theater-mode .player-slot { width: 100%; }
body.theater-mode .hero-player-card { border-radius: 0; border-inline: 0; }
body.theater-mode .player-stage { max-height: calc(100vh - 78px); }
body.theater-mode .live-sidebar { display: none; }
body.theater-mode .player-caption { width: min(1480px,calc(100% - 40px)); margin-inline: auto; }

@media (max-width: 1280px) {
  .hero { grid-template-columns: minmax(0,1fr) 330px; }
  .channel-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .live-sidebar { position: static; max-height: none; }
  .sidebar-channel-list { max-height: 390px; }
  .channel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --shell: min(100% - 24px,1480px); --radius-xl: 22px; }
  .topbar-inner { min-height: 66px; grid-template-columns: 1fr auto; }
  .desktop-nav, .network-pill { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .top-actions { grid-column: 2; }
  .hero { padding-top: 14px; gap: 14px; }
  .hero-player-card, .live-sidebar { border-radius: 20px; }
  .poster-logo svg { width: 52px; height: 52px; }
  .poster-logo strong { font-size: 2rem; }
  .player-poster { gap: 12px; }
  .player-poster p { font-size: .78rem; text-align: center; padding-inline: 20px; }
  .player-poster .primary-button { min-height: 40px; font-size: .8rem; }
  .player-tools { opacity: 1; top: 8px; right: 8px; }
  .tool-button.icon-only, .quality-control select { height: 30px; }
  .tool-button.icon-only { width: 30px; }
  #goLiveButton { display: none !important; }
  .player-caption { align-items: flex-start; padding: 14px; }
  .channel-logo-large { width: 47px; height: 47px; border-radius: 14px; }
  .player-caption p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .watch-actions { gap: 5px; }
  .round-action { min-width: 43px; width: 43px; height: 42px; padding: 0; border-radius: 13px; }
  .round-action span { display: none; }
  .live-sidebar { padding: 15px; }
  .sidebar-channel-list { max-height: 330px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .search-box { width: 100%; }
  .content { padding-top: 46px; }
  .channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .channel-card { border-radius: 17px; }
  .channel-logo { width: 58px; height: 58px; border-radius: 17px; }
  .channel-body { padding: 11px; }
  .channel-body h3 { font-size: .86rem; }
  .channel-body p { font-size: .66rem; }
  .channel-skeleton { min-height: 210px; }
  .state-banner { align-items: flex-start; flex-wrap: wrap; }
  .state-banner .ghost-button { margin-left: 50px; }
  .cta { min-height: 0; padding: 28px 22px; flex-direction: column; align-items: flex-start; margin-bottom: 38px; }
  .cta .primary-button { width: 100%; }
  .footer { padding-bottom: 104px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .mobile-nav { position: fixed; z-index: 160; left: 12px; right: 12px; bottom: max(10px,env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3,1fr); min-height: 62px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(12,14,25,.92); box-shadow: 0 14px 48px rgba(0,0,0,.46); backdrop-filter: blur(20px); }
  .mobile-nav button { border: 0; border-radius: 15px; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .6rem; font-weight: 850; }
  .mobile-nav button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .mobile-nav button.is-active { color: #fff; background: linear-gradient(135deg, rgba(255,45,85,.22), rgba(139,92,246,.16)); }
  .toast-region { bottom: 85px; }
  .hero-player-card.is-floating { width: 230px; right: 12px; bottom: 86px; border-radius: 15px; }
  .hero-player-card.is-floating .player-loading strong, .hero-player-card.is-floating .player-error strong, .hero-player-card.is-floating .player-loading small, .hero-player-card.is-floating .player-error p, .hero-player-card.is-floating .error-actions { display: none; }
  .hero-player-card.is-floating .loader-orbit { width: 35px; height: 35px; margin: 0; }
  body.theater-mode .player-caption { width: calc(100% - 24px); }
}
@media (max-width: 440px) {
  .brand-copy strong { font-size: 1rem; }
  .player-caption { gap: 9px; }
  .channel-identity { gap: 9px; }
  .channel-logo-large { display: none; }
  .player-caption h1 { font-size: .98rem; }
  .player-caption p { font-size: .7rem; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel-visual { aspect-ratio: 16/11; }
  .card-live, .source-pill { top: 7px; }
  .card-live { left: 7px; }
  .source-pill { right: 7px; }
  .card-favorite { right: 7px; bottom: 7px; }
  .search-box kbd { display: none; }
  .about-dialog { padding: 23px; }
  .dialog-points div { flex-direction: column; gap: 4px; }
  .dialog-points span { text-align: left; }
  .sidebar-actions { grid-template-columns: 1fr; }
  .hero-player-card.is-floating { width: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
