
:root {
  --red: #ed1c24;
  --dark: #111;
  --bar-height: 130px;
  --footer-height: 38px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  color: white;
  background-color: #171717;
  background-image: url("fondo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding-top: var(--bar-height);
  padding-bottom: var(--footer-height);
}

.radio-bar {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  min-height: var(--bar-height);
  background: rgba(12, 12, 12, 0.96);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.radio-inner {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 105px;
  max-height: 95px;
  object-fit: contain;
}

.player {
  flex: 1;
  min-width: 0;
  max-width: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.play-button {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.play-button:hover {
  background: #ff3b42;
  transform: scale(1.06);
}

.station-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
}

.station-info strong {
  font-size: 20px;
  letter-spacing: 1px;
}

.station-info span {
  font-size: 10px;
  color: #bbb;
  letter-spacing: 1px;
}

.vu-area {
  flex: 1;
  min-width: 65px;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vu-label {
  color: #ff4040;
  font-size: 11px;
  font-weight: bold;
}

#vuMeter {
  width: 100%;
  height: 42px;
  display: block;
}

.volume-area {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 100px;
}

.volume-area i {
  font-size: 17px;
}

#volume {
  width: 100px;
  accent-color: var(--red);
  cursor: pointer;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #292929;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.socials a:hover {
  background: var(--red);
  transform: translateY(-3px);
}

.main-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

.footer {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  min-height: var(--footer-height);
  padding: 10px 12px;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid #333;
  color: #ddd;
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablets */
@media (max-width: 1000px) {
  :root {
    --bar-height: 155px;
  }

  .radio-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .brand img {
    width: 75px;
    max-height: 55px;
  }

  .player {
    flex: 1;
    gap: 12px;
  }

  .socials {
    width: 100%;
  }

  .socials a {
    width: 32px;
    height: 32px;
  }

  .slider {
    height: clamp(70px, 9.1vw, 100px);
  }
}

/* Celulares */
@media (max-width: 600px) {
  :root {
    --bar-height: 175px;
    --footer-height: 48px;
  }

  .radio-bar {
    padding: 8px 10px;
  }

  .radio-inner {
    gap: 8px;
  }

  .brand img {
    width: 55px;
    max-height: 48px;
  }

  .player {
    gap: 8px;
  }

  .play-button {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .station-info strong {
    font-size: 15px;
  }

  .station-info span {
    font-size: 8px;
  }

  .vu-area {
    min-width: 45px;
    gap: 4px;
  }

  .vu-label {
    font-size: 9px;
  }

  #vuMeter {
    height: 30px;
  }

  .volume-area {
    min-width: 62px;
    gap: 5px;
  }

  .volume-area i {
    font-size: 13px;
  }

  #volume {
    width: 52px;
  }

  .socials {
    gap: 12px;
  }

  .socials a {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .main-content {
    padding: 20px 10px;
  }

  .slider {
    height: 80px;
  }

  .footer {
    font-size: 10px;
    line-height: 1.4;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

