/* v4.0 TV modal styles retained from article page. */
.nstv-modal{position:fixed;inset:0;z-index:21000;display:none;align-items:center;justify-content:center;padding:14px}
.nstv-modal.open{display:flex}
.nstv-backdrop{position:absolute;inset:0;background:rgba(0,12,29,.78);backdrop-filter:blur(3px)}
.nstv-dialog{position:relative;width:min(900px,100%);max-height:94vh;overflow:auto;border:1px solid #28658a;border-radius:16px;background:#06243a;color:#f2faff;box-shadow:0 18px 55px #0009;padding:16px}
.nstv-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #23506c;padding:0 0 12px}
.nstv-header h2{font-size:21px;line-height:1.25;margin:3px 0}.nstv-header p{font-size:12px;color:#9eb8d0;margin:0}
.nstv-kicker{font-size:10px;color:#75bbee;letter-spacing:1.5px;font-weight:700}
.nstv-close{color:white;border:1px solid #35617f;border-radius:8px;background:#093048;min-width:36px;min-height:36px;cursor:pointer;font-size:22px}
.nstv-sources{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.nstv-choice{display:inline-flex;align-items:center;justify-content:center;border:1px solid #326c95;border-radius:8px;padding:10px 12px;background:#133d5a;color:#fff;font-weight:750;font-size:12px;text-decoration:none;cursor:pointer}
.nstv-choice:hover,.nstv-choice.active{background:#237cba;border-color:#5fbbf0;color:#fff}
.nstv-player{width:100%;aspect-ratio:16/9;background:#071421;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.nstv-placeholder{color:#a6bbca;padding:20px;text-align:center;font-size:13px}
.nstv-player iframe{width:100%;height:100%;border:0;display:block}
.nstv-info{color:#a9bdca;font-size:11px;line-height:1.5;margin:12px 0 0}
@media(max-width:760px){.nstv-dialog{padding:12px}.nstv-sources{gap:6px}.nstv-choice{font-size:10px;padding:9px 10px}.nstv-header h2{font-size:18px}}

/* v2.74: accessible fallback links beneath optional CBS YouTube embed */
.nstv-player .nstv-live-fallback{padding:9px 13px;background:#08243b;color:#bfd6eb;font-size:12px;line-height:1.5}.nstv-player .nstv-live-fallback a{color:#8fd3ff;text-decoration:underline;font-weight:700}

/* v2.75 — compact official LIVE TV source panel; no blank/broken iframe */
.nstv-player{aspect-ratio:auto;min-height:230px;display:block;overflow:visible;padding:18px}
.nstv-source-panel{max-width:750px;margin:auto;text-align:center;padding:20px 8px}
.nstv-source-panel h3{font-size:20px;color:#f2faff;margin:0 0 12px}
.nstv-source-panel p{font-size:13px;color:#bed2e4;line-height:1.6;margin:0 auto 18px;max-width:600px}
.nstv-source-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.nstv-source-link{border:1px solid #4c99cb;border-radius:9px;background:#145077;color:white;text-decoration:none;font-size:13px;font-weight:700;padding:12px 16px}
.nstv-source-link:hover{background:#237cba;color:white}
@media(max-width:760px){.nstv-player{min-height:190px;padding:12px}.nstv-source-panel{padding:12px 4px}.nstv-source-panel h3{font-size:17px}.nstv-source-link{font-size:12px}}

/* v2.76 — maintain 16:9 CBS player while keeping existing other-source cards */
.nstv-player:has(.nstv-cbs-player){padding:0;min-height:0;display:block;overflow:hidden}
.nstv-cbs-player{width:100%;aspect-ratio:16/9;background:#050e1b;overflow:hidden}
.nstv-cbs-player iframe{width:100%;height:100%;border:0;display:block}
.nstv-cbs-fallback{padding:10px 14px;color:#bed2e4;background:#08243b;font-size:12px}
.nstv-cbs-fallback a{color:#8fd3ff;text-decoration:underline;font-weight:700}


/* v2.85: LIVE TV desktop audio controls, mobile iframe remains untouched */
.nstv-video-slot{width:100%;aspect-ratio:16/9;background:#050e1b;overflow:hidden;}
.nstv-video-slot iframe{width:100%;height:100%;display:block;border:0;}
.nstv-audio-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;background:#092e45;color:#e7f4ff;font-size:12px;}
.nstv-audio-toggle{border:1px solid #5aabdc;border-radius:7px;background:#185984;color:white;padding:7px 12px;font-weight:700;cursor:pointer;}
.nstv-audio-label{display:inline-flex;align-items:center;gap:10px;}
.nstv-audio-slider{width:125px;accent-color:#62b6f1;cursor:pointer;}
.nstv-audio-note{color:#b2cada;font-size:11px;}

.nstv-player .nstv-cbs-player{aspect-ratio:auto;}

/* v2.88: honest live verification notices beneath CBS/NBC players */
.nstv-live-status-note{font-size:12px;color:#ffcf87;margin:8px 3px;line-height:1.5}

/* v2.90 — Live signal unavailable: channel identity and clear, calm standby. */
.nstv-standby{min-height:320px;padding:44px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;background:radial-gradient(ellipse at center,#163b58 0%,#071421 75%);color:#dbeeff;border-radius:10px}
.nstv-standby-logo{width:84px;height:84px;object-fit:contain;background:#fff;border-radius:16px;padding:9px}
.nstv-standby-brand{font-size:21px;font-weight:800;letter-spacing:.6px;color:#fff}
.nstv-standby h3{font-size:21px;margin:4px 0 0;color:#f1faff}
.nstv-standby p{font-size:13px;line-height:1.55;margin:0;max-width:510px;color:#b9d1df}
.nstv-standby a{font-size:12px;color:#8fd3ff;font-weight:700}
@media(max-width:760px){.nstv-standby{min-height:250px;padding:25px 13px}.nstv-standby h3{font-size:18px}.nstv-standby-logo{width:64px;height:64px}}

/* v2.91: Desktop draggable LIVE TV window. Preserve the original dialog styling.
   The transparent full-screen layer allows normal interaction with the news page. */
.nstv-modal.nstv-floating{pointer-events:none;}
.nstv-modal.nstv-floating .nstv-backdrop{display:none;}
.nstv-modal.nstv-floating .nstv-dialog{
  position:fixed;pointer-events:auto;margin:0;max-height:calc(100dvh - 16px);
  overflow:auto;
}
.nstv-modal.nstv-floating .nstv-header{
  cursor:grab;touch-action:none;user-select:none;
}
.nstv-modal.nstv-floating .nstv-header.nstv-dragging{cursor:grabbing;}
.nstv-modal.nstv-floating .nstv-close{cursor:pointer;}

/* v2.92: add an unobtrusive Pop Out action without changing the LIVE TV design. */
.nstv-window-actions{display:flex;align-items:center;gap:9px;flex:none;}
.nstv-popout{color:#f1faff;border:1px solid #356d94;border-radius:8px;background:#0f4b72;padding:9px 11px;font:800 11px Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap;}
.nstv-popout:hover{background:#237cba;}
@media(max-width:760px){body:not(.nstv-popout-page) .nstv-popout{display:none;}}
/* The separate window uses the exact same channel/player markup and normal styling.
   Chrome/Windows manages moving this real browser window across monitors. */
body.nstv-popout-page{min-width:0;overflow:hidden;background:#061a2a;}
body.nstv-popout-page .nstv-modal{display:flex;position:fixed;inset:0;padding:0;}
body.nstv-popout-page .nstv-backdrop{display:none;}
body.nstv-popout-page .nstv-dialog{width:100%;height:100%;max-height:100dvh;box-sizing:border-box;border-radius:0;margin:0;overflow:auto;}
body.nstv-popout-page .nstv-popout{display:none;}
body.nstv-popout-page .nstv-header{cursor:default;touch-action:auto;user-select:auto;}

/* v2.95: Standby monitoring countdown (no design changes to the video player). */
.nstv-standby .nstv-next-check{font-size:15px;font-weight:750;color:#bce8ff;margin-top:4px;font-variant-numeric:tabular-nums}
.nstv-standby .nstv-search-note{font-size:11px;line-height:1.5;max-width:490px;color:#91afc3}



/* v4.20: visible LIVE TV connection state. Loading overlay persists until PLAYING. */
.nstv-loading{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:250px;width:100%;padding:24px;text-align:center;color:#e2f3ff;background:radial-gradient(ellipse at center,#123956,#061725 76%);border-radius:9px}
.nstv-loading-ball{width:48px;height:48px;border:5px solid rgba(74,186,246,.18);border-top-color:#65d6ff;border-right-color:#2a94e0;border-radius:50%;animation:nstvSpin .85s linear infinite;box-shadow:0 0 18px #257dba44}
@keyframes nstvSpin{to{transform:rotate(360deg)}}
.nstv-loading-title{font-size:16px;font-weight:800;line-height:1.4}
.nstv-loading-detail{font-size:12px;color:#a3c5d9}
.nstv-loading-elapsed{font-size:13px;color:#91ddff;font-variant-numeric:tabular-nums}
.nstv-loading-retry{padding:9px 16px;background:#175e89;border:1px solid #69b8e6;border-radius:7px;color:white;font-size:12px;font-weight:750;cursor:pointer}
.nstv-loading-retry[hidden]{display:none}
.nstv-video-slot{position:relative}
.nstv-video-slot>.nstv-loading{position:absolute;inset:0;min-height:0;z-index:4;border-radius:0}
@media(prefers-reduced-motion:reduce){.nstv-loading-ball{animation-duration:2.8s}}
