/* JD Core — the Video Library (/video-library/). See loader.php. Every selector under #jd; every colour, size and radius a token. */

#jd .jd-vd{ font-family:var(--jd-font-text); font-size:var(--jd-fs-body); line-height:1.55; color:var(--jd-text); padding-bottom:40px; }
#jd .jd-vd .jd-vd-wrap{ max-width:var(--jd-max); margin:0 auto; padding:0 32px; box-sizing:border-box; width:100%; }
#jd .jd-vd :is(h1,h2,h3){ font-family:var(--jd-font-heading); color:var(--jd-navy-dark); margin:0; text-transform:none; letter-spacing:normal; font-weight:700; text-wrap:balance; }
#jd .jd-vd h1{ font-size:clamp(34px,4.4vw,56px); line-height:1; font-weight:800; text-transform:uppercase; letter-spacing:.004em; }
#jd .jd-vd h2{ font-size:var(--jd-fs-h2); line-height:1.3; }
#jd .jd-vd h3{ font-size:var(--jd-fs-h3-card); }
#jd .jd-vd p{ margin:0; }
#jd .jd-vd a{ color:var(--jd-navy); text-decoration:none; font-family:inherit; }
#jd .jd-vd a:hover{ text-decoration:underline; }
#jd .jd-vd :is(a,button,input,select):focus-visible{ outline:2px solid var(--jd-navy-muted); outline-offset:2px; }
#jd .jd-vd .jd-vd-eyebrow{ font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); letter-spacing:var(--jd-ls-sign); text-transform:uppercase; font-weight:700; color:var(--jd-accent-ink); }
#jd .jd-vd .jd-vd-meta{ font-size:var(--jd-fs-meta); color:var(--jd-text-muted); }

/* hero */
#jd .jd-vd-hero{ padding:34px 0 18px; }
#jd .jd-vd-hero-in{ display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:end; }
#jd .jd-vd-voice{ font-family:var(--jd-font-accent); font-style:italic; font-weight:500; font-size:var(--jd-fs-voice-long); line-height:1.25; color:var(--jd-navy); margin-top:10px; max-width:30ch; }
#jd .jd-vd-search{ display:flex; gap:8px; }
#jd .jd-vd input[type=search], #jd .jd-vd select{ font:400 14px var(--jd-font-text); padding:9px 12px; border:1px solid var(--jd-rule); border-radius:var(--jd-r-sm); background:var(--jd-surface); color:var(--jd-text); width:100%; box-sizing:border-box; height:auto; }
#jd .jd-vd-stats{ display:flex; gap:26px; margin:16px 0 0; flex-wrap:wrap; }
#jd .jd-vd-stats div{ display:flex; flex-direction:column-reverse; }
#jd .jd-vd-stats dd{ margin:0; font-family:var(--jd-font-display); font-weight:700; font-size:var(--jd-fs-fig-lg); letter-spacing:.02em; color:var(--jd-navy-dark); line-height:1.1; }
#jd .jd-vd-stats dt{ font-size:var(--jd-fs-micro); color:var(--jd-text-muted); }
#jd .jd-vd .jd-vd-btn{ display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--jd-r-sm); border:1px solid var(--jd-rule); background:var(--jd-surface); color:var(--jd-navy-dark); font:600 var(--jd-fs-meta)/1.3 var(--jd-font-text); cursor:pointer; text-decoration:none; }
#jd .jd-vd .jd-vd-btn:hover{ border-color:var(--jd-navy); text-decoration:none; }
#jd .jd-vd .jd-vd-btn.is-primary{ background:var(--jd-navy); border-color:var(--jd-navy); color:var(--jd-text-invert); }
#jd .jd-vd .jd-vd-pill{ align-self:flex-start; display:inline-flex; font:600 var(--jd-fs-micro)/1 var(--jd-font-text); padding:4px 10px; border-radius:var(--jd-r-pill); background:var(--jd-tint); color:var(--jd-navy); border:1px solid var(--jd-rule); }

#jd .jd-vd-sec{ margin:30px 0; }
#jd .jd-vd-sec-h{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:12px; }
#jd .jd-vd-sec-h p{ color:var(--jd-text-muted); font-size:var(--jd-fs-meta); margin-top:2px; }

/* the play picture, used by the feature and every card */
#jd .jd-vd-th, #jd .jd-vd-player{ position:relative; display:block; aspect-ratio:16/9; background:var(--jd-navy-dark); border-radius:var(--jd-r-sm); overflow:hidden; }
#jd .jd-vd-th img, #jd .jd-vd-player img, #jd .jd-vd-th iframe, #jd .jd-vd-player iframe{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border:0; display:block; }
#jd .jd-vd-play{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:var(--jd-navy-dark); opacity:.85; }
#jd .jd-vd-play::after{ content:''; position:absolute; left:17px; top:12px; border-left:14px solid var(--jd-text-invert); border-top:10px solid transparent; border-bottom:10px solid transparent; }
#jd .jd-vd-th:hover .jd-vd-play, #jd .jd-vd-player:hover .jd-vd-play{ background:var(--jd-accent); opacity:1; }
#jd .jd-vd-player .jd-vd-play{ width:64px; height:64px; }
#jd .jd-vd-player .jd-vd-play::after{ left:25px; top:17px; border-left-width:20px; border-top-width:15px; border-bottom-width:15px; }

#jd .jd-vd-feature{ display:grid; grid-template-columns:1.6fr 1fr; background:var(--jd-surface); border:1px solid var(--jd-rule); border-radius:var(--jd-r-lg); overflow:hidden; }
#jd .jd-vd-feature .jd-vd-player{ border-radius:0; }
#jd .jd-vd-info{ padding:var(--jd-pad-lg); display:flex; flex-direction:column; gap:12px; }
#jd .jd-vd-info h2 a{ color:var(--jd-navy-dark); font:inherit; letter-spacing:inherit; text-transform:none; }
#jd .jd-vd-desc{ color:var(--jd-text-muted); display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
#jd .jd-vd-next{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:16px; }

/* a card */
#jd .jd-vd-card{ display:flex; flex-direction:column; gap:7px; min-width:0; }
#jd .jd-vd .jd-vd-t{ font-weight:700; color:var(--jd-navy-dark); line-height:1.3; font-size:var(--jd-fs-meta); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
#jd .jd-vd-m{ font-size:var(--jd-fs-micro); color:var(--jd-text-muted); }
#jd .jd-vd-shelf{ display:grid; grid-auto-flow:column; grid-auto-columns:250px; gap:16px; overflow-x:auto; padding:4px 2px 14px; scroll-snap-type:x proximity; }
#jd .jd-vd-shelf .jd-vd-card{ scroll-snap-align:start; }
#jd .jd-vd-series-h{ display:flex; align-items:baseline; gap:12px; margin:22px 0 4px; }

#jd .jd-vd-faces{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
#jd .jd-vd .jd-vd-face{ display:flex; gap:12px; align-items:center; background:var(--jd-surface); border:1px solid var(--jd-rule); border-radius:var(--jd-r-md); padding:12px 14px; text-decoration:none; color:var(--jd-text); }
#jd .jd-vd .jd-vd-face:hover{ border-color:var(--jd-navy); text-decoration:none; }
#jd .jd-vd-av{ width:44px; height:44px; border-radius:50%; background:var(--jd-navy); color:var(--jd-text-invert); display:flex; align-items:center; justify-content:center; font:700 var(--jd-fs-body) var(--jd-font-text); flex:none; }
#jd .jd-vd-face b{ display:block; color:var(--jd-navy-dark); }
#jd .jd-vd-face small{ color:var(--jd-text-muted); }
#jd .jd-vd-go{ margin-left:auto; font-size:var(--jd-fs-meta); font-weight:600; color:var(--jd-navy); }
#jd .jd-vd-chiprow{ display:flex; flex-wrap:wrap; gap:8px; }
#jd .jd-vd .jd-vd-chiprow a{ border:1px solid var(--jd-rule); background:var(--jd-surface); border-radius:var(--jd-r-pill); padding:6px 14px; font:600 var(--jd-fs-meta) var(--jd-font-text); color:var(--jd-navy-dark); text-decoration:none; }
#jd .jd-vd .jd-vd-chiprow a:hover{ border-color:var(--jd-navy); background:var(--jd-tint); }
#jd .jd-vd-chiprow small{ font-weight:400; color:var(--jd-text-muted); margin-left:4px; }
#jd .jd-vd-all{ margin:10px 0 24px; }

/* browse */
#jd .jd-vd-layout{ display:grid; grid-template-columns:250px 1fr; gap:var(--jd-gap); align-items:start; }
#jd #jd-vd-browse[hidden]{ display:none; }
#jd .jd-vd-rail{ position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; }
#jd .jd-vd-rail-in{ display:flex; flex-direction:column; gap:12px; }
#jd .jd-vd-rail summary{ display:none; }
#jd .jd-vd-fac{ background:var(--jd-surface); border:1px solid var(--jd-rule); border-radius:var(--jd-r-lg); padding:14px 16px; }
#jd .jd-vd-fac h3{ font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); letter-spacing:var(--jd-ls-sign); text-transform:uppercase; margin-bottom:8px; }
#jd .jd-vd-fac label{ display:flex; gap:8px; align-items:center; padding:3px 0; font-size:var(--jd-fs-meta); cursor:pointer; }
#jd .jd-vd-fac label .n{ margin-left:auto; color:var(--jd-text-muted); font-variant-numeric:tabular-nums; }
#jd .jd-vd input[type=checkbox]{ accent-color:var(--jd-navy); }
#jd .jd-vd-fac.is-bridge{ background:var(--jd-success-soft); border-color:transparent; }
#jd .jd-vd-fac.is-bridge label{ font-weight:700; color:var(--jd-success); }
#jd .jd-vd-bar{ display:flex; gap:12px; margin-bottom:12px; }
#jd .jd-vd-bar select{ width:auto; }
#jd .jd-vd-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
#jd .jd-vd-chips button{ background:var(--jd-navy); color:var(--jd-text-invert); border:0; border-radius:var(--jd-r-pill); padding:4px 12px; font:400 var(--jd-fs-meta) var(--jd-font-text); cursor:pointer; }
#jd .jd-vd-chips button::after{ content:' ×'; }
#jd .jd-vd-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:22px 18px; }
#jd .jd-vd-empty{ grid-column:1/-1; padding:40px; text-align:center; color:var(--jd-text-muted); }
#jd .jd-vd .jd-vd-more{ display:flex; margin:30px auto 0; }

@media (max-width:900px){
	#jd .jd-vd .jd-vd-wrap{ padding:0 16px; }
	#jd .jd-vd-hero-in, #jd .jd-vd-feature, #jd .jd-vd-layout{ grid-template-columns:1fr; gap:20px; }
	#jd .jd-vd-feature{ gap:0; }
	#jd .jd-vd-next{ grid-template-columns:1fr 1fr; }
	#jd .jd-vd-rail{ position:static; max-height:none; overflow:visible; }
	#jd .jd-vd-rail summary{ display:block; cursor:pointer; padding:10px 14px; border:1px solid var(--jd-rule); border-radius:var(--jd-r-md); background:var(--jd-surface); font:600 var(--jd-fs-meta) var(--jd-font-text); color:var(--jd-navy-dark); margin-bottom:12px; }
	#jd .jd-vd-rail details:not([open]) summary{ margin-bottom:0; }
}
