/* ===============================
   css by Juan_theproducer
================================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 150px;
}

/* ===============================
   SECCIÓN DE INFORMACIÓN
================================= */
.info-section {
  text-align: center;
  margin: 20px 0;
}

.titulo {
  color: red;
  font-size: 25px;
  margin-bottom: 10px;
}

.detalles {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Imagen portada principal arriba - escritorio */
.imagen-portada {
  width: 410px;
  height: 410px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 100%;
}

/* ===============================
   BOTÓN DE DESCARGA
================================= */
.descargar-btn {
  display: inline-block;
  font-size: 24px;
  padding: 8px 16px;
  background-color: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border:none;
  cursor:pointer;
  transition: background-color 0.3s;
}

.descargar-btn:hover {
  background-color: black;
  color: white;
}

/* ===============================
   REPRODUCTOR DE AUDIO
================================= */
.audio-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #242526;
  border-top: 2px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
  color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  height: auto;
}

/* Nueva estructura para imagen + título */
.title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

/* Imagen portada dentro del reproductor - ajustada para .title-container */
.title-container .player-cover {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Título del track dentro de .title-container */
.title-container .track-title {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  position: relative;
}

/* Sin animación en escritorio */
.title-container .track-title span {
  display: inline-block;
  padding-left: 0;
  animation: none;
}

/* Contenido del reproductor */
.player-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 100%;
  gap: 20px;
}

/* Controles */
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  justify-content: flex-end;
  color: white;
  flex-wrap: nowrap;
}

.controls button {
  background-color: #e2000f;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.controls button:hover {
  background-color: black;
}

/* Sliders */
#seekBar,
#volume {
  background-color: transparent;
  accent-color: #e2000f;
  cursor: pointer;
  transition: all 0.2s ease;
}

#seekBar {
  width: 80px;
}

#volume {
  width: 60px;
}

input[type="range"]#volume::-webkit-slider-thumb {
  background: #e2000f;
}
input[type="range"]#volume::-moz-range-thumb {
  background: #e2000f;
}
input[type="range"]#seekBar::-webkit-slider-thumb {
  background: #ffffff;
}
input[type="range"]#seekBar::-moz-range-thumb {
  background: #ffffff;
}

/* ===============================
   RESPONSIVE (MÓVIL)
================================= */
@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .descargar-btn {
    font-size: 20px;
  }

  /* Imagen portada principal arriba móvil */
  .imagen-portada {
    width: 90%;
    height: auto;
    max-width: 360px;
  }

  /* Imagen reproductor más pequeña */
  .title-container .player-cover {
    width: 30px;
    height: 30px;
    border-radius: 4px;
  }

  .audio-player {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 6px;
    height: 60px;
  }

  .player-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Activar animación solo en móvil */
  .title-container .track-title span {
    display: inline-block;
    padding-left: 100%;
    animation: slideText 8s linear infinite;
  }

  @keyframes slideText {
    0% {
      transform: translateX(0%);
    }
    50% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(0%);
    }
  }

  .controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
  }

  .controls button {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  #seekBar {
    width: 55px;
  }

  #volume {
    width: 40px;
  }
/* ===============================
   INDICADOR DE BUFFERING
================================= */
.buffering-text {
  display: none;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  background-color: rgba(226, 0, 15, 0.9); /* rojo con opacidad */
  padding: 8px 16px;
  margin: 10px auto;
  border-radius: 8px;
  animation: blink 1.2s infinite;
  max-width: 300px;
  font-weight: bold;
}

@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}
/* ===============================
   MENU STYLES BY JUAN
================================= */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Navigation bar */
nav {
    background: #242526;
    height: 80px;
    width: 100%;
    display: grid;
    justify-content: end;
    align-items: center;
}

.enlace {
    position: absolute;
    padding: 20px 50px;
}

.logo {
    height: 50px;
}

nav ul {
    float: right;
    margin-right: 20px;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}

nav ul li a {
    color: #ffffff !important;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 5px;
    text-transform: uppercase;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #e2000f;
    color: #ffffff !important;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

section {
    background: url(fondo.jpg) no-repeat;
    background-size: cover;
    background-position: center center;
    height: calc(100vh - 80px);
}

/* Responsive styles */
@media (max-width: 952px) {
    .enlace {
        padding-left: 20px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #242526;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: none;
        color: #ffffff !important;
    }

    #check:checked ~ ul {
        left: 0;
    }
}
	