/* PesLig TV V9 | Gallery-quality visual system; scoped to DataHub. */
.pl-yt-widget{--yt-gold:#f3bf48;--yt-gold2:#ffdfa0;--yt-cyan:#88dcef;--yt-text:#f8fafc;--yt-muted:#c2cee0;--yt-line:rgba(255,255,255,.15);margin:28px 0 36px;padding:clamp(15px,2.5vw,26px);color:var(--yt-text);border:1px solid var(--yt-line);border-radius:25px;background:radial-gradient(ellipse at 7% 3%,rgba(236,176,56,.13),transparent 37%),radial-gradient(ellipse at 96% 95%,rgba(34,211,238,.13),transparent 36%),linear-gradient(145deg,#111a30,#071021 70%);box-shadow:0 24px 64px rgba(2,8,24,.22);font-family:Inter,system-ui,Arial,sans-serif;contain:layout style}
.pl-yt-widget *,.pl-yt-widget *::before,.pl-yt-widget *::after{box-sizing:border-box}
.pl-yt-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:17px}
.pl-yt-kicker{display:inline-flex;gap:7px;align-items:center;font-size:11px;color:var(--yt-gold2);font-weight:900;letter-spacing:.14em}
.pl-yt-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ef3348;box-shadow:0 0 15px rgba(239,51,72,.6)}
.pl-yt-head h2{margin:6px 0 0!important;color:#fff!important;font:850 clamp(19px,2.6vw,27px)/1.2 Inter,system-ui,sans-serif!important;letter-spacing:-.4px}
.pl-yt-more{font:750 12px/1.3 system-ui,sans-serif;text-decoration:none;color:var(--yt-gold2);white-space:nowrap;border:1px solid rgba(243,191,72,.4);border-radius:30px;padding:9px 12px}
.pl-yt-more:hover{background:rgba(243,191,72,.12)}
.pl-yt-showcase{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(255px,.85fr);gap:15px;align-items:start}
.pl-yt-stage-slot{min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(3,8,18,.82);box-shadow:0 20px 46px rgba(0,0,0,.18)}
.pl-yt-stage-slot.pl-yt-no-stage{display:none}
.pl-yt-stage{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden}
.pl-yt-stage-poster{z-index:1;display:block;width:100%;height:100%;position:absolute;inset:0;cursor:pointer;border:0;background:#040914;padding:0;overflow:hidden;transition:opacity .35s ease}
.pl-yt-stage-poster.pl-yt-poster-hidden{opacity:0;pointer-events:none}
.pl-yt-stage-image{display:block;width:100%;height:100%;object-fit:cover}
.pl-yt-stage-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.65),transparent 50%)}
.pl-yt-stage-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border:1px solid rgba(255,255,255,.65);border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ffe6a8,#e6a825);color:#1e160b;font-size:24px;box-shadow:0 0 0 9px #f1c45d30,0 10px 38px #0009}
.pl-yt-stage-poster:hover .pl-yt-stage-play{box-shadow:0 0 0 14px #f1c45d30,0 10px 38px #000a}
.pl-yt-stage-rail{position:absolute;z-index:3;left:12px;top:12px;pointer-events:none}
.pl-yt-stage-live{background:rgba(0,0,0,.76);border:1px solid rgba(255,255,255,.24);border-radius:100px;padding:6px 10px;color:#f9fbff;font:800 10px system-ui,sans-serif;letter-spacing:.07em}
.pl-yt-stage-actions{z-index:4;position:absolute;bottom:10px;right:10px;display:flex;gap:7px;max-width:calc(100% - 20px)}
.pl-yt-stage-control{border:1px solid #ffffff55;border-radius:10px;background:rgba(6,13,27,.88);color:#fff;font:750 11px system-ui,sans-serif;padding:8px 10px;cursor:pointer;backdrop-filter:blur(10px)}
.pl-yt-stage-control-gold{background:linear-gradient(135deg,#ffe7a6,#e8b33f);color:#18130c;border-color:transparent}
.pl-yt-stage-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;z-index:0}
.pl-yt-stage-foot{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px}
.pl-yt-stage-category{color:var(--yt-gold2);font-size:10px;letter-spacing:.13em;font-weight:900;text-transform:uppercase}
.pl-yt-stage-title{font-size:clamp(15px,2vw,19px);font-weight:850;line-height:1.35;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pl-yt-stage-hint{color:var(--yt-muted);font-size:11px}
.pl-yt-list{min-width:0;display:flex;flex-direction:column;gap:11px;min-height:0}
.pl-yt-card{min-width:0;min-height:133px;display:grid;grid-template-columns:minmax(115px,43%) minmax(0,1fr);border:1px solid var(--yt-line);border-radius:16px;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.045));transition:transform .18s,border-color .18s,box-shadow .18s}
.pl-yt-card:hover{transform:translateY(-2px);border-color:rgba(243,191,72,.55);box-shadow:0 18px 34px #0004}
.pl-yt-cover{display:block;position:relative;width:100%;height:100%;min-height:130px;aspect-ratio:16/9;overflow:hidden;border:0;padding:0;background:radial-gradient(circle at 50% 50%,#374e70,#091226);cursor:pointer;color:#fff}
.pl-yt-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s,filter .25s}
.pl-yt-cover:hover img{transform:scale(1.05);filter:brightness(.75)}
.pl-yt-cover img.pl-yt-image-failed,.pl-yt-stage-image.pl-yt-image-failed{opacity:0}
.pl-yt-cover::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 50%,#0003)}
.pl-yt-play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border:1px solid #ffffffa1;border-radius:100%;background:linear-gradient(135deg,#ffe7a6,#edb432);box-shadow:0 9px 30px #0009;display:grid;place-items:center;font-size:16px;color:#1c1508}
.pl-yt-duration{position:absolute;z-index:2;right:7px;bottom:7px;background:#020409df;border-radius:5px;color:#fff;font:800 10px system-ui;padding:3px 5px}
.pl-yt-muted-label{position:absolute;z-index:2;left:7px;top:7px;background:#071528d9;color:#fff;border-radius:5px;font:800 10px system-ui;padding:4px 6px}
.pl-yt-meta{min-width:0;padding:12px 11px;display:flex;flex-direction:column;align-items:start;gap:8px}
.pl-yt-tag{color:#f3c96b;font:900 10px/1.3 system-ui;text-transform:uppercase;letter-spacing:.055em}
.pl-yt-title{display:-webkit-box;max-width:100%;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0!important;color:#f8fafc!important;font:800 13px/1.42 system-ui,sans-serif!important}
.pl-yt-youtube{margin-top:auto;color:#bddfed;text-decoration:none;font:750 11px system-ui}.pl-yt-youtube:hover{text-decoration:underline}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-showcase{grid-template-columns:1fr}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-card{display:flex;flex-direction:column;min-height:0}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-cover{height:auto;min-height:0;aspect-ratio:16/9}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-card.pl-yt-short .pl-yt-cover{aspect-ratio:9/12;max-height:280px}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-meta{flex:1}
.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-title{min-height:36px}
.pl-yt-status{color:#c3d1df;font:650 12px/1.5 system-ui;margin-top:12px}.pl-yt-status:empty{display:none}
.pl-yt-skeleton,.pl-yt-stage-skeleton{display:block;min-height:150px;border-radius:14px;background:linear-gradient(110deg,#202e46,#39455a,#202e46);background-size:260% 100%;animation:pl-yt-pulse 1.8s linear infinite}
.pl-yt-stage-skeleton{aspect-ratio:16/9;min-height:220px}
@keyframes pl-yt-pulse{to{background-position-x:-260%}}
.pl-yt-load-more{display:block;margin:18px auto 0;padding:11px 20px;cursor:pointer;border:1px solid rgba(243,191,72,.35);border-radius:12px;background:#1b283c;color:#fff;font-weight:800}
.pl-yt-load-more[hidden]{display:none}
.pl-yt-empty{color:#c0cddb;font-size:13px;padding:20px}
.pl-yt-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 17px}
.pl-yt-filter{border:1px solid #ffffff38;background:#111d2d;color:#e1ecf9;border-radius:100px;padding:9px 14px;cursor:pointer;font-weight:750}
.pl-yt-filter[aria-pressed="true"]{background:linear-gradient(135deg,#ffe5a0,#dba52d);border-color:transparent;color:#14100c}
.pl-yt-widget :is(a,button):focus-visible{outline:3px solid #f9d26b;outline-offset:2px}
/* Modal: retain the successful V7 same-origin bridge for actual playback. */
.pl-yt-modal[hidden]{display:none!important}
.pl-yt-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.88);backdrop-filter:blur(9px)}
.pl-yt-modal-panel{box-sizing:border-box;display:flex;flex-direction:column;max-height:calc(100dvh - 32px);width:min(100%,1080px);border:1px solid #ffffff40;border-radius:21px;background:#0c1423;color:#eef5ff;overflow:hidden;box-shadow:0 30px 100px #000b}
.pl-yt-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px}
.pl-yt-modal-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 16px system-ui}
.pl-yt-modal-close{border:0;border-radius:10px;width:40px;height:40px;background:#25364c;color:#fff;font:28px/1 system-ui;cursor:pointer}
.pl-yt-modal-video{width:100%;aspect-ratio:16/9;background:#000;min-height:0}
.pl-yt-modal-video iframe{display:block!important;position:static!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:16/9;border:0!important}
.pl-yt-modal-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;font:750 12px system-ui}
.pl-yt-modal-bottom a{color:#f0d293;text-decoration:underline;text-underline-offset:3px}
.pl-yt-modal-switch{border:1px solid #4b607a;border-radius:9px;background:#1a2b41;color:#e3f4ff;padding:9px;cursor:pointer;font-weight:750}
@media(max-width:1000px){.pl-yt-showcase{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}.pl-yt-card{grid-template-columns:40% minmax(0,1fr)}}
@media(max-width:720px){.pl-yt-showcase{grid-template-columns:1fr}.pl-yt-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pl-yt-card{display:flex;flex-direction:column;min-height:0}.pl-yt-cover{height:auto;min-height:0;aspect-ratio:16/9}.pl-yt-meta{flex:1}.pl-yt-widget:not([data-limit="1"]):not([data-limit="2"]) .pl-yt-list{grid-template-columns:repeat(2,minmax(0,1fr))}.pl-yt-head{align-items:start}.pl-yt-head h2{font-size:21px!important}.pl-yt-stage-slot{border-radius:15px}}
@media(max-width:460px){.pl-yt-widget{padding:13px;border-radius:18px}.pl-yt-stage-play{width:51px;height:51px;font-size:19px}.pl-yt-card{border-radius:12px}.pl-yt-meta{padding:9px;gap:6px}.pl-yt-title{font-size:11px!important}.pl-yt-tag{font-size:9px}.pl-yt-youtube{font-size:10px}.pl-yt-stage-control{padding:7px 8px;font-size:10px}.pl-yt-head{gap:7px}.pl-yt-more{font-size:10px;padding:7px 9px}.pl-yt-modal{padding:7px}.pl-yt-modal-top{padding:8px}.pl-yt-modal-title{font-size:12px}.pl-yt-modal-bottom{padding:9px}}
@media(prefers-reduced-motion:reduce){.pl-yt-widget *, .pl-yt-widget *::before{animation:none!important;transition:none!important}}

.pl-yt-widget.pl-yt-without-stage .pl-yt-showcase{grid-template-columns:1fr}

/* V10: low-key organic channel CTA; remains separate from auto-preview. */
.pl-yt-channel{display:inline-flex;align-items:center;gap:6px;color:#ffe4a4;text-decoration:none;font:800 11px system-ui;white-space:nowrap;border:1px solid #f3c96b55;background:#f3c96b12;border-radius:999px;padding:7px 11px;margin-top:7px}
.pl-yt-channel:hover{background:#f3c96b25;color:#fff}
@media(max-width:600px){.pl-yt-channel{font-size:10px;white-space:normal}}

.pl-yt-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pl-yt-head-actions .pl-yt-channel{margin-top:0}
@media(max-width:700px){.pl-yt-head{display:block}.pl-yt-head-actions{justify-content:flex-start;margin-top:12px}.pl-yt-head-actions :is(.pl-yt-more,.pl-yt-channel){white-space:normal;min-height:35px}}
