/*!
 * GENX EPISODES — Folgenliste
 * Teil der Website https://www.genxpodcast.de
 *
 * Copyright (c) 2026 Markus Lach. Alle Rechte vorbehalten.
 *
 * Dieser Quelltext ist urheberrechtlich geschuetzt. Vervielfaeltigung,
 * Verbreitung, Bearbeitung oder oeffentliche Zugaenglichmachung — ganz
 * oder in Teilen — nur mit ausdruecklicher schriftlicher Zustimmung des
 * Urhebers. Das Auslesen im Browser ist technisch bedingt und stellt
 * keine Freigabe zur Weiterverwendung dar.
 */
/* ============================================================
   GenX Episodes — self-contained styles (scoped .genx-episodes)
   Farben & Fonts als Fallback; werden vom Child-Theme
   ueberschrieben, wenn dieselben Variablen global gesetzt sind.
   ============================================================ */

.genx-episodes {
  --ink: #17101f;
  --panel: #241c30;
  --panel-2: #0c0330;
  --yellow: #ffd23f;
  --magenta: #e246a2;
  --cyan: #29c5f6;
  --pink: #ff2975;
  --pink-soft: rgba(255, 41, 117, .5);
  --text: #ddd6ea;
  --dim: #9a90b6;
  --mono: 'Share Tech Mono', ui-monospace, 'Consolas', monospace;
  --body: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  font-family: var(--body);
}

.genx-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.genx-episodes .ep-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 rgba(10, 5, 18, .55);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.genx-episodes a.ep-card:hover {
  transform: translate(-3px, -5px);
  border-color: var(--pink);
  box-shadow: 9px 11px 0 rgba(10, 5, 18, .55), 0 0 26px var(--pink-soft);
}

.genx-episodes .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: #1a1424;
}

.genx-episodes .thumb-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.genx-episodes a.ep-card:hover .thumb-img { transform: scale(1.05); }

.genx-episodes .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 5, 18, .62) 100%);
}

.genx-episodes .thumb-static::after { display: none; }

.genx-episodes .thumb-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 16, 31, .3);
  opacity: 0;
  transition: opacity .22s;
}

.genx-episodes a.ep-card:hover .thumb-play { opacity: 1; }

.genx-episodes .thumb-play span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border: 3px solid var(--ink);
  box-shadow: 0 0 26px var(--pink);
  color: #1c0030;
  font-size: 20px;
  padding-left: 4px;
}

.genx-episodes .ep-meta { padding: 15px 17px 19px; }

.genx-episodes .ep-tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(226, 70, 162, .5);
  margin-bottom: 8px;
}

.genx-episodes .ep-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #f4f0fb;
}

.genx-episodes .ep-date {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--dim);
}

/* KEIN-SIGNAL / TV-Rauschen */
.genx-episodes .thumb-static {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 2px, rgba(10, 6, 30, .9) 2px 4px),
    repeating-linear-gradient(90deg, rgba(180, 190, 255, .12) 0 3px, rgba(20, 10, 46, .85) 3px 7px);
  animation: genxStatic .14s steps(2) infinite;
}

@keyframes genxStatic {
  50%  { background-position: 0 2px, 3px 0; }
  100% { background-position: 0 -2px, -3px 0; }
}

.genx-episodes .nosignal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, .7);
}

.genx-episodes .nosignal b {
  font-size: 18px;
  letter-spacing: .3em;
  animation: genxBlink 1.6s steps(1) infinite;
}

.genx-episodes .nosignal small {
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .78);
}

/* Nummer der naechsten Folge (unter "NAECHSTE FOLGE") */
.genx-episodes .nosignal .ep-nextno {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 210, 63, .7);
}

/* Teaser-Zeitplan: gruen + blinkend (ersetzt "DEMNAECHST") */
.genx-episodes .ep-tag-schedule {
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, .55);
  letter-spacing: .14em;
  animation: genxBlink 1.2s steps(1) infinite;
}

@keyframes genxBlink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .genx-episodes .thumb-static { animation: none; }
  .genx-episodes .nosignal b { animation: none; }
  .genx-episodes .ep-tag-schedule { animation: none; }
  .genx-episodes .ep-card,
  .genx-episodes .thumb-img { transition: none; }
}
