/* Peak-Studios Playlist-Player — CI-konform (#9C0000 CTA, #B8AB8C Akzent) */
.ppp {
  min-width: 0;
  max-width: 100%;
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #282827;
  background: #FFFFFF;
  border: 1px solid #D5D5D5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ppp * { box-sizing: border-box; }

/* Site-CSS-Bleed neutralisieren: das Theme setzt u.a. text-shadow auf button
   (Trackzeilen sind Buttons) und ueberschreibt Bild-Eckenradien */
.ppp button,
.ppp button *,
.ppp input {
  text-shadow: none;
  letter-spacing: normal;
  text-transform: none;
}
.ppp .ppp-thumb { border-radius: 4px; }

/* Auf weissen Sections (JS-erkannt): graue Card, innere Flaechen invertiert,
   damit die Card sich vom Hintergrund abhebt (CI: #ECECEC Page / #F5F5F4 Flaechen) */
.ppp.ppp--on-white { background: #F5F5F4; }
.ppp.ppp--on-white .ppp-count { background: #FFFFFF; }
.ppp.ppp--on-white .ppp-search input { background: #FFFFFF; }
.ppp.ppp--on-white .ppp-item button:hover { background: #FFFFFF; }
.ppp.ppp--on-white .ppp-item[aria-current="true"] button { background: #FFFFFF; }
.ppp.ppp--on-white .ppp-search { border-bottom-color: #DDDDDC; }
.ppp ul,
.ppp li {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* ---- Kopf ---- */
.ppp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.ppp-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.ppp-count {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6A;
  background: #F5F5F4;
  border: 1px solid #D5D5D5;
  border-radius: 999px;
  padding: 1px 10px;
  white-space: nowrap;
}

/* ---- Player-Bereich (16:9) ---- */
.ppp-stage {
  position: relative;
  background: #121212;
  aspect-ratio: 16 / 9;
}
.ppp-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ppp-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #121212;
  display: block;
}
.ppp-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.ppp-facade:hover img { opacity: 0.65; }
.ppp-facade-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(18, 18, 18, 0.88));
  color: #FFFFFF;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ppp-playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 44px;
  background: #9C0000;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}
.ppp-facade:hover .ppp-playbtn {
  background: #2C0000;
  transform: translate(-50%, -50%) scale(1.06);
}
.ppp-playbtn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #FFFFFF;
}

/* Consent-Overlay (Zwei-Klick-Loesung) */
.ppp-consent {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.96);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.ppp-consent p {
  margin: 0;
  font-size: 13px;
  color: #ECECEC;
  max-width: 34em;
}
.ppp-consent a { color: #B8AB8C; }
.ppp-consent button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  background: #9C0000;
  border: 0;
  border-radius: 5px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.ppp-consent button:hover { background: #2C0000; }

/* ---- Suche ---- */
.ppp-search {
  padding: 10px 16px;
  border-bottom: 1px solid #D5D5D5;
}
.ppp-search input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: #282827;
  background: #F5F5F4;
  border: 1px solid #D5D5D5;
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ppp-search input:focus {
  border-color: #B8AB8C;
  box-shadow: 0 0 0 2px rgba(184, 171, 140, 0.2);
}
.ppp-search input::placeholder { color: #6B6B6A; }

/* ---- Trackliste ---- */
.ppp-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  /* ~5 Zeilen sichtbar (46px/Zeile), Rest scrollbar */
  max-height: 238px;
  scrollbar-width: thin;
  scrollbar-color: #B8AB8C #F5F5F4;
}
.ppp-item { margin: 0; }
.ppp-item button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 16px 7px 13px;
  font-family: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.ppp-item button:hover { background: #F5F5F4; }
.ppp-item[aria-current="true"] button {
  background: #F5F5F4;
  border-left-color: #B8AB8C;
}
.ppp-thumb {
  flex: none;
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  background: #ECECEC;
}
.ppp-meta {
  /* width:0 + flex-grow: lange Titel duerfen die Card-Breite nie aufblasen
     (sonst Grid-/Flex-Blowout in schmalen Elementor-Spalten) */
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}
.ppp-artist {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #282827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ppp-track {
  display: block;
  font-size: 12.5px;
  font-weight: 300;
  color: #6B6B6A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ppp-item[aria-current="true"] .ppp-artist { color: #9C0000; }
.ppp-dur {
  flex: none;
  font-size: 12px;
  color: #6B6B6A;
  font-variant-numeric: tabular-nums;
}
.ppp-unavail button { opacity: 0.45; }

.ppp-empty {
  padding: 16px;
  font-size: 13.5px;
  color: #6B6B6A;
  text-align: center;
}

/* Equalizer-Indikator am laufenden Titel */
.ppp-eq {
  flex: none;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.ppp-item[aria-current="true"] .ppp-eq { display: inline-flex; }
.ppp-eq i {
  width: 3px;
  background: #9C0000;
  border-radius: 1px;
  animation: ppp-eq 1s ease-in-out infinite;
}
.ppp-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.ppp-eq i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.ppp-eq i:nth-child(3) { height: 40%; animation-delay: 0.5s; }
@keyframes ppp-eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ppp-eq i { animation: none; }
}
