/* NABAA YouTube TV 1.0.0 – isolated styles, theme-safe. */
.nbytv-archive-main {min-height:60vh;padding:26px 12px 60px;box-sizing:border-box}
.nbytv {--nbytv-red:#b91925;--nbytv-ink:#192333;--nbytv-muted:#657183;--nbytv-border:#e7e9ed;--nbytv-bg:#fff;max-width:1220px;margin:0 auto;padding:0 10px 36px;box-sizing:border-box;color:var(--nbytv-ink);font-family:inherit;text-align:right}
.nbytv * {box-sizing:border-box}
.nbytv-hero {background:linear-gradient(120deg,#141c2b,#282c3b 65%,#3b1926);border-radius:19px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 36px;margin-bottom:30px;box-shadow:0 12px 26px rgba(0,0,0,.1)}
.nbytv-eyebrow{font-size:13px;color:#e6bfc3;font-weight:700;display:inline-flex;align-items:center;gap:8px}
.nbytv-live-dot{width:8px;height:8px;background:#e83142;border-radius:50%;box-shadow:0 0 0 4px rgba(232,49,66,.17)}
.nbytv-hero h1{font-size:clamp(27px,4vw,43px);font-weight:900;margin:9px 0;line-height:1.25;color:#fff}
.nbytv-hero h1 span{color:#fa4e60}
.nbytv-hero h1 small{color:#e2e4ec;font-size:clamp(17px,2vw,23px);font-weight:600}
.nbytv-hero p{max-width:660px;color:#dce0e8;font-size:15px;line-height:1.9;margin:8px 0 0}
.nbytv-channel{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;gap:10px;padding:12px 19px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:#cf2734;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:800;transition:background .2s}
.nbytv-channel:hover{background:#ea3341}
.nbytv-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--nbytv-border);margin-bottom:21px;padding-bottom:15px}
.nbytv-section-head h2{font-size:22px;font-weight:900;margin:0;color:var(--nbytv-ink)}
.nbytv-section-head span{font-size:13px;color:var(--nbytv-muted)}
.nbytv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-bottom:26px}
.nbytv-card{overflow:hidden;background:var(--nbytv-bg);border-radius:15px;border:1px solid var(--nbytv-border);box-shadow:0 3px 15px rgba(28,40,56,.055);transition:transform .17s,box-shadow .17s;min-width:0;margin:0}
.nbytv-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(28,40,56,.13)}
.nbytv-video-open{display:block!important;cursor:pointer!important;width:100%;height:100%;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;text-align:right!important;font:inherit!important;border-radius:0!important;box-shadow:none!important;outline-offset:-3px}
.nbytv-cover{position:relative;display:block;overflow:hidden;aspect-ratio:16/9;background:#111a26;width:100%}
.nbytv-cover img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;max-width:none!important;border-radius:0!important;margin:0!important}
.nbytv-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:39px;color:#fff;background:#d51d2d;border-radius:12px;font-size:21px;box-shadow:0 4px 15px rgba(0,0,0,.3);transition:transform .18s}
.nbytv-card:hover .nbytv-play{transform:translate(-50%,-50%) scale(1.09)}
.nbytv-card-body{padding:14px 15px 16px;display:flex;flex-direction:column;gap:10px;min-height:105px}
.nbytv-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.7;font-weight:800;color:var(--nbytv-ink);min-height:48px}
.nbytv-meta{font-size:12px;color:var(--nbytv-muted);font-weight:600;direction:rtl}
.nbytv-more-wrap{text-align:center;margin:8px 0 30px}
.nbytv-more{font:inherit!important;font-size:15px!important;font-weight:800!important;background:var(--nbytv-red)!important;color:#fff!important;border:0!important;padding:13px 30px!important;border-radius:11px!important;cursor:pointer!important}
.nbytv-more:hover{background:#9c101b!important}
.nbytv-more[disabled]{opacity:.5;cursor:wait!important}
.nbytv-empty{padding:26px;border:1px dashed #ddbdc0;border-radius:12px;background:#fff8f8;color:#67323b;margin:15px 0}
.nbytv-playlist{border:1px solid var(--nbytv-border);border-radius:15px;overflow:hidden;background:#fff;margin-top:20px;box-shadow:0 2px 9px rgba(0,0,0,.025)}
.nbytv-playlist summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 21px;font-weight:850;font-size:16px;background:#f8f9fb;color:var(--nbytv-ink)}
.nbytv-playlist summary::-webkit-details-marker{display:none}
.nbytv-playlist summary:after{content:'⌄';font-size:23px;line-height:1}
.nbytv-playlist[open] summary:after{content:'⌃'}
.nbytv-playlist summary span{font-weight:500;font-size:12px;color:var(--nbytv-muted);margin-right:auto}
.nbytv-playlist-frame,.nbytv-modal-frame{aspect-ratio:16/9;position:relative;background:#0c0f17;overflow:hidden}
.nbytv-playlist-frame iframe,.nbytv-modal-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.nbytv-note{margin:0;padding:13px 20px;font-size:13px;color:var(--nbytv-muted);line-height:1.85}
.nbytv-modal[hidden]{display:none!important}
.nbytv-modal{position:fixed!important;z-index:2147483000!important;inset:0!important;display:flex!important;align-items:center;justify-content:center;padding:30px 16px}
.nbytv-modal-shade{position:absolute;inset:0;background:rgba(5,10,17,.91);cursor:pointer}
.nbytv-modal-panel{position:relative;z-index:1;max-width:1000px;width:100%;background:#141923;padding:8px;border-radius:14px;box-shadow:0 15px 70px rgba(0,0,0,.55)}
.nbytv-modal-panel p{color:#fff;margin:12px;padding:0 6px;font-size:14px;line-height:1.7}
.nbytv-close{position:absolute!important;top:-23px;left:-13px;z-index:2;display:grid!important;place-items:center!important;width:43px!important;height:43px!important;padding:0!important;border:1px solid #fff!important;border-radius:50%!important;background:#ba1b29!important;color:#fff!important;font-size:29px!important;cursor:pointer!important}
body.nbytv-dialog-open{overflow:hidden!important}
@media(max-width:900px){.nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.nbytv-hero{padding:26px}}
@media(max-width:600px){.nbytv-archive-main{padding:10px 4px 40px}.nbytv{padding:0 8px 20px}.nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nbytv-hero{padding:19px;border-radius:14px;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:22px}.nbytv-hero p{font-size:13px}.nbytv-channel{padding:9px 14px;font-size:13px}.nbytv-section-head h2{font-size:19px}.nbytv-card{border-radius:10px}.nbytv-card-body{padding:8px 9px;min-height:95px;gap:5px}.nbytv-card-title{font-size:12px;line-height:1.6;min-height:39px}.nbytv-meta{font-size:10px}.nbytv-play{width:39px;height:29px;font-size:15px;border-radius:8px}.nbytv-playlist summary{font-size:14px;padding:15px}.nbytv-playlist summary span{display:none}.nbytv-modal{padding:20px 6px}.nbytv-modal-panel{padding:4px}.nbytv-close{top:-23px;left:0}}
@media(max-width:360px){.nbytv-grid{grid-template-columns:1fr}.nbytv-card-title{font-size:14px}}
/* 1.1.0: imported video articles and per-category grids. */
.nbytv-post-embed{position:relative;aspect-ratio:16/9;overflow:hidden;background:#111827;width:100%;max-width:1100px;margin:16px auto 22px;border-radius:12px}
.nbytv-post-embed iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
.nbytv-post-link{display:block;text-decoration:none!important;color:inherit!important}
.nbytv-post-link:hover .nbytv-card-title{text-decoration:underline}
.nbytv-legacy-posts{max-width:1220px;margin:35px auto 45px;padding:0 15px}
.nbytv-legacy-posts h2{font-weight:800;border-bottom:1px solid #e3e6eb;padding-bottom:16px}
.nbytv-legacy-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.nbytv-legacy-list article{min-width:0;border:1px solid #e2e5e9;border-radius:14px;overflow:hidden;background:#fff}
.nbytv-legacy-list article a{color:#1e2633;text-decoration:none}
.nbytv-legacy-list article img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.nbytv-legacy-list article h3{font-size:16px;margin:12px 14px;line-height:1.7}
.nbytv-legacy-list article p{margin:0 14px 12px;color:#68758a;font-size:12px}
@media(max-width:850px){.nbytv-legacy-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.nbytv-post-embed{border-radius:7px}.nbytv-legacy-list{gap:10px}.nbytv-legacy-list article h3{font-size:12px;margin:8px}}

/* 1.2.0: compact editorial cards for home-page blocks, widgets and YouTube archives. */
.nbytv--compact{--nbytv-red:#bb1825;--nbytv-cols:4;min-width:0;max-width:1220px;padding:0 2px 16px;margin:14px auto 26px;container-type:inline-size}
.nbytv--compact .nbytv-grid{grid-template-columns:repeat(var(--nbytv-cols),minmax(0,1fr));gap:13px;margin:0}
.nbytv--compact .nbytv-card{border-radius:10px;box-shadow:0 2px 7px rgba(20,33,48,.04);border-color:#e6e8ed}
.nbytv--compact .nbytv-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(20,33,48,.09)}
.nbytv--compact .nbytv-cover{aspect-ratio:16 / 9}
.nbytv--compact .nbytv-card-body{padding:9px 10px 11px;gap:4px;min-height:0}
.nbytv--compact .nbytv-card-title{font-size:13px;line-height:1.55;min-height:0;font-weight:800;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nbytv--compact .nbytv-meta{font-size:10.5px;line-height:1.6;min-height:0;color:#758196;font-weight:500}
.nbytv--compact .nbytv-play{width:37px;height:27px;border-radius:7px;font-size:14px;box-shadow:0 2px 10px rgba(0,0,0,.22)}
.nbytv--compact .nbytv-video-open{min-height:0!important}
.nbytv--compact .nbytv-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;border-bottom:1px solid #e7e9ec;padding-bottom:11px;min-height:44px}
.nbytv--compact .nbytv-mini-head h2{font-size:clamp(16px,1.7vw,21px);color:#182433;line-height:1.4;font-weight:850;display:inline-flex;align-items:center;gap:9px;padding:0;margin:0;min-width:0}
.nbytv--compact .nbytv-mini-mark{height:21px;width:4px;flex-shrink:0;background:var(--nbytv-red);border-radius:4px}
.nbytv--compact .nbytv-mini-all{font-size:12px;font-weight:750;display:inline-flex;white-space:nowrap;align-items:center;gap:4px;color:var(--nbytv-red)!important;text-decoration:none!important;background:#fff7f7;border:1px solid #f7e1e4;border-radius:8px;padding:6px 10px;flex-shrink:0}
.nbytv--compact .nbytv-mini-all:hover{background:#fbe9e9}
.nbytv--compact .nbytv-mini-empty{font-size:13px;background:#fafafa;border:1px dashed #e4e4e4;border-radius:9px;padding:17px;margin:0;color:#697386}
.nbytv--archive-compact{--nbytv-cols:4;max-width:1220px}
.nbytv--archive-compact .nbytv-hero{padding:16px 21px;border-radius:12px;margin-bottom:18px;gap:16px;background:#1b2431;box-shadow:none}
.nbytv--archive-compact .nbytv-hero h1{font-size:24px;margin:2px 0 5px}
.nbytv--archive-compact .nbytv-hero h1 small{font-size:16px}
.nbytv--archive-compact .nbytv-hero p{font-size:12px;line-height:1.6;margin:0}
.nbytv--archive-compact .nbytv-eyebrow{font-size:11px}
.nbytv--archive-compact .nbytv-channel{font-size:12px;padding:8px 12px}
.nbytv--archive-compact .nbytv-section-head{margin:0 0 14px;padding:0 0 9px}
.nbytv--archive-compact .nbytv-section-head h2{font-size:18px}
.nbytv--archive-compact .nbytv-grid{margin-bottom:20px}
.nbytv--archive-compact .nbytv-playlist{margin-top:14px}
@container (max-width: 960px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (max-width: 600px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@container (max-width: 380px){.nbytv--compact .nbytv-card-title{font-size:11.5px}.nbytv--compact .nbytv-card-body{padding:8px 7px 9px}.nbytv--compact .nbytv-meta{font-size:10px}}
@media(max-width:960px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.nbytv--compact{margin:8px auto 18px;padding:0 1px 10px}.nbytv--compact .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.nbytv--compact .nbytv-mini-head{margin-bottom:11px}.nbytv--compact .nbytv-mini-head h2{font-size:16px}.nbytv--compact .nbytv-mini-all{font-size:11px;padding:5px 8px}.nbytv--archive-compact .nbytv-hero{padding:13px 15px;gap:12px;align-items:flex-start}.nbytv--archive-compact .nbytv-hero h1{font-size:21px}.nbytv--archive-compact .nbytv-hero p{font-size:11px}.nbytv--archive-compact .nbytv-section-head h2{font-size:17px}}
@media(max-width:350px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.nbytv--compact .nbytv-card-title{font-size:11px}.nbytv--compact .nbytv-meta{font-size:9px}}
@media(prefers-reduced-motion:reduce){.nbytv--compact .nbytv-card,.nbytv--compact .nbytv-play{transition:none!important}}
/* Container rules take precedence over viewport fallback for narrow sidebars. */
@container (max-width: 960px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (max-width: 600px){.nbytv--compact .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Honour the editor's two-column choice even inside compact sidebars. */
@media (max-width:960px){.nbytv--compact.nbytv--cols-2 .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:960px){.nbytv--compact.nbytv--cols-2 .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.3.0: native front-page placement, independent of a theme's editor/widget support. */
.nbytv-auto-section{display:block;width:100%;max-width:1260px;margin:22px auto 30px;padding:0 15px;clear:both;box-sizing:border-box;direction:rtl}
.nbytv-auto-section .nbytv--front-cards{max-width:100%;margin:0 auto;padding-bottom:8px}
.nbytv-auto-section .nbytv--front-cards .nbytv-mini-head{margin-top:0}
.nbytv-auto-section .nbytv--front-cards .nbytv-grid{width:100%}
.nbytv-fallback-player{position:relative;aspect-ratio:16/9;max-width:650px;margin:12px 0;background:#121923;border-radius:12px;overflow:hidden}
.nbytv-fallback-player iframe{width:100%;height:100%;inset:0;position:absolute;border:0}
.nbytv-fallback-link{display:inline-flex;margin-top:8px;padding:8px 12px;color:#b21c2b!important;text-decoration:none!important;background:#fff4f5;border-radius:8px;font-size:13px;font-weight:700}
@media(max-width:600px){.nbytv-auto-section{padding:0 9px;margin:12px auto 20px}}

/* v1.4 — extra compact options and reliable isolated layout. */
.nbytv-auto-section,.nbytv--front-cards{isolation:isolate}
.nbytv-auto-section .nbytv-grid,.nbytv--front-cards .nbytv-grid{display:grid!important;float:none!important}
.nbytv--style-flat .nbytv-card{box-shadow:none;border-color:transparent;background:transparent}
.nbytv--style-flat .nbytv-card-body{padding:8px 2px 9px}
.nbytv--style-flat .nbytv-cover{border-radius:9px}
@media(max-width:600px){
  .nbytv--compact.nbytv--mobile-1 .nbytv-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important}
  .nbytv--compact.nbytv--mobile-2 .nbytv-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
.nbytv-admin-preview .nbytv{max-width:100%}
