:root {
  color-scheme: dark;
  --bg: #10131c;
  --panel: #171b27;
  --panel-hover: #1c2130;
  --text: #f4f5fa;
  --muted: #9299ad;
  --line: rgba(255, 255, 255, .09);
  --accent: #a9f27b;
  --purple: #ae9aff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.topbar { height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 800 19px 'Manrope', sans-serif; letter-spacing: -.8px; text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 22px; }
.brand-dot { color: var(--accent); }
.topbar-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.live-dot, .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #a9f27b77; }
.hero { min-height: 380px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { z-index: 1; padding: 48px 0 55px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 17px; font: 800 clamp(48px, 7vw, 76px)/1.04 'Manrope', sans-serif; letter-spacing: -5px; }
h1 span { color: var(--accent); }
.intro { max-width: 420px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-art { position: absolute; right: 5%; top: 10px; width: 390px; height: 340px; display: grid; place-items: center; }
.orbit { position: absolute; width: 310px; height: 130px; border: 1px solid rgba(169, 242, 123, .2); border-radius: 50%; transform: rotate(-30deg); }
.orbit-two { width: 360px; height: 166px; transform: rotate(35deg); border-color: rgba(174, 154, 255, .2); }
.globe { display: grid; place-items: center; width: 154px; height: 154px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #404777, #242a48 47%, #191d30 75%); box-shadow: 0 0 70px #7772e329, inset -14px -12px 24px #080b16aa; font-size: 84px; filter: saturate(.75); }
.satellite { position: absolute; color: var(--accent); font-size: 25px; }
.satellite-one { top: 65px; right: 95px; }
.satellite-two { bottom: 66px; left: 42px; color: var(--purple); font-size: 32px; }
.art-label { position: absolute; right: 1px; bottom: 38px; color: var(--accent); font: 700 20px 'Manrope', sans-serif; }
.art-label small { display: block; margin-top: 2px; color: var(--muted); font: 400 10px 'DM Sans', sans-serif; }
.directory { padding: 34px 0 44px; }
.directory-tabs { display: flex; gap: 8px; padding-top: 24px; border-bottom: 1px solid var(--line); }
.directory-tab { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.directory-tab:hover { color: var(--text); }
.directory-tab.active { border-bottom-color: var(--accent); color: var(--accent); }
.directory-tab:focus-visible, .source-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sources-panel { padding: 46px 0 44px; }
.player-panel { padding: 46px 0 44px; }
.player-intro { max-width: 650px; margin: 12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.player-form { margin-bottom: 16px; }
.player-url-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.player-url-row { display: flex; gap: 10px; }
.player-url-row input { min-width: 0; flex: 1; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #151823; color: var(--text); font-size: 13px; }
.player-url-row input:focus { border-color: var(--accent); }
.player-url-row button { padding: 0 17px; border: 1px solid var(--accent); border-radius: 8px; background: #a9f27b12; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.player-url-row button:hover { background: #a9f27b22; }
.player-url-row button.open-video-link { border-color: var(--line); background: transparent; color: #d0d4e0; }
.player-url-row button.open-video-link:hover { border-color: #ffffff35; background: #ffffff0a; }
.video-player { display: block; width: 100%; max-height: 560px; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; background: #080a10; }
.player-status { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.player-url-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sources-intro { max-width: 650px; margin: 12px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.source-card h3 { margin: 0 0 8px; font: 700 15px 'Manrope', sans-serif; }
.source-card p { min-height: 38px; margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.source-note { margin: 20px 0 0; color: #777f90; font-size: 10px; line-height: 1.6; }
[hidden] { display: none !important; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 9px; }
h2 { margin-bottom: 0; font: 700 27px 'Manrope', sans-serif; letter-spacing: -.8px; }
.results-count { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 12px; }
.search-box, .select-wrap { height: 48px; border: 1px solid var(--line); border-radius: 9px; background: #151823; display: flex; align-items: center; }
.search-box { flex: 1; padding: 0 14px; gap: 11px; }
.search-icon { color: var(--muted); font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.search-box input { flex: 1; width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #747c90; }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: #858da0; font: 10px 'DM Sans', sans-serif; }
.select-wrap { position: relative; width: 190px; padding: 0 14px; }
.select-wrap select { width: 100%; border: 0; outline: 0; appearance: none; background: transparent; color: #d8dbe5; font-size: 12px; cursor: pointer; }
.select-wrap select option { background: var(--panel); }
.select-wrap > span { color: var(--muted); pointer-events: none; }
.filter-row { display: flex; gap: 8px; margin: 20px 0 22px; }
.filter-chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #a6adbf; font-size: 11px; cursor: pointer; transition: .2s ease; }
.filter-chip:hover { border-color: #a9f27b77; color: var(--text); }
.filter-chip.active { border-color: var(--accent); background: #a9f27b12; color: var(--accent); }
#allCount { margin-left: 4px; opacity: .75; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.channel-card { min-height: 127px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: transform .2s, background .2s, border-color .2s; }
.channel-card:hover { transform: translateY(-2px); border-color: #ffffff25; background: var(--panel-hover); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.channel-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.channel-logo { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 9px; background: var(--logo-bg, #293247); color: var(--logo-color, #d7e1ff); font: 800 12px 'Manrope', sans-serif; letter-spacing: -.5px; }
.channel-name { overflow: hidden; margin: 0 0 4px; color: var(--text); font: 700 13px 'Manrope', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.channel-country { margin: 0; color: var(--muted); font-size: 10px; }
.channel-type { flex-shrink: 0; padding: 5px 7px; border-radius: 5px; background: #a9f27b12; color: #b8e69c; font-size: 9px; }
.channel-type.pay { background: #ae9aff15; color: #c0b1ff; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 17px; color: #939bad; font-size: 10px; }
.card-region { color: #777f93; }
.empty-state { padding: 54px 12px; text-align: center; }
.empty-state > span { color: var(--accent); font-size: 30px; }
.empty-state h3 { margin: 10px 0 6px; font: 700 17px 'Manrope', sans-serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.disclaimer { margin: 23px 0 0; color: #777f90; font-size: 10px; }
.footer { min-height: 75px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 15px; }
.footer .brand-mark { font-size: 18px; }
.footer > span { color: var(--muted); font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 36px, 560px); }
  .hero { min-height: 340px; }
  .hero-art { right: -120px; opacity: .32; }
  .hero-copy { max-width: 420px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 32px); }
  .topbar { height: 68px; }
  .topbar-note { font-size: 0; gap: 0; }
  .topbar-note .live-dot { width: 8px; height: 8px; }
  .hero { min-height: 330px; }
  .hero-copy { padding: 44px 0; }
  h1 { font-size: 56px; letter-spacing: -3.5px; }
  .intro { max-width: 330px; font-size: 13px; }
  .hero-art { right: -190px; opacity: .24; }
  .directory { padding-top: 39px; }
  .section-heading { align-items: start; gap: 12px; }
  h2 { font-size: 22px; }
  .results-count { margin-top: 25px; white-space: nowrap; font-size: 10px; }
  .toolbar { flex-direction: column; }
  .player-url-row { flex-direction: column; }
  .player-url-row button { min-height: 44px; }
  .select-wrap { width: 100%; }
  .search-box { flex: none; width: 100%; }
  .search-box kbd { display: none; }
  .filter-row { gap: 6px; overflow-x: auto; }
  .filter-chip { white-space: nowrap; padding: 8px 10px; }
  .channel-grid { grid-template-columns: 1fr; gap: 9px; }
  .channel-card { min-height: 115px; }
  .footer > span { font-size: 10px; }
}
