.av-tools{display:flex;gap:18px;flex-wrap:wrap}.av-tools label{display:grid;gap:7px;flex:1;min-width:170px;color:var(--muted);font-size:12px}.av-tools input,.av-tools select{padding:11px;background:#ffffff88;border:1px solid var(--line);color:var(--ink);font:inherit}#av-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.av-card{border:1px solid var(--line);background:#ffffff70;height:100%;overflow:hidden}.av-cover{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#e9edf4}.av-cover img{width:100%;height:100%;object-fit:contain;display:block}.av-placeholder{display:grid;place-items:center;min-height:150px;font:50px var(--serif);color:var(--gold);background:#e9edf4}.av-play{position:absolute;bottom:12px;right:12px;background:#34425be6;color:white;padding:7px 12px;font-size:12px}.av-info{padding:22px}.av-info h3{font:500 24px/1.5 var(--serif);margin:10px 0}.av-info p{white-space:pre-wrap}.av-info small,.av-en,.av-tags{color:var(--muted);font-size:12px}.av-en{font-style:italic}.av-source{display:block;font-size:12px;margin-top:10px;color:var(--navy)}.av-transcript{border-top:1px solid var(--line);padding-top:10px}.av-transcript audio{width:100%;margin-top:12px}.av-compact .av-info h3{font-size:23px}#av-empty{text-align:center;padding:70px 20px;border:1px dashed var(--line)}#av-empty>span{font-size:45px;color:var(--gold)}#av-reset{padding:10px 20px;color:var(--navy);background:transparent;border:1px solid var(--line)}.av-collection [hidden]{display:none!important}.av-card a:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}@media(max-width:1000px){#av-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#av-grid{grid-template-columns:1fr}.av-tools label{min-width:100%}}

/* Story embeds follow the width of the dialogue images and the cover's natural ratio. */
.av-card.av-compact {
  position: relative;
  isolation: isolate;
  margin: 5px 0 32px 27px;
  padding: 1px;
  height: auto;
  border: 0;
  background: var(--line);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.av-compact::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #fff;
  clip-path: polygon(11.5px 0, calc(100% - 11.5px) 0, 100% 11.5px, 100% calc(100% - 11.5px), calc(100% - 11.5px) 100%, 11.5px 100%, 0 calc(100% - 11.5px), 0 11.5px);
}
.av-compact .av-cover { aspect-ratio: auto; }
.av-compact .av-cover img { height: auto; }
.av-compact .av-play {
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  transform-origin: bottom right;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.av-compact .av-cover:focus-visible .av-play {
  background: #e0bd82;
  color: #1e294c;
}
@media (hover: hover) {
  .av-compact .av-cover:hover .av-play {
    background: #e0bd82;
    color: #1e294c;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .av-compact .av-cover:hover .av-play { transform: scale(1.06); }
}
@media (max-width: 760px) {
  .av-card.av-compact { margin-left: 12px; }
}
