body {
  margin: 0;
  font-family: sans-serif;
  background: #111;
  color: white;
  padding-top: 70px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.card.playing {
  position: relative;
  box-shadow: 0 0 15px 4px rgba(255, 105, 180, 0.6);
  outline: 2px solid rgba(255, 192, 203, 0.4);
  transition: box-shadow 0.4s ease, outline 0.4s ease;
}

.card.playing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,105,180,0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.video-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 20px;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  background: white;
  width: 0%;
  border-radius: 2px;
}

.video-title {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.tracklist {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.4);
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.8rem;
  padding: 0.5rem;
}
.tracklist.visible {
  display: flex;
}

.tracklist button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 0.2rem 0;
  cursor: pointer;
}

.toggle-tracklist {
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  margin-top: 0.3rem;
  color: lightblue;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 9999;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  width: 100%;
}

.main-header .logo {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
}

.main-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-header nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-header nav a:hover,
.main-header nav a.active {
  color: rgb(190, 193, 151);
  font-weight: bold;
}

@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem 1rem;
  }

  .main-header nav {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .main-header .logo {
    height: 30px;
  }
}
.equalizer {
  display: flex;
  gap: 2px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  height: 20px;
}

/* Patch: Rosa Equalizer-Balken für aktives Hörbuch */
.equalizer .eq-bar {
  width: 4px;
  height: 10px;
  background: rgba(255, 105, 180, 0.5);
  animation: bounce 1.2s infinite ease-in-out;
  border-radius: 2px;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.2s; }
.eq-bar:nth-child(5) { animation-delay: 0s; }

@keyframes bounce {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}
