@font-face {
  font-family: 'Hollaboi';
  src: url('../fonts/Hollaboi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  box-shadow: none;
}

body {
  background: #0d0d0d;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10vh 16px 40px;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  body { padding-top: 5vh; padding-bottom: 24px; }
}

.container { width: 100%; max-width: 620px; position: relative; z-index: 1; }

/* ── Animated page background, tinted from the playlist cover ───────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0d0d0d;
}

.page-bg-layer {
  position: absolute;
  width: 160%; height: 160%;
  top: -30%; left: -30%;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.6s ease;
}

.page-bg-l1 {
  filter: blur(50px) saturate(2.8) brightness(0.55);
  opacity: 0.9;
}

.page-bg-l2 {
  filter: blur(65px) saturate(3.5) brightness(0.55);
  opacity: 0.75;
  mix-blend-mode: screen;
}

.page-bg-l3 {
  filter: blur(80px) saturate(3) brightness(0.6);
  opacity: 0.6;
  mix-blend-mode: overlay;
}

@media (max-width: 600px) {
  .page-bg-l2 { mix-blend-mode: normal; opacity: 0.5; }
  .page-bg-l3 { mix-blend-mode: normal; opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg-l1, .page-bg-l2, .page-bg-l3 { animation: none; }
}

@keyframes s-layer1 { from { transform: translate(0,0) scale(1); } to { transform: translate(4%,-3%) scale(1.08); } }
@keyframes s-layer2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-5%,4%) scale(1); } }
@keyframes s-layer3 { from { transform: translate(0,0) scale(1); } to { transform: translate(3%,5%) scale(1.1); } }

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.65) 100%
  );
}

/* ── Header (logo con tipografía Hollaboi, igual que Discos Recomendados) ── */
.page-header { text-align: center; margin-bottom: 32px; }

.brand-name, .page-kicker {
  font-family: 'Hollaboi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: normal;
  letter-spacing: 0.3px;
}

.brand-name {
  font-size: 84px;
  line-height: 0.9;
  margin-bottom: 0;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.page-kicker {
  font-size: 37px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 480px;
  margin: 12px auto 0;
}

/* ── Redes sociales + compartir ──────────────────────────────────────── */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 18px 0 26px;
}

button.social-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.social-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.social-link:hover { color: #fff; }

.social-link svg {
  width: 24px;
  height: 24px;
  fill: rgba(255,255,255,0.75);
  transition: fill 0.15s;
  display: block;
}

.social-link i {
  font-size: 24px;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
  display: block;
}

.social-link:hover svg { fill: #fff; }
.social-link:hover i { color: #fff; }

/* ── Portada (una sola playlist, sin carrusel) ───────────────────────────── */
.cover-box {
  position: relative;
  width: clamp(240px, 64vw, 400px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 32px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background: #1a1a1a;
}

.cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cover-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  color: #000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s;
}

.cover-box:hover .cover-overlay { opacity: 0.5; }
.cover-box:hover .cover-play-btn { opacity: 1; }

@media (hover: none) {
  .cover-overlay { opacity: 0.5; }
  .cover-play-btn { opacity: 1; }
}

.cover-play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.cover-play-btn .fa-play { margin-left: 3px; }

/* ── Botón principal de escucha (mismo estilo para ambos CTA) ────────────── */
.listen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-bottom: 32px;
  text-align: center;
}

.listen-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
.listen-btn:active { transform: translateY(0); }
.listen-btn i { font-size: 18px; flex-shrink: 0; }


/* ── Selector de plataformas (modal en blur) ─────────────────────────────── */
.platform-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}

.platform-modal-overlay.visible { display: flex; }

.platform-modal-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.platform-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

.platform-modal-close:hover { background: rgba(255,255,255,0.2); }

.platform-modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.platform-modal-list { display: flex; flex-direction: column; gap: 10px; }

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
}

.platform-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.platform-btn:active { transform: translateY(0); }
.platform-btn i { font-size: 18px; flex-shrink: 0; }
.platform-btn img { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.platform-btn svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }

/* ── Reproductor de la playlist (vista previa de 25 canciones) ──────────── */
.player-box { text-align: left; }

.player-error {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 20px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
}

.player-box .wa-btn { margin-top: 14px; }

.wa-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.wa-btn:active { transform: translateY(0); }
.wa-btn i { font-size: 20px; }

.player-tracklist {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.player-tracklist::-webkit-scrollbar { width: 6px; }
.player-tracklist::-webkit-scrollbar-track { background: transparent; }
.player-tracklist::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}
.player-tracklist::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.player-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}

.player-tracklist .player-track-row:last-child { border-bottom: none; }
.player-track-row:hover { background: rgba(255,255,255,0.06); }

.player-track-more { justify-content: center; }
.player-track-more .player-track-meta { text-align: center; }
.player-track-more .player-track-name { color: rgba(255,255,255,0.75); }

.player-track-num {
  width: 16px;
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.player-track-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.player-track-meta { min-width: 0; }

.player-track-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-artist {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-track-row.is-active .player-track-num { color: #1DB954; }
.player-track-row.is-active .player-track-name { color: #1DB954; }

.player-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.player-bar-controls { display: flex; align-items: center; gap: 18px; }

.player-ctrl {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
}

.player-ctrl:hover { color: #fff; }
.player-ctrl.active { color: #1DB954; }

.player-ctrl-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.player-ctrl-play:hover { color: #000; opacity: 0.88; }

.player-bar-scrub {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.player-time {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  min-width: 28px;
}

.player-time:last-child { text-align: right; }

.player-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  border-radius: 2px;
  background: #fff;
}

/* ── Skeleton shimmer ─────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
