:root { --accent:var(--h2-blue); background:var(--surface); }
body { font-family:var(--sans); -webkit-font-smoothing:antialiased; }
.service-header { position:sticky; top:0; z-index:30; border-bottom:1px solid var(--line); background:rgb(255 255 255 / .96); backdrop-filter:blur(18px); }
.header-inner,.service-main { width:min(100%,1200px); padding-inline:32px; }
.header-inner { min-height:64px; gap:24px; }
.brand { font-size:17px; font-weight:800; letter-spacing:-.045em; }
.brand img { width:27px; height:27px; }
.header-home { display:none; }
.live-navigation { display:flex; align-self:stretch; gap:20px; }
.live-navigation a { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 6px; color:var(--muted); font-size:13px; font-weight:650; text-decoration:none; border-bottom:2px solid transparent; }
.live-navigation svg { width:20px; height:20px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.live-navigation a[aria-current] { color:var(--brand-accent); border-bottom-color:currentColor; }
.live-navigation .play-mark { fill:currentColor; stroke:none; }
.service-main { padding-top:28px; padding-bottom:64px; }
h1,h2,h3 { letter-spacing:-.035em; }
.primary,.secondary { border-radius:11px; font-size:13px; font-weight:650; padding:10px 16px; }
.primary { background:var(--brand-accent); }
.secondary { background:var(--surface); }
.panel { border-color:var(--line); border-radius:15px; }
.note { font-size:13px; }
.kicker { font-size:10px; letter-spacing:.09em; }
.directory-mast { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.directory-mast h1 { margin:0 0 6px; font-size:clamp(2.25rem,4.5vw,3.5rem); font-weight:900; line-height:1; letter-spacing:-.05em; }
.intro { margin:0; color:var(--muted); font-size:13px; }
.browse-link { display:inline-flex; align-items:center; gap:12px; min-height:44px; color:var(--muted); font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }
.browse-link:hover { color:var(--ink); }
.live-summary { display:flex; align-items:center; gap:14px; padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:var(--pearl); }
.summary-icon { display:grid; place-items:center; flex:none; width:43px; height:43px; border-radius:13px; background:var(--surface); border:1px solid var(--line); color:var(--accent); }
.summary-icon svg { width:23px; height:23px; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
.live-summary.is-live .summary-icon { background:var(--accent); border-color:var(--accent); color:#fff; }
.live-summary strong { font-size:14px; font-weight:700; letter-spacing:-.02em; }
.live-summary p { margin:3px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.guide-heading,.guide-tools,.room-tools,.card-action { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.guide-heading { margin:28px 0 14px; }
.guide-heading h2 { margin:0; font-size:22px; font-weight:900; letter-spacing:-.04em; }
.guide-heading .kicker { margin-bottom:4px; }
.guide-tools { gap:12px; padding-bottom:6px; }
.filter { display:inline-flex; padding:3px; border-radius:12px; background:var(--pearl); }
.filter button,.reload { min-height:44px; padding:8px 16px; color:var(--muted); font-size:12px; font-weight:650; background:transparent; border:0; border-radius:9px; }
.filter button[aria-pressed=true] { background:var(--brand-tint); color:var(--brand-deep); box-shadow:inset 0 0 0 1px var(--brand-line); }
.filter button span { margin-left:4px; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.reload { padding-inline:8px; color:var(--muted); }
.reload:hover { color:var(--ink); background:var(--pearl); }
#directory-note { margin:12px 0 0; padding:10px 12px; border-radius:8px; background:#f8f5f2; color:#816b59; font-size:12px; }
.channel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 16px; margin-top:15px; }
.channel-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:15px; background:#fff; color:var(--ink); text-decoration:none; transition:border-color .15s; }
.channel-card:hover { border-color:#c9c9d0; }
.channel-media { display:grid; position:relative; isolation:isolate; place-items:center; aspect-ratio:4/3; overflow:hidden; background:linear-gradient(135deg,#fafbfc,var(--h2-silver)); color:var(--accent); }
.channel-media .air-state { position:absolute; top:12px; left:12px; z-index:2; max-width:calc(100% - 24px); padding:5px 8px; border-radius:6px; background:rgb(20 20 24 / .84); color:#f0eff3; font-size:10px; }
.channel-media .air-state::before { border-color:#a4a3ac; }
.channel-media .air-state.live { background:var(--accent); color:white; }
.channel-media .air-state.live::before { background:white; border-color:white; }
.channel-media .air-state.external { background:#454551; }
.channel-placeholder { display:flex; flex-direction:column; align-items:center; gap:11px; padding:42px 16px 28px; }
.channel-placeholder svg { width:42px; height:42px; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.channel-placeholder small { color:var(--accent); font-size:10px; font-weight:750; letter-spacing:.12em; }
.featured-thumb { position:absolute; inset:0; z-index:1; width:100%; height:100%; object-fit:cover; }
.channel-content { display:flex; flex-direction:column; gap:7px; padding:15px; min-height:152px; }
.channel-kind { color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.05em; }
.vendor-name { display:block; color:var(--ink); font-size:16px; font-weight:720; line-height:1.4; letter-spacing:-.025em; overflow-wrap:anywhere; }
.featured-name { display:block; font-size:12px; color:#555560; line-height:1.5; overflow-wrap:anywhere; }
.featured-name small { display:block; margin-top:4px; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.channel-description { margin:0; font-size:12px; color:var(--muted); line-height:1.5; }
.card-action { width:100%; margin-top:auto; padding-top:11px; border-top:1px solid var(--line); font-size:12px; font-weight:650; color:var(--ink); }
.card-action span { font-size:16px; }
.channel-card:only-child { grid-column:1/-1; display:grid; grid-template-columns:minmax(220px,38%) minmax(0,1fr); }
.channel-card:only-child .channel-media { aspect-ratio:16/10; }
.channel-card:only-child .channel-content { padding:22px 24px; justify-content:center; gap:9px; }
.channel-card:only-child .card-action { margin-top:16px; }
.air-state { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:650; color:#6b6b75; }
.air-state::before { content:''; flex:none; width:6px; height:6px; border:1px solid #93939c; border-radius:50%; }
.air-state.live { color:var(--accent); }
.air-state.live::before { border-color:var(--accent); background:var(--accent); }
.air-state.unknown::before { border-style:dashed; }
.air-state.external::before { border-radius:1px; }
.quiet-state { grid-column:1/-1; padding:38px 20px; border:1px solid var(--line); border-radius:15px; background:#fafafb; text-align:center; }
.quiet-state strong { font-size:15px; }
.quiet-state p { margin:7px 0 0; color:var(--muted); font-size:13px; }
.quiet-state a,.quiet-state button { margin:16px 3px 0; }
.room-tools { gap:10px 20px; flex-wrap:wrap; padding-bottom:12px; border-bottom:1px solid var(--line); }
.switcher { display:flex; align-items:center; gap:9px; min-width:0; margin:0; }
.switcher select { width:min(42vw,240px); min-width:0; max-width:100%; font-size:13px; text-overflow:ellipsis; }
.room-heading { margin:22px 0 16px; }
.room-heading h1 { margin:0; color:var(--accent); font-size:27px; font-weight:800; line-height:1.3; word-break:keep-all; overflow-wrap:anywhere; }
.layout { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(265px,1fr); gap:22px; align-items:start; }
.stage { position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden; aspect-ratio:16/10; border-radius:15px; color:#fff; background:var(--h2-ink); }
.stage .standby { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:38px 20px 28px; text-align:center; background:var(--h2-ink); }
.standby-icon { display:grid; place-items:center; width:58px; height:58px; margin-bottom:4px; border:1px solid #ffffff1f; border-radius:18px; color:#d8d5df; }
.standby-icon svg { width:32px; height:32px; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.stage .standby strong { font-size:18px; font-weight:650; letter-spacing:-.03em; }
.stage .standby p { max-width:31em; margin:0; color:#aaa7b3; font-size:12px; line-height:1.6; }
.standby-browse { display:inline-flex; align-items:center; justify-content:center; gap:16px; min-height:44px; margin-top:8px; padding:10px 16px; border:1px solid #ffffff30; border-radius:10px; color:#e4e1e9; font-size:12px; font-weight:600; text-decoration:none; }
#videos { position:absolute; inset:0; pointer-events:none; }
#videos video { width:100%; height:100%; object-fit:contain; background:#111114; pointer-events:auto; }
#videos video:not([data-ready]) { opacity:0; }
#stage-label { position:absolute; top:12px; left:12px; padding:5px 9px; background:#17171bc7; color:#cfccd5; border:1px solid #ffffff24; border-radius:6px; font-size:10px; }
.bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.controls { padding:14px 0; }
#status { margin:10px 0 0; font-size:12px; }
#source-settings { margin-bottom:14px; padding:5px 16px; }
#source-settings summary { font-size:13px; }
#source-settings .note { margin:7px 0 12px; font-size:12px; }
#source-settings input { width:100%; min-width:0; font-size:16px; }
#source-settings .bar { margin-top:10px; }
#source-note { overflow-wrap:anywhere; }
#source-note:empty { display:none; }
#relay-tip { margin:8px 0 0; font-size:12px; }
.platform-stage { display:grid; grid-template-columns:minmax(0,1fr); width:100%; overflow:hidden; text-align:center; border-radius:15px; background:var(--h2-ink); color:#fff; }
.platform-stage iframe { display:block; width:100%; height:auto; aspect-ratio:16/9; min-height:205px; border:0; }
#external-cover { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:clamp(260px,34vw,385px); padding:28px 22px; }
#external-cover .kicker { color:#aaa7b3; }
#external-cover h2 { margin:4px 0 12px; font:700 25px/1.3 var(--sans); letter-spacing:-.03em; }
#external-copy { max-width:33em; margin:0 auto; font-size:13px; color:#c1bec9; word-break:keep-all; }
#original-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0 12px; padding:3px 0; border-bottom:1px solid var(--line); font-size:12px; color:var(--muted); }
#original-link { display:inline-flex; align-items:center; min-height:44px; font-weight:620; color:var(--ink); }
#external-cover #original-link { margin-top:18px; padding:8px 17px; border:1px solid #ffffff30; border-radius:10px; color:#fff; font-size:13px; text-decoration:none; }
#account-links { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 0; }
.chat,.item-card,#pin-controls { padding:20px; }
.chat h2,.item-card h2 { font-size:17px; font-weight:900; letter-spacing:-.035em; }
#pin-controls { margin-top:12px; }
#pin { overflow-wrap:anywhere; font-size:13px; color:#666670; }
#pin a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); }
#pin-controls select { max-width:100%; }
.chat .note { margin-bottom:16px; font-size:12px; }
#messages { height:clamp(130px,19vw,235px); overflow:auto; padding:0; margin:0 0 16px; border-block:1px solid var(--line); list-style:none; }
#messages:empty { height:0; border-bottom:0; }
#messages li { margin:10px 0; overflow-wrap:anywhere; font-size:13px; }
#messages strong { display:block; color:var(--muted); font-size:11px; }
label { display:block; margin-bottom:7px; color:var(--muted); font-size:12px; font-weight:600; }
#message { min-width:0; flex:1 1 125px; width:100%; font-size:16px; }
.chat .back-link { margin-top:12px; font-size:11px; color:var(--muted); }
.help { margin-top:24px; padding-top:5px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.help summary { color:#5e5e69; font-size:12px; }
.help p { margin:8px 0; }
#platform-guide ol { padding-inline-start:1.35em; max-width:65ch; }
#platform-guide li { margin-block:6px; }
@media(max-width:900px) {
  .channel-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-navigation { gap:12px; }
}
@media(max-width:660px) {
  .service-header { backdrop-filter:none; }
  .header-inner,.service-main { padding-inline:18px; }
  .header-inner { min-height:calc(56px + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); }
  .brand { font-size:16px; }
  .brand img { width:25px; height:25px; }
  .header-home { display:inline-flex; font-size:11px; color:var(--muted); }
  .live-navigation { position:fixed; z-index:50; inset:auto 0 0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; height:calc(58px + env(safe-area-inset-bottom)); padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left)); border-top:1px solid #eaeaec; background:rgb(255 255 255 / .97); backdrop-filter:blur(20px); }
  .live-navigation a { flex-direction:column; gap:3px; min-width:0; padding:7px 0 5px; border:0; font-size:10px; font-weight:500; line-height:1.2; }
  .live-navigation svg { width:23px; height:23px; }
  .live-navigation a[aria-current] { color:var(--brand-accent); font-weight:750; }
  .live-navigation a[aria-current] svg { stroke-width:1.9; }
  .service-main { padding-top:22px; padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
  .directory-mast { gap:10px; margin-bottom:18px; }
  .directory-mast h1 { font-size:2.25rem; }
  .intro { font-size:12px; }
  .browse-link { font-size:11px; gap:7px; }
  .live-summary { padding:15px; gap:12px; }
  .live-summary strong { font-size:13px; }
  .live-summary p { font-size:11px; }
  .guide-heading { margin:24px 0 12px; }
  .guide-heading h2 { font-size:18px; }
  .guide-heading .secondary { font-size:11px; padding-inline:12px; }
  .filter button { padding-inline:12px; font-size:11px; }
  .filter button span { margin-left:3px; font-size:10px; }
  .reload { font-size:11px; padding-inline:0; }
  .channel-grid { gap:12px; margin-top:13px; }
  .channel-content { gap:5px; padding:12px; min-height:150px; }
  .vendor-name { font-size:14px; }
  .channel-kind { font-size:9px; }
  .channel-description,.featured-name { font-size:11px; }
  .featured-name small { font-size:10px; }
  .channel-media .air-state { top:9px; left:9px; max-width:calc(100% - 18px); font-size:9px; }
  .channel-placeholder svg { width:34px; height:34px; }
  .channel-placeholder small { font-size:8px; }
  .card-action { padding-top:9px; font-size:11px; }
  .channel-card:only-child { grid-template-columns:minmax(120px,40%) minmax(0,1fr); }
  .channel-card:only-child .channel-media { aspect-ratio:auto; min-height:172px; }
  .channel-card:only-child .channel-content { padding:17px 15px; gap:5px; }
  .channel-card:only-child .card-action { margin-top:12px; }
  .layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  .room-heading { margin-block:18px 14px; }
  .room-heading h1 { font-size:21px; }
  .switcher { font-size:11px; }
  .switcher select { font-size:16px; }
  .stage { aspect-ratio:4/3; }
  .stage .standby strong { font-size:16px; }
  .stage .standby p { font-size:11px; max-width:25em; }
  .standby-icon { width:46px; height:46px; border-radius:14px; }
  .standby-icon svg { width:28px; height:28px; }
  .standby-browse { font-size:11px; margin-top:3px; }
  .chat,.item-card,#pin-controls { padding:17px; }
}
@media(max-width:380px) {
  .header-inner,.service-main { padding-inline:14px; }
  .browse-link { font-size:10px; }
  .filter button { padding-inline:9px; }
  .filter button span { margin-left:2px; }
  .guide-tools { gap:6px; }
  .channel-card:only-child .channel-content { padding-inline:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
