/* ==========================================================================
   Genre-Welten (D2) – sechs Kacheln in einer Reihe, darunter die geöffnete Welt.
   Grundlage: dunkle Cinematic-Designvorlage. Nutzt ausschließlich die Tokens aus site.css;
   der Dunkel-Modus der geöffneten Welt kommt aus theme.css (tools/theme/dark.src.css).
   Die Kacheln sind Bildflächen und in beiden Modi dunkel.
   site.css bleibt unverändert (Design-Freeze); die Phase-C-Kacheln (.worlds/.world) werden nur noch
   verwendet, solange Migration 004 nicht ausgeführt ist.
   ========================================================================== */

/* ---------- Kachelreihe ---------- */
.gw { background: var(--ink); }
.gw__tiles {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0;
  padding: 8px max(8px, env(safe-area-inset-right, 0px)) 8px max(8px, env(safe-area-inset-left, 0px));
}
.gw__item { display: flex; min-width: 0; }
.gw-tile {
  position: relative; flex: 1; min-width: 0; overflow: hidden; isolation: isolate; border-radius: 3px;
  aspect-ratio: 1.55; min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(14px, 1.25vw, 22px);
  color: var(--paper); /* Kacheln sind in beiden Modi dunkel */
}
.gw-tile::after { /* Rahmen der aktiven Welt */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .35s var(--ease);
}
.gw-tile[aria-expanded="true"]::after { box-shadow: inset 0 0 0 1.5px var(--lime); }
.gw-tile:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gw-tile__bg { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease); }
.gw-tile:hover .gw-tile__bg, .gw-tile:focus-visible .gw-tile__bg { transform: scale(1.045); }
.gw-tile__bg::before { /* dunkler Bildverlauf für Lesbarkeit; Stärke aus der Verwaltung (Abdunklung) */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(12,13,15,.18) 0%, transparent 30%, rgba(12,13,15,var(--scrim, .82)) 100%);
}
.gw-tile__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tint); mix-blend-mode: soft-light; opacity: var(--grade, .55); }
.gw-tile .ph-tag { top: 10px; left: 10px; }
.gw-tile__body { /* Platz für Nummer, Titel und drei Textzeilen: Nummer und Titel stehen in allen Kacheln auf gleicher Höhe */
  position: relative; display: flex; flex-direction: column; min-width: 0;
  min-height: calc(12px * 1.3 + 6px + 1.05em + 9px + 3 * 1.38 * clamp(11.5px, .85vw, 13px));
}
.gw-tile__num { font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--lime); }
.gw-tile__title {
  margin-top: 6px; font-stretch: 112%; font-weight: 800; font-size: clamp(15px, 1.32vw, 22px); line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere;
}
.gw-tile__text { margin-top: 9px; padding-right: 46px; font-size: clamp(11.5px, .85vw, 13px); line-height: 1.38; color: rgba(240,238,233,.82); }
.gw-tile__go {
  position: absolute; right: clamp(14px, 1.25vw, 22px); bottom: clamp(14px, 1.25vw, 22px);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(240,238,233,.75);
  display: grid; place-items: center; transition: background .35s var(--ease), border-color .35s, color .35s, transform .35s var(--ease);
}
.gw-tile__go svg { width: 14px; height: 10px; }
.gw-tile:hover .gw-tile__go, .gw-tile:focus-visible .gw-tile__go, .gw-tile[aria-expanded="true"] .gw-tile__go { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.gw-tile[aria-expanded="true"] .gw-tile__go { transform: rotate(90deg); }

/* Bildstimmung je Welt (Farbton über dem Motiv) und Platzhalter-Verlauf, solange kein Motiv hinterlegt ist.
   Werte aus site.css (Phase-C-Kacheln und Projekt-Platzhalter). */
.gw-tile--synchron     { --tint: #2a5a86; }
.gw-tile--voiceover    { --tint: #5f8466; }
.gw-tile--werbung      { --tint: #d48a3a; }
.gw-tile--games        { --tint: #6a3fb0; }
.gw-tile--hoerwelten   { --tint: #3f87a3; }
.gw-tile--off-sprecher { --tint: #a07a52; }
.gw-tile--synchron .gw-tile__bg, .gw-tint--synchron { background: radial-gradient(55% 70% at 72% 38%, #6e7f93 0, transparent 60%), radial-gradient(30% 40% at 18% 30%, #2b4d6a 0, transparent 70%), linear-gradient(160deg, #0f1823, #0a0e13); }
.gw-tile--voiceover .gw-tile__bg, .gw-tint--voiceover { background: radial-gradient(70% 40% at 50% 26%, #d9dde0 0, transparent 70%), radial-gradient(80% 50% at 50% 95%, #2e4532 0, transparent 70%), linear-gradient(180deg, #7f8a92, #1d2a22); }
.gw-tile--werbung .gw-tile__bg, .gw-tint--werbung { background: radial-gradient(45% 60% at 70% 30%, #f3b467 0, transparent 60%), radial-gradient(35% 60% at 20% 70%, #6a3f1d 0, transparent 70%), linear-gradient(170deg, #3a2414, #120c08); }
.gw-tile--games .gw-tile__bg, .gw-tint--games { background: radial-gradient(40% 55% at 64% 34%, #5b4f8c 0, transparent 65%), radial-gradient(25% 30% at 30% 72%, #c3622d 0, transparent 70%), linear-gradient(160deg, #1b1830, #0b0a12); }
.gw-tile--hoerwelten .gw-tile__bg, .gw-tint--hoerwelten { background: radial-gradient(70% 60% at 50% 15%, #3f87a3, transparent 70%), linear-gradient(180deg, #123546, #061219); }
.gw-tile--off-sprecher .gw-tile__bg, .gw-tint--off-sprecher { background: radial-gradient(60% 70% at 40% 40%, #a07a52, transparent 70%), linear-gradient(150deg, #4a3423, #17110c); }
.gw-tile__bg:has(.media) .gw-tile__grade { display: block; }
.gw-tile__bg:not(:has(.media)) .gw-tile__grade { display: none; }

/* ---------- Geöffnete Welt ---------- */
.gw-panel {
  background: var(--haze); color: var(--ink);
  padding-block: clamp(36px, 4.4vw, 64px) clamp(44px, 5vw, 76px);
}
/* Mit JavaScript (theme.js setzt data-theme vor dem ersten Bildaufbau) ist höchstens eine Welt offen.
   Ohne JavaScript stehen alle Welten untereinander und sind über die Kacheln anspringbar. */
:root[data-theme] .gw-panel:not(.is-open) { display: none; }
.gw-panel.is-entering { animation: gw-in .45s var(--ease) both; }
@keyframes gw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gw-panel + .gw-panel { border-top: 1px solid var(--line); }

.gw-panel__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.4vw, 72px); align-items: start; }
.gw-panel__grid--single { grid-template-columns: minmax(0, 1fr); }
.gw-panel__head { border-left: 2px solid var(--lime-deep); padding-left: clamp(16px, 1.8vw, 26px); }
.gw-panel__h { margin: 0; outline: none; }
.gw-panel__label {
  display: block; font-weight: 800; font-stretch: 112%; font-size: clamp(14px, 1.1vw, 17px); letter-spacing: .06em;
  text-transform: uppercase; color: var(--gw-label, var(--ink));
}
.gw-panel__title {
  display: block; margin-top: 14px; font-stretch: var(--display-stretch); font-weight: 800;
  font-size: clamp(28px, 3.1vw, 46px); line-height: .95; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance;
}
.gw-panel__lede { margin-top: 18px; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--gw-lede, #3f3e3a); }

.gw-sec { font-stretch: var(--cond-stretch); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.gw-samples { margin-top: clamp(26px, 2.6vw, 36px); }
.gw-roles + .gw-samples { margin-top: clamp(26px, 2.6vw, 36px); }
.gw-roles:only-child, .gw-samples:first-child { margin-top: 0; }

/* ---------- D3: Projektkarten (bis zu vier je Seite, 2 × 2; mehr per Blättern) ---------- */
.gw-roles__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.gw-roles__nav { display: flex; align-items: center; gap: 10px; }
.gw-roles__nav[hidden] { display: none; }
.gw-roles__count { margin-right: 4px; font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--gw-meta, #64625c); }
.gw-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center;
  color: inherit; background: transparent; cursor: pointer; transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.gw-arrow svg { width: 14px; height: 10px; transform: rotate(180deg); }
.gw-arrow--next svg { transform: none; }
.gw-arrow:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: #141619; }
.gw-arrow:disabled { opacity: .3; cursor: default; }
.gw-arrow:focus-visible, .gw-play:focus-visible, .gw-proj__sample:focus-visible, .gw-sample__go:focus-visible, .gw-sample__dl:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

.gw-proj__track {
  margin-top: 14px; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gw-proj__track::-webkit-scrollbar { display: none; }
.gw-proj__page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gw-proj__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; align-items: start; }
.gw-proj { min-width: 0; }
.gw-proj__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; isolation: isolate; }
.gw-proj__frame .media { transition: transform .8s var(--ease); }
.gw-proj:hover .gw-proj__frame .media { transform: scale(1.035); }
.gw-proj__body { margin-top: 12px; }
.gw-proj__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.gw-proj__meta { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--gw-meta, #64625c); } /* --stone hat auf --haze nur 4,2:1 */
.gw-proj__samples { margin-top: 10px; display: grid; gap: 6px; }
.gw-proj__sample { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; font-size: 12.5px; line-height: 1.3; }
.gw-proj__sample-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gw-proj__sample-d { color: var(--gw-meta, #64625c); font-variant-numeric: tabular-nums; }
.gw-mini { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s; }
.gw-mini svg { width: 10px; height: 10px; fill: currentColor; }
.gw-proj__sample:hover .gw-mini, .gw-proj__sample.is-playing .gw-mini { background: var(--lime); border-color: var(--lime); color: #141619; }

/* Abspielknopf bei Projekten mit Video (V5), Formensprache der Kreisknöpfe */
.gw-play {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(240,238,233,.85); color: #f0eee9; background: rgba(12,13,15,.5);
  cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.gw-play svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.gw-play:hover, .gw-play:focus-visible { background: var(--lime); border-color: var(--lime); color: #141619; transform: scale(1.06); }
.gw-play[hidden] { display: none; }
.gw-play .i-pause, .gw-mini--video .i-pause { display: none; }
.gw-play.is-playing .i-play, .gw-media__btn.is-playing .gw-mini--video .i-play { display: none; }
.gw-play.is-playing .i-pause, .gw-media__btn.is-playing .gw-mini--video .i-pause { display: block; }
.gw-play .i-pause { margin-left: 0; }
.gw-play--audio.is-playing { background: var(--lime); border-color: var(--lime); color: #141619; }
.project.gw-has-video { position: relative; }
.gw-play--carousel { top: 12px; bottom: auto; }

/* ---------- D3: Sprachproben-Karten mit gemeinsamem Player ---------- */
.gw-samples__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gw-samples__list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 12px; }
.gw-sample {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s, background .2s;
}
.gw-sample:hover, .gw-sample.is-current { border-color: var(--ink); }
.gw-sample__go { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s; }
.gw-sample__go .i-arrow { width: 14px; height: 10px; }
.gw-sample__go .i-play, .gw-sample__go .i-pause { width: 14px; height: 14px; fill: currentColor; }
.gw-sample__go .i-play { margin-left: 2px; }
.gw-sample__go .i-play, .gw-sample__go .i-pause, .gw-mini .i-pause { display: none; }
.gw--audio .gw-sample__go .i-arrow { display: none; }
.gw--audio .gw-sample__go .i-play { display: block; }
.gw--audio .is-playing .i-play, .gw--audio .is-playing.gw-sample__go .i-play { display: none; }
.gw--audio .is-playing .i-pause { display: block; }
.gw-mini .i-play { display: block; margin-left: 1px; }
.gw-sample:hover .gw-sample__go, .gw-sample__go.is-playing { background: var(--lime); border-color: var(--lime); color: #141619; }
.gw-sample__body { display: grid; gap: 2px; min-width: 0; }
.gw-sample__title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gw-sample__meta { font-size: 12px; color: var(--gw-meta, #64625c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-sample__side { display: grid; justify-items: end; gap: 6px; }
.gw-sample__dur { font-size: 12px; color: var(--gw-meta, #64625c); font-variant-numeric: tabular-nums; }
.gw-sample__dl { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.gw-sample__dl svg { width: 14px; height: 14px; }
.gw-sample__dl:hover { border-color: var(--ink); }
.gw-wave { position: relative; display: block; height: 20px; margin-top: 6px; color: var(--wave-idle, #bdbab2); }
.gw--audio .gw-wave { cursor: pointer; }
.gw-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; }
.gw-wave__played { position: absolute; inset: 0; color: var(--lime-deep); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }

/* ---------- D3: Video-Overlay (immer dunkel, wie ein Kinosaal) ---------- */
.gw-video[open] {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: clamp(10px, 4vw, 48px); border: 0; background: transparent; display: grid; place-items: center; color: #f0eee9;
}
.gw-video::backdrop { background: rgba(8,9,11,.84); }
html:has(.gw-video[open]) { overflow: hidden; }
.gw-video__box { width: min(1000px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px 20px; background: #121417; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gw-video__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gw-video__kicker { font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.gw-video__title { margin-top: 4px; font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; }
.gw-video__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240,238,233,.6); display: grid; place-items: center; color: inherit; background: transparent; cursor: pointer; }
.gw-video__close svg { width: 16px; height: 16px; }
.gw-video__close:hover { background: var(--lime); border-color: var(--lime); color: #141619; }
.gw-video__stage { position: relative; margin-top: 14px; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; border-radius: 2px; }
.gw-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.gw-video__poster[hidden] { display: none; }
.gw-video__consent {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 16px;
  padding: clamp(18px, 4vw, 48px); background: linear-gradient(180deg, rgba(10,11,13,.35), rgba(10,11,13,.75));
}
.gw-video__consent[hidden] { display: none; }
.gw-video__note { max-width: 58ch; font-size: 14px; line-height: 1.6; color: rgba(240,238,233,.92); }
.gw-video__note a { color: inherit; text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.gw-video__remember { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.gw-video__remember input { width: 16px; height: 16px; accent-color: var(--lime); }
.gw-video__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-video__load, .gw-video__cancel {
  padding: 13px 20px; border-radius: 2px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.gw-video__load { background: var(--lime); color: #141619; border: 1px solid var(--lime); }
.gw-video__load:hover { background: #e2f57a; }
.gw-video__cancel { background: transparent; color: inherit; border: 1px solid rgba(240,238,233,.6); }
.gw-video__cancel:hover { border-color: #f0eee9; }
.gw-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* W1: eigene Videodatei / externe MP4 im selben Overlay – Darstellung wie der YouTube-Rahmen; Zustände wie im Voice Explorer */
.gw-video__mp4 { background: #000; object-fit: contain; }
.gw-video__notice { position: absolute; left: 7%; right: 7%; top: 8%; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; pointer-events: none; }
.gw-video__notice > * { pointer-events: auto; }
.gw-video__go { box-shadow: 0 6px 24px rgba(0,0,0,.35); white-space: nowrap; }
.gw-video__go[hidden] { display: none; }
.gw-video__msg { margin: 0; padding: 10px 14px; max-width: 52ch;
  background: rgba(10,11,13,.86); color: rgba(240,238,233,.92); font-size: 13px; line-height: 1.45; border-left: 2px solid var(--lime); }
.gw-video__msg[hidden] { display: none; }
.gw-video__list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.gw-video__list[hidden] { display: none; }
.gw-video__list button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(240,238,233,.35); background: transparent; color: inherit; font-size: 13px; cursor: pointer; }
.gw-video__list button[aria-current="true"] { border-color: var(--lime); color: var(--lime); }
.gw-video button:focus-visible, .gw-video a:focus-visible, .gw-video input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Tablet: 3 × 2 ---------- */
@media (max-width: 1080px) {
  .gw__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gw-tile { aspect-ratio: 1.6; }
  .gw-tile__title { font-size: clamp(16px, 2.1vw, 22px); }
  .gw-tile__text { font-size: 12.5px; }
  .gw-panel__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Smartphone: 2 × 3 ---------- */
@media (max-width: 640px) {
  .gw__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px max(6px, env(safe-area-inset-right, 0px)) 6px max(6px, env(safe-area-inset-left, 0px)); }
  .gw-tile { aspect-ratio: auto; min-height: 176px; padding: 14px; padding-bottom: 60px; }
  .gw-tile__body { min-height: calc(12px * 1.3 + 7px + 16px + 7px + 2 * 1.38 * 11.5px); } /* Nummer und Titel je Reihe auf gleicher Höhe */
  .gw-tile__title { font-size: 16px; font-stretch: 105%; }
  .gw-tile__text { font-size: 11.5px; margin-top: 7px; padding-right: 0; }
  .gw-tile__go { width: 34px; height: 34px; left: 14px; right: auto; bottom: 14px; }
  .gw-panel__head { padding-left: 14px; }
  .gw-sample { padding: 12px 14px; gap: 12px; }
  /* Projektkarten einzeln wischbar, nächste Karte angeschnitten sichtbar */
  .gw-roles__nav { display: none; }
  .gw-proj__track { gap: 14px; scroll-padding-left: 0; }
  .gw-proj__page, .gw-proj__grid { display: contents; }
  .gw-proj { flex: 0 0 84%; scroll-snap-align: start; }
  /* Overlay: Hinweis über der Bildfläche hätte zu wenig Höhe – darunter statt darüber */
  .gw-video__box { padding: 14px 14px 16px; }
  .gw-video__stage { aspect-ratio: auto; }
  .gw-video__stage:has(.gw-video__frame), .gw-video__stage.is-mp4 { aspect-ratio: 16 / 9; } /* W1: auch MP4 (inkl. Meldung) */
  .gw-video__consent { position: relative; padding: 18px 16px; }
  .gw-video__note { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-panel.is-entering { animation: none; }
  .gw-proj__frame .media, .gw-play { transition: none; }
}

/* ---------- V2-01: Medien je Projekt und Übergang zum Voice Explorer ----------
   Kompakte Liste unter der Projektkarte: alle tatsächlich verknüpften Audio- und Videoproben, unterscheidbar an
   Symbol (rund = Audio, eckig = Video) und Kennzeichnung (Laufzeit bzw. „Video“). Kein Player, keine zweite Waveform:
   Audio spielt im gemeinsamen Player, Video im bestehenden Overlay mit Zwei-Klick-Freigabe.
   Die Genre-Kacheln sind davon nicht berührt. */
.gw-media { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.gw-media__item { position: relative; border-bottom: 1px solid var(--line); }
.gw-media__item[hidden] { display: none; }
.gw-media__btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 0; text-align: left;
  font-size: 12.5px; line-height: 1.3; color: inherit; background: none; border: 0; cursor: pointer;
}
.gw-media__btn[hidden] { display: none; }
.gw-media__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gw-media__k { flex: none; color: var(--gw-meta, #64625c); font-variant-numeric: tabular-nums; font-size: 12px; }
.gw-media__item--video .gw-media__k { font-stretch: var(--cond-stretch); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.gw-mini--video { border-radius: 4px; width: 30px; height: 22px; }
.gw-media__btn:hover .gw-mini, .gw-media__btn.is-playing .gw-mini { background: var(--lime); border-color: var(--lime); color: #141619; }
.gw-media__btn:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
/* Fortschritt der laufenden Probe als feine Linie (statt einer zweiten Waveform) */
.gw-media__item--audio::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%);
  background: var(--lime-deep); opacity: 0; transition: opacity .2s;
}
.gw-media__item--audio.is-current::after { opacity: 1; }
.gw-media__more { border-bottom: 0; }
.gw-media__morebtn { min-height: 36px; padding: 6px 0; font-size: 12px; color: var(--gw-meta, #64625c); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gw-media__morebtn:hover { color: var(--ink); }
.gw-media__morebtn:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

.gw-explore { display: flex; justify-content: flex-end; margin-top: clamp(28px, 3vw, 44px); }
.gw-explore__link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px 0 8px;
  border-bottom: 1px solid currentColor; color: var(--ink); text-decoration: none;
  font-stretch: var(--cond-stretch); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .25s, color .25s;
}
.gw-explore__link svg { width: 16px; height: 10px; flex: none; transition: transform .35s var(--ease); }
.gw-explore__link:hover { border-color: var(--lime-deep); }
.gw-explore__link:hover svg { transform: translateX(4px); }
.gw-explore__link:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 4px; }
@media (max-width: 640px) {
  .gw-explore { justify-content: flex-start; }
  .gw-explore__link { font-size: 12px; letter-spacing: .1em; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-explore__link svg, .gw-media__item--audio::after { transition: none; }
}

/* V2-02: Anzahl der Videos am Abspielknopf – nur bei mehreren veröffentlichten Videos, klein und zurückhaltend */
.gw-play__n {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center; background: #f0eee9; color: #141619;
  font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none;
}
.gw-play:hover .gw-play__n, .gw-play:focus-visible .gw-play__n { background: #141619; color: var(--lime); }

/* P2: inline card player keeps the existing 16:9 image area and card dimensions. */
.gw-inline { position: absolute; inset: 0; z-index: 5; background: #08090a; color: #fff; font: 400 13px/1.4 var(--f-sans); }
.gw-inline__surface { position: absolute; inset: 0; }
.gw-inline video, .gw-inline iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.gw-inline__close { position: absolute; top: 4px; right: 4px; z-index: 2; width: 32px; height: 32px; border: 1px solid #777; border-radius: 50%; background: #111e; color: #fff; font: 400 24px/1 sans-serif; cursor: pointer; }
.gw-inline__notice { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 40px 10px 12px; text-align: center; overflow: auto; }
.gw-inline__notice p { margin: 0; font: inherit; }
.gw-inline__notice button, .gw-inline__resume { padding: 7px 12px; border: 1px solid #bbb; border-radius: 2px; background: #f5f5f2; color: #141619; font: inherit; cursor: pointer; }
.gw-inline__notice label { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.gw-inline__notice input { width: 14px; height: 14px; flex: none; }
.gw-inline__resume { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gw-inline button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gw-proj__frame.is-video-active > .gw-play { visibility: hidden; }

.gw-inline__notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
