/* SPT Videos – nutzt die Tokens des SPT-Themes, mit Fallbacks für andere Themes. */
.spt-videos {
  --v-bg: var(--bg-100, #141c24);
  --v-bg2: var(--bg-200, #1c2630);
  --v-line: var(--line-100, #2a3540);
  --v-line2: var(--line-200, #617080);
  --v-ink: var(--ink, #eef1ee);
  --v-muted: var(--ink-muted, #9aa6b1);
  --v-radius: var(--radius-lg, 12px);
  --v-radius-s: var(--radius-md, 6px);
  --spt-cat: var(--lead, #f39200);
  color: var(--v-ink);
  font-family: var(--font-sans, inherit);
  width: 100%;
}
.spt-videos *, .spt-videos *::before, .spt-videos *::after { box-sizing: border-box; }
.spt-videos button { font: inherit; }

/* Reiter */
.spt-videos__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--v-line); margin-bottom: 20px; }
.spt-videos__tabs::-webkit-scrollbar { display: none; }
.spt-videos__tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 14px; border: 0; background: none; color: var(--v-muted); cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 20px; white-space: nowrap;
}
.spt-videos__tab:hover { color: var(--v-ink); }
.spt-videos__tab[aria-selected="true"] { color: var(--v-ink); }
.spt-videos__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--spt-cat); }
.spt-videos__tab-count { font: 500 11px/16px var(--font-mono, monospace); padding: 0 6px; border-radius: 999px; background: var(--v-bg2); color: var(--v-muted); }
.spt-videos__tab:focus-visible, .spt-videos button:focus-visible { outline: 2px solid var(--spt-cat); outline-offset: 2px; }

/* Raster: Player links, Playlist rechts */
.spt-videos__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
.spt-videos__main { min-width: 0; }
.spt-videos__side { position: relative; min-height: 320px; }
.spt-videos__list { position: absolute; inset: 0; margin: 0; padding: 4px; list-style: none; overflow-y: auto; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-bg); scrollbar-width: thin; }

/* Bühne */
.spt-videos__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--v-radius); overflow: hidden; background: #000; }
.spt-videos__frame, .spt-videos__frame iframe, .spt-videos__stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spt-videos__poster { position: absolute; inset: 0; }
.spt-videos__poster img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.55); }
.spt-videos__bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 72px; height: 72px; border: 0; border-radius: 50%;
  background: var(--spt-cat); color: var(--spt-x-on, #0c1218); cursor: pointer; transition: transform .15s ease;
}
.spt-videos__bigplay:hover { transform: translate(-50%, -50%) scale(1.06); }
.spt-videos__consent {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 90%);
  padding: 20px 24px; border-radius: var(--v-radius); background: color-mix(in srgb, var(--v-bg) 92%, transparent); border: 1px solid var(--v-line); text-align: left;
}
.spt-videos__consent p { margin: 0 0 10px; }
.spt-videos__consent-title { font-weight: 700; font-size: 18px; line-height: 24px; }
.spt-videos__consent-text, .spt-videos__consent-note { font-size: 13px; line-height: 19px; color: var(--v-muted); }
.spt-videos__consent-text a { color: var(--spt-cat); }
.spt-videos__consent-note { margin: 10px 0 0 !important; font-size: 12px; }
.spt-videos__consent-btn { padding: 10px 16px; border: 0; border-radius: var(--v-radius-s); background: var(--spt-cat); color: var(--spt-x-on, #0c1218); font-weight: 700; font-size: 14px; cursor: pointer; }
.spt-videos__empty-stage { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: var(--v-bg2); color: var(--v-muted); }
.spt-videos__empty-stage p { margin: 0; }
.spt-videos__empty-stage p:first-child { font-size: 40px; line-height: 1.2; color: var(--spt-cat); }

/* Infozeile unter dem Video */
.spt-videos__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 14px; }
.spt-videos__meta { min-width: 0; }
.spt-videos__cat { margin: 0 0 4px; font: 700 12px/16px var(--font-sans, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--spt-cat); }
.spt-videos__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--v-ink); }
.spt-videos__fav { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--v-line2); border-radius: var(--v-radius-s); background: transparent; color: var(--v-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.spt-videos__fav[aria-pressed="true"] .spt-videos__star { color: var(--spt-cat); }
.spt-videos__star { font-size: 16px; line-height: 1; }

/* Playlist-Einträge */
.spt-videos__item { position: relative; display: flex; align-items: center; border-radius: var(--v-radius-s); }
.spt-videos__item:hover, .spt-videos__item.is-active { background: var(--v-bg2); }
.spt-videos__item.is-active { box-shadow: inset 3px 0 0 var(--spt-cat); }
.spt-videos__item-play { flex: 1; min-width: 0; display: grid; grid-template-columns: 22px 120px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 4px 8px 8px; border: 0; background: none; color: var(--v-ink); text-align: left; cursor: pointer; }
.spt-videos__num { font: 500 12px/16px var(--font-mono, monospace); color: var(--v-muted); text-align: center; }
.spt-videos__item.is-active .spt-videos__num { color: var(--spt-cat); }
.spt-videos__thumb { position: relative; display: block; width: 120px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--v-bg2); }
.spt-videos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spt-videos__dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: rgba(0,0,0,.8); color: #fff; font: 500 11px/14px var(--font-mono, monospace); }
.spt-videos__item-title { font-size: 13px; line-height: 18px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spt-videos__item-fav { flex: none; width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: var(--v-radius-s); background: none; color: var(--v-muted); font-size: 18px; cursor: pointer; }
.spt-videos__item-fav:hover { color: var(--v-ink); background: var(--v-bg); }
.spt-videos__item-fav[aria-pressed="true"] { color: var(--spt-cat); }
.spt-videos__empty { padding: 24px 16px; color: var(--v-muted); font-size: 14px; line-height: 20px; }

@media (max-width: 900px) {
  .spt-videos__body { grid-template-columns: minmax(0, 1fr); }
  .spt-videos__side { min-height: 0; }
  .spt-videos__list { position: static; max-height: 420px; }
}
@media (max-width: 480px) {
  .spt-videos__item-play { grid-template-columns: 96px minmax(0, 1fr); }
  .spt-videos__num { display: none; }
  .spt-videos__thumb { width: 96px; }
  .spt-videos__info { flex-direction: column; }
}

/* Schmale Bildschirme: Einwilligungs-Hinweis darf die Bühne vergrößern */
@media (max-width: 600px) {
  .spt-videos__stage { aspect-ratio: auto; min-height: 56.25vw; }
  .spt-videos__poster { position: relative; min-height: 56.25vw; }
  .spt-videos__poster img { position: absolute; inset: 0; }
  .spt-videos__consent { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 12px; padding: 16px; }
  .spt-videos__consent-title { font-size: 16px; line-height: 22px; }
}

/* Upload-Datum */
.spt-videos__item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spt-videos__item-date { font: 500 11px/14px var(--font-mono, monospace); color: var(--v-muted); }
.spt-videos__date { margin: 4px 0 0; font: 500 13px/18px var(--font-mono, monospace); color: var(--v-muted); }
