/* Filterprototypes (14-11-2026): gedeelde basisstijl. Alleen tokens en bestaande Today-/Retro-maten; per variant komen alleen de Period/Theme-zone
   en de chipvorm uit varianten/<letter>.css. Mobiel eerst: tikdoelen minstens 44 px, op 320 px geen afgekapte labels. */
:root{--civ:#7A3B2E;--civ-ink:#fff;--civ-soft:#efe0d6;--rome:#7A3B2E;--greece:#2F5B86}
:root[data-theme="dark"],:root:not([data-theme="light"]){}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--rome:#D98B72;--greece:#8FB3DB;--civ-ink:#1b1916}}
:root[data-theme="dark"]{--rome:#D98B72;--greece:#8FB3DB;--civ-ink:#1b1916}
body[data-civ="rome"]{--civ:var(--rome)}
body[data-civ="greece"]{--civ:var(--greece)}
body{--civ-wash:color-mix(in srgb,var(--civ) 14%,var(--card))}
.vf{padding-bottom:36px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vf-head{padding:14px 0 8px}
.vf-head h1{font:750 clamp(1.9rem,6.5vw,2.8rem)/1.05 var(--heading);letter-spacing:-.04em;margin:0}
.vf-explore{font:700 1.05rem/1.25 var(--heading);margin:6px 0 2px}
.vf-sub{font-size:.85rem;color:var(--muted);margin:0 auto;max-width:60ch;text-align:center}
.vf-label{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.vf-civ{margin:12px 0 8px}
.vf-civ-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vf-civ-btn{position:relative;min-height:52px;border:1px solid var(--line);border-radius:3px;background:var(--card);color:var(--ink);font:750 1.15rem var(--heading);cursor:pointer;padding:8px 12px;text-align:left}
.vf-civ-btn[data-civ="rome"]{--c:var(--rome)}.vf-civ-btn[data-civ="greece"]{--c:var(--greece)}
.vf-civ-btn::after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c)}
.vf-civ-btn[aria-pressed="true"]{border-color:var(--c);box-shadow:inset 0 0 0 1px var(--c);background:color-mix(in srgb,var(--c) 12%,var(--card))}
.vf-media{margin:0 0 10px}
.vf-media-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.vf-media-btn{min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:3px;background:var(--card);color:var(--ink);font:700 .92rem system-ui,sans-serif;cursor:pointer;padding:6px 8px}
.vf-media-btn svg{width:22px;height:22px}
.vf-media-btn .vf-n{font-weight:600;font-size:.72rem;color:var(--muted)}
.vf-media-btn[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:var(--accent-ink)}
.vf-media-btn[aria-pressed="true"] .vf-n{color:inherit;opacity:.85}
.vf-media-btn:disabled{opacity:.45;cursor:default}
.vf-search{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}
.vf-search-field{flex:1 1 180px;min-width:0;position:relative;display:block}
.vf-search-field svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.vf-search-field input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:3px;background:var(--card);padding:8px 12px 8px 38px;font:inherit;font-size:1rem;color:var(--ink)}
.vf-search-field input::placeholder{color:var(--muted)}
.vf-help{flex:0 0 auto;min-height:48px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--blue);border-radius:3px;background:transparent;color:var(--blue);font:700 .92rem system-ui,sans-serif;padding:6px 14px;cursor:pointer}
.vf-help[aria-expanded="true"]{background:var(--blue);color:var(--accent-ink)}
@media(max-width:380px){.vf-help{flex:1 1 100%;justify-content:center}}
.vf-util{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:12px 0 10px}
.vf-util-item{flex:1 1 104px;min-width:0;display:grid;gap:5px;font-size:.7rem;font-weight:700;color:var(--muted)}
.vf-util-item select{min-height:44px;width:100%;font-size:.8rem;padding:6px 18px 6px 8px}
/* Compact filter controls keep the keyboard indicator inside their own bounds. */
.vf-util select:focus-visible,
.vf-secondary :is(summary, select, button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}
.vf-creators{min-height:44px;display:grid;align-items:center;font-size:.9rem;font-weight:650;color:var(--muted)}
.vf-ess{flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:3px;background:var(--card);color:var(--ink);font:700 .8rem system-ui,sans-serif;padding:6px 10px;cursor:pointer}
.vf-ess[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:var(--green-ink)}
.vf-resulthead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:6px 0 4px}
.vf-resulthead .active-filters{margin:0}
.vf-count{display:flex;gap:12px;align-items:center;margin-left:auto;font-size:.82rem;color:var(--muted)}
/* secundaire chips */
.vf-secondary{margin:0 0 4px}
.vf-secondary>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-weight:700;font-size:.9rem;cursor:pointer;list-style:none;border-block:1px solid var(--line)}
.vf-secondary>summary::-webkit-details-marker{display:none}
.vf-secondary>summary::after{content:"+";margin-left:auto;color:var(--muted)}
.vf-secondary[open]>summary::after{content:"−"}
.vf-secondary-n:not(:empty){background:var(--blue);color:var(--accent-ink);border-radius:99px;font-size:.72rem;padding:1px 7px}
.vf-secondary-body{display:grid;gap:10px;padding:12px 0 4px}
.vf-chiplabel{font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 4px}
.vf-chips{display:flex;flex-wrap:wrap;gap:6px}
.vf-chip{min-height:44px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:3px;background:var(--card);color:var(--ink);font:650 .82rem system-ui,sans-serif;padding:4px 10px;cursor:pointer}
.vf-chip .vf-n{font-weight:600;font-size:.7rem;color:var(--muted)}
.vf-chip[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:var(--accent-ink)}
.vf-chip[aria-pressed="true"] .vf-n{color:inherit}
.vf-chip:disabled{opacity:.4;cursor:default}
/* thumbnail-fallback: de buste in dezelfde afmeting als echte thumbnails */
.episode-mark.is-fallback{background:var(--card)}
.episode-mark.is-fallback img{object-position:50% 12%}
/* Help me choose */
.vf-hmc{border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:3px;background:var(--card);padding:14px 14px 10px;margin:0 0 12px}
.vf-hmc[hidden]{display:none}
.hmc-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.hmc-title{font:700 1.05rem var(--heading);margin:0}
.hmc-progress{display:flex;gap:4px;margin-left:auto}
.hmc-dot{width:18px;height:4px;border-radius:2px;background:var(--line)}.hmc-dot[data-on="true"]{background:var(--blue)}
.hmc-close,.hmc-link{min-height:44px;border:0;background:none;color:var(--blue);font:700 .85rem system-ui,sans-serif;text-decoration:underline;cursor:pointer;padding:0 6px}
.hmc-link:disabled{opacity:.4;cursor:default;text-decoration:none}
.hmc-summary{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.hmc-chip{min-height:36px;border:1px solid var(--line);border-radius:99px;background:var(--paper);color:var(--ink);font:650 .8rem system-ui,sans-serif;padding:4px 12px;cursor:pointer}
.hmc-h{font:700 1.3rem/1.2 var(--heading);margin:4px 0 10px}
.hmc-answers{display:grid;grid-template-columns:1fr;gap:8px}
@media(min-width:520px){.hmc-answers{grid-template-columns:1fr 1fr}}
.hmc-answer{min-height:56px;display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;text-align:left;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);padding:8px 12px;cursor:pointer}
.hmc-a-t{font:700 1rem var(--heading)}.hmc-a-s{flex:1 1 100%;font-size:.78rem;color:var(--muted)}
.hmc-answer .vf-n{margin-left:auto;font-size:.72rem;color:var(--muted)}
.hmc-answer[aria-pressed="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.hmc-answer:disabled{opacity:.4}
.hmc-foot{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-top:8px}
.hmc-clear{margin-left:auto}
.hmc-count{font:700 1.1rem var(--heading);margin:0 0 6px}
.hmc-items{list-style:none;padding:0;margin:0 0 10px}
.hmc-items li{display:grid;gap:0;padding:8px 0;border-top:1px solid var(--line)}
.hmc-it{font-weight:700;overflow-wrap:anywhere}
.hmc-widen{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
@media(max-width:700px){.mast .nav-count:empty{display:none}}
/* main is een flex-kolom met order-regels uit de Today-CSS; in de varianten geldt de DOM-volgorde. */
main.vf>*{order:0!important}
.vf-media-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.vf-media-btn{min-width:0}
@media(max-width:420px){.vf-ess svg{display:none}.vf-media-btn svg{width:20px;height:20px}}
@media(max-width:360px){.vf-media-btn .vf-n{display:none}.vf-media-btn{font-size:.85rem;padding:6px 4px}}
/* Logorij met uitgelichte shows: één smalle rij onder alle filterbediening (utiliteitsrij en actieve chips) en direct boven de lijst (Today-kern show-slider-v2, byte-gelijk). */
.vf-shows{margin:0 0 10px}
.vf-shows .show-slider-head{margin:0}
/* mast: Rome en Greece als navigatie (zelfde functie als Set sail, los daarvan); stijl gelijk aan nav a[aria-current] van Today */
.mast nav a[data-civ][aria-pressed="true"]{color:var(--blue);border-color:transparent;font-weight:750}

/* r6: primaire rij Period | Theme | Format; geen aquarel op de Rome/Greece-knoppen; geen media-rij */
.vf-pt{margin:0 0 10px}
.vf-search{margin-top:0}

/* r7: GEEN aquarelachtergronden op knoppen (alleen kleur); knopteksten gecentreerd; iconen en chevrons verschuiven de tekst niet */
.vf-head h1,.vf-explore{text-align:center}
.vf-civ-btn{text-align:center;display:flex;align-items:center;justify-content:center}
body[data-variant] .va-strip{text-align:center;justify-items:center}
body[data-variant] .vb-field{text-align:center;justify-items:center;grid-template-columns:1fr;grid-template-areas:"k" "v";position:relative}
body[data-variant] .vb-field .vb-chev{position:absolute;right:6px;bottom:8px;grid-area:auto}
body[data-variant] .vc-btn{text-align:center;justify-items:center}
.vf-chip,.hmc-answer,.vf-ess,.vf-help,.action,.vb-row,.va-opt,.vc-opt,.vd-chip{justify-content:center;text-align:center}
.hmc-answer{align-items:center}
.vf-help{position:relative;padding-left:34px;padding-right:34px}
.vf-help svg{position:absolute;left:10px;top:50%;transform:translateY(-50%)}
.vf-ess svg{position:absolute;left:8px;top:50%;transform:translateY(-50%)}
.vf-ess{position:relative;padding-left:28px;padding-right:12px}
@media(max-width:420px){.vf-ess{padding-left:12px}}
/* Help me choose links, Search rechts: één rij onder alle selectieopties */
.vf-search{display:flex;flex-wrap:nowrap;gap:8px;margin:10px 0 10px;align-items:stretch}
.vf-search .vf-help{flex:0 0 auto;padding-left:34px;padding-right:12px}
.vf-search-field{flex:1 1 0;min-width:0}
.vf-search-field input{min-width:0}
@media(max-width:380px){.vf-help span{font-size:.82rem}.vf-search .vf-help{padding-left:32px;padding-right:8px}}
/* Historical figures: uitklapbaar, standaard dicht */
.vf-figures{margin:0 0 4px}
.vf-figures>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-weight:700;font-size:.9rem;cursor:pointer;list-style:none;border-bottom:1px solid var(--line)}
.vf-figures>summary::-webkit-details-marker{display:none}
.vf-figures>summary::after{content:"+";margin-left:auto;color:var(--muted)}
.vf-figures[open]>summary::after{content:"−"}
.vf-figures-cur{color:var(--blue);font-weight:650}
.vf-figures-body{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0 4px}
.vf-figures[hidden]{display:none}
.vf-secondary>summary{border-bottom:0}

/* 320 px (herstelronde 15-11): Sort, Listening time en Editor's picks op een compacte rij, minder lucht in de ingeklapte rijen en de tellerregel. 390 en desktop onaangeroerd. */
@media(max-width:360px){
.vf-util{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 92px;gap:6px;align-items:end;margin:8px 0 4px}
.vf-util-item{flex:none}
.vf-util-item select{font-size:.74rem;padding:6px 2px 6px 6px}
.vf-util .vf-ess{min-height:44px;width:100%;padding:4px 2px;font-size:.7rem;line-height:1.15;white-space:normal;text-align:center;justify-content:center}
.vf-pt{margin:0 0 6px}
.vf-secondary{margin:0}
.vf-figures{margin:0}
.vf-resulthead{margin:2px 0 0;gap:4px}
.vf-count{font-size:.78rem}
.vf-search{margin:4px 0 8px}
}

/* v4 (15-11, Ben): Set sail gecentreerd; More filters en Historical figures op een rij; teller boven Editor's picks in de utiliteitsrij; minder dode ruimte op mobiel. */
.vf-civ .vf-label{text-align:center}
.vf-accs{display:flex;flex-wrap:wrap;gap:0 10px;margin:0 0 4px}
.vf-accs>details{flex:1 1 calc(50% - 5px);min-width:0;margin:0}
.vf-accs>details[open]{flex-basis:100%}
.vf-accs>details>summary{min-height:44px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}
.vf-accs>details>summary>span:first-child{white-space:nowrap}
.vf-accs .vf-figures-cur{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.vf-util-end{display:grid;gap:2px;justify-items:end;flex:0 0 auto;align-content:end}
.vf-count-inline{font-size:.72rem;font-weight:700;color:var(--muted);white-space:nowrap;line-height:1.15}
body[data-filtered="false"] .vf-resulthead{display:none}
@media(max-width:700px){
.vf-head{padding:10px 0 6px}
.vf-civ{margin:8px 0 6px}
.vf-label{margin:0 0 4px}
.vf-pt{margin:0 0 6px}
.vf-accs{margin:0 0 2px}
.vf-util{margin:8px 0 6px}
.vf-search{margin:6px 0 8px}
.vf-shows{margin:0 0 6px}
}
@media(max-width:360px){
.vf-accs>details>summary{font-size:.8rem;gap:4px}
.vf-util{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 92px}
}

/* UX 2: licht van links naar rechts bij hover-entry (de bestaande lamp-ink-sweep van "Set sail to", eenmalig; zelfde mask, kleur #ddbd7b en gloed; geen lus, geen layoutverschuiving) */
@keyframes lamp-ink-hover{0%{mask-position:100% 0;-webkit-mask-position:100% 0;opacity:.67}50%{mask-position:50% 0;-webkit-mask-position:50% 0;opacity:1}100%{mask-position:0% 0;-webkit-mask-position:0% 0;opacity:.67}}
.lamp-glow::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;border-radius:inherit;
  -webkit-mask-image:linear-gradient(to right,transparent 45%,#000 50%,transparent 55%);mask-image:linear-gradient(to right,transparent 45%,#000 50%,transparent 55%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:100% 0;mask-position:100% 0}
.lamp-glow{position:relative;isolation:isolate}
.lamp-glow::before{z-index:-1;background:linear-gradient(90deg,transparent,color-mix(in srgb,#ddbd7b 28%,transparent),transparent);filter:drop-shadow(0 0 3px #ddbd7b9a)}
@media(hover:hover) and (pointer:fine){.lamp-glow:hover::before{animation:lamp-ink-hover 1.2s linear 1 backwards}}
.lamp-glow:focus-visible::before{animation:lamp-ink-hover 1.2s linear 1 backwards}
@media(prefers-reduced-motion:reduce){.lamp-glow::before{animation:none!important;opacity:0}}

/* ux 3: Help me choose en Search even groot, 50/50 in dezelfde rij, gelijke hoogte (grid: twee gelijke kolommen, padding telt niet mee in de verdeling) */
.vf-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:8px}
.vf-search .vf-help,.vf-search .vf-search-field{width:auto;min-width:0;box-sizing:border-box}
.vf-search .vf-help{min-height:48px;padding-left:34px;padding-right:10px;white-space:normal;line-height:1.15}
.vf-search-field input{height:100%;min-height:48px;box-sizing:border-box}
@media(max-width:380px){.vf-search .vf-help{justify-content:center}.vf-search .vf-help span{font-size:.82rem}}

/* ux 4: gecureerde playlists (vervangt Editor's picks); paneel onder de utility-rij, alleen zichtbaar na openen */
.vf-pl{margin:0 0 12px;border:1px solid var(--line);border-radius:3px;background:var(--card);padding:10px 12px}
.vf-pl[hidden]{display:none}
.vf-pl-intro{margin:0 0 8px;font-size:.85rem;color:var(--muted)}
.vf-pl-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.vf-pl-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:8px}
.vf-pl-item:first-child{border-top:0;padding-top:0}
.vf-pl-text{min-width:0;display:grid;gap:2px}
.vf-pl-text strong{font-size:1rem;line-height:1.2}
.vf-pl-text span{font-size:.82rem;color:var(--muted);line-height:1.25}
.vf-pl-go{flex:0 0 auto;min-height:44px;border:1px solid var(--blue);border-radius:3px;background:transparent;color:var(--blue);font:700 .88rem system-ui,sans-serif;padding:6px 12px;cursor:pointer}
.vf-pl-go:hover,.vf-pl-go:focus-visible{background:var(--blue);color:var(--accent-ink)}
.vf-pl-go.is-loading{opacity:.6;cursor:progress}
.vf-pl-status{margin:8px 0 0;min-height:1.3em;font-size:.82rem;color:var(--ink)}
@media(max-width:380px){.vf-pl-item{flex-direction:column;align-items:stretch}.vf-pl-go{width:100%}}

/* r7 (20-11): matches en Add: één capsule per titel (Play + Add), compacte resultaatkop, één onderzone (dock) met "Add N matches" of de sprongknop; de melding van de speler deelt dezelfde plek */
.vf-matches{margin:12px 0 2px;padding:10px 0 0;border-top:1px solid var(--line)}
.vf-matches[hidden]{display:none}
.vf-matches h2{margin:0;font-size:1rem;line-height:1.3;font-weight:700;color:var(--muted);letter-spacing:.01em}
.vf-matches h2:focus{outline:none}
.vf-matches h2:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
/* r8 (variant A, Bens keuze): audio = effen blauwe ronde playknop met witte driehoek; YouTube-video = effen rood afgerond pictogram met witte driehoek; geen Listen/Watch-tekst; Add is een rustige omlijnde ronde knop ernaast */
.episode:has(>.episode-acts){grid-template-columns:auto minmax(0,1fr) auto}
.episode-acts{display:inline-flex;align-items:center;justify-self:end;gap:8px}
.episode-acts .episode-action,.episode>.episode-action.is-yt{font-size:0}
.episode-acts .episode-action{width:44px;min-width:44px;height:44px;min-height:44px;margin:0;border-radius:50%;background:var(--blue);color:var(--accent-ink)}
.episode-acts .episode-action:hover,.episode-acts .episode-action:focus-visible{filter:brightness(1.08)}
.episode-add{position:relative;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1.5px solid var(--blue);border-radius:50%;background:transparent;color:var(--blue);cursor:pointer}
.episode-add svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.episode-add:hover,.episode-add:focus-visible{background:color-mix(in srgb,var(--blue) 14%,transparent)}
.episode-add[aria-pressed="true"]{background:var(--blue);color:var(--accent-ink)}
.episode-add[aria-busy="true"]{opacity:.55}
.episode :focus-visible.episode-action,.episode-acts :focus-visible{outline:3px solid var(--ink);outline-offset:2px}
a.episode-action.is-yt {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 0;
  text-decoration: none;
}
a.episode-action.is-yt::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  background: #e60000;
  content: '';
}
a.episode-action.is-yt::after { content: none; }
a.episode-action.is-yt svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  fill: currentColor;
  stroke: none;
}
a.episode-action.is-yt:is(:hover, :focus-visible)::before { background: #c80000; }
a.episode-action.is-yt:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.episode.is-playing .episode-acts .episode-action{box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 35%,transparent)}
@keyframes vf-pop{0%{transform:scale(1)}40%{transform:scale(1.18,.86)}100%{transform:scale(1)}}
.episode-add.is-popped{animation:vf-pop .28s ease-out 1}
.vf-dock{position:fixed;left:0;right:0;z-index:55;bottom:0;display:flex;justify-content:center;padding:8px 12px max(12px,env(safe-area-inset-bottom,0px));pointer-events:none}
.vf-dock[hidden]{display:none}
@media(min-width:900px){.vf-dock{justify-content:flex-end;padding-inline:max(12px,calc((100vw - 980px)/2))}}
.vf-dock>*{min-height:44px;border:1px solid var(--blue);border-radius:22px;background:var(--card);color:var(--blue);font:700 .9rem system-ui,sans-serif;padding:0 20px;cursor:pointer;white-space:nowrap;max-width:100%;animation:vf-dock-in .18s ease-out}
.vf-dock>[hidden]{display:none}
.vf-dock>button {
  pointer-events: auto;
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 16%, transparent);
}
.vf-dock>.vf-bulk { color: var(--blue); }
.vf-dock>button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .vf-dock>button {
    background: color-mix(in srgb, var(--card) 90%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  #listen-bar.listen-bar:not(.is-expanded) {
    background: color-mix(in srgb, var(--card) 90%, transparent);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .vf-dock>button, #listen-bar.listen-bar:not(.is-expanded) {
    background: var(--card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.vf-bulk:disabled{opacity:.7;cursor:progress}
@keyframes vf-dock-in{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
main#main{padding-bottom:calc(var(--vf-zone-h,0px) + 12px)}
html{scroll-padding-bottom:calc(var(--speler-bar-h,0px) + var(--vf-zone-h,0px) + 8px)}
.speler-undo{bottom:calc(var(--speler-bar-h,0px) + 8px + env(safe-area-inset-bottom,0px))!important;flex-wrap:wrap;row-gap:6px}
.speler-undo .speler-undo-text{flex:1 1 140px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3}
.speler-undo .speler-undo-btn,.speler-undo .speler-undo-go{flex:0 0 auto}
.speler-undo .speler-undo-go{min-height:44px;padding:0 12px;border:1px solid var(--paper);border-radius:10px;background:transparent;color:var(--paper);font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.speler-undo-go[hidden]{display:none}
@media(max-width:420px){.speler-undo .speler-undo-go{padding:0 8px;font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.episode-add.is-popped,.vf-dock>*{animation:none}}

/* r6 (20-11): landscape-telefoons (korte viewport): hero en het onderschrift "Set sail to" visueel weg zodat de mediaknoppen boven de vouw en boven de spelerbalk staan.
   Alleen visueel verborgen (sr-only-patroon): de h1, #results-title en de aria-label "Set sail to" blijven voor hulptechnologie en scripts bestaan. Portret en desktop blijven ongewijzigd. */
@media (orientation:landscape) and (max-height:480px){
  .vf-head,.vf-civ .vf-label{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
}

/* r7 (B): hover-veer binnen de eigen ruimte: de gaten tussen de grote knoppen zijn minstens zo groot als de gemeten groei van de veer (geen overlap, randen blijven staan); het licht loopt achter de letters (z-index -1 in een eigen stapelcontext) */
.vf-civ-row{gap:clamp(6px,1.6vw,16px)}
.va-strips{gap:clamp(3px,.7vw,8px)}
.va-strips .va-strip,.va-strips .va-strip+.va-strip{border:1px solid var(--line);border-radius:3px}
.vf-search{gap:clamp(8px,1vw,14px)}

/* r7 (A): weergavefilter en -sortering van "Your playlist" (paneel en lijstpagina): compact, zelfde stijl; slepen en verplaatsen staan uit zolang een weergave actief is */
.speler-queue-tools{display:flex;gap:8px;margin:8px 0 0}
.speler-queue-tools input,.speler-queue-tools select,.pl-sort select{min-height:44px;border:1px solid var(--line);border-radius:3px;background:var(--card);color:var(--ink);font:inherit;font-size:.9rem;padding:0 10px}
.speler-queue-tools input{flex:1 1 0;min-width:0}
.pl-sort{display:inline-block;margin:0 0 8px 8px}
.speler-view-note,.pl-note{margin:6px 0 0;font-size:.78rem;color:var(--muted);line-height:1.35}
.speler-view-note[hidden],.pl-note[hidden]{display:none}
#playlist-items.is-viewing .speler-handle,#playlist-items.is-viewing .card-add[aria-label^="Move"]{display:none}

/* r9: alle rijacties (Play+Add-groep, YouTube-pictogram, pijl-icoon voor film/boek) delen dezelfde rechterrand en marge: derde kolom auto, rechts uitgelijnd, geen negatieve marge of overloop */
.episode:has(>.episode-action),.episode:has(>.episode-acts){grid-template-columns:auto minmax(0,1fr) auto}
.episode>.episode-action,.episode>.episode-acts{justify-self:end;align-self:center;margin:0}
.episode>.episode-action.is-out:not(.is-yt){width:44px;min-width:44px;height:44px;min-height:44px}
.episode-acts .episode-action{border:0}   /* r9: geen standaard knoprand (2px outset) rond de playcirkel */

/* r10 (laatste rij, landscape): de uitgeklapte speler mag op een korte, liggende viewport niet bijna het hele scherm innemen; hij krijgt een maximale hoogte en scrolt binnen zichzelf, zodat het laatste resultaat en zijn knoppen er altijd boven kunnen komen (scroll-padding volgt de gemeten hoogte via --speler-bar-h) */
@media(orientation:landscape) and (max-height:480px){
  #listen-bar.is-expanded{max-height:calc(100vh - 215px);max-height:calc(100dvh - 215px);overflow-y:auto;overscroll-behavior:contain}
}

.vf-library { margin-block: 1rem; }
.vf-library-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem; }
.vf-library :is(button, select, input), .vf-library-dialog :is(button, select, input) { min-height: 44px; }
.vf-library :is(button, select, input), .vf-library-dialog :is(button, select, input) {
  padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); background: var(--card);
}
.vf-library button.tr-btn[aria-pressed=true] { background: var(--blue); color: var(--accent-ink); border-color: var(--blue); }
.vf-library-hide { display: none !important; }
.vf-library-items { padding: 0; list-style: none; }
.vf-library-items li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border-block-end: 1px solid var(--line); padding-block: .65rem; }
.vf-library-items strong { flex-basis: 100%; overflow-wrap: anywhere; }
.vf-library-items .metadata { flex: 1; }
.vf-library-dialog {
  box-sizing: border-box; width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); inset-inline: 0;
  margin: auto; padding: clamp(1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); background: var(--paper); overflow: auto;
}
.vf-library-dialog::backdrop { background: rgb(0 0 0 / .4); }
.vf-library-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.vf-library-dialog h2 { font-size: 1.4rem; line-height: 1.2; }
.vf-library-dialog form { display: grid; gap: .8rem; margin-top: 1rem; }
.vf-library-dialog label:not([hidden]) { display: grid; gap: .35rem; }
.vf-library-dialog select, .vf-library-dialog input { width: 100%; min-width: 0; box-sizing: border-box; }
.vf-library-dialog select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23798178' stroke-width='2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .6rem center; background-size:1rem; padding-inline-end:2rem; }

.vf-dock .vf-action-symbol { margin-inline-end: .25em; }
.vf-dock .vf-action-label { white-space: nowrap; }

/* Both cards use the same lower edge and height. Expanded controls scroll
   inside their panel while the title and collapse chevron stay visible. */
body.vf-dock-with-player {
  --vf-player-side: max(12px, env(safe-area-inset-left, 0px), calc((100vw - 824px) / 2));
  --vf-player-right: max(12px, env(safe-area-inset-right, 0px), calc((100vw - 824px) / 2));
  --vf-player-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  --vf-player-height: 72px;
  --vf-action-width: clamp(110px, 33vw, 136px);
}
body.vf-dock-with-player.vf-dock-on #listen-bar.listen-bar {
  left: var(--vf-player-side);
  right: calc(var(--vf-player-right) + var(--vf-action-width) + 8px);
  bottom: var(--vf-player-bottom);
  width: auto;
  height: var(--vf-player-height);
  box-sizing: border-box;
  transform: none;
}
body.vf-dock-with-player .vf-dock {
  left: auto;
  right: var(--vf-player-right);
  bottom: var(--vf-player-bottom);
  width: var(--vf-action-width);
  height: var(--vf-player-height);
  padding: 0;
}
body.vf-dock-with-player .vf-dock > button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding-inline: 6px;
  font-size: .8rem;
  animation: none;
}
body.vf-dock-with-player .vf-dock > button[hidden] { display: none; }
body.vf-dock-with-player .vf-action-symbol { flex: none; margin: 0; }
body.vf-dock-with-player .vf-action-label {
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
body.vf-dock-with-player.vf-dock-on #listen-bar .speler-bar {
  box-sizing: border-box;
  block-size: calc(var(--vf-player-height) - 2px);
}
#listen-bar .speler-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-content: center;
  align-items: center;
  column-gap: 4px;
}
#listen-bar .speler-title, #listen-bar .speler-meta { grid-column: 1; }
#listen-bar .speler-info::after {
  content: "";
  grid-area: 1 / 2 / 3 / 3;
  justify-self: center;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  color: var(--blue);
  transform: translateY(2px) rotate(225deg);
}
#listen-bar .speler-info[aria-expanded=true]::after { transform: translateY(-2px) rotate(45deg); }
#listen-bar.listen-bar.is-expanded {
  width: min(824px, calc(100% - 2 * max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));
  background: var(--paper);
}
#listen-bar.is-expanded .speler-card {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
#listen-bar.is-expanded .speler-bar { flex: none; }
#listen-bar.is-expanded .speler-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding-block: 4px 10px;
  border-block-start: 1px solid var(--line);
}
@media (max-width: 480px) {
  body.vf-dock-with-player.vf-dock-on #listen-bar .speler-bar {
    grid-template-columns: minmax(44px, 1fr) 48px 44px;
    padding-inline: 6px;
    gap: 3px;
  }
  body.vf-dock-with-player.vf-dock-on #listen-bar .speler-cover { display: none; }
}
@media (max-width: 360px) {
  body.vf-dock-with-player { --vf-player-height: 66px; }
  body.vf-dock-with-player.vf-dock-on #listen-bar .speler-bar {
    grid-template-columns: minmax(44px, 1fr) 44px 44px;
  }
  body.vf-dock-with-player .vf-dock > button { font-size: .75rem; }
}
/* Keep the title and collapse control in the same bottom row on mobile. */
@media (max-width: 899px) {
  #listen-bar.is-expanded .speler-panel {
    order: -1;
    border-block-start: 0;
    border-block-end: 1px solid var(--line);
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  #listen-bar.is-expanded .speler-panel:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    gap: 0 12px;
    padding: 0 12px 4px;
  }
  .speler-panel :is(.speler-status, .speler-seek, .speler-timing) { grid-column: 1 / -1; }
  .speler-panel .speler-timing { line-height: 14px; }
  .speler-panel :is(.speler-controls, .speler-more-row) { gap: 4px; margin: 0; }
}

.vf-library-compact-dialog,
.vf-library-compact-dialog :is(button, h2, input, select) {
  font-family: system-ui, -apple-system, sans-serif;
}
#playlist-view.vf-library-view {
  --vf-library-fill: color-mix(in srgb, var(--blue) 10%, var(--card));
  --vf-library-row: color-mix(in srgb, var(--ink) 6%, var(--paper));
}
#playlist-view.vf-library-view #playlist-title { font-size: clamp(1.45rem, 3vw, 1.85rem); }
#playlist-view.vf-library-view #playlist-count {
  position: absolute; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.vf-library-compact { display: grid; gap: 8px; min-width: 0; margin-block: 0 10px; }
.vf-library-compact .vf-library-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.vf-library-view :is(.vf-library-control, .vf-library-icon, .vf-library-menu-action, .vf-library-select),
.vf-library-compact-dialog .vf-library-control {
  cursor: pointer; min-height: 44px; min-width: 44px; box-sizing: border-box;
  padding: 0 10px; border: 1px solid transparent; border-radius: 4px;
  font-size: .85rem; font-weight: 600; color: var(--ink); background: transparent;
}
.vf-library-view :is(button, summary):focus-visible,
.vf-library-compact-dialog :is(button, input, select):focus-visible {
  outline: 2px solid var(--blue); outline-offset: -2px;
}
.vf-library-view :is(.vf-library-control, .vf-library-icon, .vf-library-menu-action):hover,
.vf-library-compact-dialog .vf-library-control:hover { background: var(--vf-library-row, var(--card)); }
.vf-library-view .vf-library-selector,
.vf-library-view .vf-library-tracks { margin: 0; padding: 0; list-style: none; min-width: 0; }
.vf-library-view .vf-library-selector {
  max-height: 14rem; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 4px;
}
.vf-library-view .vf-library-selector > li + li { border-top: 1px solid var(--line); }
.vf-library-view .vf-library-select {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  align-items: center; text-align: start; width: 100%; border-radius: 0;
  border-inline-start: 3px solid transparent;
}
.vf-library-view .vf-library-select:hover { background: var(--vf-library-row); }
.vf-library-view .vf-library-select[aria-pressed="true"] {
  border-inline-start-color: var(--blue); background: var(--vf-library-fill); font-weight: 750;
}
.vf-library-view .vf-library-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-library-view .vf-library-meta { font-size: .76rem; font-weight: 500; color: var(--muted); }
.vf-library-view .vf-library-select .vf-library-meta { white-space: nowrap; }
.vf-library-view .vf-library-selected { min-width: 0; margin-top: 6px; }
.vf-library-view .vf-library-selected-head {
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px; min-width: 0;
}
.vf-library-view .vf-library-selected-head h3 {
  flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.23;
  overflow-wrap: anywhere; overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.vf-library-view .vf-library-primary,
.vf-library-compact-dialog .vf-library-primary {
  cursor: pointer; min-height: 44px; min-width: 44px; flex: none; padding: 0 11px;
  border: 1px solid var(--blue); border-radius: 4px;
  background: var(--blue); color: var(--accent-ink); font-size: .82rem; font-weight: 700;
}
.vf-library-view .vf-library-primary:hover,
.vf-library-compact-dialog .vf-library-primary:hover { filter: brightness(1.1); }
.vf-library-view .vf-library-track {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 6px; align-items: center; min-height: 44px; border-top: 1px solid var(--line);
}
.vf-library-view .vf-library-track-copy { min-width: 0; line-height: 1.24; }
.vf-library-view .vf-library-track-copy strong { font-size: .9rem; font-weight: 650; }
.vf-library-view .vf-library-track-play { color: var(--blue); }
.vf-library-view .vf-library-menu { position: relative; min-width: 44px; justify-self: end; flex: none; }
.vf-library-view .vf-library-menu[open] { z-index: 2; }
.vf-library-view .vf-library-menu > summary {
  display: grid; place-items: center; width: 44px; padding: 0; list-style: none;
  font-size: 1.3rem; line-height: 1;
}
.vf-library-view .vf-library-menu > summary::-webkit-details-marker { display: none; }
.vf-library-view .vf-library-menu[open] > summary { background: var(--vf-library-fill); }
.vf-library-view .vf-library-menu-panel {
  position: absolute; top: 100%; right: 0; display: grid;
  width: min(11rem, calc(100vw - 36px));
  padding: 3px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--paper); box-shadow: 0 5px 16px #0002;
}
.vf-library-view .vf-library-menu-up > .vf-library-menu-panel { top: auto; bottom: 100%; }
.vf-library-view .vf-library-menu:not([open]) > .vf-library-menu-panel { display: none; }
.vf-library-view .vf-library-menu-panel :is(button, #playlist-clear, #playlist-edit) {
  width: 100%; margin: 0; padding-inline: 9px; text-align: start;
  color: var(--ink); text-decoration: none; font-size: .83rem; white-space: normal;
}
.vf-library-view .vf-library-status:empty, .vf-library-compact-dialog .vf-library-status:empty { margin: 0; }
.vf-library-view .vf-library-status:not(:empty) { font-size: .85rem; margin: 4px 0 8px; overflow-wrap: anywhere; }
#playlist-view.vf-library-view #playlist-actions:not([hidden]) {
  display: flex; align-items: center; gap: 7px; margin: 8px 0 6px;
}
#playlist-view.vf-library-view #playlist-actions.vf-library-hide { display: none; }
#playlist-view.vf-library-view #playlist-play { padding: 0 11px; border-radius: 4px; font-size: .82rem; }
#playlist-view.vf-library-view #playlist-clear:hover { background: var(--vf-library-row); }
#playlist-view.vf-library-view:has(#playlist-actions[hidden]) .pl-sort { display: none; }
#playlist-view.vf-library-view .pl-sort { margin: 0 0 8px; }
#playlist-view.vf-library-view #playlist-items .episode {
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center; gap: 8px; min-height: 44px; padding: 0;
}
#playlist-view.vf-library-view #playlist-items .episode-mark { width: 32px; }
#playlist-view.vf-library-view #playlist-items .episode-copy { min-width: 0; }
#playlist-view.vf-library-view #playlist-items :is(h3, .metadata) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0;
  font: 650 .9rem/1.24 system-ui, -apple-system, sans-serif;
}
#playlist-view.vf-library-view #playlist-items .metadata { font-size: .76rem; font-weight: 500; }
#playlist-view.vf-library-view:not(.is-editing) #playlist-items .card-tools { display: none; }
#playlist-view.vf-library-view.is-editing #playlist-items .episode-copy { padding: 4px 0; }
#playlist-view.vf-library-view #playlist-items .episode-action { border: 0; font-size: 0; min-width: 44px; }
#playlist-view.vf-library-view #playlist-empty { margin-block: 10px; padding-block: 12px; }
.vf-library-compact-dialog { overflow-wrap: anywhere; }
.vf-library-compact-dialog header h2 { margin: 0; font-size: 1.2rem; }
.vf-library-compact-dialog .vf-library-primary { justify-self: start; }

/* Give the last row room to scroll above the existing floating player. */
body.listening #playlist-view.vf-library-view { padding-block-end: max(0px, calc(var(--speler-bar-h, 0px) - 88px)); }
/* The base hides this mobile-only trigger on desktop; the menu owns it at every width. */
#playlist-view.vf-library-view .vf-library-menu-panel #playlist-edit { display: block; }

/* Load after formule-varianten-basis.css and the floating-row styles. */
#hmc.hmc-dialog {
  position: fixed; inset: var(--hmc-top, 0) auto auto var(--hmc-left, 0);
  width: var(--hmc-width, 100vw); height: var(--hmc-height, 100dvh);
  max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; color: var(--ink); background: var(--paper);
  box-sizing: border-box; overflow: hidden; overscroll-behavior: none;
  font: inherit; text-align: left;
}
#hmc.hmc-dialog[open]:not([hidden]) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#hmc.hmc-dialog[hidden], #hmc.hmc-dialog:not([open]) { display: none; }
#hmc::backdrop { background: var(--paper); }
#hmc *, #hmc *::before, #hmc *::after { box-sizing: border-box; }
#hmc .hmc-head, #hmc .hmc-foot {
  margin: 0; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: var(--card); display: flex; align-items: center; gap: 12px;
  flex-wrap: nowrap; min-width: 0; z-index: 1;
}
#hmc .hmc-head { border-bottom: 1px solid var(--line); padding-top: max(8px, env(safe-area-inset-top)); }
#hmc .hmc-title { margin: 0; font: 700 clamp(1.1rem, 3vw, 1.5rem)/1.2 var(--heading); flex: 1; }
#hmc .hmc-foot { border-top: 1px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
#hmc button { font: inherit; cursor: pointer; touch-action: manipulation; color: var(--ink); }
#hmc button:disabled { cursor: default; opacity: .45; }
#hmc button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
#hmc .hmc-close, #hmc .hmc-remove, #hmc .hmc-foot button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 44px; padding: 8px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--paper); flex-shrink: 0; margin: 0;
}
#hmc .hmc-close span, #hmc .hmc-remove span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#hmc svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#hmc .hmc-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  width: min(100%, 820px); margin-inline: auto;
}
#hmc .hmc-actions button { font-size: .875rem; }
#hmc .hmc-actions :is(.hmc-skip, .hmc-clear) { color: var(--blue); }
#hmc .hmc-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 20px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); scroll-padding: 12px; }
#hmc .hmc-scroll > * { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
#hmc .hmc-selected { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
#hmc .hmc-selected h3 { font: 700 1rem/1.3 var(--heading); margin: 0 0 10px; }
#hmc .hmc-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#hmc .hmc-selection { display: flex; max-width: 100%; align-items: stretch; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
#hmc .hmc-chip { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; font-size: .875rem; border: 0; background: transparent; color: var(--ink); white-space: normal; text-align: left; overflow-wrap: anywhere; min-width: 0; }
#hmc .hmc-remove { border: 0; border-left: 1px solid var(--line); background: transparent; }
#hmc .hmc-progress-text { color: var(--muted); font-size: .875rem; margin-top: 0; margin-bottom: 10px; }
/* Programmatic heading focus announces the question. Interactive controls keep their outlines. */
#hmc .hmc-h:focus { outline: none; }
#hmc .hmc-h { margin: 0 0 16px; font: 700 clamp(1.35rem, 4vw, 2rem)/1.2 var(--heading); }
#hmc .hmc-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#hmc .hmc-answer { min-height: 64px; padding: 14px; text-align: left; justify-content: flex-start; border-radius: 4px; transition: background-color 120ms ease, border-color 120ms ease; }
#hmc .hmc-a-s { font-size: .875rem; line-height: 1.45; }
#hmc .hmc-answer[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--paper)); }
#hmc .hmc-status:empty { display: none; }
#hmc .hmc-items li { padding: 12px 0; }
#hmc .hmc-result .action.primary { background: var(--blue); color: var(--accent-ink); }
#hmc .hmc-result .action.primary:hover { background: var(--blue); color: var(--accent-ink); box-shadow: inset 0 0 0 2px currentColor; }
#hmc .hmc-result .action { min-height: 44px; white-space: normal; }
@media (hover: hover) { #hmc button:not(:disabled):not(.primary):hover { background-color: color-mix(in srgb, var(--blue) 10%, var(--paper)); } }
@media (max-width: 520px) {
  #hmc .hmc-answers { grid-template-columns: 1fr; }
  #hmc .hmc-actions { gap: 6px; }
  #hmc .hmc-actions button { font-size: .8125rem; gap: 4px; padding-inline: 6px; }
}
@media (max-height: 450px) {
  #hmc .hmc-head, #hmc .hmc-foot { padding-block: 4px; }
  #hmc .hmc-head { padding-top: max(4px, env(safe-area-inset-top)); }
  #hmc .hmc-foot { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  #hmc .hmc-scroll { padding-block: 12px; }
  #hmc .hmc-selected { padding-bottom: 10px; margin-bottom: 12px; }
  #hmc .hmc-h { margin-bottom: 10px; font-size: 1.4rem; }
  #hmc .hmc-answer { min-height: 44px; padding: 8px 10px; }
}
@media (min-width: 600px) and (max-height: 450px) {
  #hmc { --hmc-summary-size: clamp(9rem, 24vw, 12rem); --hmc-column-gap: 16px; }
  #hmc .hmc-scroll {
    display: grid; align-content: start; justify-content: center;
    grid-template-columns: var(--hmc-summary-size) minmax(0, calc(820px - var(--hmc-summary-size) - var(--hmc-column-gap)));
    column-gap: var(--hmc-column-gap);
  }
  #hmc .hmc-selected {
    grid-column: 1; grid-row: 1 / span 3; align-self: start;
    padding: 0 10px 0 0; margin: 0; border: 0; border-inline-end: 1px solid var(--line);
  }
  #hmc .hmc-selection { width: 100%; }
  #hmc .hmc-selection .hmc-chip { flex: 1; padding-block: 4px; }
  #hmc .hmc-selection .hmc-remove { flex: 0 0 44px; }
  #hmc .hmc-scroll > :not(.hmc-selected) { grid-column: 2; }
  #hmc .hmc-actions { padding-inline-start: calc(var(--hmc-summary-size) + var(--hmc-column-gap)); }
}
@media (min-width: 900px) and (min-height: 451px) {
  #hmc.hmc-dialog[open]:not([hidden]) { display: flex; flex-direction: column; }
  #hmc .hmc-head, #hmc .hmc-foot { flex: 0 0 auto; }
  #hmc .hmc-scroll { flex: 0 1 auto; padding-block-end: 20px; }
  #hmc .hmc-foot { background: var(--paper); }
}
@media (min-width: 720px) and (max-height: 450px) {
  #hmc .hmc-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { #hmc *, #hmc *::before, #hmc *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Mobile playback controls share a single width value so the gap follows both cards. */
.vf-dock .vf-glass-label { display: none; }

@property --vf-glass-action-width {
  syntax: "<length>";
  inherits: true;
  initial-value: 92px;
}

@media (max-width: 899px) {
  :root {
    --vf-glass-surface: rgb(255 255 251 / .67);
    --vf-glass-panel: rgb(252 250 245 / .85);
    --vf-glass-sheen: rgb(255 255 255 / .32);
    --vf-glass-rim: rgb(47 52 47 / .21);
    --vf-glass-edge: rgb(255 255 255 / .72);
    --vf-glass-shadow: rgb(23 27 23 / .15);
    --vf-glass-symbol: #304b48;
    --vf-glass-blur: 12px;
  }
  :root[data-theme="dark"] {
    --vf-glass-surface: rgb(32 35 34 / .76);
    --vf-glass-panel: rgb(30 32 31 / .90);
    --vf-glass-sheen: rgb(255 255 255 / .10);
    --vf-glass-rim: rgb(237 245 243 / .24);
    --vf-glass-edge: rgb(255 255 255 / .18);
    --vf-glass-shadow: rgb(0 0 0 / .27);
    --vf-glass-symbol: #b8dad6;
    --vf-glass-blur: 16px;
  }
  body.vf-dock-with-player {
    --vf-glass-action-width: 92px;
    --vf-action-width: var(--vf-glass-action-width);
    --vf-player-height: 58px;
    --vf-player-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    transition: --vf-glass-action-width 320ms cubic-bezier(.23,.84,.29,1);
  }
  body.vf-dock-with-player.speler-playing:not(:has(#vf-jump:not([hidden]))) {
    --vf-glass-action-width: 66px;
  }
  .vf-dock > button,
  #listen-bar.listen-bar,
  #listen-bar.listen-bar.is-expanded {
    border-color: var(--vf-glass-rim);
    border-radius: 27px;
    background: var(--paper);
    box-shadow: inset 0 1px 0 var(--vf-glass-edge), 0 4px 13px var(--vf-glass-shadow);
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .vf-dock > button,
    #listen-bar.listen-bar,
    #listen-bar.listen-bar:not(.is-expanded) {
      background:
        linear-gradient(162deg, var(--vf-glass-sheen), transparent 58%),
        var(--vf-glass-surface);
      -webkit-backdrop-filter: blur(var(--vf-glass-blur)) saturate(142%);
      backdrop-filter: blur(var(--vf-glass-blur)) saturate(142%);
    }
    #listen-bar.listen-bar.is-expanded { background: var(--vf-glass-panel); }
  }
  body.vf-dock-with-player .vf-dock > button {
    padding-inline: 0;
    color: var(--vf-glass-symbol);
    border-radius: inherit;
  }
  body.vf-dock-with-player .vf-dock { border-radius: 27px; }
  body.vf-dock-with-player .vf-bulk > :is(.vf-action-label,.vf-action-symbol) { display: none; }
  body.vf-dock-with-player .vf-bulk > .vf-glass-label {
    width: 100%;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) 25px;
    align-items: center;
    padding-inline: 10px 9px;
    box-sizing: border-box;
    white-space: nowrap;
    font: 550 12px/1 system-ui, -apple-system, sans-serif;
    letter-spacing: -.018em;
  }
  .vf-glass-label svg { width: 15px; height: 15px; }
  .vf-glass-verb { justify-self: center; transition: opacity 150ms ease-out; }
  .vf-glass-count { justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
  body.speler-playing .vf-glass-verb { opacity: 0; }
  body.vf-dock-with-player .vf-dock > button:active .vf-glass-label { transform: scale(.94); }
  body.vf-dock-with-player.vf-dock-on #listen-bar .speler-bar {
    grid-template-columns: minmax(44px, 1fr) 44px 44px;
    padding: 3px 5px 3px 9px;
    gap: 0;
  }
  body.vf-dock-with-player.vf-dock-on #listen-bar .speler-cover { display: none; }
  #listen-bar .speler-info { grid-template-columns: minmax(0,1fr) 12px; column-gap: 3px; }
  #listen-bar .speler-info::after { width: 6px; height: 6px; border-width: 0 1.5px 1.5px 0; }
  #listen-bar .speler-title {
    font: 650 13px/1.24 system-ui, -apple-system, sans-serif;
    letter-spacing: -.016em;
  }
  #listen-bar .speler-meta {
    font: 500 11px/1.22 system-ui, -apple-system, sans-serif;
    color: var(--ink);
    margin-top: 2px;
  }
  #listen-bar .speler-miniplay {
    position: relative;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: transparent;
    color: var(--vf-glass-symbol);
  }
  #listen-bar .speler-miniplay::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--blue) 15%, transparent);
    box-shadow: inset 0 1px 0 var(--vf-glass-edge);
    transition: transform 230ms cubic-bezier(.2,.9,.3,1);
  }
  #listen-bar .speler-miniplay svg { position: relative; width: 17px; height: 17px; }
  #listen-bar .speler-miniplay:active::before { transform: scale(.88); }
  #listen-bar .speler-close { font: 400 21px/1 system-ui, sans-serif; }
  .vf-dock > button, #listen-bar .speler-bar button { -webkit-tap-highlight-color: transparent; }
  #listen-bar .speler-info:active {
    background: color-mix(in srgb, var(--blue) 9%, transparent);
  }
  #listen-bar .speler-bar button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px;
  }
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .vf-dock > button,
    #listen-bar.listen-bar,
    #listen-bar.listen-bar:not(.is-expanded),
    #listen-bar.listen-bar.is-expanded {
      background: var(--paper);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body.vf-dock-with-player, .vf-glass-verb, #listen-bar .speler-miniplay::before { transition: none; }
    body.vf-dock-with-player .vf-dock > button:active .vf-glass-label,
    #listen-bar .speler-miniplay:active::before { transform: none; }
  }
}

#vf-dock { justify-content: flex-end; }
#listen-bar.is-expanded .speler-panel { border-color: transparent; }
#listen-bar .speler-info::after { transition: transform 240ms ease; }
@media (prefers-reduced-motion: reduce) {
  #listen-bar .speler-info::after { transition: none; }
}

/* Episode actions use the same 44px hit areas as the other playlist controls. */
.episode-choose-playlist {
  display: grid; place-items: center; flex: 0 0 44px;
  width: 44px; min-height: 44px; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink); cursor: pointer;
  font: 700 1rem/1 system-ui, sans-serif;
}
.episode-choose-playlist:hover { background: color-mix(in srgb, var(--blue) 12%, var(--card)); }
.episode-add[aria-disabled="true"] { cursor: default; }
@media (max-width: 460px) {
  #episode-list .episode:has(> .episode-acts) { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
  #episode-list .episode > .episode-acts { grid-column: 2; justify-self: start; }
  #episode-list .episode:has(> .episode-acts) .episode-mark { width: 40px; }
}

/* Keep management and list actions together, using the same widths and spacing as the guide. */
#playlist-view.vf-library-view { width: min(100%, 820px); margin-inline: auto; }
#playlist-view.vf-library-view > .section-heading {
  padding-block: 4px 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.vf-library-view .vf-library-compact { align-items: start; gap: 16px; margin-block: 0; }
.vf-library-view .vf-library-rail { display: grid; gap: 8px; min-width: 0; }
.vf-library-view .vf-library-tools {
  flex-wrap: wrap; justify-content: flex-start; min-width: 0;
}
.vf-library-view .vf-library-tools .vf-library-control,
.vf-library-view :is(.vf-library-tools, .vf-library-selected-head) > .vf-library-menu > summary {
  border-color: var(--line); background: var(--card);
}
.vf-library-view .vf-library-tools > .vf-library-menu .vf-library-menu-panel {
  inset-inline: 0 auto;
}
.vf-library-view .vf-library-selected { margin: 0; min-width: 0; }
.vf-library-view .vf-library-selected-head {
  flex-wrap: wrap; gap: 6px; margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.vf-library-view .vf-library-selected-head h3 { flex: 1 0 100%; padding-block: 0 4px; }
#playlist-view.vf-library-view .vf-library-default-tools #playlist-actions { margin: 0; flex-wrap: wrap; }
#playlist-view.vf-library-view .vf-library-default-tools :is(.pl-search, .pl-sort) {
  min-width: 0; max-width: 100%; margin: 0;
}
#playlist-view.vf-library-view .vf-library-default-tools :is(.pl-search input, .pl-sort select) { max-width: 100%; }
#playlist-view.vf-library-view .vf-library-default-tools .pl-search input { min-height: 44px; }
#playlist-view.vf-library-view .vf-library-selected[hidden] { display: none; }
@media (min-width: 720px), (min-width: 600px) and (max-height: 450px) {
  .vf-library-view .vf-library-compact {
    grid-template-columns: clamp(11rem, 29vw, 15rem) minmax(0, 1fr);
  }
}
@media (max-height: 450px) {
  .vf-library-view .vf-library-selector { max-height: min(14rem, 40dvh); }
}
.vf-library-view .vf-playlist-grip {
  display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--muted);
  font-size: 1.3rem; cursor: grab; touch-action: none;
}
.vf-library-view .vf-playlist-grip:active { cursor: grabbing; }
.vf-library-view .vf-playlist-grip:disabled { opacity: .3; cursor: default; }
#playlist-view.vf-library-view #playlist-items .episode { grid-template-columns: 44px 32px minmax(0, 1fr) 44px; }
.vf-library-view .vf-library-track { grid-template-columns: 44px 44px minmax(0, 1fr) 44px; gap: 4px; }
#playlist-view.vf-library-view .card-tools button { min-height: 44px; }
.vf-library-suggestions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-block: 10px 0; }
.vf-library-suggestions h3 { margin: 0 0 6px; font: 700 1rem/1.3 var(--heading); }
.vf-library-suggestion {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center;
  min-height: 48px; padding: 2px 0; border-top: 1px solid var(--line);
}
.vf-library-suggestion :is(strong, span) { display: block; overflow-wrap: anywhere; }
.vf-library-suggestion button { border-color: var(--line); background: var(--card); }

/* Keep the group centered and the same padding for one- and four-digit counts. */
body .vf-dock > button,
body.vf-dock-with-player .vf-dock > button {
  padding: 8px 10px;
  gap: 5px;
}
body.vf-dock-with-player[data-vf-dock-action="matches"] {
  --vf-action-width: max(116px, calc(106px + var(--vf-dock-label-size, 1) * 7.5px));
}
body.vf-dock-with-player .vf-dock .vf-action-label { white-space: nowrap; }
@media (max-width: 899px) {
  body.vf-dock-with-player[data-vf-dock-action="add"] {
    --vf-action-width: max(var(--vf-glass-action-width), calc(46px + var(--vf-dock-label-size, 1) * 8px));
  }
  body.vf-dock-with-player .vf-bulk > .vf-glass-label {
    display: inline-flex; justify-content: center; align-items: center;
    width: auto; max-width: 100%; padding: 0; gap: 4px;
  }
  body.vf-dock-with-player.speler-playing .vf-glass-verb { display: none; }
}
#playlist-view.vf-library-view .vf-library-default-tools #playlist-edit { display: inline-flex; align-items: center; }

/* Leave clearance above long labels for the disclosure chevron. */
body[data-variant] .va-strip {
  grid-template-columns: minmax(0, 1fr);
  padding-block-start: 17px;
}
body[data-variant] .va-strip :is(.va-k, .va-v) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body[data-variant] .va-strip .va-k {
  display: block;
  align-content: center;
}
@media (max-width: 600px) {
  .mast .mast-inner nav {
    flex-wrap: wrap;
    gap: 2px 4px;
    min-width: 0;
  }
  .mast .mast-inner nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25em;
    min-height: 44px;
    padding-inline: clamp(4px, 1.45vw, 10px);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .mast .mast-inner nav > a:is([aria-current], [aria-pressed="true"], :active) {
    color: var(--blue);
    border-color: transparent;
    background: color-mix(in srgb, var(--blue) 12%, var(--paper));
    font-weight: 650;
  }
  .mast .mast-inner nav > a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px;
  }
  .mast .mast-inner nav .mast-paddle { display: none; }
  .mast .mast-inner nav .nav-count { margin-inline-start: 0; color: inherit; }
}


.vf-library-view .vf-playlist-grip svg {
  width: 16px;
  height: 22px;
  fill: currentColor;
}
.vf-sort-slot {
  outline: 2px dashed var(--blue);
  outline-offset: -2px;
  border-radius: 8px;
}
.vf-sort-slot > * { visibility: hidden; }
body > .vf-sort-float {
  z-index: 68 !important;
  display: grid;
  grid-template-columns: 44px 32px minmax(0, 1fr) 44px;
  align-items: center;
  list-style: none;
  background: var(--paper);
  opacity: 1 !important;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 16px #0003;
  pointer-events: none !important;
  cursor: grabbing;
}
body > .vf-sort-float.vf-library-track { grid-template-columns: 44px 44px minmax(0, 1fr) 44px; }
body > .vf-sort-float .vf-playlist-grip { border: 0; background: transparent; }
body > .vf-sort-float .vf-playlist-grip svg { width: 16px; height: 22px; fill: var(--muted); }
body > .vf-sort-float .episode-mark { width: 32px; height: 32px; }
body > .vf-sort-float .episode-mark img { width: 100%; height: 100%; object-fit: cover; }
body > .vf-sort-float :is(.episode-copy, .vf-library-track-copy) { min-width: 0; }
body > .vf-sort-float .card-tools { display: none; }
body > .vf-sort-float .episode-action { font-size: 0; }
body > .vf-sort-float .episode-action svg { width: 16px; fill: currentColor; }

@media (max-width: 899px) {
  #listen-bar .speler-info {
    grid-template-columns: minmax(0, 1fr) 24px;
    min-height: 44px;
    column-gap: 4px;
  }
  #listen-bar .speler-info::before {
    content: "";
    grid-area: 1 / 2 / 3 / 3;
    place-self: center;
    inline-size: 22px;
    block-size: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--blue) 15%, var(--paper));
  }
  #listen-bar .speler-info::after {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-width: 0 2px 2px 0;
  }
}

.speler-undo[data-playlist-feedback] {
  bottom: calc(max(var(--speler-bar-h, 0px), var(--vf-dock-height, 0px)) + 8px + env(safe-area-inset-bottom, 0px)) !important;
}
.speler-undo[data-playlist-feedback] .speler-undo-text {
  flex: 1 1 auto;
}


/* Playlist header, list chooser and player share the current Formula tokens. */
#playlist-view.vf-library-view { width:min(100%, 760px); }
#playlist-view.vf-library-view > .section-heading {
  position:absolute; inline-size:1px; block-size:1px; overflow:hidden; clip-path:inset(50%);
  white-space:nowrap; padding:0; margin:0; border:0;
}
#playlist-view.vf-library-view .vf-library-compact {
  grid-template-columns:minmax(0,1fr); gap:12px; min-width:0;
}
#playlist-view .vf-library-selected-head {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:5px 8px; padding:0 0 10px; margin:0; border:0;
}
#playlist-view .vf-library-selected-head h3 {
  padding:0; margin:0; grid-area:1 / 1; min-width:0;
  font:680 clamp(1.55rem,4.9vw,2.3rem)/1.16 var(--heading); letter-spacing:-.02em;
}
#playlist-view .vf-list-total {
  grid-area:2 / 1; color:var(--muted); font:.78rem/1.35 system-ui,sans-serif;
}
#playlist-view .vf-list-picker {
  grid-area:1 / 2 / 3; min-width:0;
}
#playlist-view .vf-list-picker[open] { grid-area:3 / 1 / 4 / -1; }
#playlist-view .vf-list-picker > summary {
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px;
  list-style:none; padding:0 10px; border:1px solid var(--line); border-radius:7px;
  cursor:pointer; background:var(--card); font:650 .8rem/1.2 system-ui,sans-serif;
}
#playlist-view .vf-list-picker > summary::-webkit-details-marker { display:none; }
#playlist-view .vf-list-picker > summary::after {
  content:""; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
#playlist-view .vf-list-picker[open] > summary::after { transform:translateY(2px) rotate(225deg); }
#playlist-view .vf-list-picker:not([open]) > :not(summary) { display:none; }
#playlist-view .vf-list-picker[open] > .vf-library-rail {
  margin-block:5px 0; animation:vf-list-reveal 150ms ease-out both;
}
@keyframes vf-list-reveal {
  from { opacity:0; transform:translateY(-3px); }
  to { opacity:1; transform:none; }
}
@media(prefers-reduced-motion:reduce) { #playlist-view .vf-list-picker[open] > .vf-library-rail { animation:none; } }
#playlist-view .vf-library-select[aria-pressed=true] { border-inline-start:3px solid var(--blue); }
#playlist-view .vf-library-selected-head .vf-library-actions { grid-column:1 / -1; }
#playlist-view .vf-library-actions {
  display:flex; align-items:center; flex-wrap:wrap; gap:4px 7px; margin:0;
}
#playlist-view.vf-library-view .vf-library-default-tools #playlist-actions { margin:0; }
#playlist-view.vf-library-view .vf-library-default-tools .pl-search { min-width:0; }
#playlist-view .pl-search input { width:100%; }
#playlist-view .pl-sort { position:relative; }
#playlist-view .pl-sort select {
  appearance:none; -webkit-appearance:none; block-size:44px; max-inline-size:100%; padding-inline-end:23px;
}
#playlist-view .pl-sort:has(select)::after {
  content:""; position:absolute; pointer-events:none; right:10px; top:17px; width:6px; height:6px;
  border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg);
}
#playlist-view.vf-library-view #playlist-items .episode {
  grid-template-columns:44px 40px minmax(0,1fr) 44px;
  align-items:center; gap:4px; min-height:68px; padding-block:4px;
}
#playlist-view.vf-library-view .vf-library-track {
  grid-template-columns:44px 40px minmax(0,1fr) 44px 44px;
  min-height:68px; gap:4px; padding-block:4px;
}
#playlist-view.vf-library-view :is(.episode-mark,.vf-library-track-art) {
  width:40px;height:40px;border-radius:5px;overflow:hidden; background:var(--vf-library-fill);
}
#playlist-view .vf-library-track-art { display:grid;place-items:center;color:var(--blue);font:700 .78rem system-ui; }
#playlist-view .vf-library-track-art img { width:100%;height:100%;object-fit:cover; }
#playlist-view.vf-library-view #playlist-items .episode-copy { display:flex;flex-direction:column; }
#playlist-view.vf-library-view #playlist-items .episode h3 { order:-1; }
#playlist-view.vf-library-view #playlist-items .episode .card-tools { order:1; }
#playlist-view.vf-library-view #playlist-items .episode :is(h3,h3 a),
#playlist-view.vf-library-view .vf-library-track-copy strong {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  white-space:normal; overflow-wrap:anywhere; overflow:hidden;
  font:650 clamp(.98rem,2.35vw,1.1rem)/1.22 var(--heading); text-overflow:ellipsis;
}
#playlist-view .episode-copy .metadata { margin-block-start:3px; }
#playlist-view .vf-playlist-grip:hover { background:var(--vf-library-fill); }
body:has(#playlist-view:not([hidden])) #listen-bar.listen-bar {
  background:color-mix(in srgb,var(--paper) 78%,transparent);
  -webkit-backdrop-filter:blur(16px) saturate(115%);backdrop-filter:blur(16px) saturate(115%);
}
body:has(#playlist-view:not([hidden])) #listen-bar :is(.speler-info,.speler-panel) {
  background:var(--paper);
}
body:has(#playlist-view:not([hidden])) #listen-bar .speler-info { padding-inline:7px 4px; }
body:has(#playlist-view:not([hidden])) #listen-bar .speler-info :is(.speler-title,.speler-meta) {
  min-width:0;
}
body:has(#playlist-view:not([hidden])) #listen-bar .speler-title {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:normal;
}
body:has(#playlist-view:not([hidden])) #listen-bar .speler-close { width:44px; }
body.listening #playlist-view.vf-library-view {
  padding-block-end:calc(var(--speler-bar-h,0px) + env(safe-area-inset-bottom,0px));
}
#playlist-view #speler-undo {
  position:static; transform:none; max-width:none; width:100%;
  margin-block:0 8px; box-sizing:border-box;
}
#playlist-view .vf-list-notice:empty { display:none; }
@media (max-width: 480px) {
  #playlist-view.vf-library-view .vf-library-track {
    grid-template-columns:44px 40px minmax(0,1fr) 44px;
  }
  #playlist-view .vf-library-track .vf-library-track-play { grid-column:4;grid-row:1; }
  #playlist-view .vf-library-track .vf-library-track-copy { grid-column:3;grid-row:1; }
  #playlist-view .vf-library-track > .vf-library-menu { grid-column:4;grid-row:2; }
  #playlist-view .vf-library-track-art { grid-column:2;grid-row:1; }
}
@media(prefers-reduced-transparency:reduce) {
  body:has(#playlist-view:not([hidden])) #listen-bar.listen-bar {
    background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;
  }
}
body > .vf-sort-float.episode { grid-template-columns:44px 40px minmax(0,1fr) 44px; }
body > .vf-sort-float.vf-library-track { grid-template-columns:44px 40px minmax(0,1fr) 44px 44px; }
body > .vf-sort-float .vf-library-track-art img { width:40px;height:40px;object-fit:cover; }
#playlist-view #speler-undo .speler-undo-go { display:none; }
#playlist-view.vf-library-view #playlist-items .episode-mark { width:40px;height:40px; }

.vf-active-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: start;
  width: 100%;
}
.vf-active-filterbar[hidden] { display: none; }
.vf-active-filterbar .active-filters {
  min-width: 0;
  align-items: center;
  min-height: 44px;
}
.vf-active-filterbar .active-filters button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.vf-clear-icon {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--blue);
  cursor: pointer;
}
@media (hover: hover) {
  .vf-clear-icon:hover { border-color: var(--blue); }
}
.vf-clear-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

.vf { --civ-choice-height: 52px; }
.vf .vf-civ-btn,
body[data-variant] .vf .va-strip { min-height: var(--civ-choice-height); }
body[data-variant] .vf .va-strip {
  padding-block: 4px;
  padding-inline: 14px;
  gap: 2px;
}
body[data-variant] .vf .va-strip .va-k { min-height: 0; line-height: 1.12; }
body[data-variant] .vf .va-strip .va-v {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vf .va-opt, .vf .va-opt[aria-pressed="true"] { padding-inline: 22px 9px; font-weight: 650; }
.vf .va-opt[aria-pressed="true"]::before { left: 8px; width: 4px; height: 8px; }
@media(max-width:360px) {
  body[data-variant] .vf .va-strip { padding-inline: 11px; }
}
