:root{color-scheme:light;--ivory:#f7f9fd;--white:#fff;--ink:#1a2a42;--muted:#6c7d93;--line:#dfe7f1;--coral:#e63c68;--blue:#416bc7;--shadow:0 12px 35px #20355014}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f3f6fc;color:var(--ink);font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #fa6f8c;outline-offset:2px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tv-app{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,352px);gap:16px;padding:16px;min-height:100vh;max-width:1700px;margin:0 auto;align-items:start}
.watch-panel{min-width:0;background:var(--white);border-radius:20px;border:1px solid #e0e8f3;box-shadow:var(--shadow);overflow:hidden}
.watch-top{min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:15px 22px;gap:12px}
.watch-logo{display:flex;align-items:center;gap:10px;font-weight:890;font-size:18px;letter-spacing:-.045em}
.watch-logo__icon{background:linear-gradient(125deg,#f8577a,#d53069);display:grid;place-items:center;width:40px;height:40px;border-radius:11px;color:#fff;font-size:21px;box-shadow:0 8px 18px #f03c653a}
.watch-logo small{font-size:8px;color:#8191a7;letter-spacing:.15em;display:block;margin-top:1px}
.watch-state{color:#7b8b9d;display:flex;align-items:center;gap:9px;background:#f3f6fa;border:1px solid #e5eaf2;border-radius:30px;padding:7px 12px;font-size:11px;font-weight:760;white-space:nowrap}
.watch-state__dot{width:8px;height:8px;background:#e2a657;box-shadow:0 0 0 4px #f5b96118;border-radius:50%;display:inline-block}
.watch-state__dot.online{background:#28b685;box-shadow:0 0 0 4px #50ceae25}
.watch-state__dot.down{background:#eb5c7c;box-shadow:0 0 0 4px #f16d8724}
.player-frame{position:relative;background:#04070d;aspect-ratio:16/9;max-height:min(66vh,900px);display:grid;place-items:center;isolation:isolate}
video{display:block;width:100%;height:100%;aspect-ratio:16/9;background:#04070d;object-fit:contain;position:relative;z-index:1}
.player-placeholder{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 51% 37%,#223149,#05080f 75%);color:#f0f3fa;padding:22px;pointer-events:none}
.player-placeholder.hidden{display:none}
.player-placeholder__icon{width:74px;height:74px;display:grid;place-items:center;border:1px solid #42546c;border-radius:22px;background:#ffffff0d;color:#f78da6;margin-bottom:16px;box-shadow:0 0 60px #f33e6530}
.player-placeholder__icon svg{width:34px;height:34px}
.player-placeholder strong{font-weight:830;letter-spacing:-.03em;font-size:clamp(17px,2.5vw,25px)}
.player-placeholder p{color:#b3c0d4;max-width:310px;font-size:12px;line-height:1.7;margin:8px 0 0}
.playing-summary{padding:21px 25px 11px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.playing-summary__kicker{font-size:10px;color:#df4a6c;font-weight:850;letter-spacing:.14em}
.playing-summary h1{font-size:clamp(18px,2.4vw,29px);letter-spacing:-.045em;line-height:1.15;margin:6px 0;font-weight:870}
.playing-summary p{font-size:12px;color:#728299;margin:6px 0;min-height:16px}
.playing-summary__live{display:flex;align-items:center;gap:7px;color:#d63761;background:#ffeff3;border:1px solid #f9ced9;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:840;letter-spacing:.08em;white-space:nowrap}
.playing-summary__dot{width:6px;height:6px;background:#f0456c;border-radius:50%}
.watch-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:6px 25px 21px}
.watch-btn{border:1px solid #d6dfec;color:#2c405b;background:#f5f7fb;border-radius:11px;padding:11px 16px;font-size:12px;font-weight:800;min-height:43px}
.watch-btn:hover{background:#eaf0f8}
.watch-btn--primary{border-color:#f1748f;color:#fff;background:linear-gradient(120deg,#f25575,#d42f62);box-shadow:0 7px 19px #e7406730}
.watch-btn--primary:hover{background:#e63a67}
.watch-help{font-size:11px;line-height:1.6;color:#8692a7;padding:14px 25px 17px;border-top:1px solid #edf1f8}
.channels-panel{background:var(--white);min-width:0;border:1px solid #e1e7f0;box-shadow:var(--shadow);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;max-height:calc(100dvh - 32px);min-height:520px}
.channels-header{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:23px 18px 17px}
.channels-header__kicker{color:#d94671;letter-spacing:.16em;font-size:9px;font-weight:820}
.channels-header h2{font-size:21px;letter-spacing:-.055em;font-weight:880;line-height:1.2;margin:7px 0 0}
.channels-header h2 span{color:#ef4974}
.count-pill{display:flex;align-items:center;justify-content:center;border-radius:30px;color:#5f7390;background:#f0f4fb;border:1px solid #e4eaf4;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap}
.search-wrap{display:flex;align-items:center;margin:0 17px;gap:9px;border:1px solid #dbe4f0;background:#f7f9fc;border-radius:12px;padding:10px 13px;color:#8d9cb0}
.search-wrap:focus-within{border-color:#eb6c8d;box-shadow:0 0 0 3px #f0446d0c}
.search-wrap svg{width:17px;height:17px}
.search-wrap input{background:transparent;color:#1e3552;border:0;outline:0;flex:1;min-width:0;font-size:12px}
.search-wrap input::placeholder{color:#8291a7}
.channel-groups{display:flex;align-items:center;gap:5px;padding:14px 16px 12px;overflow-x:auto;scrollbar-width:none;flex-shrink:0}
.channel-groups::-webkit-scrollbar{display:none}
.category-chip{padding:8px 12px;border:1px solid #e2e9f1;border-radius:999px;background:#f7f9fc;color:#60718a;white-space:nowrap;font-weight:780;font-size:11px}
.category-chip:hover{background:#edf2f8}
.category-chip.active{background:#ffecf1;border-color:#ffc0d2;color:#d62f5d}
.channel-list{overflow:auto;flex:1;min-height:200px;padding:2px 13px 10px;scrollbar-width:thin;scrollbar-color:#c3d1e1 #f5f8fc}
.channel-item{width:100%;display:flex;align-items:center;gap:10px;background:#fff;color:#213752;border:1px solid transparent;border-bottom-color:#eef1f6;padding:12px 11px;text-align:left;border-radius:10px;min-height:58px}
.channel-item:hover,.channel-item:focus-visible{background:#f5f8fc;border-color:#e3e9f3}
.channel-item.active{background:#fff1f4;border:1px solid #ffc7d4;color:#c32f56}
.channel-item__number{width:33px;height:33px;background:#f1f4fa;color:#697b90;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:840;flex:none}
.channel-item.active .channel-item__number{background:#fae0e8;color:#ce355c}
.channel-item__text{flex:1;display:block;min-width:0;font-size:12px;font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-item__arrow{font-size:11px;color:#8795aa}
.channel-item.active .channel-item__arrow{color:#db456e}
.list-message{color:#7a8ca1;text-align:center;padding:26px 18px;font-size:12px}
.channels-footer{display:flex;align-items:center;gap:8px;border-top:1px solid #edf1f5;padding:14px 18px;font-size:10px;color:#8291a4}
.channels-footer__dot{height:7px;width:7px;background:#e94d79;border-radius:50%}
@media(max-width:1050px){
 .tv-app{grid-template-columns:minmax(0,1fr) 290px;gap:12px;padding:11px}
 .channels-panel{max-height:calc(100dvh - 22px)}
 .channel-item{padding:11px 7px}
 .playing-summary{padding:15px 17px 10px}
 .watch-buttons{padding:4px 17px 18px}
 .watch-help{padding:12px 17px}
}
@media(max-width:760px){
 .tv-app{display:flex;flex-direction:column;padding:7px;gap:11px}
 .watch-panel{width:100%;border-radius:15px}
 .watch-top{min-height:61px;padding:9px 13px}
 .watch-logo{font-size:15px}.watch-logo__icon{width:37px;height:37px}
 .watch-state{font-size:10px}
 .player-frame{max-height:none;aspect-ratio:16/9}
 .player-placeholder__icon{height:56px;width:56px;border-radius:16px;margin-bottom:8px}
 .player-placeholder__icon svg{width:27px;height:27px}
 .player-placeholder strong{font-size:17px}
 .player-placeholder p{font-size:10px}
 .playing-summary{padding:14px 13px 8px}
 .playing-summary h1{font-size:19px}
 .playing-summary p{font-size:11px}
 .watch-buttons{padding:5px 13px 11px;gap:6px}
 .watch-btn{font-size:11px;min-height:38px;padding:9px 11px;flex:1}
 .watch-help{font-size:10px;padding:9px 13px}
 .channels-panel{max-height:none;min-height:310px;border-radius:15px;width:100%}
 .channels-header{padding:16px 14px 12px}
 .channel-groups{padding:11px 13px}
 .search-wrap{margin:0 13px}
 .channel-list{max-height:50dvh;min-height:150px;padding:0 10px 8px}
 .channel-item{min-height:52px;padding:9px}
 .channels-footer{padding:12px 14px}
}
@media(max-width:370px){
 .watch-logo small{font-size:7px}.watch-state{font-size:9px;padding:6px 9px}
 .player-placeholder p{max-width:230px}
 .watch-btn{font-size:10px;padding:8px}
 .channels-header h2{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
 *{animation:none!important;scroll-behavior:auto!important;transition:none!important}
}
