:root {
  color-scheme: dark;
  --page: #0c1014;
  --panel: #141a20;
  --line: #2a323a;
  --text: #f3f5f7;
  --secondary: #a6b0b9;
  --mint: #68e8b6;
  --body: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", var(--body);
  font-family: var(--body);
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { min-width: 300px; margin: 0; font-size: 1rem; line-height: 1.45; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
:where(h1, h2, h3, p) { margin: 0; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--mint); color: #10221b; padding: 8px 18px; border-radius: 6px; }
.shell { width: min(91.5%, 1450px); margin-inline: auto; }
.ico { display: inline-block; flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.masthead { border-bottom: 1px solid #252c32; background: #0e1317; }
.topbar, .brand, .primary-nav, .header-tools, .search-trigger, .watch-badge, .lineup-heading, .lineup-heading > div, .cover-meta, .cover-actions, .btn, .player-tag, .filter, .library-heading, .finder-head, .finder-input { display: flex; align-items: center; }
.topbar { min-height: 72px; gap: clamp(28px,4.2vw,78px); }
.brand { gap: 10px; flex-shrink: 0; font-weight: 750; font-size: 1.52rem; letter-spacing: -.065em; }
.brand img { display: block; }
.primary-nav { align-self: stretch; gap: 29px; }
.nav-link { display: inline-flex; align-items: center; position: relative; color: #a6afb8; font-size: .925rem; font-weight: 550; white-space: nowrap; }
.nav-link.active, .nav-link:hover { color: #eff8f4; }
.nav-link.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--mint); }
.header-tools { margin-left: auto; gap: 21px; }
.search-trigger { gap: 9px; min-height: 35px; width: 187px; padding: 5px 9px 5px 12px; border: 1px solid #2d363d; border-radius: 7px; background: #171d23; color: var(--secondary); font-size: .875rem; }
.search-trigger:hover { border-color: #60726d; color: white; }
.search-trigger .ico { width: 16px; height: 16px; }
kbd { min-width: 19px; margin-left: auto; border: 1px solid #384149; border-radius: 3px; line-height: 19px; font-family: var(--body); font-size: .77rem; color: #a1acb6; background: #20282f; }
.watch-badge { gap: 7px; color: #a4e9cd; font-size: .875rem; font-weight: 575; white-space: nowrap; }
.watch-badge .ico { width: 17px; height: 17px; }
.room-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 31px 0 23px; }
h1, .library-heading h2 { font-weight: 670; line-height: 1.1; letter-spacing: -.046em; }
h1 { font-size: clamp(2rem, 2.7vw, 2.8rem); }
.room-heading p { color: var(--secondary); margin-top: 7px; font-size: 1rem; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 2.38fr) minmax(277px, 1fr); gap: 18px; align-items: stretch; }
.player { isolation: isolate; position: relative; overflow: hidden; border: 1px solid #343c40; border-radius: 15px; background: #101819; min-width: 0; min-height: clamp(382px, 30vw, 485px); }
.cover-image, .cover-shade { position: absolute; inset: 0; pointer-events: none; }
.cover-image { background-color: #172825; background-position: center; background-size: cover; }
.cover-image > .ico { position: absolute; right: 8%; top: 15%; width: 30%; height: 65%; color: #73988a55; stroke-width: .8; }
.cover-shade { background: linear-gradient(90deg,rgba(4,10,11,.70) 0%,rgba(5,10,11,.37) 44%,transparent 78%),linear-gradient(0deg,rgba(3,8,9,.89) 0%,rgba(3,8,9,.31) 40%,transparent 77%); }
.player-top { position: absolute; z-index: 2; top: 20px; left: 22px; right: 20px; display: flex; justify-content: space-between; align-items: start; gap: 8px; pointer-events: none; }
.player-tag { width: fit-content; gap: 7px; padding: 6px 10px; border: 1px solid #a6bdb53e; border-radius: 5px; background: #0b1718c7; color: #ddf7eb; text-transform: uppercase; font-size: .73rem; letter-spacing: .105em; font-weight: 650; line-height: 1.2; }
.player-tag .ico { width: 15px; height: 15px; color: var(--mint); }
.player-tag.unlisted { background: #15191cd9; color: #d0d5d9; }
.player-tag.unlisted .ico { color: #bec7cc; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid #39454d; border-radius: 7px; width: 34px; height: 34px; background: #1d252d; color: #e2e9e8; }
.icon-button:hover { background: #34413f; }
.cover-copy { position: absolute; left: clamp(23px, 2.6vw, 44px); right: 21px; bottom: clamp(26px, 2.7vw, 44px); }
.cover-meta { gap: 9px; font-size: .85rem; color: #d1d6d6; font-weight: 500; }
.category-mark { text-transform: uppercase; letter-spacing: .13em; color: #94f0c7; font-size: .77rem; font-weight: 730; }
.meta-dot, .footer-dot { color: #66737d; }
.meta-dot { width: 3px; height: 3px; background: #b6b7af; border-radius: 50%; }
.cover-copy h2 { font-family: var(--display); line-height: .99; font-size: clamp(3.25rem,5.15vw,5.35rem); font-weight: 600; letter-spacing: -.024em; margin: 9px 0 12px; text-wrap: balance; }
.cover-copy p { color: #d7d9d9; max-width: 415px; line-height: 1.5; font-size: .975rem; text-wrap: pretty; }
.cover-copy h2:focus { outline: none; }
.cover-actions { gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn { min-height: 42px; padding: 0 17px; border-radius: 7px; justify-content: center; gap: 8px; font-weight: 650; font-size: .92rem; }
.btn-primary { color: #09231b; background: var(--mint); }
.btn-primary:hover { background: #94f5ce; }
.btn-glass { background: #111a1bd9; border: 1px solid #84918c94; color: #f2f4f3; }
.btn-glass:hover { background: #24312de6; border-color: #b3c5be; }
.btn .ico { width: 17px; height: 17px; }
.lineup { min-width: 0; display: flex; flex-direction: column; padding: 0 9px 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.lineup-heading { justify-content: space-between; padding: 15px 9px 13px; }
.lineup-heading > div { gap: 9px; }
.lineup-heading h2 { font-size: 1.07rem; font-weight: 620; letter-spacing: -.022em; }
.lineup-icon { color: #90a19c; width: 18px; height: 18px; }
.lineup-heading > span { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 5px; background: #252e35; color: #bec8cf; font-size: .78rem; font-variant-numeric: tabular-nums; }
.lineup-list { flex: 1; display: grid; grid-template-rows: repeat(6, minmax(0,1fr)); gap: 2px; }
.lineup-item, .result-item { width: 100%; display: flex; align-items: center; text-align: left; gap: 12px; min-width: 0; position: relative; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.lineup-item:hover, .result-item:hover { background: #202930; }
.lineup-item.selected { background: #1a302b; border-color: #315345; }
.thumb { flex: 0 0 auto; width: clamp(54px,4.5vw,75px); aspect-ratio: 1.67; border-radius: 5px; overflow: hidden; background-color: #252d30; background-size: cover; background-position: center; }
.item-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 1px; }
.item-title { font-weight: 610; line-height: 1.28; font-size: .94rem; }
.item-meta { color: #a4afb5; font-size: .79rem; }
.lineup-indicator { margin-left: auto; display: inline-flex; align-items: center; flex: 0 0 15px; width: 15px; color: var(--mint); opacity: 0; }
.lineup-indicator .ico { width: 15px; height: 15px; }
.lineup-item.selected .lineup-indicator, .lineup-item:hover .lineup-indicator { opacity: 1; }
#library { margin-top: 37px; scroll-margin-top: 20px; }
.library-heading { gap: 14px; justify-content: space-between; }
.library-heading h2 { font-size: clamp(1.55rem,2vw,2rem); }
.count, .finder-count { color: var(--secondary); font-size: .84rem; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 2px 0; margin: 17px 0 17px; }
.filter { background: #161d23; color: #b8c2ca; border: 1px solid #2c353d; border-radius: 8px; gap: 7px; padding: 7px 12px; font-size: .84rem; font-weight: 520; white-space: nowrap; }
.filter .ico { width: 15px; height: 15px; }
.filter:hover { color: white; border-color: #5b6b66; }
.filter[aria-pressed="true"] { border-color: #477561; background: #19362c; color: #96f1ca; }
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.channel-card { color: inherit; min-width: 0; text-align: left; display: flex; padding: 0; flex-direction: column; position: relative; border-radius: 11px; border: 1px solid #29323a; background: #151b21; overflow: hidden; transition: border-color .18s,background .18s; }
.channel-card:hover { border-color: #668176; background: #1a2228; }
.card-visual { position: relative; width: 100%; aspect-ratio: 1.99; background-size: cover; background-position: center; background-color: #222b2c; }
.card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 72%,#0a0e122c); }
.card-copy { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; padding: 13px 14px 15px; }
.card-copy .item-title { font-size: 1.025rem; line-height: 1.3; font-weight: 640; letter-spacing: -.022em; }
.card-copy .item-meta { margin-top: 3px; font-size: .8rem; color: var(--secondary); }
.channel-card.selected { border-color: #537d6f; }
.card-play { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #3a464d; color: #bbc6c7; }
.card-play .ico { width: 13px; height: 13px; }
.channel-card:hover .card-play { color: var(--mint); border-color: #618375; }
.card-visual, .thumb { display: grid; place-items: center; }
.card-visual > .ico, .thumb > .ico { width: 28%; height: 47%; stroke-width: 1.2; color: #81968b; }
footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; border-top: 1px solid #293038; padding: 22px 0 28px; margin-top: 40px; color: #9aa6ad; font-size: .82rem; }
footer a, .embed-toolbar a { display: inline-flex; align-items: center; gap: 6px; }
footer a:hover, .embed-toolbar a:hover { color: var(--mint); }
footer .ico, .embed-toolbar a .ico { width: 14px; height: 14px; }
.footer-dot { padding: 0 4px; }
.embedded-player { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto minmax(0,1fr); background: #080b0c; }
.embed-toolbar { display: flex; gap: 12px; align-items: center; padding: 7px 10px 7px 16px; background: #131a1d; font-size: .9rem; }
.embed-heading { margin-right: auto; min-width: 0; }
.embed-heading h2 { margin: 0; font: inherit; font-weight: 600; }
.embed-heading small { display: block; margin-top: 2px; color: var(--secondary); }
.embed-heading small:empty { display: none; }
.embed-toolbar a { flex-shrink: 0; color: var(--mint); font-size: .82rem; }
#frame-host iframe { display: block; width: 100%; height: 100%; border: 0; }
dialog { width: min(510px,calc(100% - 28px)); max-height: min(76vh,630px); padding: 21px; overflow: auto; border: 1px solid #3c484d; border-radius: 14px; color: var(--text); background: #141c22; box-shadow: 0 22px 100px #000a; }
dialog::backdrop { background: #05090cc9; }
.finder-head { justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.finder-head h2 { font-size: 1.35rem; letter-spacing: -.035em; }
.finder-input { gap: 10px; padding: 0 12px; border: 1px solid #536b60; border-radius: 7px; background: #0d1519; color: var(--mint); }
.finder-input:focus-within { outline: 2px solid #64c99a; outline-offset: 1px; }
.finder-input input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; color: var(--text); padding: 10px 0; }
.finder-input input::placeholder { color: #a3afb5; }
.finder-count { padding: 14px 2px 6px; }
.result-item { padding: 6px; color: var(--text); }
.result-item .thumb { width: 58px; }
.result-item .ico { margin-left: auto; width: 15px; color: var(--mint); }
.empty { color: var(--secondary); padding: 14px 2px; }
.round-panel { grid-column: 1 / -1; min-width: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.round-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; }
.round-heading h2 { font-size: 1.15rem; }
.round-heading a { color: var(--mint); font-size: .875rem; }
.round-heading a:hover { text-decoration: underline; }
#round-status { margin-top: 5px; color: var(--secondary); font-size: .9rem; }
.round-scroll { overflow-x: auto; margin-top: 12px; }
.round-scroll table { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
.round-scroll :is(th, td) { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.round-scroll th { color: var(--secondary); font-weight: 500; }
.round-winner { font-weight: 650; color: var(--mint); }
@media (min-width: 1620px) { .topbar { min-height: 78px; } .room-heading { margin-top: 38px; } }
@media (max-width: 1100px) {
  .shell { width: 93%; }
  .topbar { gap: 33px; }
  .header-tools { gap: 14px; }
  .watch-layout { grid-template-columns: minmax(0,1.95fr) minmax(260px,1fr); gap: 14px; }
  .channel-grid { gap: 13px; }
  .item-title { font-size: .9rem; }
}
@media (max-width: 820px) {
  .search-trigger { width: 35px; height: 35px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .channel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .watch-layout { grid-template-columns: minmax(0,1.6fr) minmax(217px,1fr); }
  .lineup-item { gap: 8px; padding-inline: 6px; }
  .lineup-item .thumb { width: 48px; }
  .cover-copy { left: 22px; }
  .cover-copy h2 { font-size: 3.55rem; }
  .cover-actions { gap: 7px; }
  .btn { padding-inline: 12px; font-size: .86rem; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 60px; gap: 15px; }
  .brand { font-size: 1.34rem; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .primary-nav { display: none; }
  .header-tools { gap: 12px; }
  .watch-badge { font-size: .81rem; gap: 5px; }
  .room-heading { margin: 23px 0 17px; align-items: start; }
  .room-heading p { font-size: .91rem; line-height: 1.45; max-width: 420px; }
  .watch-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .round-panel { grid-row: 2; padding: 14px; }
  .player { min-height: 0; height: clamp(332px,74vw,393px); border-radius: 12px; }
  .cover-shade { background: linear-gradient(90deg,#040b0bb0,transparent 88%),linear-gradient(0deg,#060c0df2 0%,#080e0f68 56%,transparent 92%); }
  .player-top { top: 13px; left: 15px; right: 12px; }
  .cover-copy { left: 19px; right: 16px; bottom: 19px; }
  .cover-copy h2 { font-size: clamp(3rem,9.8vw,4.25rem); margin: 6px 0 8px; }
  .cover-copy p { font-size: .9rem; max-width: 360px; }
  .cover-actions { margin-top: 15px; }
  .lineup { padding: 0 8px 8px; border-radius: 12px; }
  .lineup-heading { padding: 11px 4px 9px; }
  .lineup-heading h2 { font-size: 1rem; }
  .lineup-list { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,auto); gap: 3px; }
  .lineup-item .thumb { width: 41px; }
  .lineup-item { padding: 5px; }
  .item-title { font-size: .84rem; }
  .item-meta { font-size: .75rem; }
  .lineup-indicator { display: none; }
  #library { margin-top: 27px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin: 13px 0 12px; padding-bottom: 5px; }
  .filter { font-size: .81rem; padding: 7px 10px; }
  .channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .card-copy { padding: 10px; }
  .card-copy .item-title { font-size: .95rem; }
  .card-copy .item-meta { font-size: .77rem; }
  .card-play { width: 26px; height: 26px; }
  footer { margin-top: 26px; font-size: .78rem; }
}
@media (max-width: 370px) { .shell { width: calc(100% - 22px); } .lineup-item .thumb { width: 34px; } .card-play { display: none; } .cover-copy { left: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; } }
