* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;

  background-color: #000;
  background-image: url("fondo.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  background-attachment: scroll;

  font-family: Arial, sans-serif;
}

.player-container {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  width: calc(100% - 32px);
  max-width: 350px;

  z-index: 10;
}

.audio-widget {
  position: relative;
  top: auto;
  left: auto;
  transform: none;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 350px;
  padding: 20px;

  color: #fff;
  background: linear-gradient(145deg, #1f1f1f, #121212);

  border: 1px solid #db1828;
  border-radius: 25px;

  box-shadow:
    8px 8px 20px #0d0d0d,
    -8px -8px 20px #2a2a2a;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  width: 100%;
  margin-bottom: 20px;
}

button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;

  width: 55px;
  height: 55px;
  padding: 0;

  border: none;
  border-radius: 50%;

  background: #db1828;
  color: #fff;

  font-size: 22px;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  transition:
    transform 0.2s,
    background 0.2s;
}

button:hover {
  transform: scale(1.08);
  background: #b91220;
}

button:focus-visible,
.social-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.volume-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
}

input[type="range"] {
  width: 120px;
  max-width: 100%;
  height: 6px;

  -webkit-appearance: none;
  appearance: none;

  border-radius: 3px;
  background: #555;

  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;

  -webkit-appearance: none;
  appearance: none;

  border: none;
  border-radius: 50%;

  background: #db1828;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;

  border: none;
  border-radius: 50%;

  background: #db1828;
  cursor: pointer;
}

.volume-label {
  margin-top: 5px;

  color: #fff;
  font-size: 14px;
  text-align: center;
}

canvas {
  display: block;

  width: 100%;
  height: 100px;

  border-radius: 15px;
  background: #000;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  width: 100%;
  padding: 0;
}

.social-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 42px;

  width: 42px;
  height: 42px;
  padding: 0;

  color: #fff;
  background: linear-gradient(145deg, #242424, #101010);

  border: 1px solid #db1828;
  border-radius: 50%;

  text-decoration: none;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.social-button svg {
  display: block;

  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-button:hover {
  transform: translateY(-4px);
  background: #db1828;

  box-shadow: 0 6px 16px rgba(219, 24, 40, 0.35);
}

.bottom-image {
  display: block;

  width: 100%;
  max-width: 443px;
  height: auto;

  margin-top: 20px;

  object-fit: contain;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .player-container {
    width: calc(100% - 48px);
    max-width: 350px;
    gap: 15px;
  }

  .audio-widget {
    padding: 22px;
  }

  .social-links {
    gap: 12px;
  }
}

@media (max-width: 599px) {
  .player-container {
    width: calc(100% - 32px);
    max-width: 350px;
    gap: 14px;
  }

  .audio-widget {
    padding: 18px;
    border-radius: 20px;
  }

  .controls {
    gap: 10px;
    margin-bottom: 16px;
  }

  button {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  input[type="range"] {
    width: clamp(75px, 27vw, 120px);
  }

  .volume-label {
    font-size: 12px;
  }

  canvas {
    height: 75px;
  }

  .social-links {
    gap: 10px;
  }

  .social-button {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .bottom-image {
    margin-top: 15px;
  }
}

@media (max-width: 360px) {
  .player-container {
    width: calc(100% - 24px);
  }

  .audio-widget {
    padding: 14px;
  }

  .controls {
    gap: 8px;
  }

  button {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  input[type="range"] {
    width: 75px;
  }

  .social-links {
    gap: 8px;
  }

  .social-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

.footer-credit {
  position: fixed;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: normal;
  color: #ffffff;
  z-index: 9999;
  pointer-events: none;
}
