/* colour themes: Admin → Streaming → Look (dark, white, green, blue, maroon); visitors can switch light/dark with ☀/🌙 */
body.tv, .tvband { --tv-bg:#151515; --tv-nav:#1b1b1b; --tv-card:#1d1d1d; --tv-card2:#262626; --tv-line:#2e2e2e; --tv-text:#f2f2f2; --tv-strong:#fff; --tv-muted:#b4b4b4; --tv-accent:#e53935; --tv-accent2:#ff6f60; --tv-hl:#2b1414; }
body.tv.tv-light { --tv-bg:#f5f7f6; --tv-nav:#ffffff; --tv-card:#ffffff; --tv-card2:#eef2f0; --tv-line:#dfe5e2; --tv-text:#1b1f24; --tv-strong:#111; --tv-muted:#5f6b72; --tv-accent:#d32f2f; --tv-accent2:#c62828; --tv-hl:#fdecea; }
body.tv.tv-green { --tv-bg:#0d221c; --tv-nav:#10291f; --tv-card:#143328; --tv-card2:#1b4033; --tv-line:#24503f; --tv-text:#eef7f2; --tv-strong:#fff; --tv-muted:#a9c9bb; --tv-accent:#d39a3d; --tv-accent2:#f0b85a; --tv-hl:#2c3a1c; }
body.tv.tv-blue { --tv-bg:#0b1630; --tv-nav:#0f1d3d; --tv-card:#13244a; --tv-card2:#1a2f5c; --tv-line:#24407a; --tv-text:#eef3ff; --tv-strong:#fff; --tv-muted:#a9b9dc; --tv-accent:#ff5252; --tv-accent2:#ff8a80; --tv-hl:#2a1c3a; }
body.tv.tv-maroon { --tv-bg:#1f0b0e; --tv-nav:#2a0f13; --tv-card:#331419; --tv-card2:#401a20; --tv-line:#5a2530; --tv-text:#fff2f3; --tv-strong:#fff; --tv-muted:#d5aeb4; --tv-accent:#f5b400; --tv-accent2:#ffd54f; --tv-hl:#4a2a10; }
body.tv.tv-light .chl-word { text-shadow:2px 2px 0 #ffcc80; } body.tv.tv-light .sitenav { box-shadow:0 2px 14px rgba(0,0,0,.07); }
body.tv.tv-light .sitenav nav > a.on { color:var(--green); } body.tv.tv-light .brand { color:var(--dark); }
.themebtn { position:fixed; right:18px; bottom:140px; z-index:45; width:44px; height:44px; border-radius:50%; border:1px solid var(--tv-line); background:var(--tv-card); color:var(--tv-text); font-size:20px; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.25); }
/* Streaming pages (dark, TV style): live channel cards, short-video row, channel player, vertical watch feed. */
body.tv { background:var(--tv-bg); color:var(--tv-text); }
body.tv .sitenav { background:var(--tv-nav); box-shadow:0 1px 0 var(--tv-card2); } body.tv .sitenav nav > a, body.tv .sitenav summary { color:var(--tv-muted); }
body.tv .sitenav nav > a.on { color:var(--tv-strong); font-weight:700; } body.tv .sitenav nav > a.on::after { background:var(--tv-accent); }
body.tv .brand { color:var(--tv-strong); } body.tv .more > div { background:var(--tv-card); border-color:var(--tv-line); } body.tv .more > div a { color:var(--tv-text); } body.tv .more > div a:hover { background:var(--tv-card2); }
body.tv .burger { color:var(--tv-strong); border-color:var(--tv-line); } body.tv .hint, body.tv .st { color:var(--tv-muted); }
body.tv .newsband { margin-top:0; }
.tvsec { padding:34px 0; border-bottom:1px solid var(--tv-card2); }
.tvh { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 18px; }
.tvh h2 { margin:0; font-size:22px; display:flex; align-items:center; gap:10px; } .tvh h2 .dot { width:10px; height:10px; border-radius:50%; background:var(--tv-accent); box-shadow:0 0 0 4px rgba(229,57,53,.2); animation:pulse 1.6s infinite; }
.tvh h2.caps { font-size:17px; letter-spacing:3px; text-transform:uppercase; color:var(--tv-muted); font-weight:600; }
@keyframes pulse { 50% { box-shadow:0 0 0 8px rgba(229,57,53,0); } }
.arrows { display:flex; gap:10px; } .arrows button { width:46px; height:46px; border-radius:50%; border:1px solid var(--tv-line); background:transparent; color:var(--tv-strong); font-size:20px; cursor:pointer; }
.arrows button:hover { border-color:var(--tv-strong); }

/* channel cards */
.chrow { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,280px); gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; scrollbar-width:thin; }
.chc { scroll-snap-align:start; background:var(--tv-card); border:1px solid var(--tv-line); border-radius:14px; padding:14px; text-decoration:none; color:var(--tv-text); display:block; transition:.15s; }
.chc:hover, .chc.on { border-color:var(--tv-accent); } .chc.on { box-shadow:0 0 0 2px rgba(229,57,53,.35); }
.chc-art { position:relative; aspect-ratio:1; border-radius:10px; background:var(--tv-card2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.chc-cover { width:100%; height:100%; object-fit:cover; }
.live-pill { position:absolute; right:10px; bottom:10px; background:#e53935; color:#fff; border-radius:999px; padding:4px 12px; font:600 13px Poppins; display:flex; align-items:center; gap:6px; }
.live-pill i { width:8px; height:8px; border-radius:50%; background:#fff; animation:blink 1.2s infinite; } @keyframes blink { 50% { opacity:.3; } }
.radio-pill { position:absolute; left:10px; top:10px; background:rgba(0,0,0,.6); color:#fff; border-radius:999px; padding:3px 10px; font-size:12px; }
.chl { display:flex; flex-direction:column; align-items:center; gap:0; width:80%; } .chl img { max-width:100%; max-height:110px; object-fit:contain; }
.chl-word { font:900 clamp(20px,2.1vw,27px)/1 Poppins; max-width:100%; overflow:hidden; color:#b71c1c; letter-spacing:-1px; text-shadow:3px 3px 0 #ef6c00; }
.chl-strip { display:block; width:100%; color:#fff; text-align:center; font:700 13px Poppins; padding:4px 6px; margin-top:4px; letter-spacing:.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chc-b { display:flex; gap:12px; align-items:center; margin-top:14px; min-width:0; }
.chl.sm { width:64px; height:52px; flex:none; background:var(--tv-card2); border-radius:8px; padding:6px; justify-content:center; } .chl.sm img { max-height:30px; }
.chl.sm .chl-word { font-size:10px; text-shadow:1px 1px 0 #ef6c00; } .chl.sm .chl-strip { font-size:6px; padding:1px 2px; margin-top:2px; }
.chc-b span { min-width:0; } .chc-b small { display:block; color:var(--tv-muted); font-size:12px; letter-spacing:.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chc-b b { display:block; font-weight:500; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* short videos row */
.shrow { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(200px,1fr); gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; }
.shrow::-webkit-scrollbar { display:none; }
@media (min-width:1100px) { .shrow { grid-auto-columns:calc((100% - 72px) / 5); } }
.shc { position:relative; scroll-snap-align:start; aspect-ratio:9/16; border-radius:6px; overflow:hidden; background:#000; display:block; color:#fff; text-decoration:none; }
.shc img, .shc video { width:100%; height:100%; object-fit:cover; display:block; }
.shc-play { position:absolute; left:14px; top:14px; width:42px; height:42px; border-radius:50%; border:2.5px solid #fff; display:flex; align-items:center; justify-content:center; font-size:15px; padding-left:3px; background:rgba(0,0,0,.25); }
.shc-dur { position:absolute; right:12px; top:16px; background:rgba(0,0,0,.45); border-radius:999px; padding:4px 12px; font-size:14px; }
.shc-t { position:absolute; left:0; right:0; bottom:0; padding:40px 12px 12px; background:linear-gradient(transparent,rgba(0,0,0,.85)); }
.shc-t b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14.5px; font-weight:600; } .shc-t small { color:#cfcfcf; font-size:12px; }
.shc:hover .shc-play { background:#e53935; border-color:#e53935; }
.vrow { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:18px; }
.vrow .mcard, .vrow > a { color:var(--tv-text); }

/* channel player page */
.chwrap { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:22px; padding:24px 0 34px; }
@media (max-width:980px) { .chwrap { grid-template-columns:1fr; } }
.player { position:relative; aspect-ratio:16/9; background:#000; border-radius:12px; overflow:hidden; }
.player iframe, .player video { position:absolute; inset:0; width:100%; height:100%; border:0; }
.player .radio { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; background:radial-gradient(circle,#2a2a2a,#0e0e0e); }
.player .radio audio { width:min(420px,90%); } .ch-err { position:absolute; left:0; right:0; bottom:0; margin:0; background:rgba(0,0,0,.8); padding:12px; text-align:center; }
.chinfo { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-top:16px; flex-wrap:wrap; }
.chinfo h1 { margin:0; font-size:24px; } .chinfo .now { color:var(--tv-muted); margin:4px 0 0; } .chinfo .now b { color:var(--tv-accent2); }
.tvbtn { display:inline-flex; align-items:center; gap:8px; background:var(--tv-card2); color:var(--tv-strong); border:1px solid var(--tv-line); border-radius:999px; padding:9px 18px; text-decoration:none; font:500 14px Poppins; cursor:pointer; }
.tvbtn:hover { border-color:var(--tv-strong); } .tvbtn.wa { background:#25d366; border-color:#25d366; color:var(--tv-strong); }
.guide { background:var(--tv-card); border:1px solid var(--tv-line); border-radius:14px; padding:16px; }
.guide h2 { margin:0 0 12px; font-size:17px; } .guide ol { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; max-height:430px; overflow:auto; }
.guide li { display:flex; gap:12px; padding:9px 10px; border-radius:8px; font-size:14px; } .guide li time { color:var(--tv-muted); min-width:94px; font-variant-numeric:tabular-nums; }
.guide li.now { background:var(--tv-hl); border-left:3px solid var(--tv-accent); } .guide li.now b::after { content:" · NOW"; color:var(--tv-accent2); font-size:11px; font-weight:700; } .guide li.past { opacity:.5; }

/* vertical watch feed */
body.watch { background:#000; overflow:hidden; }
.wfeed { height:100dvh; overflow-y:auto; scroll-snap-type:y mandatory; scrollbar-width:none; } .wfeed::-webkit-scrollbar { display:none; }
.wslide { height:100dvh; scroll-snap-align:start; scroll-snap-stop:always; position:relative; display:flex; align-items:center; justify-content:center; }
.wbox { position:relative; height:100%; aspect-ratio:9/16; max-width:100vw; background:#000; }
.wbox video, .wbox iframe { width:100%; height:100%; object-fit:contain; border:0; display:block; background:#000; }
.wcap { position:absolute; left:0; right:72px; bottom:0; padding:60px 16px 22px; background:linear-gradient(transparent,rgba(0,0,0,.75)); color:#fff; pointer-events:none; }
.wcap a { pointer-events:auto; color:#fff; font-weight:600; text-decoration:none; } .wcap p { margin:6px 0 0; font-size:15px; } .wcap small { color:#cfcfcf; }
.wside { position:absolute; right:10px; bottom:90px; display:flex; flex-direction:column; gap:18px; align-items:center; }
.wside button, .wside a { background:none; border:0; color:#fff; display:flex; flex-direction:column; align-items:center; gap:4px; font:600 12px Poppins; cursor:pointer; text-decoration:none; }
.wside .ic { width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; font-size:22px; }
.wside button.on .ic { background:#e53935; }
.wtop { position:fixed; top:0; left:0; right:0; z-index:20; display:flex; justify-content:space-between; align-items:center; padding:14px 16px; background:linear-gradient(rgba(0,0,0,.6),transparent); }
.wtop a, .wtop button { color:#fff; text-decoration:none; font:600 15px Poppins; background:none; border:0; cursor:pointer; }
.wtap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:64px; color:rgba(255,255,255,.85); pointer-events:none; opacity:0; transition:opacity .2s; } .wtap.show { opacity:1; }
.wend { color:#fff; text-align:center; padding:40px; }
/* dark streaming band on light pages */
.tvband { background:#151515; color:#f2f2f2; padding:40px 0; margin-top:34px; }
.tvband .tvh h2 { color:#fff; }
body.watch { font-family:Poppins,Arial,sans-serif; }
.lib-dark .mc-t { color:var(--tv-text,#f2f2f2); } .lib-dark .mc-by { color:var(--tv-muted,#a8a8a8); }
/* videos / music rows and the updates feed on streaming pages */
.mrow { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(200px,230px); gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; padding-bottom:4px; }
.mrow::-webkit-scrollbar { display:none; } .mrow > * { scroll-snap-align:start; }
.tvfeed { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:16px; align-items:start; }
body.tv .tvfeed .post { background:var(--tv-card); border-color:var(--tv-line); color:var(--tv-text); }
body.tv .tvfeed .post a { color:var(--tv-accent2); } body.tv .tvfeed .post .hint { color:var(--tv-muted); }
body.tv .tvfeed .pact button { background:var(--tv-card2); border-color:var(--tv-line); color:var(--tv-text); } body.tv .tvfeed .pact .plike.on { background:#5c1f2a; color:#ff8a9a; }
body.tv .tvfeed .cmt { background:var(--tv-card2); } body.tv .tvfeed .cform input { background:var(--tv-card2); border-color:var(--tv-line); color:var(--tv-text); }
body.tv .lib-dark .mc { color:var(--tv-text); }
