/* ═══ Radio La Caletta — Player ═══ */

.on-air-inner {
  position: relative; top: -80px; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-flow: wrap; align-self: flex-start;
  padding: 20px;
}

/* ── Artwork ── */
.artwork-container {
  position: relative; width: 400px; height: 400px;
  overflow: hidden; box-shadow: 0 0 10px rgba(0,0,0,.5);
  border: 3px solid hsl(0,0%,9.3%);
  border-radius: 10px; cursor: pointer; z-index: 1; flex-shrink: 0;
  transition: border-radius 600ms ease-in-out;
}
@keyframes artworkPulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.4); }
  70%  { box-shadow: 0 0 20px 100px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,255,255,0); }
}
.artwork-container.pulse { animation: artworkPulse 1.5s infinite; border-radius: 50%; }

/* ── Vinyl Spinning Effect ── */
@keyframes vinylSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes labelSpin { from { transform: scale(0.34) rotate(0deg); } to { transform: scale(0.34) rotate(360deg); } }
.vinyl-overlay {
  position: absolute; inset: 0; z-index: 4;
  border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity 400ms ease;
}
.artwork-container.pulse.vinyl .vinyl-overlay { opacity: 1; }
.vinyl-overlay .vinyl-disc {
  width: 100%; height: 100%; border-radius: 50%;
  animation: vinylSpin 3s linear infinite;
  background:
    radial-gradient(circle at center, transparent 12%, rgba(0,0,0,0.01) 12.5%),
    radial-gradient(circle at center,
      transparent 34%, rgba(40,40,40,0.85) 34.5%, rgba(30,30,30,0.9) 35.5%,
      rgba(50,50,50,0.7) 36%, rgba(20,20,20,0.9) 37%, rgba(55,55,55,0.6) 38%,
      rgba(25,25,25,0.85) 39.5%, rgba(50,50,50,0.7) 41%, rgba(20,20,20,0.9) 42.5%,
      rgba(55,55,55,0.6) 44%, rgba(30,30,30,0.85) 46%, rgba(50,50,50,0.7) 48%,
      rgba(20,20,20,0.9) 50%, rgba(55,55,55,0.55) 52%, rgba(35,35,35,0.85) 54%,
      rgba(50,50,50,0.7) 56%, rgba(20,20,20,0.9) 58%, rgba(60,60,60,0.5) 60%,
      rgba(30,30,30,0.85) 63%, rgba(50,50,50,0.7) 66%, rgba(20,20,20,0.9) 69%,
      rgba(55,55,55,0.5) 72%, rgba(35,35,35,0.85) 75%, rgba(50,50,50,0.7) 78%,
      rgba(20,20,20,0.9) 81%, rgba(60,60,60,0.5) 84%, rgba(30,30,30,0.85) 87%,
      rgba(45,45,45,0.7) 90%, rgba(20,20,20,0.95) 93%, rgba(15,15,15,1) 96%
    );
  position: relative;
}
.vinyl-overlay .vinyl-disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    from 0deg, transparent 0deg, rgba(255,255,255,0.06) 30deg, transparent 90deg,
    rgba(255,255,255,0.04) 180deg, transparent 250deg, rgba(255,255,255,0.05) 320deg, transparent 360deg
  );
}
.artwork-container.pulse.vinyl .slideshow-list {
  transform: scale(0.34); border-radius: 50%; overflow: hidden;
  z-index: 5; animation: labelSpin 3s linear infinite;
}
.artwork-container.pulse.vinyl .label-badge,
.artwork-container.pulse.vinyl .button-like,
.artwork-container.pulse.vinyl .button-lyrics { opacity: 0; transition: opacity 300ms; }

/* ── Slideshow ── */
.slideshow-list {
  position: relative; margin: 0; padding: 0; list-style: none;
  width: 100%; height: 100%;
  transform: scale(1); border-radius: 0;
  transition: transform 600ms ease, border-radius 600ms ease;
}
.slideshow-list li {
  position: absolute; padding: 0; margin: 0;
  list-style: none; left: 0; top: 0; width: 100%; height: 100%;
}
.slideshow-list li.art-current {
  z-index: 2; animation-name: artFadeOut;
  animation-duration: 1.5s; animation-fill-mode: both;
  animation-play-state: paused;
}
.slideshow-list li.art-next {
  opacity: 0; animation-name: artFadeIn;
  animation-duration: 1.5s; animation-fill-mode: both;
  animation-play-state: paused;
}
@keyframes artFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes artFadeIn  { from { opacity: 0; } to { opacity: 1; } }

.image-container {
  width: 100%; height: 100%;
  background-size: cover; background-position: center; transition: none;
}

/* ── Badges ── */
.label-badge {
  display: none; position: absolute; left: 10px; top: 10px;
  background: #ff4500; color: #fff;
  padding: 15px; font-size: 14px; font-weight: bold;
  z-index: 3; border-radius: 5px; text-transform: uppercase;
}
.label-badge.show { display: block; }
.button-like {
  position: absolute; right: 0; top: 0;
  color: #fff; padding: 5px; background: rgba(17,17,17,0.7);
  font-size: 18px; font-weight: bold; z-index: 3; border-radius: 0 0 0 5px;
}
.button-like:hover { transform: scale(1.2) !important; }
.button-like.liked { color: red; }
.button-lyrics {
  display: none; position: absolute; bottom: 10px; right: 10px;
  color: white; padding: 5px 10px; background: rgba(255,0,0,0.7);
  font-size: 12px; font-weight: 600; z-index: 3; border-radius: 5px;
  text-decoration: none; letter-spacing: 0.5px;
}
.button-lyrics.show { display: block; animation: lyricsPulse 2s ease-in-out infinite; }
.button-lyrics:hover { background: rgba(255,255,255,0.2); transform: scale(1.1) !important; animation: none; }
@keyframes lyricsPulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(255,255,255,0.4); }
}

/* ── Track Controls ── */
.track-controls-wrap {
  position: relative; display: flex; align-items: center;
  justify-content: center; flex-flow: wrap;
}
.x-track {
  margin-top: 40px; margin-bottom: 40px;
  display: block; width: 480px; color: #fff; overflow: hidden;
}
.track-text { margin-bottom: 24px; }
.track-title { font-size: 32px; margin: 0 0 10px; display: block; }
.track-artist { font-size: 30px; margin: 0 0 10px; display: block; }
.track-extra1 { font-size: 16px; display: block; }

/* ── Marquee ── */
.marquee-wrap { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.marquee-active::before, .marquee-active::after {
  content: ''; display: block; height: 100%;
  position: absolute; z-index: 1; top: 0; border-radius: 8px;
}
.marquee-active::before {
  left: 0; background: linear-gradient(90deg, rgb(17,17,17) 0%, transparent 100%);
  box-shadow: -14px 0 14px 9px rgb(17,17,17);
}
.marquee-active::after {
  right: 0; background: linear-gradient(270deg, rgb(17,17,17) 0%, transparent 100%);
  box-shadow: 14px 0 14px 9px rgb(17,17,17);
}
.marquee-inner { white-space: nowrap; text-overflow: clip; transition: all 800ms; }
.marquee-active .marquee-inner {
  display: inline-block; white-space: nowrap; will-change: transform;
  animation: xmarquee 20s linear infinite; animation-delay: 800ms;
}
@keyframes xmarquee {
  0%,20% { transform: translate(2%,0); }
  40%,70% { transform: translate(-100%,0); }
  90%,100% { transform: translate(2%,0); }
}

/* ── Progress Bar ── */
.progress-wrap {
  width: 80%; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.progress-bar-track {
  width: 100%; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden; cursor: default;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px;
  background: rgba(255,255,255,0.85); width: 0%;
  transition: width 1s linear;
}
.progress-times {
  display: flex; justify-content: space-between;
  font-size: 11px; opacity: 0.45; letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}

/* ── Controls ── */
.controls-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgb(255,255,255) 49%, rgba(255,255,255,0) 100%);
  margin-bottom: 30px;
}
.controls {
  display: flex; align-items: center; align-self: center;
  justify-content: center; width: 100%;
}
.btn-share { font-size: 24px; width: 44px; color: #fff; }
.btn-play-stop { font-size: 54px; width: 70px; height: 70px; padding: 10px; display: flex; align-items: center; justify-content: center; margin: 0 20px; color: #fff; }
.vol-wrap { position: relative; }
.btn-vol { font-size: 24px; width: 44px; color: #fff; }
.vol-slider-wrap { display: none; position: absolute; top: 2px; left: 40px; }
.vol-wrap:hover .vol-slider-wrap { display: inline-block; }
.vol-slider {
  width: 70px; margin: 0; -webkit-appearance: none; appearance: none;
  border-radius: 5px; outline: none; opacity: 0.5; transition: opacity .2s;
  height: 25px; background: transparent;
}
.vol-slider:hover { opacity: 1; }
.vol-slider::-webkit-slider-runnable-track { background: #fff; height: 8px; border-radius: 5px; }
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: #fff; border-radius: 50%; cursor: pointer; margin-top: -6px; }
.vol-slider::-moz-range-track { background: #fff; height: 8px; border-radius: 5px; }
.vol-slider::-moz-range-thumb { width: 20px; height: 20px; background: #fff; border-radius: 50%; cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 600px), (max-height: 785px) { .artwork-container { width: 250px; height: 250px; top: 80px; } }
@media (max-width: 384px), (max-height: 620px) { .artwork-container { width: 200px; height: 200px; top: 70px; } }
@media (max-height: 570px) { .artwork-container { width: 150px; height: 150px; top: 50px; } }
@media (max-width: 600px), (max-height: 770px) {
  .x-track { margin: 20px 0 0; width: 350px; }
  .track-title { font-size: 20px; }
  .track-artist { font-size: 18px; }
  .track-extra1 { font-size: 12px; }
}
@media (max-height: 485px) {
  .on-air-inner { flex-direction: row; align-items: center; padding: 0; }
  .artwork-container { margin-right: 20px; }
  .controls-divider { margin-bottom: 15px; }
}
@media (max-width: 375px) and (max-height: 270px) { .artwork-container { display: none; } }
