﻿* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Rubik', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
}
.logo-container { z-index: 2; text-align: center; width: 100%; margin-bottom: 20px; }
.logo { max-width: 300px; display: block; margin: 0 auto; }
.background-blur {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.4); z-index: 0; transition: background-image 2.5s;
}
.content { position: relative; z-index: 1; text-align: center; max-width: 400px; width: 100%; margin-bottom: 40px; }
.cover {
  width: 400px; height: 400px; background-color: #282828;
  background-size: cover; background-position: center;
  border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  margin: 0 auto 25px; position: relative; overflow: hidden;
}
.cover-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s;
  will-change: opacity, background-image;
}
.cover-fade {
  position: absolute;
  inset: 0;
  background: #282828;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  border-radius: 20px;
  z-index: 2;
}
.info {
  margin-bottom: 15px;
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-artist, .info-title {
  margin: 5px 0;
  opacity: 0; /* Fade por JS */
  transition: opacity 0.5s;
  white-space: nowrap;
  font-size: 2em;
  font-weight: bold;
  display: block;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.info-title {
  font-size: 1.5em;
}
/* Marquee pingpong: solo movimiento, NO cambia estilos */
.marquee-anim {
  will-change: transform;
  animation-name: marquee-pingpong;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes marquee-pingpong {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--marquee-end, 0)); }
}
.controls {
  display: flex; align-items: center; justify-content: space-between;
  background-color: #1a1a1a; border-radius: 40px; padding: 10px 20px;
  margin: 0 auto; width: 400px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); gap: 10px;
}
#playPauseBtn {
  width: 55px; height: 55px; border-radius: 50%; border: none; background-color: #222;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: background-color 0.3s;
}
#playPauseBtn:hover { background-color: #333; }
.controls button, .controls select {
  background-color: #333; border: none; color: #fff;
  padding: 10px 20px; border-radius: 30px; font-size: 1rem; cursor: pointer; transition: background 0.3s;
}
.controls button:hover, .controls select:hover { background-color: #444; }
.volume { width: 100px; }
.controls select { appearance: none; }
.mejs__container { display: none !important; }
.footer {
  bottom: 10px; left: 0; width: 100%; text-align: center;
  font-size: 0.8rem; color: #ccc; z-index: 2;
}
.footer a { color: #ccc; text-decoration: none; }
.footer a:hover { color: #eee; }
@media (max-height: 864px) { body { zoom: 0.85; } }
@media (max-height: 768px) { body { zoom: 0.75; } }
@media (max-height: 640px) { body { zoom: 0.65; overflow-y: auto; } }
@media (max-height: 480px) { body { zoom: 0.55; overflow-y: auto; } }
/* Snackbar reconexión */
#reconnectSnackbar {
  display: none;
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(34,34,34,0.95);
  color: #fff;
  padding: 16px 36px;
  border-radius: 24px;
  font-size: 1.2rem;
  font-family: 'Rubik', sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  animation: fadein 0.3s;
}
#reconnectSnackbar.show {
  display: block;
  animation: fadein 0.3s;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(-15px) translateX(-50%); }
  to { opacity: 1; transform: translateY(0) translateX(-50%); }
}
