/* ==========================================================================
   hoerproben.css
   Styles for the Hörproben (audio samples) pages – player, track list,
   sidebar, genre navigation and responsive overrides.
   ========================================================================== */

/* === PLAYLIST HEADER === */
.playlist-header {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* === PAGE CONTENT LAYOUT === */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* === AUDIO PLAYER === */
.player-container {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.player-top {
  position: relative;
  overflow: hidden;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: linear-gradient(135deg, #f8f0e8 0%, #fff 100%);
}
.artwork-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.player-artwork { width: 100%; height: 100%; object-fit: cover; display: block; }
.artwork-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.artwork-wrap:hover .artwork-play-overlay { background: rgba(0,0,0,0.35); }
.artwork-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.player-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
}
.player-artist { color: var(--text-muted); font-size: 14px; }
.player-title { color: var(--text-dark); font-family: var(--serif); font-size: 18px; font-weight: 700; margin-top: 2px; }
.player-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.player-controls button { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 0; transition: color 0.2s; }
.player-controls button:hover { color: var(--gold); }
.volume-wrap { display: flex; align-items: center; gap: 6px; margin-left: 5px; }
.volume-wrap i { color: var(--text-muted); font-size: 16px; }
.volume-slider { -webkit-appearance: none; appearance: none; width: 80px; height: 4px; background: rgba(0,0,0,0.1); border-radius: 2px; outline: none; cursor: pointer; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); cursor: pointer; }
.player-time { color: var(--text-muted); font-size: 13px; position: relative; z-index: 1; text-align: right; align-self: flex-end; margin-top: auto; }
.player-time .current { color: var(--text-dark); }
.progress-container { padding: 0; position: relative; z-index: 1; background: rgba(0,0,0,0.03); }
.progress-bar { width: 100%; height: 5px; background: rgba(0,0,0,0.08); cursor: pointer; position: relative; }
.progress-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.1s linear; }

/* === TRACK LIST === */
.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 12px 12px;
  max-height: none;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.track-list li {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
  gap: 12px;
}
.track-list li:last-child { border-bottom: none; }
.track-list li:hover { background: #f5f5f5; }
.track-list li.active { background: #f0ebe3; border-left: 4px solid var(--gold); }
.track-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.track-name { font-size: 14px; color: var(--text-dark); font-weight: 700; text-transform: uppercase; }
.track-artist-name { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.track-duration { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }

/* === SIDEBAR === */
.sidebar { position: static; }
.genre-nav { position: sticky; top: 80px; }
.sidebar-box {
  border-bottom: 4px solid var(--gold);
  padding: 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.sidebar-box .tagline {
  font-family: var(--heading);
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.sidebar-box img { width: 100%; border-radius: 6px; margin-bottom: 12px; }
.sidebar-box .desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.genre-nav { margin-top: 24px; }
.genre-nav-title { font-family: var(--serif); font-size: 18px; color: var(--text-dark); margin-bottom: 10px; }
.genre-list { list-style: none; padding: 0; margin: 0; }
.genre-list li a {
  display: block;
  padding: 10px 15px;
  color: var(--text-muted);
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
  font-weight: 600;
}
.genre-list li a:hover, .genre-list li a.active { background: #f5f5f5; color: var(--gold); }

/* === MOBILE GENRE DROPDOWN === */
.genre-dropdown-mobile { display: none; }
.genre-dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: var(--heading);
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.genre-dropdown-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: none;
}
.genre-dropdown-list.open { display: block; }
.genre-dropdown-list li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.genre-dropdown-list li a:hover,
.genre-dropdown-list li a.active { background: #f5f5f5; color: var(--gold); }

/* === RESPONSIVE: max-width 991px === */
@media (max-width: 991px) {
  .page-content { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .track-list li { padding: 12px 15px; }
  .track-name { font-size: 13px; }
  .genre-dropdown-mobile { display: block; margin-bottom: 20px; }
}

/* === RESPONSIVE: max-width 600px === */
@media (max-width: 600px) {
  .player-top { padding: 10px; }
  .artwork-wrap { width: 80px; height: 80px; }
  .player-info { min-height: 80px; padding-left: 12px; }
  .player-title { font-size: 15px; }
  .player-artist { font-size: 12px; }
  .artwork-play-btn { width: 38px; height: 38px; font-size: 16px; }
  .player-controls { margin-top: 10px; }
  .volume-wrap { display: none; }
  .track-list li { padding: 10px 12px; }
}
