/* ── MUSIC SECTION ──────────────────────────────────────────── */
/* Reutiliza los mismos tokens de bio_gh.html / bioES.html:      */
/* --ink #e8e2d9  --paper #0d0c0b  --warm/--accent #c9a96e        */
/* --muted #6b6158  --line rgba(201,169,110,0.18)                */

.music-section {
  animation: fadeUp 1s ease both;
}

.music-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a96e;
  opacity: 0.85;
  margin-bottom: 12px;
}

.music-heading a {
  color: inherit;
  text-decoration: none;
}

/* ── botón rojo "Play All" ── */
.master-play-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.master-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #b8352f;
  border: none;
  border-radius: 999px;
  color: #f2ece2;
  padding: 10px 20px 10px 18px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(184, 53, 47, 0.5);
  animation: masterPulse 2.6s ease-out infinite;
  transition: background 0.25s, transform 0.15s;
}

.master-play-btn:hover {
  background: #cc3d36;
}

.master-play-btn:active {
  transform: scale(0.96);
}

.master-play-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: none;
}

.master-play-btn .icon-pause {
  display: none;
}

.master-play-btn.is-playing .icon-play {
  display: none;
}

.master-play-btn.is-playing .icon-pause {
  display: block;
}

.master-play-btn.is-playing {
  animation: none;
}

@keyframes masterPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 53, 47, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(184, 53, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 53, 47, 0); }
}

.music-category {
  margin-bottom: 30px;
}

.music-category:last-child {
  margin-bottom: 0;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.track:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.track-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: #8a8078;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.track-title .track-ft {
  font-size: 0.78rem;
  opacity: 0.55;
  font-style: italic;
}

.track-title .track-year {
  font-size: 0.78rem;
  opacity: 0.45;
  font-style: italic;
}

.track-title .track-credit {
  display: block;
  white-space: nowrap;
  font-size: 0.72rem;
  opacity: 0.5;
  font-style: italic;
  margin-top: 2px;
}

.track-title .track-venue {
  display: block;
  font-size: 0.66rem;
  opacity: 0.42;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: 2px;
}

.track-title .track-musicians {
  display: block;
  font-size: 0.66rem;
  opacity: 0.42;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-top: 2px;
}

/* tema actualmente sonando */
.track.is-active .track-title {
  color: #8b1e3f;
  font-weight: 400;
}

.track.is-active .track-title .track-credit,
.track.is-active .track-title .track-ft,
.track.is-active .track-title .track-year,
.track.is-active .track-title .track-venue,
.track.is-active .track-title .track-musicians {
  color: #8b1e3f;
  opacity: 0.65;
}

/* hover sobre toda la fila del tema */
.track:hover .track-title {
  color: #c9a96e;
  font-style: italic;
}

.track:hover .track-title .track-credit,
.track:hover .track-title .track-ft,
.track:hover .track-title .track-year,
.track:hover .track-title .track-venue,
.track:hover .track-title .track-musicians {
  color: #c9a96e;
}

/* si está sonando, el hover no debe tapar el color bordeaux */
.track.is-active:hover .track-title {
  color: #8b1e3f;
  font-style: normal;
}

.track.is-active:hover .track-title .track-credit,
.track.is-active:hover .track-title .track-ft,
.track.is-active:hover .track-title .track-year,
.track.is-active:hover .track-title .track-venue,
.track.is-active:hover .track-title .track-musicians {
  color: #8b1e3f;
  opacity: 0.65;
}

.track-score {
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #c9a96e;
  opacity: 0.75;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  padding-bottom: 1px;
  transition: opacity 0.25s, color 0.25s;
}

.track-score:hover {
  opacity: 1;
  color: #e8e2d9;
}

/* ── player ── */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.player-btn {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: transparent;
  color: #c9a96e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s, background 0.3s, transform 0.15s;
}

.player-btn:hover {
  border-color: #c9a96e;
  background: rgba(201, 169, 110, 0.08);
}

.player-btn:active {
  transform: scale(0.94);
}

.player-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.player-btn .icon-pause {
  display: none;
}

.player.is-playing .icon-play {
  display: none;
}

.player.is-playing .icon-pause {
  display: block;
}

.player-seek-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-time {
  flex: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: #6b6158;
  min-width: 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* range inputs, styled minimal to match the site's hairline aesthetic */
.player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

.player-seek {
  flex: 1 1 auto;
  height: 14px;
}

.player-seek::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(201, 169, 110, 0.22);
}
.player-seek::-moz-range-track {
  height: 1px;
  background: rgba(201, 169, 110, 0.22);
}
.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c9a96e;
  border: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}
.player-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c9a96e;
  border: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* fill effect using a background gradient set dynamically via JS */
.player-seek {
  background: linear-gradient(
    to right,
    #c9a96e var(--fill, 0%),
    rgba(201, 169, 110, 0.15) var(--fill, 0%)
  );
  height: 1px;
  border-radius: 1px;
}

.player-volume-wrap {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-volume-wrap svg {
  width: 12px;
  height: 12px;
  fill: #6b6158;
  flex: none;
}

.player-volume {
  width: 56px;
  height: 12px;
}

.player-volume::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(201, 169, 110, 0.22);
}
.player-volume::-moz-range-track {
  height: 1px;
  background: rgba(201, 169, 110, 0.22);
}
.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8078;
  border: none;
}
.player-volume::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8078;
  border: none;
}

.music-empty {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #6b6158;
}

/* ── mobile: stack a bit tighter, keep everything on one row still ── */
@media (max-width: 480px) {
  .player-time {
    min-width: 64px;
    font-size: 0.58rem;
  }
  .player-volume {
    width: 44px;
  }
  .player-volume-wrap {
    display: none; /* volume slider hidden on small screens, device volume rules on mobile anyway */
  }
}
