/*
 * WeltenNET Videos – Frontend
 * Farben angelehnt an weltennet.de: Weiß, fast schwarzes Nachtblau, Gelb als Akzent.
 * Alle Werte sind Variablen und lassen sich im Template überschreiben.
 */
.wv {
  --wv-ink: #05050f;
  --wv-ink-2: #3b3b46;
  --wv-muted: #62626e;
  --wv-line: #dcdce2;
  --wv-soft: #f1f1f4;
  --wv-bg: #ffffff;
  --wv-accent: #ffe500;
  --wv-focus: #1d3f8f;
  --wv-live: #e10600;
  --wv-radius: 12px;
  --wv-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wv-gap-x: 16px;
  --wv-gap-y: 28px;

  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px 40px;
  color: var(--wv-ink);
  background: var(--wv-bg);
  font-family: var(--wv-font);
  font-size: 15px;
  line-height: 1.4;
}
.wv *, .wv *::before, .wv *::after { box-sizing: border-box; }

.wv-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Volle Breite: weißer Hintergrund bis zum Bildschirmrand, Inhalt bleibt zentriert.
   (box-shadow + clip-path erzeugt keinen horizontalen Scrollbalken) */
.wv.wv--full {
  box-shadow: 0 0 0 100vmax var(--wv-bg);
  clip-path: inset(0 -100vmax);
}

/* Template-Deko an externen Links (z. B. „↗“) im Videoblock ausblenden */
.wv a::before, .wv a::after,
.wv-dialog a::before, .wv-dialog a::after {
  content: none !important;
  display: none !important;
}

/* ---------- Kopfzeile ---------- */
.wv-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; margin-bottom: 20px;
}
.wv-title {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--wv-ink);
}
.wv-label {
  display: inline-block; padding: 6px 10px 5px; border-radius: 6px;
  background: var(--wv-ink); color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.wv-all {
  font-weight: 700; color: var(--wv-ink); text-decoration: none;
  border-bottom: 2px solid var(--wv-ink); padding-bottom: 2px; white-space: nowrap;
}
.wv-all:hover, .wv-all:focus-visible { background: var(--wv-accent); }

/* ---------- Filterleiste ---------- */
.wv-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.wv-search {
  position: relative; flex: 1 1 260px; display: flex; min-width: 0;
}
.wv .wv-search input,
.wv .wv-select select {
  width: 100%; height: 42px; margin: 0;
  border: 1px solid var(--wv-line); border-radius: 999px;
  background: #fff; color: var(--wv-ink); font: inherit; font-size: 15px;
}
.wv .wv-search input { padding: 0 84px 0 18px; box-shadow: none; outline-offset: 2px; }
/* Templates setzen oft eckige Formularfelder – im Videoblock bleiben sie rund */
.wv .wv-search input, .wv .wv-select select { border-radius: 999px !important; }
.wv-search input::placeholder { color: var(--wv-muted); }
/* Eigenes X statt des Browser-X (das nicht jeder Browser/jedes Template zeigt) */
.wv .wv-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.wv-search-clear {
  position: absolute; right: 44px; top: 7px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; color: var(--wv-muted); text-decoration: none;
}
.wv-search-clear[hidden] { display: none; }
.wv-search-clear:hover { background: var(--wv-soft); color: var(--wv-ink); }
.wv-search-clear svg { width: 18px; height: 18px; fill: currentColor; }

/* „Filter zurücksetzen“ unter den Filtern */
.wv-sortrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.wv-sortrow > .wv-chips { flex: 1 1 auto; min-width: 0; margin: 0; }
.wv-filterstate:empty { display: none; }
.wv-filterstate { flex: 0 0 auto; margin-left: auto; }
.wv-reset-filters {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px;
  color: var(--wv-ink); font-size: 14px; font-weight: 700; text-decoration: none; background: var(--wv-soft);
}
.wv-reset-filters:hover { background: #e3e3e8; }
.wv-reset-filters svg { width: 16px; height: 16px; fill: currentColor; }
/* Phones: only the round icon, so the sort chips keep their room */
@media (max-width: 560px) {
  .wv-reset-filters { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .wv-reset-filters svg { width: 18px; height: 18px; }
  .wv-reset-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
/* Filter button: only on phones (with JavaScript), where search and filters start folded away */
.wv-filter-toggle { display: none; }
@media (max-width: 560px) {
  .wv-js .wv-filter-toggle {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 999px; background: var(--wv-soft); color: var(--wv-ink); cursor: pointer;
  }
  .wv-js .wv-filter-toggle[aria-expanded="true"] { background: var(--wv-ink); color: var(--wv-accent); }
  .wv-filter-toggle svg { width: 18px; height: 18px; fill: currentColor; }
  .wv-js .wv-bar:not(.is-open) { display: none; }
}

/* Module preview: button to all videos, fewer videos on phones (.wv--ml-N = N videos) */
.wv-more { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 560px) {
  .wv--ml-1 .wv-grid > .wv-card:nth-child(n+2) { display: none; }
  .wv--ml-2 .wv-grid > .wv-card:nth-child(n+3) { display: none; }
  .wv--ml-3 .wv-grid > .wv-card:nth-child(n+4) { display: none; }
  .wv--ml-4 .wv-grid > .wv-card:nth-child(n+5) { display: none; }
  .wv--ml-5 .wv-grid > .wv-card:nth-child(n+6) { display: none; }
  .wv--ml-6 .wv-grid > .wv-card:nth-child(n+7) { display: none; }
  .wv--ml-7 .wv-grid > .wv-card:nth-child(n+8) { display: none; }
  .wv--ml-8 .wv-grid > .wv-card:nth-child(n+9) { display: none; }
  .wv--ml-9 .wv-grid > .wv-card:nth-child(n+10) { display: none; }
  .wv--ml-10 .wv-grid > .wv-card:nth-child(n+11) { display: none; }
  .wv--ml-11 .wv-grid > .wv-card:nth-child(n+12) { display: none; }
  .wv--ml-12 .wv-grid > .wv-card:nth-child(n+13) { display: none; }
}

.wv-search-btn {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--wv-ink); color: var(--wv-accent); cursor: pointer;
}
.wv-search-btn svg { width: 18px; height: 18px; fill: currentColor; }
.wv-select { position: relative; flex: 0 1 220px; min-width: 0; }
.wv-select--topic { flex-basis: 280px; }
.wv-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--wv-ink); border-bottom: 2px solid var(--wv-ink);
  transform: rotate(45deg); pointer-events: none;
}
.wv .wv-select select {
  appearance: none; -webkit-appearance: none; padding: 0 40px 0 18px; cursor: pointer;
  text-overflow: ellipsis;
}
.wv-apply {
  height: 42px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--wv-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.wv.wv-js .wv-apply { display: none; }

/* ---------- Themen-Chips (wie YouTube) ---------- */
.wv-chips {
  display: flex; gap: 8px; margin: 0 0 24px; padding: 2px 2px 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.wv-chips::-webkit-scrollbar { display: none; }
.wv-chips[hidden] { display: none; }
.wv-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 8px; background: var(--wv-soft); color: var(--wv-ink);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.wv-chip:hover { background: #e3e3e8; }
.wv-chip.is-active { background: var(--wv-ink); color: var(--wv-accent); }

/* ---------- Raster ---------- */
.wv-results { transition: opacity .15s ease; }
.wv.is-loading .wv-results { opacity: .45; pointer-events: none; }
.wv-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--wv-gap-y) var(--wv-gap-x); margin: 0; padding: 0; list-style: none;
}
.wv-card { min-width: 0; margin: 0; }

.wv-thumb {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--wv-radius); background: var(--wv-soft);
}
.wv-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .25s ease;
}
.wv-card:hover .wv-thumb img { transform: scale(1.03); }

.wv-badge {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .02em;
}
.wv-badge--time { background: rgba(5, 5, 15, .85); color: #fff; }
.wv-badge--live { background: var(--wv-live); color: #fff; }

.wv-playicon {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--wv-accent); color: var(--wv-ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
}
.wv-playicon svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.wv-thumb:hover .wv-playicon,
.wv-thumb:focus-visible .wv-playicon { opacity: 1; transform: scale(1); }

.wv-meta { display: flex; gap: 12px; margin-top: 12px; }
.wv-avatar {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--wv-soft);
}
.wv-avatar--empty {
  display: grid; place-items: center; background: var(--wv-ink); color: var(--wv-accent); font-weight: 900;
}
.wv-text { min-width: 0; }
.wv-card-title {
  margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.35;
}
.wv-card-title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--wv-ink); text-decoration: none;
}
.wv-card-title a:hover { text-decoration: underline; text-decoration-color: var(--wv-accent); text-decoration-thickness: 3px; }
.wv-channel, .wv-stats { margin: 0; color: var(--wv-muted); font-size: 14px; }
.wv-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.wv-new {
  display: inline-block; padding: 2px 6px 1px; border-radius: 4px; background: var(--wv-accent); color: var(--wv-ink);
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Leer / Pagination ---------- */
.wv-empty { padding: 40px 16px; text-align: center; color: var(--wv-ink-2); background: var(--wv-soft); border-radius: var(--wv-radius); }
.wv-empty p { margin: 0 0 12px; }
.wv-reset { font-weight: 700; color: var(--wv-ink); }

.wv-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.wv-page {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--wv-line); color: var(--wv-ink); font-weight: 700; text-decoration: none;
}
.wv-page:hover { background: var(--wv-soft); }
.wv-page.is-active { background: var(--wv-ink); border-color: var(--wv-ink); color: var(--wv-accent); }
.wv-page--nav { font-size: 20px; line-height: 1; }
.wv-gap { color: var(--wv-muted); padding: 0 2px; }

.wv-jump {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin-top: 14px; color: var(--wv-muted); font-size: 14px;
}
.wv-jump label { font-weight: 700; color: var(--wv-ink); }
.wv .wv-jump input[type="number"] {
  width: 76px; height: 38px; margin: 0; padding: 0 10px; text-align: center;
  border: 1px solid var(--wv-line); border-radius: 999px !important; background: #fff;
  color: var(--wv-ink); font: inherit; font-weight: 700; -moz-appearance: textfield;
}
.wv .wv-jump input[type="number"]::-webkit-inner-spin-button,
.wv .wv-jump input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wv-jump button {
  height: 38px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--wv-ink); color: var(--wv-accent); font: inherit; font-weight: 700; cursor: pointer;
}
.wv-jump button:hover { background: #22222e; }

/* ---------- Fokus: schlanke dunkelblaue Umrandung (Tastaturbedienung bleibt sichtbar) ---------- */
.wv a:focus-visible, .wv button:focus-visible, .wv input:focus-visible, .wv select:focus-visible,
.wv-dialog button:focus-visible, .wv-dialog a:focus-visible, .wv-dialog input:focus-visible {
  outline: 2px solid var(--wv-focus, #1d3f8f); outline-offset: 2px; box-shadow: none;
}
.wv .wv-search input:focus, .wv .wv-select select:focus {
  border-color: var(--wv-focus, #1d3f8f); outline: 1px solid var(--wv-focus, #1d3f8f); outline-offset: 0; box-shadow: none;
}

/* ---------- Player / Einwilligung ---------- */
.wv-dialog {
  --wv-ink: #05050f; --wv-accent: #ffe500;
  width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px);
  padding: 0; border: 0; border-radius: 14px; overflow: visible;
  background: var(--wv-ink); color: #fff; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.wv-dialog::backdrop { background: rgba(5, 5, 15, .82); }
.wv-dialog[open]:not([data-modal]) { position: fixed; inset: 0; margin: auto; z-index: 10000; height: fit-content; }
.wv-dialog-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; }
.wv-dialog-title { flex: 1; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-close {
  flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.wv-close:hover { background: var(--wv-accent); color: var(--wv-ink); }
.wv-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - 100px); background: #000; border-radius: 0 0 14px 14px; overflow: hidden; }
.wv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wv-consent-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.3); transform: scale(1.08); }
.wv-consent {
  color: #fff; background: rgba(5, 5, 15, .55);
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; padding: 20px; text-align: center; overflow-y: auto;
}
.wv-consent h3 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; }
.wv-consent p { max-width: 560px; margin: 0; font-size: 14px; line-height: 1.5; color: #e6e6ee; }
.wv-consent a { color: var(--wv-accent); }
.wv-consent h3, .wv-consent p, .wv-consent label, .wv-consent span { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.wv-consent label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: #fff !important; cursor: pointer; }
.wv-consent .wv-btn, .wv-consent .wv-btn span { text-shadow: none; }
.wv-consent .wv-btn--primary span { color: var(--wv-ink); }
.wv-consent input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--wv-accent); }
.wv-consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.wv-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.wv-btn--primary { border: 0; background: var(--wv-accent); color: var(--wv-ink); }
.wv-btn--primary svg { width: 18px; height: 18px; fill: currentColor; }
.wv-btn--ghost { border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff !important; }
.wv-btn--ghost:hover { border-color: #fff; }
html.wv-noscroll { overflow: hidden; }

/* ---------- Einzelseite ---------- */
.wv-single { padding-top: 32px; }
.wv-player {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: 16px; background: #000;
}
.wv-player-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.wv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wv-player-start {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--wv-accent); color: var(--wv-ink); box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
.wv-player-start:hover { transform: scale(1.06); }
.wv-player-start svg { width: 38px; height: 38px; margin-left: 5px; fill: currentColor; }
.wv-player .wv-badge { right: 12px; bottom: 12px; font-size: 13px; }

.wv-single-head { margin: 18px 0 10px; }
.wv-single-title { margin: 0 0 12px; font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--wv-ink); }
.wv-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* Kanal: Logo immer links neben Name und Aufrufen – unabhängig von Template-Regeln für Bilder */
.wv-single-channelrow { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; }
.wv-single-channelrow .wv-avatar {
  display: block; flex: 0 0 40px; width: 40px !important; height: 40px !important; max-width: none;
  margin: 0 !important; padding: 0; border: 0; border-radius: 50%; object-fit: cover; float: none;
}
.wv-single-channelinfo { min-width: 0; }
.wv-single-channelinfo .wv-stats { margin: 2px 0 0; }
.wv-single-channel { font-weight: 700; color: var(--wv-ink); text-decoration: none; }
.wv-single-channel:hover { text-decoration: underline; }
.wv-single-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.wv-btn--dark { border: 0; background: var(--wv-ink); color: #fff !important; }
.wv-btn--dark:hover { background: #26263a; }
.wv-btn--outline { border: 2px solid var(--wv-ink); background: transparent; color: var(--wv-ink) !important; }
.wv-btn--outline:hover { background: var(--wv-accent); border-color: var(--wv-accent); }
.wv-btn .wv-ytref-logo { width: 24px; height: 17px; }
/* Themen auf der Videoseite: umbrechen statt abschneiden */
.wv-single-topics {
  flex-wrap: wrap; overflow: visible; margin: 8px 0 20px; padding: 0;
  -webkit-mask-image: none; mask-image: none;
}
.wv-single-topics .wv-chip {
  flex: 0 1 auto; max-width: 100%; height: auto; min-height: 34px; padding: 7px 14px;
  line-height: 1.3; white-space: normal; text-align: left;
}

.wv-single-body { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.wv-single-text { font-size: 16px; line-height: 1.7; color: var(--wv-ink-2); max-width: 72ch; }
.wv-single-text p { margin: 0 0 1em; }
.wv-single-text a { color: var(--wv-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--wv-accent); text-decoration-thickness: 3px; text-underline-offset: 2px; word-break: break-word; }
.wv-single-text a:hover { background: var(--wv-accent); }
.wv-single-text a.wv-ref {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; max-width: 100%; padding: 3px 12px 3px 7px;
  border: 1px solid var(--wv-line); border-radius: 999px; background: #fff; color: var(--wv-ink);
  font-size: 15px; line-height: 1.5; text-decoration: none; word-break: normal;
}
.wv-single-text a.wv-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-single-text a.wv-ref:hover { background: var(--wv-soft); border-color: var(--wv-ink); }
.wv-ytref-logo { flex: 0 0 auto; width: 22px; height: 16px; display: block; }
.wv-ref-icon { flex: 0 0 auto; width: 20px; height: 20px; display: block; border-radius: 4px; object-fit: contain; }
.wv-ref--ext .wv-ref-icon { color: var(--wv-muted); }
.wv-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 4px 0 0; }
.wv-tag { color: var(--wv-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.wv-tag:hover { color: var(--wv-ink); text-decoration: underline; }
.wv-single-main { min-width: 0; }
.wv-section-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--wv-ink); }

/* Kapitel: keine feste Höhe, damit lange Titel nie abgeschnitten werden (auch wenn das Template Buttons eine Höhe gibt) */
.wv-chapters ol {
  margin: 0; padding: 0; list-style: none; border: 1px solid var(--wv-line); border-radius: 12px;
  height: auto !important; max-height: none !important; overflow: visible !important;
}
.wv-chapters li { margin: 0; padding: 0; height: auto !important; max-height: none !important; overflow: visible !important; }
.wv-chapters { height: auto; max-height: none; overflow: visible; }
.wv-chapters li + li { border-top: 1px solid var(--wv-line); }
.wv-chapters li:first-child button { border-radius: 11px 11px 0 0; }
.wv-chapters li:last-child button { border-radius: 0 0 11px 11px; }
.wv-chapters li:only-child button { border-radius: 11px; }
.wv-chapters button {
  display: flex; align-items: center; gap: 12px; width: 100%; height: auto !important; min-height: 44px; max-height: none;
  margin: 0; padding: 10px 14px; border: 0; background: #fff; color: var(--wv-ink); font: inherit; font-size: 14px;
  line-height: 1.4; white-space: normal; overflow: visible; text-align: left; cursor: pointer;
}
.wv-chapter-label { min-width: 0; overflow-wrap: anywhere; }
.wv-chapters button:hover { background: var(--wv-soft); }
.wv-chapter-time {
  flex: 0 0 auto; min-width: 54px; padding: 3px 8px; border-radius: 6px; text-align: center;
  background: var(--wv-ink); color: var(--wv-accent); font-weight: 700; font-variant-numeric: tabular-nums;
}

.wv-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--wv-line); }

@media (min-width: 900px) {
  .wv-single-body:has(.wv-chapters) { grid-template-columns: minmax(0, 1fr) 320px; }
  .wv-chapters { position: sticky; top: 16px; align-self: start; }
}
@media (max-width: 640px) {
  .wv-single { padding-top: 16px; }
  .wv-player { border-radius: 10px; }
  .wv-player.is-consent { aspect-ratio: auto; min-height: 340px; }
  .wv-player-start { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .wv-single-title { font-size: 21px; }
  .wv-single-actions { margin-left: 0; width: 100%; }
  .wv-single-actions .wv-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wv { padding: 32px 16px 28px; }
  .wv-title { font-size: 22px; }
  .wv-grid { grid-template-columns: 1fr; gap: 24px; }
  .wv-select { flex: 1 1 calc(50% - 5px); }
  .wv-thumb { border-radius: 10px; }
  .wv-playicon { opacity: 1; transform: scale(.8); }
  .wv-consent h3 { font-size: 17px; }
  .wv-consent p { font-size: 12.5px; }
  .wv-btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .wv-stage.is-consent { aspect-ratio: auto; min-height: 340px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .wv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .wv *, .wv-dialog * { transition: none !important; }
  .wv-card:hover .wv-thumb img { transform: none; }
}
