.video-list-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:16px 0 8px;font-size:12px}.video-list-heading a{color:#f0daff}.related-video-list{display:grid;gap:6px;max-height:235px;overflow:auto}.related-video-choice{display:flex;align-items:center;text-align:left;gap:12px;color:inherit;background:#ffffff0a;border:1px solid #ffffff20;border-radius:12px;padding:11px;width:100%;cursor:pointer}.related-video-choice.active{border-color:#d4b2ff;background:#b68ce72b}.related-video-choice small,.youtube-poster small{display:block;font-size:11px;margin-top:5px;opacity:.8}.related-video-choice>span:nth-child(2){flex:1}.video-number{font-size:11px;color:#e8c9ff}.video-frame.portrait{aspect-ratio:9/16;width:min(100%,300px);height:auto;margin:0 auto;min-height:200px}.video-frame.youtube-ready{min-height:200px}.youtube-poster{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:200px;width:100%;height:100%;color:#fff;border:0;background:#100b1f;cursor:pointer;padding:24px;text-align:center}.youtube-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.36;z-index:-1}.youtube-play{display:grid;place-items:center;width:58px;height:44px;background:#c01835;border-radius:14px;font-size:22px}.video-library-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin:25px 0}.video-library-filters label{display:grid;gap:9px;font-size:12px}.video-library-filters input,.video-library-filters select{width:100%;min-width:0}.video-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-video-card{overflow:hidden;border-radius:22px;min-width:0}.library-video-cover{aspect-ratio:16/9}.library-video-copy{padding:22px}.library-video-copy h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}.library-video-copy p{font-size:13px;line-height:1.6}.library-video-cover .youtube-poster{min-height:200px}.video-library-empty{grid-column:1/-1;padding:44px;border-radius:24px}.video-library-empty p{line-height:1.6}.library-player{width:100%;aspect-ratio:16/9;min-height:200px;background:#08070d;border-radius:14px;overflow:hidden}.library-player iframe{width:100%;height:100%;border:0}.library-player.portrait{width:min(100%,320px);aspect-ratio:9/16;margin:auto}.video-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;border:1px solid #ffffff30;border-radius:16px}.video-scope p{grid-column:1/-1}.video-scope label{display:flex;align-items:center;gap:8px;font-size:13px}.video-scope input{width:18px;height:18px;accent-color:#c991f5}.video-admin-list{margin-top:20px}.video-admin-list .admin-row{flex-wrap:wrap}.video-admin-list .admin-row>div{flex:1;min-width:180px}.video-admin-list span{display:block;font-size:12px;margin-top:5px}.video-panel .video-head{flex-wrap:wrap;gap:8px}.video-library-page{overflow-wrap:anywhere}#clipSelect{width:100%;margin-top:10px}.video-frame video{object-fit:contain}#modalContent:has(.library-player){width:min(800px,100%)}
@media(max-width:1000px){.video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-library-filters{grid-template-columns:1fr 1fr}.video-library-filters label:first-child{grid-column:1/-1}}
@media(max-width:650px){.video-library-grid,.video-library-filters,.video-scope{grid-template-columns:1fr}.video-library-empty{padding:25px}.video-list-heading{flex-wrap:wrap}.video-library-page .catalog-top{gap:18px}.library-player{min-height:200px}}
/* Keep the established split layout; scroll the video shelf instead of squeezing a portrait player. */
.video-panel{overflow:hidden;overscroll-behavior:contain}.video-panel>*{flex-shrink:0}.video-frame{flex:none;width:100%;aspect-ratio:16/9;min-height:200px}.video-frame.portrait{flex:none;width:min(100%,225px);height:400px;aspect-ratio:9/16;min-height:400px}.video-frame .youtube-film{aspect-ratio:auto;width:100%;height:100%}.related-video-list{max-height:none}.youtube-poster>span:last-child{overflow-wrap:anywhere}
@media(max-width:650px){.visual-side{grid-template-rows:255px auto;overflow:visible}.video-panel{overflow:visible}.video-frame:not(.portrait){min-height:200px}.video-frame.portrait{width:225px;height:400px}}

/* Model gallery removed: videos lead the entire left column. */
.in-study .visual-side{grid-template-rows:minmax(0,1fr)}.in-study .video-panel{height:100%;min-height:0}.education-export-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0 20px}.education-export-actions .subtle{font-size:11px}
@media(max-width:650px){.in-study .visual-side{display:block;overflow:visible}.in-study .video-panel{height:auto;overflow:visible}.education-export-actions{gap:8px}}

/* The player stays fixed; only its list owns vertical scrolling. */
.in-study .video-panel{overflow:hidden}.in-study #relatedVideoChoices{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.in-study .video-list-heading{flex:none;margin:6px 0 8px}.in-study .related-video-list{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;touch-action:pan-y}.in-study .related-video-choice{flex:none}.in-study .video-frame.portrait{width:auto;max-width:100%;height:clamp(200px,calc(100dvh - 420px),400px);min-height:0;aspect-ratio:9/16}
@media(max-width:650px){.in-study .video-panel{height:auto;overflow:hidden}.in-study #relatedVideoChoices{flex:none;min-height:0}.in-study .related-video-list{flex:none;max-height:240px}.in-study .video-frame.portrait{width:225px;height:400px;min-height:0}}
.in-study .video-panel:hover{transform:none}

.library-video-card {position:relative}
.library-video-open::after {content:'';position:absolute;inset:0;z-index:1;cursor:pointer}
