/* YouTube Playlist Pro 3.0.1 – split player + playlist layout */
.ypp-wrap{--ypp-surface:var(--ypp-bg,#111);--ypp-foreground:var(--ypp-text,#fff);width:100%;color:var(--ypp-foreground);background:var(--ypp-surface);border-radius:var(--ypp-radius,10px);overflow:hidden;isolation:isolate}
.ypp-wrap[data-theme="light"]{--ypp-surface:#fff;--ypp-foreground:#20242b}
@media(prefers-color-scheme:light){.ypp-wrap[data-theme="auto"]{--ypp-surface:#fff;--ypp-foreground:#20242b}}
@media(prefers-color-scheme:dark){.ypp-wrap[data-theme="auto"]{--ypp-surface:#111;--ypp-foreground:#f5f5f5}}
.ypp-content{width:100%;min-width:0}
.ypp-layout-both .ypp-content{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;gap:0;aspect-ratio:16/9}
.ypp-player{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--ypp-player-radius,var(--ypp-radius,10px));overflow:hidden;min-width:0}
.ypp-sticky-enabled .ypp-player{position:sticky;top:16px;z-index:20;box-shadow:0 5px 22px rgba(0,0,0,.22)}
.ypp-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ypp-gallery{display:flex;flex-direction:column;gap:0;min-width:0;padding:0;background:var(--ypp-surface);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#777 transparent}
.ypp-layout-both .ypp-player{height:100%;aspect-ratio:auto}
.ypp-layout-both .ypp-gallery{height:100%;min-height:0;max-height:100%;}
.ypp-video{display:grid;grid-template-columns:18px minmax(82px,100px) minmax(0,1fr);align-items:start;gap:10px;width:100%;min-width:0;padding:12px 10px;border:0;border-bottom:1px solid rgba(128,128,128,.16);background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.ypp-index{font-size:11px;line-height:1.5;opacity:.8;padding-top:3px;text-align:center}
.ypp-thumb{position:relative;display:block;overflow:hidden;aspect-ratio:16/9;border-radius:2px;background:#222}
.ypp-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.ypp-video:hover .ypp-thumb img{transform:scale(1.04)}
.ypp-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ypp-accent,#d9232e);color:#fff;font-size:14px;padding-left:3px;box-shadow:0 2px 12px #0008;opacity:0;transition:opacity .2s ease}
.ypp-video:hover .ypp-play,.ypp-video.is-active .ypp-play{opacity:1}
.ypp-video-info{display:block;min-width:0}
.ypp-video-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:13px;line-height:1.55;font-weight:700;overflow-wrap:anywhere}
.ypp-video-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;font-size:11px;line-height:1.4;opacity:.76}
.ypp-video:focus-visible{outline:3px solid var(--ypp-accent,#d9232e);outline-offset:-3px}
.ypp-video.is-active{background:rgba(128,128,128,.12)}
.ypp-video.is-active .ypp-video-title{color:var(--ypp-accent,#d9232e)}
.ypp-notice{padding:14px;margin:0;font-size:14px;opacity:.85}
.ypp-layout-player .ypp-player{width:100%}
.ypp-layout-gallery .ypp-gallery{display:grid;grid-template-columns:repeat(var(--ypp-cols,3),minmax(0,1fr));gap:14px;padding:16px}
.ypp-layout-gallery .ypp-video{display:block;padding:0;border:0}
.ypp-layout-gallery .ypp-index{display:none}
.ypp-layout-gallery .ypp-video-title{padding-top:8px}
.ypp-layout-gallery .ypp-play{opacity:1}
@media(max-width:767px){.ypp-layout-both .ypp-content{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;aspect-ratio:auto}.ypp-layout-both .ypp-player{height:auto;aspect-ratio:16/9}.ypp-layout-both .ypp-gallery{height:auto;max-height:420px}.ypp-layout-both .ypp-player{position:relative;top:auto}.ypp-layout-gallery .ypp-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.ypp-layout-both .ypp-video{grid-template-columns:20px minmax(100px,120px) minmax(0,1fr);padding:10px 12px}}
@media(max-width:420px){.ypp-layout-gallery .ypp-gallery{grid-template-columns:1fr}.ypp-layout-both .ypp-video{grid-template-columns:18px 96px minmax(0,1fr);gap:8px}.ypp-video-title{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ypp-thumb img,.ypp-play{transition:none}}
