/* IPTV · styles · black and white, the picture is the only colour */
@font-face { font-family: "Inter"; font-weight: 400; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 500; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 800; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #000; --panel: #0a0a0b; --panel2: #101012; --line: #1a1a1d; --line2: #28282c; --line3: #3a3a40;
  --ink: #f5f5f3; --ink2: #b8b8b4; --dim: #77777a; --faint: #46464a;
  --onair: #ff3b30;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1280px; --ease: cubic-bezier(.22, 1, .36, 1); --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; min-height: 100vh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--ink2); text-decoration: none; transition: color .2s; } a:hover { color: var(--ink); }
input, textarea, select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; transition: border-color .2s, background .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--line3); background: var(--panel2); }
h2 { font-weight: 700; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
h3 { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.mono { font-family: var(--mono); } .dim { color: var(--dim); } .grow { flex: 1; }
.k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sub { color: var(--ink2); max-width: 62ch; font-size: 15px; }
::selection { background: var(--ink); color: #000; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #232326; border-radius: 8px; }

/* ── motion ── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes poweron { 0% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3); } 45% { clip-path: inset(49% 0 49% 0); filter: brightness(2.2); } 100% { clip-path: inset(0 0 0 0); filter: brightness(1); } }
@keyframes osd { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes tune { 0% { transform: scale(1.015); filter: brightness(1.6) contrast(1.2); } 40% { filter: brightness(1.05); } 100% { transform: none; filter: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-6px); } }
.leaving > * { animation: leave .16s var(--ease) both; }
.enter > * { animation: rise .7s var(--ease) both; } .enter > *:nth-child(2) { animation-delay: .08s; } .enter > *:nth-child(3) { animation-delay: .16s; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); } .rv.in { opacity: 1; transform: none; }
.stag > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) { *, .enter > *, .stag > * { animation-duration: .01ms !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ── top ── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 24px; background: rgba(0,0,0,.72); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 0 5px rgba(255,255,255,.12)); }
.links { display: flex; gap: 4px; } .links a { font-weight: 500; font-size: 13.5px; color: var(--dim); padding: 6px 11px; border-radius: 999px; transition: color .2s, background .2s; } .links a:hover { color: var(--ink); } .links a.on { color: var(--ink); background: var(--panel2); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.wbtn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px 7px 12px; font-weight: 500; font-size: 13px; color: var(--ink); background: var(--panel); transition: border-color .2s, background .2s, transform .15s; } .wbtn:hover { border-color: var(--line3); background: var(--panel2); } .wbtn:active { transform: scale(.98); }
.wbtn i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background .2s; } .wbtn.ok i { background: var(--ink); } .wbtn .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; } .wbtn[aria-expanded="true"] .chev { transform: rotate(225deg) translate(-2px, -1px); }
.wmenu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: grid; gap: 2px; animation: rise .25s var(--ease) both; z-index: 40; }
.wmenu .addr { padding: 10px 12px 8px; display: grid; gap: 2px; } .wmenu .addr b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; } .wmenu .addr span { font-size: 11.5px; color: var(--dim); }
.wmenu button, .wmenu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink); transition: background .15s; } .wmenu button:hover, .wmenu a:hover { background: var(--panel2); } .wmenu .sep { height: 1px; background: var(--line); margin: 4px 6px; } .wmenu .note { padding: 8px 12px; font-size: 12px; color: var(--dim); line-height: 1.45; } .wmenu .danger { color: var(--ink2); }
.wmenu .wlogo { width: 22px; height: 22px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--ink2); }

main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 70px; }
.foot { border-top: 1px solid var(--line); padding: 22px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--dim); } .foot span:first-child { color: var(--ink2); letter-spacing: .12em; font-weight: 600; font-size: 11.5px; } .foot .footer-ca { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--dim); } .foot .footer-ca code { color: var(--ink2); font: 10.5px var(--mono); overflow-wrap: anywhere; } .foot .dim:last-child { margin-left: auto; }

/* ── the set (player) ── */
.set { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px #000; isolation: isolate; }
.set.power { animation: poweron .9s var(--ease) both; }
.set::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(125% 95% at 50% 50%, transparent 58%, rgba(0,0,0,.4)); z-index: 6; }
.set .screen { position: absolute; inset: 0; } .set.tuning .screen { animation: tune .5s var(--ease); }
.set video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; background: #000; } .set video.on { opacity: 1; }
.set img#l-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade .6s var(--ease) both; }
.set .static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .12s; z-index: 3; pointer-events: none; } .set .static.on { opacity: 1; }
.set .osd { position: absolute; top: 18px; right: 20px; z-index: 7; display: grid; justify-items: end; gap: 3px; font-family: var(--mono); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 18px rgba(255,255,255,.25); opacity: 0; pointer-events: none; transition: opacity .5s; }
.set .osd.on { opacity: 1; animation: osd .4s var(--ease); } .set .osd b { font-size: 40px; font-weight: 700; letter-spacing: .02em; line-height: .95; } .set .osd span { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.set .bug { position: absolute; left: 20px; top: 18px; z-index: 7; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,245,243,.9); text-shadow: 0 1px 2px #000; pointer-events: none; }
.set .bug img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; border: 1px solid rgba(255,255,255,.25); }
.set .bug .onair { display: inline-flex; align-items: center; gap: 6px; } .set .bug .onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 8px rgba(255,59,48,.6); }
.set .lower { position: absolute; left: 22px; bottom: 26px; z-index: 7; display: grid; transform: translateX(-10px); opacity: 0; transition: opacity .35s, transform .55s var(--ease); pointer-events: none; }
.set .lower.on { opacity: 1; transform: none; } .set .lower.on b { animation: wipe .5s var(--ease) both; } .set .lower.on span { animation: wipe .5s .12s var(--ease) both; } .set .lower b { background: var(--ink); color: #000; font-weight: 700; font-size: 15px; letter-spacing: -.01em; padding: 6px 12px; width: max-content; max-width: 520px; border-radius: 4px 4px 0 0; } .set .lower span { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); color: var(--ink2); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; width: max-content; max-width: 520px; border-radius: 0 0 4px 4px; }
.set .nosignal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink2); text-shadow: 0 1px 2px #000; pointer-events: none; padding: 20px; }
.set .nosignal small { display: block; font: 11.5px var(--mono); letter-spacing: .08em; text-transform: none; color: var(--dim); margin-top: 8px; font-weight: 400; }
.set .tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8; animation: fade .5s var(--ease) both; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500; backdrop-filter: blur(8px); transition: background .2s, transform .2s; } .set .tap:hover { background: rgba(255,255,255,.14); transform: translate(-50%, -50%) scale(1.03); }
.set .ident { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #000; opacity: 0; transition: opacity .25s; pointer-events: none; } .set .ident.on { opacity: 1; }
.set .ident .box { display: grid; gap: 10px; justify-items: center; } .set .ident.on .box { animation: rise .6s var(--ease) both; } .set .ident img { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; } .set .ident b { font-weight: 700; font-size: 26px; letter-spacing: -.02em; } .set .ident span { font: 11px var(--mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.set .scan { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px); opacity: .6; }
.set .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 7; background: rgba(255,255,255,.1); } .set .prog i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s linear; }
.set .cap { position: absolute; right: 20px; bottom: 14px; z-index: 7; font: 10.5px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

/* ── stage ── */
.stage { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; margin-bottom: 44px; position: relative; }
.stage::before { content: ""; position: absolute; left: 10%; right: 35%; top: -40px; height: 120%; background: radial-gradient(60% 50% at 50% 40%, rgba(255,255,255,.05), transparent 70%); pointer-events: none; z-index: -1; }
.stage-side { display: grid; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.now-card { display: grid; gap: 10px; min-height: 160px; }
.now-card .ch { display: flex; align-items: center; gap: 12px; } .now-card .ch b { font-family: var(--mono); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; } .now-card .ch img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; } .now-card .ch .nm { font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.1; } .now-card .ch .fm { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.now-card .title { font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; } .now-card .line { color: var(--ink2); font-size: 13.5px; line-height: 1.5; } .now-card .meta { display: flex; gap: 14px; font: 11px var(--mono); color: var(--dim); flex-wrap: wrap; }
.remote { width: min(248px, 100%); justify-self: center; display: grid; gap: 15px; padding: 22px 20px 18px; border: 1px solid #333842; border-radius: 38px 38px 48px 48px; color: #f5f6f8; background: linear-gradient(145deg, #30343b 0%, #111318 38%, #08090c 100%); box-shadow: inset 2px 2px 2px rgba(255,255,255,.13), inset -4px -5px 8px rgba(0,0,0,.75), 0 20px 45px rgba(0,0,0,.48); position: relative; }
.remote::after { content: ""; position: absolute; left: 34px; right: 34px; bottom: 9px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.06); }
.remote-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.remote-brand { font: 800 13px var(--mono); letter-spacing: .22em; color: #d9dce2; text-shadow: 0 1px #000; }
.remote button { color: #e8eaee; background: linear-gradient(145deg,#2a2d33,#121419); border: 1px solid #3b4049; box-shadow: inset 1px 1px rgba(255,255,255,.09), 0 3px 5px rgba(0,0,0,.55); font: 700 10px var(--mono); transition: transform .12s, border-color .2s, background .2s; }
.remote button:hover { border-color: #686f7a; background: linear-gradient(145deg,#353941,#171a20); }
.remote button:active { transform: translateY(2px) scale(.97); box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
.remote .power { width: 48px; height: 28px; padding: 0; border-radius: 999px; border-color: #57292d; color: #ff6b70; font-size: 8px; text-transform: uppercase; }
.remote .power.on { color: #8cff9b; border-color: #315a3a; }
.remote-display { min-height: 61px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: end; padding: 10px 12px 8px; border-radius: 10px; border: 1px solid #353c3e; background: linear-gradient(#111916,#18221d); box-shadow: inset 0 2px 8px #000, 0 1px rgba(255,255,255,.08); color: #a9f7ba; text-shadow: 0 0 8px rgba(94,255,128,.3); }
.remote-display span { font: 8px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #698f72; }
.remote-display b { grid-row: 1 / 3; grid-column: 2; font: 700 32px var(--mono); line-height: 1; }
.remote-display small { font: 10px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 125px; }
.remote .r-nav { width: 176px; height: 176px; justify-self: center; display: grid; grid-template: repeat(3,1fr)/repeat(3,1fr); border-radius: 50%; padding: 10px; background: radial-gradient(circle,#242830 0 34%,#0b0d11 35% 58%,#242830 59% 100%); box-shadow: inset 2px 2px 3px rgba(255,255,255,.09), inset -3px -4px 8px rgba(0,0,0,.8), 0 5px 10px rgba(0,0,0,.5); }
.r-nav button { border: 0; background: transparent; box-shadow: none; border-radius: 14px; display: grid; place-content: center; gap: 2px; }
.r-nav button:hover { background: rgba(255,255,255,.06); }
.r-nav button small { font-size: 8px; color: #8d929c; }
.r-nav .nav-up { grid-area: 1/2; } .r-nav .nav-left { grid-area: 2/1; } .r-nav .nav-ok { grid-area: 2/2; border-radius: 50%; background: linear-gradient(145deg,#3d424a,#17191e); border: 1px solid #515760; font-size: 13px; } .r-nav .nav-right { grid-area: 2/3; } .r-nav .nav-down { grid-area: 3/2; }
.remote .r-pad { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px 12px; padding: 0 5px; }
.remote .r-pad button { min-width: 0; min-height: 43px; border-radius: 50%; padding: 6px 2px; font-size: 13px; display: grid; place-content: center; gap: 1px; }
.remote .r-pad button small { max-width: 45px; font: 7px var(--mono); color: #777e89; letter-spacing: .05em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote .r-pad button.live { color: #fff; border-color: #5e6876; }
.remote .r-pad button.live small { color: #8cff9b; }
.remote .hint { margin: 0; text-align: center; font: 8px var(--mono); color: #666d77; letter-spacing: .04em; }
.guide-token-link { display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--line2); border-radius: 8px; color: var(--ink); font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.guide-token-link:hover { border-color: var(--line3); background: var(--panel2); }
.social-icon { display: inline-grid !important; place-items: center; }
.social-icon svg { width: 15px; height: 15px; fill: currentColor; }
.wbtn .phantom-icon { width: 20px; height: 17px; object-fit: contain; flex: none; }
.x-footer { display: inline-flex; align-items: center; gap: 6px; }
.x-footer svg { width: 13px; height: 13px; fill: currentColor; }

/* ── guide ── */
.guide-head { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; }
.legend { display: flex; gap: 8px; } .st { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); display: inline-flex; align-items: center; gap: 7px; } .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); } .st.live::before { background: var(--onair); box-shadow: 0 0 6px rgba(255,59,48,.5); } .st.producing::before { background: var(--ink); } .st.static::before { background: transparent; border: 1px solid var(--dim); } .st.dead::before { background: transparent; border: 1px solid var(--faint); } .st.idle::before { background: var(--dim); }
.g-stats { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.epg { display: grid; gap: 8px; }
.epg .cols { display: grid; grid-template-columns: 220px 1.2fr 1fr .8fr 150px; gap: 12px; padding: 0 14px 6px; font: 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.row { display: grid; grid-template-columns: 220px 1.2fr 1fr .8fr 150px; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease), opacity .6s var(--ease); position: relative; }
.row.fresh { animation: rise .6s var(--ease) both; }
.row:hover { border-color: var(--line3); background: var(--panel2); transform: translateY(-1px); } .row.tuned { border-color: var(--ink2); } .row.tuned::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; background: var(--ink); border-radius: 2px; }
.row .id { display: flex; align-items: center; gap: 12px; min-width: 0; } .row .num { font-family: var(--mono); font-weight: 700; font-size: 26px; letter-spacing: -.02em; width: 44px; text-align: right; line-height: 1; } .row.static .num, .row.dead .num { color: var(--dim); } .row .logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--panel2); flex: none; }
.row .nm { min-width: 0; } .row .nm b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .nm span { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.row .now { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: center; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line2); transition: transform .3s var(--ease); } .row:hover .thumb { transform: scale(1.03); } .thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb .n { position: absolute; right: 6px; top: 4px; font-family: var(--mono); font-weight: 700; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; } .thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.12); } .thumb .bar i { display: block; height: 100%; background: var(--ink); width: 0; } .thumb.off { display: grid; place-items: center; font: 10px var(--mono); color: var(--dim); letter-spacing: .14em; text-transform: uppercase; } .thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; transition: opacity .2s; }
.row .pt { min-width: 0; } .row .pt b { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .pt span { display: block; font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .row .pt small { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .04em; }
.row .next { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; min-width: 0; } .row .next .thumb { border-radius: 6px; }
.row .later { font-size: 12.5px; color: var(--ink2); display: grid; gap: 2px; min-width: 0; } .row .later span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .later span::before { content: "› "; color: var(--faint); }
.row .side { display: grid; gap: 6px; justify-items: end; } .row .side .mono { font-size: 10.5px; color: var(--dim); }
.tank-bar { width: 100%; height: 3px; background: var(--line); border-radius: 4px; overflow: hidden; } .tank-bar i { display: block; height: 100%; background: var(--ink2); transition: width .6s var(--ease); } .tank-bar.low i { background: var(--dim); } .tank-bar.empty i { background: var(--onair); }
.empty-guide { background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--r); padding: 64px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; } .empty-guide b { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }

/* ── wall ── */
.tvbar { display: flex; align-items: center; gap: 18px; height: 44px; padding: 0 16px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; } .tvbar b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; } .tvbar .tv-time { font-size: 15px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; } .tvbar .mono { font-size: 11px; letter-spacing: .06em; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tv { position: relative; padding: 6px; background: #121214; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; outline: none; transition: transform .35s var(--ease), border-color .2s, box-shadow .35s, background .2s; }
.tv:hover, .tv:focus-visible { transform: translateY(-2px); border-color: var(--line3); box-shadow: 0 24px 60px rgba(0,0,0,.6); background: #18181b; } .tv:focus-visible { border-color: var(--ink); }
.tv .scr { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 7px; overflow: hidden; }
.tv .scr video, .tv .scr img, .tv .scr canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .tv .scr canvas { image-rendering: pixelated; }
.tv .scr::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,.45)); pointer-events: none; }
.tv .osd { position: absolute; right: 10px; top: 8px; z-index: 2; font-family: var(--mono); font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 1px 2px #000; }
.tv .live { position: absolute; left: 10px; top: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font: 600 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px #000; } .tv .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--onair); box-shadow: 0 0 6px rgba(255,59,48,.6); } .tv .live.off::before { background: var(--dim); box-shadow: none; }
.tv .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.9)); display: grid; gap: 2px; transform: translateY(6px); opacity: .92; transition: transform .3s var(--ease), opacity .3s; } .tv:hover .info, .tv:focus-visible .info { transform: none; opacity: 1; }
.tv .info b { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv .info span { font: 11px var(--mono); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv .info small { font: 10px var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.tv .bar { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; font-size: 12.5px; } .tv .bar .n { font-family: var(--mono); font-weight: 700; font-size: 13px; } .tv .bar .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv .bar .fm { font: 10px var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-left: auto; white-space: nowrap; }
.tv .pg { height: 2px; background: var(--line); border-radius: 2px; margin: 6px 6px 2px; overflow: hidden; } .tv .pg i { display: block; height: 100%; width: 0; background: var(--ink2); transition: width .7s linear; }

/* ── channel page ── */
.ch-main { display: grid; gap: 14px; }
.ch-now { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.ch-now .t { font-weight: 700; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; } .ch-now .l { color: var(--ink2); font-size: 14px; line-height: 1.5; margin-top: 6px; max-width: 70ch; } .ch-now .m { display: flex; gap: 14px; font: 11px var(--mono); color: var(--dim); margin-top: 10px; flex-wrap: wrap; }
.ch-now .nx { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; min-width: 220px; } .ch-now .nx .thumb { border-radius: 6px; } .ch-now .nx b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.2; } .ch-now .nx small { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.ch-now .acts { display: flex; gap: 8px; margin-top: 12px; }
.ch-stage { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.ch-rail { display: grid; gap: 14px; }
.station { display: grid; gap: 12px; }
.station .head { display: flex; align-items: center; gap: 14px; } .station .head b.num { font-family: var(--mono); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; } .station .head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; } .station .head .t { font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; } .station .head .f { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.station p { color: var(--ink2); font-size: 13.5px; } .station .kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12.5px; } .station .kv dt { color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; } .station .kv dd { color: var(--ink2); word-break: break-all; } .station .kv dd a { color: var(--ink); }
.tank, .market { display: grid; gap: 10px; }
.tank .big { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 28px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; } .tank .big small { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.tank .fund { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; } .tank .how { font: 11.5px var(--mono); color: var(--dim); line-height: 1.55; word-break: break-all; } .tank .how b { color: var(--ink2); font-weight: 500; }
.market .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } .market .grid div { display: grid; gap: 2px; } .market .grid b { font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; } .market .up::after { content: " ↑"; color: var(--dim); } .market .dn::after { content: " ↓"; color: var(--dim); }
.ch-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 30px; }
.col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.log { display: grid; gap: 8px; }
.seg { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; transition: border-color .2s, transform .3s var(--ease), background .2s; } .seg:hover { border-color: var(--line3); background: var(--panel2); transform: translateY(-1px); } .seg.airing { border-color: var(--ink2); }
.seg .t b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; } .seg .t p { color: var(--ink2); font-size: 13px; margin-top: 3px; line-height: 1.45; } .seg .t small { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .04em; display: block; margin-top: 5px; }
.seg .n { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--faint); } .seg.airing .n { color: var(--ink); }
.seg .sp { color: var(--ink2); }
.sponsors { display: grid; gap: 6px; margin-bottom: 12px; } .sp-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; } .sp-item b { font: 10.5px var(--mono); color: var(--dim); letter-spacing: .06em; font-weight: 500; } .sp-item span { font-size: 13.5px; } .sp-item.used { opacity: .5; } .sp-item.used b::after { content: " · aired"; color: var(--ink2); }
.sponsor-form { display: grid; gap: 8px; margin-bottom: 24px; } .msg { font: 12px var(--mono); color: var(--dim); min-height: 1.4em; } .msg.err { color: var(--ink); } .msg.ok { color: var(--ink2); }
.host-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; } .host-card img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; } .host-card b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; } .host-card p { color: var(--ink2); font-size: 13px; line-height: 1.5; margin-top: 4px; } .host-card q { color: var(--ink); font-style: italic; }
.empty { color: var(--dim); font: 12.5px var(--mono); padding: 14px 0; }

/* ── studio ── */
.studio { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.studio-form { display: grid; gap: 14px; } .studio-form form { display: grid; gap: 12px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .f-grid.three { grid-template-columns: 1fr 1fr 1fr; }
label { display: grid; gap: 6px; font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); } label input, label textarea, label select { font: 14.5px var(--sans); text-transform: none; letter-spacing: -.005em; }
.sample { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink2); font-size: 13.5px; } .sample b { display: block; font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; } .sample q { font-style: italic; }
.more summary { cursor: pointer; font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; list-style: none; } .more summary::before { content: "+ "; } .more[open] summary::before { content: "– "; } .more > div { margin-bottom: 10px; } .fine { font: 11.5px var(--mono); color: var(--dim); line-height: 1.5; margin-bottom: 10px; }
.l-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ctl { border: 1px solid var(--line2); border-radius: 9px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; letter-spacing: -.005em; background: var(--panel); color: var(--ink); transition: border-color .2s, background .2s, transform .12s; display: inline-flex; align-items: center; gap: 8px; } .ctl:hover { border-color: var(--line3); background: var(--panel2); } .ctl:active { transform: scale(.98); } .ctl:disabled { opacity: .4; cursor: not-allowed; } .ctl.primary { background: var(--ink); color: #000; border-color: var(--ink); } .ctl.primary:hover { background: #fff; } .ctl.big { padding: 13px 24px; font-size: 15px; } .ctl.sm { padding: 6px 11px; font-size: 12px; } .ctl.file { cursor: pointer; }
.image-drop { min-width: 190px; display: grid; justify-items: start; gap: 2px; border-style: dashed; }
.image-drop small { font: 8px var(--mono); letter-spacing: .09em; color: var(--dim); }
.image-drop.over { border-color: var(--ink); background: var(--panel2); transform: scale(1.02); }
.image-drop.loaded { border-style: solid; border-color: var(--line3); }
.l-cost { font: 11px var(--mono); color: var(--dim); letter-spacing: .02em; line-height: 1.6; }
.stepper { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; } .stepper li { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; transition: all .25s; } .stepper li.done { color: var(--ink2); border-color: var(--line3); } .stepper li.on { color: #000; background: var(--ink); border-color: var(--ink); animation: pop .35s var(--ease); } .stepper li.fail { color: var(--ink); border-color: var(--onair); }
.log-out { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 120px; max-height: 260px; overflow: auto; font-size: 12px; line-height: 1.6; color: var(--ink2); white-space: pre-wrap; } .log-out .ok { color: var(--ink); } .log-out .err { color: var(--ink); text-decoration: underline; text-decoration-color: var(--onair); text-underline-offset: 3px; } .log-out .k { color: var(--dim); }
.studio-preview { position: sticky; top: 78px; display: grid; gap: 14px; }
.preview-notes { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; } .preview-notes b { color: var(--ink); font-weight: 600; }
.set.preview .osd { opacity: 1; }

/* ── phones ── */
@media (max-width: 1000px) {
  .stage, .ch-stage, .ch-body, .studio { grid-template-columns: 1fr; }
  .epg .cols { display: none; } .row { grid-template-columns: 1fr; gap: 10px; } .row .later, .row .next { display: none; } .row .side { justify-items: start; }
  .links { gap: 2px; } .links a { padding: 6px 8px; font-size: 13px; } .top { gap: 14px; padding: 0 16px; } main { padding: 16px 16px 50px; }
  .studio-preview { position: static; } .f-grid, .f-grid.three { grid-template-columns: 1fr; }
  .set .lower b { font-size: 13px; } .set .osd b { font-size: 30px; } .wmenu { width: 240px; }
}
@media (max-width: 640px) {
  .top { gap: 8px; padding: 0 12px; } .brand { font-size: 13px; gap: 8px; } .links a { padding: 6px 7px; font-size: 12.5px; }
  .wbtn span { display: none; } .wbtn { padding: 8px 10px; } .wbtn .chev { display: none; }
  .set .osd b { font-size: 24px; } .set .osd span { font-size: 9.5px; } .set .bug { font-size: 10px; } .set .ident b { font-size: 18px; }
  .remote .r-pad { grid-template-columns: repeat(3, 1fr); } .wall { grid-template-columns: 1fr; }
}
