:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: #10141D; color: #F5F7FA; font: 19px/1.5 "Segoe UI", Arial, sans-serif; }
main { max-width: 1840px; margin: auto; padding: 30px 48px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.eyebrow { color: #629DF4; font-size: 13px; letter-spacing: .16em; font-weight: 700; margin: 0 0 8px; }
.eyebrow span { color: #9bb2c1; margin-left: 18px; }
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 8px; }
.intro { margin: 0; color: #a9bdc9; }
.target { padding: 14px 18px; border: 1px solid #496271; border-radius: 12px; font-size: 15px; color: #629DF4; }
.target small { display: block; color: #a9bdc9; }
.layout { display: grid; grid-template-columns: 370px minmax(0,1fr); gap: 26px; align-items: start; }
aside { background: #1B2431; border: 1px solid #3b5363; padding: 20px; border-radius: 16px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
h2 span { margin-right: 10px; color: #629DF4; font-size: 14px; }
.sources { display: grid; gap: 10px; margin-bottom: 22px; }
button { font: inherit; font-size: 17px; color: #edf5f7; background: #243d4b; border: 2px solid #526d7c; border-radius: 10px; min-height: 54px; padding: 11px 14px; cursor: pointer; }
.sources button { text-align: left; }
button small { display: block; font-size: 12px; color: #b5cad5; }
button[aria-pressed="true"] { background: #223956; border-color: #629DF4; }
button:focus, pre:focus, input:focus { outline: 4px solid #629DF4; outline-offset: 4px; }
button:disabled { opacity: .38; cursor: default; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wide { width: 100%; margin-top: 14px; }
.primary { background: #629DF4; border-color: #629DF4; color: #102a24; font-weight: 700; }
.small { font-size: 13px; color: #96A2B3; }
.screen { height: 42vh; max-height: 520px; min-height: 250px; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #3b5363; background: #060e14; }
#video-host, video { width: 100%; height: 100%; }
video { display: block; object-fit: contain; }
#placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: #bdd0da; pointer-events: none; padding: 20px; }
#placeholder > span { color: #629DF4; font-size: 62px; line-height: 1; margin-bottom: 18px; }
#placeholder p { font-size: 16px; }
.screen-label { position: absolute; top: 14px; left: 16px; color: #629DF4; background: #102b35e6; padding: 5px 10px; font-size: 12px; letter-spacing: .06em; }
.transport { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.transport button { font-size: 14px; min-height: 48px; }
#stop { border-color: #dd9b87; color: #ffcfbd; }
.state-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #1b303d; border: 1px solid #496271; border-radius: 12px; padding: 16px 20px; }
.state-panel strong { display: block; font-size: 24px; color: #629DF4; }
.state-panel span { display: block; font-size: 13px; color: #c1d2db; }
.state-panel .caption { font-size: 11px; letter-spacing: .12em; color: #9cb6c6; }
.help { font-size: 14px; color: #e7d2a4; margin: 12px 0; }
#confirm { font-size: 14px; min-height: 42px; padding: 7px 13px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.stats > div { border: 1px solid #3b5363; background: #1B2431; border-radius: 10px; padding: 13px; }
.stats span, .stats small { display: block; color: #96A2B3; font-size: 12px; }
.stats strong { font-size: 22px; color: #629DF4; font-weight: 600; display: block; margin: 4px 0; }
section { margin-top: 24px; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.section-title span { color: #96A2B3; font-size: 12px; }
pre { font: 14px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #0b131b; border: 1px solid #3b5363; border-radius: 12px; padding: 16px; margin: 0; max-height: 210px; overflow: auto; }
#signals { max-height: 135px; } #history { max-height: 180px; }
.limitations { color: #96A2B3; font-size: 15px; margin-top: 24px; }
footer { font-size: 11px; letter-spacing: .12em; color: #8ca6b6; margin-top: 24px; }
[hidden] { display: none !important; }
.top-nav, .paging { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 18px 0 24px; }
.top-nav button, .page-panel button { background: #1B2431; }
.page-panel { border: 1px solid #42536b; background: #1B2431; border-radius: 16px; padding: 28px; margin: 24px 0; }
.page-panel p { color: #96A2B3; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1250px; margin: 28px 0; }
label { display: block; font-size: 18px; color: #F5F7FA; }
input { display: block; width: 100%; min-height: 58px; padding: 14px; margin-top: 10px; border: 2px solid #52687f; border-radius: 10px; background: #10141D; color: #F5F7FA; font: inherit; }
.account-summary { border-left: 4px solid #629DF4; padding: 12px 20px; margin: 24px 0; color: #F5F7FA; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 24px 0; }
.channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.catalog-grid button { display: flex; align-items: center; gap: 16px; min-height: 80px; text-align: left; overflow-wrap: anywhere; }
.logo { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
.live-options { border-top: 1px solid #42536b; padding-top: 22px; }
body[data-view="player"] .layout { grid-template-columns: minmax(0,1fr); }
.page-panel .primary, .primary { background: #629DF4; border-color: #629DF4; color: #10141D; }
@media (max-width: 950px) { .login-grid, .catalog-grid, .channel-grid { grid-template-columns: 1fr; } }
@media (min-width: 1500px) { .layout { grid-template-columns: 400px minmax(0,1fr); } button { font-size: 19px; min-height: 58px; } .small, button small { font-size: 14px; } }
@media (max-width: 950px) { main { padding: 24px; } .layout { grid-template-columns: 1fr; } .target { display: none; } h1 { font-size: 32px; } .sources { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
