/* ============ Live TV Player — reference-style layout ============ */
.livetv-app{
  color:#fff;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  width:100%;max-width:100%;margin:0 auto;padding:18px;box-sizing:border-box;
  background:
    radial-gradient(circle at 12% 88%, rgba(255,140,40,.55), transparent 42%),
    radial-gradient(circle at 92% 78%, rgba(255,160,60,.55), transparent 45%),
    radial-gradient(circle at 78% 22%, rgba(255,120,30,.35), transparent 40%),
    linear-gradient(180deg,#1a0e07 0%, #0d0705 100%);
  border-radius:10px;position:relative;
}
.livetv-topbar{display:flex;gap:8px;padding:0 0 12px 0;background:transparent;border:0}
.livetv-topbar input,.livetv-topbar select{flex:1;padding:9px 12px;background:rgba(0,0,0,.35);color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:6px;font-size:14px}
.livetv-topbar input::placeholder{color:rgba(255,255,255,.55)}

/* ------------ Body: flex layout so playlist can be placed on any side ------------ */
.livetv-body{display:flex;flex-direction:column;gap:16px}
.livetv-body > .livetv-divider{order:99}

/* Player wrap: fixed size, never changes regardless of playlist position */
.livetv-player-wrap{flex:0 0 auto;width:100%}

/* Playlist panel default sizing */
.livetv-panel{flex:0 0 auto}

/* Side placements (left / right of player) — desktop only */
@media (min-width:900px){
  .livetv-pos-right .livetv-body,
  .livetv-pos-left  .livetv-body{flex-direction:row;align-items:stretch}
  .livetv-pos-left  .livetv-body{flex-direction:row-reverse}
  .livetv-pos-right .livetv-player-wrap,
  .livetv-pos-left  .livetv-player-wrap{flex:0 0 70%;width:70%}
  .livetv-pos-right .livetv-panel,
  .livetv-pos-left  .livetv-panel{flex:0 0 30%;width:30%;min-height:0}
}

/* Top / bottom placements */
.livetv-pos-top    .livetv-body{flex-direction:column-reverse}
.livetv-pos-bottom .livetv-body{flex-direction:column}

/* ------------ Full-page mode: app fills the entire viewport ------------ */
.livetv-fullpage{min-height:100vh;max-width:none;margin:0;border-radius:0;padding:14px;display:flex;flex-direction:column}
.livetv-fullpage .livetv-body{flex:1;min-height:0}
@media (min-width:900px){
  .livetv-fullpage.livetv-pos-right .livetv-player-wrap,
  .livetv-fullpage.livetv-pos-left  .livetv-player-wrap{height:100%}
  .livetv-fullpage.livetv-pos-right .livetv-video,
  .livetv-fullpage.livetv-pos-left  .livetv-video{height:100%;aspect-ratio:auto;object-fit:contain}
  .livetv-fullpage .livetv-list{max-height:none}
}

/* ------------ Player wrap ------------ */
.livetv-player-wrap{position:relative;background:#000;border-radius:10px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04)}
.livetv-video{width:100%;aspect-ratio:16/9;background:#000;display:block}
.livetv-iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.livetv-now{padding:10px 14px;font-size:13px;color:#ddd;background:rgba(0,0,0,.7);position:absolute;left:0;right:0;bottom:0;pointer-events:none;opacity:0;transition:opacity .2s}
.livetv-player-wrap:hover .livetv-now{opacity:1}

/* Dashed teal separator under player */
.livetv-divider{grid-column:1 / -1;height:6px;background:
  repeating-linear-gradient(90deg, #2ea9ff 0 14px, transparent 14px 24px);
  border-radius:2px;margin-top:6px;opacity:.9}

/* ------------ Channel panel ------------ */
.livetv-panel{background:#fff;border-radius:10px;padding:10px;box-shadow:0 12px 30px rgba(0,0,0,.35);color:#111;display:flex;flex-direction:column;gap:10px;min-height:400px}
.livetv-cats{display:flex;gap:6px;overflow-x:auto;padding:4px 2px;justify-content:center}
.livetv-cat{background:transparent;border:0;padding:8px 14px;border-radius:6px;font-weight:600;color:#333;cursor:pointer;white-space:nowrap;font-size:14px}
.livetv-cat.active{background:#f2f2f2;color:#000}
.livetv-list{list-style:none;margin:0;padding:8px 6px;display:grid;gap:12px;background:transparent;min-height:0}
.livetv-list li{background:#fff;border-radius:12px;box-shadow:0 3px 10px rgba(0,0,0,.10);padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;min-height:var(--ch-tile-min,160px);transition:transform .15s, box-shadow .15s;position:relative;overflow:hidden}
.livetv-list li::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg, rgba(240,240,240,.6) 0%, transparent 50%);pointer-events:none}
.livetv-list li:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.18)}
.livetv-list li.active{box-shadow:0 0 0 2px #ff6a1a, 0 8px 18px rgba(0,0,0,.18)}
.livetv-list li img{width:var(--ch-logo,68%);max-width:82%;max-height:62%;object-fit:contain;position:relative;z-index:1}
.livetv-list li .livetv-cname{display:block;position:relative;z-index:1;font-size:var(--ch-name-size,13px);color:var(--ch-name-color,#111);font-weight:600;text-align:center;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
.livetv-list li.livetv-noname .livetv-cname{display:none}
.livetv-list li.livetv-noname img{max-height:72%}

/* Side placements (right/left): 4 rows visible, scroll horizontally for more */
.livetv-pos-right .livetv-list,
.livetv-pos-left  .livetv-list{
  grid-auto-flow:column;
  grid-template-rows:repeat(4, minmax(var(--ch-tile-min,160px), 1fr));
  grid-auto-columns:minmax(0, 1fr);
  overflow-x:auto;overflow-y:hidden;
  height:100%;
}
/* Top / bottom placements: single horizontal row, scroll left/right */
.livetv-pos-top    .livetv-list,
.livetv-pos-bottom .livetv-list{
  grid-auto-flow:column;
  grid-template-rows:minmax(var(--ch-tile-min,160px), auto);
  grid-auto-columns:minmax(140px, 1fr);
  overflow-x:auto;overflow-y:hidden;
}
/* Mobile fallback: stacked grid regardless of position */
@media (max-width:899px){
  .livetv-list{
    grid-auto-flow:row;
    grid-template-columns:repeat(2, 1fr);
    grid-template-rows:none;
    grid-auto-rows:auto;
    overflow-x:visible;overflow-y:auto;
    max-height:60vh;
  }
}

/* Shrink player when L-Band is active (like real TV) */
.livetv-player-wrap.livetv-lband-shrink-bottom .livetv-video,
.livetv-player-wrap.livetv-lband-shrink-bottom .livetv-iframe{transform:scale(.82);transform-origin:center top;transition:transform .3s ease}
.livetv-player-wrap.livetv-lband-shrink-top .livetv-video,
.livetv-player-wrap.livetv-lband-shrink-top .livetv-iframe{transform:scale(.82);transform-origin:center bottom;transition:transform .3s ease}

/* ------------ Overlay layer (ticker/watermark/ads/editor) — always on top ------------ */
.livetv-overlay-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.livetv-overlay-layer a,.livetv-overlay-layer .livetv-ad-x,.livetv-overlay-layer .livetv-ad{pointer-events:auto}

/* Generic graphics */
.livetv-gfx{position:absolute;padding:4px 10px;font-weight:600;line-height:1.2;max-width:100%}
.livetv-gfx.pos-top{top:8px;left:8px;right:8px;text-align:center}
.livetv-gfx.pos-bottom{bottom:8px;left:8px;right:8px;text-align:center}
.livetv-gfx.pos-top-left{top:8px;left:8px}
.livetv-gfx.pos-top-right{top:8px;right:8px}
.livetv-gfx.pos-bottom-left{bottom:8px;left:8px}
.livetv-gfx.pos-bottom-right{bottom:8px;right:8px}
.livetv-gfx.pos-center{top:50%;left:50%;transform:translate(-50%,-50%)}
.livetv-gfx.pos-fullscreen{inset:0;display:flex;align-items:center;justify-content:center;font-size:32px}

/* Ticker / News Headline */
.livetv-gfx.livetv-ticker{padding:0;left:0;right:0;top:auto;bottom:0;background:rgba(0,0,0,.72);display:flex;align-items:center;overflow:hidden;white-space:nowrap;color:#fff;font-size:15px}
.livetv-gfx.livetv-ticker.pos-top{top:0;bottom:auto}
.livetv-gfx.livetv-ticker.pos-center{top:50%;bottom:auto;transform:translateY(-50%)}
.livetv-ticker-label{background:#dc2626;color:#fff;padding:6px 12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;flex-shrink:0}
.livetv-ticker-viewport{flex:1;overflow:hidden;position:relative;padding:6px 0}
.livetv-ticker-inner{display:inline-block;padding-left:100%;will-change:transform}
.livetv-ticker-rtl .livetv-ticker-inner{animation:livetv-marquee-rtl linear infinite}
.livetv-ticker-ltr .livetv-ticker-inner{animation:livetv-marquee-ltr linear infinite;padding-left:0;padding-right:100%}
@keyframes livetv-marquee-rtl{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
@keyframes livetv-marquee-ltr{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}

.livetv-gfx img{max-width:100%;max-height:100%;display:block}
.livetv-gfx-live_indicator .livetv-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e11;margin-right:6px;animation:livetv-pulse 1s infinite}
@keyframes livetv-pulse{50%{opacity:.3}}

/* Watermark / brand logo animations */
.livetv-brand-logo{max-width:14%;max-height:14%;width:auto;height:auto;padding:0;transition:opacity .3s;pointer-events:none}
.livetv-brand-watermark{max-width:12%;max-height:12%;width:auto;height:auto;padding:0;pointer-events:none}
.livetv-anim-none{}
.livetv-anim-pulse{animation:livetv-wm-pulse 2.4s ease-in-out infinite}
.livetv-anim-float{animation:livetv-wm-float 4s ease-in-out infinite}
.livetv-anim-fade{animation:livetv-wm-fade 3s ease-in-out infinite}
.livetv-anim-bounce{animation:livetv-wm-bounce 2s ease-in-out infinite}
.livetv-anim-spin{animation:livetv-wm-spin 8s linear infinite}
.livetv-anim-glow{animation:livetv-wm-glow 2.2s ease-in-out infinite}
@keyframes livetv-wm-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes livetv-wm-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes livetv-wm-fade{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes livetv-wm-bounce{0%,100%{transform:translateY(0)}30%{transform:translateY(-10px)}60%{transform:translateY(0)}}
@keyframes livetv-wm-spin{100%{transform:rotate(360deg)}}
@keyframes livetv-wm-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(255,255,255,0))}50%{filter:drop-shadow(0 0 10px rgba(255,255,255,.9))}}

/* Ads */
.livetv-ad{position:absolute;pointer-events:auto;box-shadow:0 6px 24px rgba(0,0,0,.4);animation:livetv-ad-in .35s ease-out;z-index:6}
@keyframes livetv-ad-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.livetv-ad img,.livetv-ad video{display:block;max-width:100%;max-height:100%;width:100%;height:auto}
.livetv-ad a{display:block;line-height:0}
.livetv-ad-tag{position:absolute;top:4px;left:4px;background:rgba(0,0,0,.72);color:#fff;font-size:10px;letter-spacing:.08em;padding:2px 6px;border-radius:3px;text-transform:uppercase;z-index:2}
.livetv-ad-bottom_banner{left:0;right:0;bottom:0;text-align:center;background:rgba(0,0,0,.65);padding:6px}
.livetv-ad-top_banner{left:0;right:0;top:0;text-align:center;background:rgba(0,0,0,.65);padding:6px}
.livetv-ad-corner_banner{right:12px;bottom:72px;max-width:28%;background:#000;border-radius:6px;overflow:hidden}
.livetv-ad-l_band{left:0;top:8%;bottom:8%;width:14%;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center}
.livetv-ad-overlay,.livetv-ad-popup{top:50%;left:50%;transform:translate(-50%,-50%);max-width:60%;max-height:70%;background:#000;border:2px solid #fff;border-radius:6px;overflow:hidden}
.livetv-ad-x{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.85);color:#fff;border:0;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:16px;line-height:22px;z-index:3}

/* ------------ Fullscreen: fullscreen the whole app; hide chrome; stretch player ------------ */
.livetv-fs-btn{position:absolute;top:8px;right:8px;z-index:20;background:rgba(0,0,0,.55);color:#fff;border:0;border-radius:4px;padding:6px 10px;font-size:16px;cursor:pointer;line-height:1;pointer-events:auto}
.livetv-fs-btn:hover{background:rgba(0,0,0,.85)}
.livetv-app:fullscreen,.livetv-app:-webkit-full-screen{width:100vw;height:100vh;padding:0;border-radius:0;background:#000}
.livetv-app:fullscreen .livetv-topbar,.livetv-app:fullscreen .livetv-panel,.livetv-app:fullscreen .livetv-divider,
.livetv-app:-webkit-full-screen .livetv-topbar,.livetv-app:-webkit-full-screen .livetv-panel,.livetv-app:-webkit-full-screen .livetv-divider{display:none !important}
.livetv-app:fullscreen .livetv-body,.livetv-app:-webkit-full-screen .livetv-body{grid-template-columns:1fr !important;height:100vh;gap:0;margin:0}
.livetv-app:fullscreen .livetv-player-wrap,.livetv-app:-webkit-full-screen .livetv-player-wrap{width:100vw;height:100vh;border-radius:0;display:flex;align-items:center;justify-content:center}
.livetv-app:fullscreen .livetv-video,.livetv-app:-webkit-full-screen .livetv-video{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.livetv-app:fullscreen .livetv-iframe,.livetv-app:-webkit-full-screen .livetv-iframe{width:100%;height:100%}
.livetv-app:fullscreen .livetv-overlay-layer,.livetv-app:-webkit-full-screen .livetv-overlay-layer{inset:0;z-index:2147483647}

/* ============ Ticker transparent variant ============ */
.livetv-ticker-transparent{background:transparent !important}
.livetv-ticker-transparent .livetv-ticker-label{background:rgba(220,38,38,.9)}

/* ============ L-Band overlays ============ */
.livetv-lband{position:absolute;pointer-events:auto;z-index:8;display:flex;align-items:center;overflow:visible;box-shadow:0 4px 14px rgba(0,0,0,.3);background:var(--lband-bg,#000);color:var(--lband-fg,#fff)}
.livetv-lband > *{position:relative;z-index:1}
.livetv-lband img{max-width:100%;max-height:100%;display:block}
.livetv-lband-label{background:#dc2626;color:#fff;padding:6px 12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;flex-shrink:0;align-self:stretch;display:flex;align-items:center}
.livetv-lband-text{padding:8px 14px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* L shapes: bottom bar + side leg via ::before */
.livetv-lband-bottom-left{left:0;right:0;bottom:0;height:14%;min-height:60px}
.livetv-lband-bottom-left::before{content:"";position:absolute;left:0;bottom:100%;height:260%;width:18%;background:var(--lband-bg,#000);pointer-events:auto}
.livetv-lband-bottom-right{left:0;right:0;bottom:0;height:14%;min-height:60px}
.livetv-lband-bottom-right::before{content:"";position:absolute;right:0;bottom:100%;height:260%;width:18%;background:var(--lband-bg,#000);pointer-events:auto}
.livetv-lband-top-left{left:0;right:0;top:0;height:14%;min-height:60px}
.livetv-lband-top-left::before{content:"";position:absolute;left:0;top:100%;height:260%;width:18%;background:var(--lband-bg,#000);pointer-events:auto}
.livetv-lband-top-right{left:0;right:0;top:0;height:14%;min-height:60px}
.livetv-lband-top-right::before{content:"";position:absolute;right:0;top:100%;height:260%;width:18%;background:var(--lband-bg,#000);pointer-events:auto}
.livetv-lband-full-bottom{left:0;right:0;bottom:0;height:12%;min-height:56px}
.livetv-lband.livetv-ticker{padding:0}
.livetv-lband.livetv-ticker .livetv-ticker-viewport{flex:1;overflow:hidden;position:relative}
.livetv-lband.livetv-ticker .livetv-ticker-inner{display:inline-block;padding-left:100%;white-space:nowrap}

/* ============ Player Themes ============ */
/* Classic Dark */
.livetv-app.livetv-theme-classic-dark{background:#0b0d10;color:#f2f4f8}
.livetv-theme-classic-dark .livetv-panel{background:#161a20;color:#eee}
.livetv-theme-classic-dark .livetv-cat{color:#ccc}
.livetv-theme-classic-dark .livetv-cat.active{background:#2a2f3a;color:#fff}
.livetv-theme-classic-dark .livetv-list li{background:#1e232b;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.livetv-theme-classic-dark .livetv-divider{background:repeating-linear-gradient(90deg,#3f4a5a 0 14px,transparent 14px 24px)}

/* Sports Pro (reference image) — default */
.livetv-theme-sports-pro{}

/* Cinema Black */
.livetv-app.livetv-theme-cinema-black{background:#000;color:#fff}
.livetv-theme-cinema-black .livetv-panel{background:#0a0a0a;color:#eaeaea;border:1px solid #222}
.livetv-theme-cinema-black .livetv-list li{background:#111;box-shadow:none;border:1px solid #222}
.livetv-theme-cinema-black .livetv-divider{background:repeating-linear-gradient(90deg,#333 0 14px,transparent 14px 24px)}

/* Neon Glow */
.livetv-app.livetv-theme-neon-glow{background:radial-gradient(circle at 20% 20%,#5f2d82,#08061a 60%);color:#e0ffff}
.livetv-theme-neon-glow .livetv-panel{background:#0d0b28;color:#e0ffff;box-shadow:0 0 30px rgba(0,255,255,.15)}
.livetv-theme-neon-glow .livetv-list li{background:#141039;box-shadow:0 0 12px rgba(255,0,255,.25)}
.livetv-theme-neon-glow .livetv-list li.active{box-shadow:0 0 0 2px #00ffff,0 0 14px rgba(0,255,255,.6)}
.livetv-theme-neon-glow .livetv-cat.active{background:#ff00cc;color:#fff}
.livetv-theme-neon-glow .livetv-divider{background:repeating-linear-gradient(90deg,#00ffff 0 14px,transparent 14px 24px)}

/* News Room (Red) */
.livetv-app.livetv-theme-news-room{background:linear-gradient(180deg,#3a0000,#120000);color:#fff}
.livetv-theme-news-room .livetv-panel{background:#fff;color:#111}
.livetv-theme-news-room .livetv-list li{background:#f7f7f7}
.livetv-theme-news-room .livetv-list li.active{box-shadow:0 0 0 2px #dc2626,0 4px 10px rgba(0,0,0,.2)}
.livetv-theme-news-room .livetv-cat.active{background:#dc2626;color:#fff}
.livetv-theme-news-room .livetv-divider{background:repeating-linear-gradient(90deg,#dc2626 0 14px,transparent 14px 24px)}

/* Sky Blue */
.livetv-app.livetv-theme-sky-blue{background:linear-gradient(180deg,#dff3ff,#7cc9ff);color:#0b3a5b}
.livetv-theme-sky-blue .livetv-panel{background:#fff;color:#0b3a5b}
.livetv-theme-sky-blue .livetv-cat.active{background:#0284c7;color:#fff}
.livetv-theme-sky-blue .livetv-divider{background:repeating-linear-gradient(90deg,#0284c7 0 14px,transparent 14px 24px)}

/* Sunset */
.livetv-app.livetv-theme-sunset{background:linear-gradient(135deg,#ff512f,#f09819 60%,#dd2476);color:#fff}
.livetv-theme-sunset .livetv-panel{background:#fff;color:#3a1a00}
.livetv-theme-sunset .livetv-cat.active{background:#dd2476;color:#fff}
.livetv-theme-sunset .livetv-divider{background:repeating-linear-gradient(90deg,#fff 0 14px,transparent 14px 24px)}

/* Emerald */
.livetv-app.livetv-theme-emerald{background:linear-gradient(160deg,#022c22,#065f46 60%,#022c22);color:#e6fff4}
.livetv-theme-emerald .livetv-panel{background:#f0fdf4;color:#064e3b}
.livetv-theme-emerald .livetv-cat.active{background:#059669;color:#fff}
.livetv-theme-emerald .livetv-divider{background:repeating-linear-gradient(90deg,#10b981 0 14px,transparent 14px 24px)}

/* Royal Purple */
.livetv-app.livetv-theme-royal-purple{background:linear-gradient(180deg,#1a0033,#3b0764);color:#f3e8ff}
.livetv-theme-royal-purple .livetv-panel{background:#faf5ff;color:#3b0764}
.livetv-theme-royal-purple .livetv-cat.active{background:#7e22ce;color:#fff}
.livetv-theme-royal-purple .livetv-list li.active{box-shadow:0 0 0 2px #a855f7,0 4px 10px rgba(0,0,0,.2)}
.livetv-theme-royal-purple .livetv-divider{background:repeating-linear-gradient(90deg,#a855f7 0 14px,transparent 14px 24px)}

/* Minimal White */
.livetv-app.livetv-theme-minimal-white{background:#f6f7f9;color:#111}
.livetv-theme-minimal-white .livetv-topbar input,.livetv-theme-minimal-white .livetv-topbar select{background:#fff;color:#111;border:1px solid #ddd}
.livetv-theme-minimal-white .livetv-topbar input::placeholder{color:#888}
.livetv-theme-minimal-white .livetv-panel{background:#fff;color:#111;box-shadow:0 4px 20px rgba(0,0,0,.06)}
.livetv-theme-minimal-white .livetv-cat.active{background:#111;color:#fff}
.livetv-theme-minimal-white .livetv-divider{background:repeating-linear-gradient(90deg,#111 0 14px,transparent 14px 24px)}

/* Retro CRT */
.livetv-app.livetv-theme-retro-crt{background:#0a1a0a;color:#7fff7f;font-family:'VT323','Courier New',monospace}
.livetv-theme-retro-crt::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(0,0,0,.15) 0 2px,transparent 2px 4px);pointer-events:none;border-radius:10px}
.livetv-theme-retro-crt .livetv-panel{background:#0e2410;color:#7fff7f;border:1px solid #2a5}
.livetv-theme-retro-crt .livetv-list li{background:#0a1a0a;border:1px solid #2a5;box-shadow:none}
.livetv-theme-retro-crt .livetv-cat.active{background:#2a5;color:#000}
.livetv-theme-retro-crt .livetv-divider{background:repeating-linear-gradient(90deg,#7fff7f 0 14px,transparent 14px 24px)}

/* ============ Theme override variable wiring ============ */
.livetv-app{
  --livetv-accent:#ff6a1a;
  --livetv-bg:transparent;
  --livetv-text:#ffffff;
  --livetv-radius:10px;
  --livetv-control:rgba(0,0,0,.35);
  --livetv-font-size:14px;
  color:var(--livetv-text,#fff);
  border-radius:var(--livetv-radius,10px);
  font-size:var(--livetv-font-size,14px);
}
.livetv-app .livetv-list li.active{ box-shadow:0 0 0 2px var(--livetv-accent,#ff6a1a),0 8px 18px rgba(0,0,0,.18); }
.livetv-app .livetv-topbar input,
.livetv-app .livetv-topbar select{ background:var(--livetv-control,rgba(0,0,0,.35)); }

/* ============ 10 new player themes ============ */
.livetv-theme-midnight-aqua{ background:linear-gradient(160deg,#04121a 0%,#0a2a3f 60%,#0e4358 100%);}
.livetv-theme-midnight-aqua .livetv-list li.active{box-shadow:0 0 0 2px #22d3ee,0 8px 18px rgba(0,0,0,.4)}

.livetv-theme-aurora{ background:linear-gradient(135deg,#0f172a 0%,#1e293b 40%,#4c1d95 80%,#0891b2 100%);}
.livetv-theme-aurora .livetv-list li.active{box-shadow:0 0 0 2px #a855f7,0 8px 22px rgba(168,85,247,.35)}

.livetv-theme-sunset-blaze{ background:linear-gradient(180deg,#7c2d12 0%,#ea580c 55%,#facc15 100%);}
.livetv-theme-sunset-blaze .livetv-list li.active{box-shadow:0 0 0 2px #fde047,0 8px 18px rgba(0,0,0,.35)}

.livetv-theme-glass-mono{ background:radial-gradient(circle at 40% 20%,rgba(255,255,255,.10),transparent 60%),#111214; }
.livetv-theme-glass-mono .livetv-panel{background:rgba(255,255,255,.06);color:#fff;backdrop-filter:blur(14px)}
.livetv-theme-glass-mono .livetv-cat{color:#ddd}
.livetv-theme-glass-mono .livetv-cat.active{background:rgba(255,255,255,.14);color:#fff}
.livetv-theme-glass-mono .livetv-list li{background:rgba(255,255,255,.06);color:#fff}
.livetv-theme-glass-mono .livetv-list li .livetv-cname{color:#fff}

.livetv-theme-cinema-gold{ background:linear-gradient(180deg,#0a0a0a 0%,#1b1108 100%);}
.livetv-theme-cinema-gold .livetv-list li.active{box-shadow:0 0 0 2px #d4af37,0 10px 22px rgba(212,175,55,.25)}
.livetv-theme-cinema-gold .livetv-cat.active{background:#d4af37;color:#111}

.livetv-theme-stadium{ background:
  repeating-linear-gradient(90deg,#0b3d0b 0 60px,#0f4a0f 60px 120px);}
.livetv-theme-stadium .livetv-panel{background:#0e2a0e;color:#fff}
.livetv-theme-stadium .livetv-cat{color:#c9f7c9}
.livetv-theme-stadium .livetv-cat.active{background:#f97316;color:#111}
.livetv-theme-stadium .livetv-list li{background:#123c12;color:#fff}
.livetv-theme-stadium .livetv-list li .livetv-cname{color:#fff}

.livetv-theme-pastel-cloud{ background:linear-gradient(180deg,#fdf2f8 0%,#e0f2fe 100%);color:#111}
.livetv-theme-pastel-cloud .livetv-topbar input,
.livetv-theme-pastel-cloud .livetv-topbar select{background:#fff;color:#111;border-color:#e5e7eb}
.livetv-theme-pastel-cloud .livetv-list li.active{box-shadow:0 0 0 2px #f472b6,0 8px 18px rgba(0,0,0,.10)}

.livetv-theme-carbon-red{ background:linear-gradient(135deg,#111 0%,#1a1a1a 50%,#2a0a0a 100%);}
.livetv-theme-carbon-red .livetv-list li.active{box-shadow:0 0 0 2px #ef4444,0 8px 20px rgba(239,68,68,.35)}
.livetv-theme-carbon-red .livetv-cat.active{background:#ef4444;color:#fff}

.livetv-theme-oceanic{ background:linear-gradient(180deg,#0c4a6e 0%,#0284c7 50%,#38bdf8 100%);}
.livetv-theme-oceanic .livetv-list li.active{box-shadow:0 0 0 2px #ffffff,0 8px 18px rgba(0,0,0,.30)}

.livetv-theme-lavender{ background:linear-gradient(160deg,#312e81 0%,#7c3aed 100%);}
.livetv-theme-lavender .livetv-list li.active{box-shadow:0 0 0 2px #f5d0fe,0 8px 18px rgba(0,0,0,.30)}
.livetv-theme-lavender .livetv-cat.active{background:#e879f9;color:#111}

/* Video.js skin sits within our wrap fine; make sure it fills */
.livetv-video.video-js{width:100%!important;height:auto;aspect-ratio:16/9;}

/* ============ v1.38 — pre-play cover, post-play chrome, overlay video, error ============ */
.livetv-player-wrap{position:relative}
.livetv-overlay-layer{position:absolute;inset:0;pointer-events:none;z-index:5}
.livetv-overlay-layer > *{pointer-events:none}
.livetv-overlay-layer .livetv-ad,
.livetv-overlay-layer .livetv-ad-x,
.livetv-overlay-layer a,
.livetv-overlay-layer button{pointer-events:auto}
.livetv-video.video-js{z-index:1}
.video-js .vjs-control-bar{z-index:4}

/* --- Pre-play cover --- */
.livetv-cover{position:absolute;inset:0;z-index:8;display:none;overflow:hidden;background:#0a0a0a}
.livetv-state-idle .livetv-cover{display:block}
.livetv-cover-bg{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(28px) brightness(.35);transform:scale(1.08)}
.livetv-cover-inner{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px;color:#fff}
.livetv-cover-logo{max-width:180px;max-height:120px;object-fit:contain;filter:drop-shadow(0 6px 22px rgba(0,0,0,.6))}
.livetv-cover-logo[src=""],.livetv-cover-logo:not([src]){display:none}
.livetv-play-cta{
  width:96px;height:96px;border-radius:50%;border:0;cursor:pointer;
  background:radial-gradient(circle at 30% 30%, #ff6a1a, #b23a00);
  color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 6px rgba(255,106,26,.25), 0 0 40px rgba(255,106,26,.55);
  transition:transform .18s ease, box-shadow .18s ease;
  animation:livetv-pulse 2s infinite;
}
.livetv-play-cta:hover{transform:scale(1.08);box-shadow:0 0 0 10px rgba(255,106,26,.3), 0 0 60px rgba(255,106,26,.7)}
.livetv-play-cta svg{margin-left:4px}
@keyframes livetv-pulse{0%,100%{box-shadow:0 0 0 6px rgba(255,106,26,.25),0 0 40px rgba(255,106,26,.55)}50%{box-shadow:0 0 0 14px rgba(255,106,26,.08),0 0 60px rgba(255,106,26,.85)}}
.livetv-cover-title{font-size:22px;font-weight:700;letter-spacing:.02em;text-shadow:0 2px 12px rgba(0,0,0,.7)}
.livetv-cover-cat{font-size:13px;text-transform:uppercase;letter-spacing:.15em;color:#ffd7bf;background:rgba(255,255,255,.08);padding:4px 12px;border-radius:999px}
.livetv-cover-cat:empty{display:none}

/* --- Post-play minimal top bar --- */
.livetv-topbar-min{
  position:absolute;top:0;left:0;right:0;display:none;
  align-items:center;gap:10px;padding:8px 14px;z-index:6;
  background:linear-gradient(180deg,rgba(0,0,0,.75),rgba(0,0,0,0));
  color:#fff;pointer-events:none;opacity:0;transition:opacity .25s;
}
.livetv-state-playing .livetv-topbar-min{display:flex}
.livetv-player-wrap:hover .livetv-topbar-min{opacity:1}
.livetv-tb-logo{height:28px;width:auto;max-width:80px;object-fit:contain}
.livetv-tb-logo:not([src]),.livetv-tb-logo[src=""]{display:none}
.livetv-tb-name{font-size:15px;font-weight:600}
.livetv-tb-live{
  margin-left:auto;display:inline-flex;align-items:center;gap:6px;
  background:#dc2626;color:#fff;font-size:11px;font-weight:800;
  letter-spacing:.15em;padding:3px 8px;border-radius:4px;
}
.livetv-tb-live .livetv-dot{width:6px;height:6px;background:#fff;border-radius:50%;animation:livetv-blink 1.2s infinite}
@keyframes livetv-blink{50%{opacity:.3}}

/* --- Post-play bottom control bar --- */
.livetv-bottombar{
  position:absolute;left:0;right:0;bottom:0;display:none;
  align-items:center;gap:10px;padding:10px 14px;z-index:6;
  background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,0));
  color:#fff;opacity:0;transition:opacity .25s;pointer-events:auto;
}
.livetv-state-playing .livetv-bottombar{display:flex}
.livetv-player-wrap:hover .livetv-bottombar{opacity:1}
.livetv-bb-info{display:flex;flex-direction:column;line-height:1.1}
.livetv-bb-name{font-size:14px;font-weight:600}
.livetv-bb-cat{font-size:11px;color:#ffd7bf;text-transform:uppercase;letter-spacing:.1em}
.livetv-bb-btn{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);
  color:#fff;width:36px;height:36px;border-radius:8px;cursor:pointer;font-size:15px;
  display:inline-flex;align-items:center;justify-content:center;transition:background .15s;
}
.livetv-bb-btn:hover{background:rgba(255,106,26,.4)}
.livetv-bb-info + .livetv-mute,
.livetv-mute{margin-left:auto}

/* Hide old bottom title chip when new chrome is on */
.livetv-state-playing .livetv-now{display:none}

/* --- Error banner --- */
.livetv-error{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.85);color:#fff;font-size:15px;text-align:center;padding:20px;
  z-index:9;pointer-events:none;
}

/* --- Live dot on channel list --- */
.livetv-live-dot{
  position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;
  background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.25);animation:livetv-blink 1.4s infinite;
}
.livetv-list li{position:relative;transition:transform .15s ease, box-shadow .15s ease}
.livetv-list li:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.35), 0 0 0 2px var(--livetv-accent,#ff6a1a)}


/* Overlay layer must sit above iframe / video engine */
.livetv-overlay-layer{position:absolute;inset:0;z-index:5;pointer-events:none}
.livetv-iframe{z-index:1}
