/* =====================================================================
   Podcast (rote Tür) – minimaler Vinyl-Stil, an Hauptseite angepasst.
   ===================================================================== */

:root {
  --pod-red:     #b53b3b;
  --pod-red-2:   #8a2727;
  --pod-cream:   var(--bg-warm);
  --pod-panel:   #ffffff;
  --pod-line:    #ecdcdc;
}

/* -------- Hero -------------------------------------------------- */

.pod-hero {
  background: linear-gradient(180deg, #f7e7e2 0%, #ecd1c9 100%);
  border-bottom: 4px solid var(--pod-red);
}
.pod-hero__img {
  width: 100%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.2));
}
.pod-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--pod-red-2);
  font-size: clamp(1.6rem, 2.4vw + .8rem, 2.6rem);
  margin: 0 0 .35rem;
}
.pod-hero__subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--pod-red);
  font-size: clamp(1.1rem, .5vw + .9rem, 1.4rem);
  margin: 0 0 .9rem;
}
.pod-hero__intro {
  font-size: clamp(1rem, .6vw + .85rem, 1.15rem);
  color: var(--ink);
  margin: 0 0 .65rem;
}

/* -------- Player -------------------------------------------------- */

/* -------- Show-Karte (Gesamtcover der Reihe) --------------------- */

.pod-show {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  background: var(--pod-panel);
  border: 1px solid var(--pod-line);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
}
.pod-show__cover {
  display: flex;
  justify-content: center;
}
.pod-show__img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.pod-show__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--pod-red-2);
  font-size: clamp(1.2rem, 1.2vw + .9rem, 1.7rem);
  margin: 0 0 .15rem;
}
.pod-show__host {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.pod-show__claim {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .pod-show {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
  }
  .pod-show__img { max-width: 160px; }
}

.pod-empty {
  background: var(--pod-panel);
  border: 1px dashed var(--pod-line);
  color: var(--muted);
  padding: 2rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-style: italic;
}

.pod-player {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  background: var(--pod-panel);
  border: 1px solid var(--pod-line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 5;
}
.pod-player__vinyl { display: flex; justify-content: center; }
.pod-player__meta  { min-width: 0; }
.pod-player__hint {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.pod-player__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.1vw + .8rem, 1.5rem);
  margin: .1rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pod-player__desc {
  margin: .1rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.pod-player__controls {
  grid-column: 1 / -1;
}
.pod-player__controls audio {
  width: 100%;
}

@media (max-width: 540px) {
  .pod-player {
    grid-template-columns: 80px 1fr;
    padding: .75rem 1rem;
  }
  .pod-player__title { font-size: 1.05rem; }
}

/* -------- Vinyl-Element ----------------------------------------- */

.pod-vinyl {
  display: inline-block;
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0 28%, transparent 28%),
    repeating-radial-gradient(circle at 50% 50%,
      #232323 0 1px, #1a1a1a 1px 3px);
  box-shadow:
    inset 0 0 0 2px #000,
    0 6px 16px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.pod-vinyl::before {
  /* Lichtreflex über die Rille */
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 35%, transparent 60%, rgba(255,255,255,.05) 100%);
  pointer-events: none;
}
.pod-vinyl__label {
  position: absolute;
  inset: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pod-red);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: .7rem;
  text-align: center;
  padding: .25rem;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35);
}
.pod-vinyl__label::after {
  /* Mittelpunkt-Loch */
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: #f6efe2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}
.pod-vinyl__label-text {
  position: relative;
  z-index: 1;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-top: 14px; /* unter dem Loch */
}

/* Cover-Variante: Bild ersetzt das farbige Label, kreisrund eingepasst. */
.pod-vinyl__cover {
  position: absolute;
  inset: 24%;
  width: 52%;
  height: 52%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35);
  z-index: 1;
}
.pod-vinyl--has-cover::after {
  /* Mittelpunkt-Loch über dem Cover */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: #f6efe2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
  z-index: 2;
}

/* Farbvarianten für Label */
.pod-vinyl--red    .pod-vinyl__label { background: var(--pod-red); }
.pod-vinyl--blue   .pod-vinyl__label { background: #2f6fb5; }
.pod-vinyl--green  .pod-vinyl__label { background: var(--green); }
.pod-vinyl--amber  .pod-vinyl__label { background: #b88a3b; }
.pod-vinyl--black  .pod-vinyl__label { background: #2b2b2b; }

/* Rotation, wenn Audio läuft */
@keyframes pod-spin { to { transform: rotate(360deg); } }
.pod-vinyl.is-spinning {
  animation: pod-spin 3.5s linear infinite;
}

/* Vinyl im Player größer */
.pod-player__vinyl .pod-vinyl {
  width: 110px;
  height: 110px;
}

/* Vinyl im Regal etwas kleiner + interaktiv */
.pod-record .pod-vinyl {
  width: 130px;
  height: 130px;
}

/* -------- Schallplattenregal ----------------------------------- */

.pod-shelf {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.pod-shelf__item {
  background: var(--pod-panel);
  border: 1px solid var(--pod-line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pod-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 0;
  padding: .5rem 0 0;
  cursor: pointer;
  width: 100%;
}
.pod-record:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
  border-radius: 8px;
}
.pod-record:hover .pod-vinyl {
  transform: translateY(-3px);
  transition: transform .2s ease;
}
.pod-record.is-active .pod-vinyl {
  box-shadow:
    inset 0 0 0 2px #000,
    0 0 0 3px var(--pod-red),
    0 6px 16px rgba(0,0,0,.25);
}
.pod-record__title {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.3;
}
.pod-record__meta {
  font-size: .9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.pod-record__sep { opacity: .6; }
.pod-record__dur { font-weight: 600; }

.pod-shelf__item--new {
  border-color: var(--pod-red);
  box-shadow: 0 0 0 1px var(--pod-red), var(--shadow-soft);
}
.pod-record__badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: var(--pod-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .2rem .5rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
/* damit das Badge relativ zur Karte schwebt */
.pod-shelf__item { position: relative; }
.pod-record__desc {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

/* -------- Admin-Hilfsfarbpunkte -------------------------------- */
.pod-color-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
}
.pod-color-dot--black { background: #2b2b2b; }
.pod-color-dot--red   { background: #b53b3b; }
.pod-color-dot--blue  { background: #2f6fb5; }
.pod-color-dot--green { background: #3e7b3e; }
.pod-color-dot--amber { background: #b88a3b; }

.page-podcast :focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
