.ww-video-library{max-width:1200px;margin:0 auto}
body[data-view=videos] .section-navigation{margin-bottom:22px}
.ww-library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.ww-library-heading h1{font:600 clamp(30px,3.5vw,42px)/1.15 var(--sans);letter-spacing:-.045em;margin:0}
.ww-library-intro{font-size:16px;line-height:1.55;color:var(--muted);margin:8px 0 0;max-width:60ch}
.ww-source-jump{flex:none;font-size:14px;color:var(--muted);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;background:none}
.ww-video-categories{display:flex;gap:6px;margin-bottom:16px;overflow-x:auto;scrollbar-width:thin;padding:2px}
.ww-video-categories button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:14px;font-weight:500;white-space:nowrap}
.ww-video-categories button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.ww-video-categories button span{font-size:12px;font-variant-numeric:tabular-nums;opacity:.8}
.ww-video-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;position:relative}
.ww-video-search>input{width:100%;min-width:0;min-height:48px;border:1px solid var(--input);border-radius:12px;background:var(--surface);color:var(--ink);padding:12px 16px;font-size:16px}
.ww-video-filter-panel>summary{min-height:48px;display:flex;align-items:center;justify-content:center;gap:4px;padding:12px 18px;border:1px solid var(--input);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px;cursor:pointer;list-style:none}
.ww-video-filter-panel>summary::-webkit-details-marker{display:none}
.ww-video-filter-panel>summary::after{content:'⌄';margin-left:6px}
.ww-video-filter-panel[open]{display:contents}
.ww-video-filter-panel[open]>summary{grid-column:2;grid-row:1;background:var(--surface-soft)}
.ww-video-filter-panel[open]>summary::after{content:'⌃'}
.ww-video-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;grid-column:1/-1;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.ww-video-filters label{display:grid;gap:8px;font-size:14px;font-weight:500;color:var(--muted)}
.ww-video-filters select{width:100%;min-width:0;min-height:44px;border:1px solid var(--input);border-radius:9px;padding:10px 12px;font-size:16px;background:var(--surface);color:var(--ink)}
.ww-video-result-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px}
.ww-video-count,.ww-video-free{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 0}
.ww-video-result-bar .plain-button{font-size:14px;min-height:44px}
.ww-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
.ww-video-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);color:var(--ink);padding:0;text-align:left;cursor:pointer;transition:border-color .18s,box-shadow .18s}
.ww-video-card:hover{border-color:var(--input);box-shadow:var(--shadow)}
.ww-video-card:focus-visible,.ww-video-categories button:focus-visible,.ww-video-search input:focus-visible,.ww-video-filter-panel summary:focus-visible{outline:3px solid var(--ring,var(--green));outline-offset:3px}
.ww-video-art{display:block;position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;background:#283b32}
.ww-video-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ww-video-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:22px 22px 50px;text-align:center;color:#f2f5f3;font:500 25px/1.2 var(--sans);letter-spacing:-.035em}
.ww-video-art .ww-video-play{position:absolute;left:12px;bottom:12px;background:rgba(255,255,255,.95);border-radius:50%;width:36px;height:36px;display:grid;place-items:center;color:#202124;font-size:13px;box-shadow:0 2px 10px #0002}
.ww-video-art .ww-video-duration{position:absolute;right:10px;bottom:12px;color:#fff;background:#171b19e8;border-radius:5px;padding:4px 6px;font-size:12px;line-height:1.3;font-variant-numeric:tabular-nums}
.ww-video-card .ww-video-card-copy{padding:16px;display:grid;gap:6px}
.ww-video-card strong{font-size:17px;font-weight:600;letter-spacing:-.015em;line-height:1.4}
.ww-video-card small,.ww-video-card em,.ww-video-perspective{font-size:13px;color:var(--muted);font-style:normal;line-height:1.5}
.ww-video-perspective{border-top:1px solid var(--line);margin-top:4px;padding-top:8px}
.ww-more-videos{display:block;margin:26px auto;min-height:48px}
.ww-video-empty{padding:28px 20px;border:1px solid var(--line);border-radius:14px}
.ww-video-empty p{margin:16px 0;font-size:16px;line-height:1.6}
.ww-video-source-notes{border-top:1px solid var(--line);margin-top:32px;padding:20px 0;font-size:14px;line-height:1.8;scroll-margin-top:100px}
.ww-video-source-notes summary{cursor:pointer;min-height:44px}
.ww-video-source-notes p{max-width:85ch;margin:12px 0}
.ww-worship-invitation{display:flex;align-items:center;gap:14px;background:var(--surface-soft);border:1px solid var(--line);padding:14px 18px;border-radius:14px;margin-top:16px}
.ww-worship-invitation>span{font-size:30px;color:var(--green)}
.ww-worship-invitation p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.ww-worship-invitation strong{color:var(--ink)}
.ww-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ww-video-shelf{padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);margin:24px 0}
.ww-video-list{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.ww-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.ww-shelf-heading h3{font:500 25px/1.2 var(--sans);margin:4px 0}
.ww-shelf-heading>.plain-button{flex-shrink:0;min-height:44px;font-size:14px}
.ww-video-shelf.compact{padding:20px 0;background:none;border:0}
.ww-video-shelf.compact .ww-video-list{grid-template-columns:1fr}
.ww-video-shelf.compact .ww-shelf-heading{display:block}
.ww-video-shelf.compact .ww-video-card-copy{padding:14px}
.ww-video-player{position:fixed;bottom:20px;left:calc(var(--sidebar-width) + 24px);width:360px;max-width:calc(100vw - 40px);z-index:65;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-raised);max-height:calc(100dvh - 120px);overflow:auto}
.ww-video-player>header{display:flex;align-items:center;gap:8px;padding:12px 14px}
.ww-video-player header>div{display:grid;gap:4px;flex:1;min-width:0}
.ww-video-player header strong{font-size:14px;line-height:1.4}
.ww-video-player header small{font-size:12px;line-height:1.4;color:var(--muted)}
.ww-video-player header button{border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);border-radius:50%;min-width:44px;min-height:44px;font-size:22px;cursor:pointer}
.ww-video-player[data-expanded=true]{width:min(760px,calc(100vw - 40px));left:50%;transform:translateX(-50%)}
.ww-video-player[data-expanded=false]{width:300px}
.ww-video-player[data-expanded=false]>.ww-player-links,.ww-video-player[data-expanded=false]>.ww-video-tools,.ww-video-player[data-expanded=false]>details{display:none}
.ww-video-player[data-expanded=false] header small{display:none}
.ww-video-player[data-expanded=false] header strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ww-video-player header button{flex:none}
.ww-player-frame{width:100%;aspect-ratio:16/9;min-height:200px;background:var(--surface-soft)}
.ww-player-frame iframe{width:100%;height:100%;min-height:200px;border:0;display:block}
.ww-player-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding:10px 16px}
.ww-video-player a{color:var(--green);font-size:14px;line-height:1.7}
.ww-video-player details{padding:0 16px 12px;font-size:14px;line-height:1.6}
.ww-video-player summary{cursor:pointer;color:var(--ink)}
.ww-video-player details p{margin:8px 0}
.ww-video-player:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
.today-quick-actions:has([data-video-category=worship]){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1050px){.ww-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ww-video-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body[data-view=videos] .section-navigation{margin-bottom:18px}
 .ww-library-heading{margin-bottom:14px}.ww-library-heading h1{font-size:30px}.ww-library-intro{margin-top:6px}
 .ww-source-jump{display:none}.ww-video-categories{gap:5px;margin-bottom:12px}.ww-video-categories button{padding:10px 12px;gap:5px}.ww-video-categories button span{display:none}
 .ww-video-filters{padding:16px;gap:14px}.ww-video-search>input{padding:12px;font-size:16px}.ww-video-filter-panel>summary{padding:12px}
 .ww-video-grid{grid-template-columns:1fr}.ww-video-card .ww-video-card-copy{padding:16px}
 .ww-video-player,.ww-video-player[data-expanded=true]{left:10px;right:10px;bottom:calc(146px + env(safe-area-inset-bottom));width:auto;max-width:none;transform:none;max-height:calc(100dvh - 175px)}
 .ww-video-shelf{padding:18px}.ww-shelf-heading{display:block}.ww-shelf-heading h3{font-size:24px}
 .today-quick-actions:has([data-video-category=worship]){grid-template-columns:1fr}
 .has-study-video .wm-companion-launcher{transform:translateY(-8px)}
}
@media(max-width:380px){.ww-video-categories button{padding:10px}.ww-video-filters{grid-template-columns:1fr}.ww-video-free{display:none}}
@media(prefers-reduced-motion:reduce){.ww-video-card{transition:none}}

@media(max-width:760px){.ww-video-filters{grid-template-columns:minmax(0,1fr)}.ww-video-filters select{min-height:48px}}

/* Native details creates an anonymous content box in some mobile engines.
   Keep the expanded panel in a normal block so every filter spans its container. */
.ww-video-search{display:block}.ww-video-filter-panel{margin-top:12px}.ww-video-filter-panel[open]{display:block}.ww-video-filter-panel>summary{width:max-content;max-width:100%;margin-left:auto}.ww-video-filters{margin-top:12px;width:100%;box-sizing:border-box}
@media(max-width:380px){.ww-video-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}.ww-video-categories button{width:100%;min-height:48px}}
