* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial';
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at center, #2b2b2b, #111);
    font-family: 'Arial', sans-serif;
}

.content {
    width: 370px;
    background: #1e1e1e;
    border-radius: 20px;
    padding: 30px 30px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
    color: white;
}

.header {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.fa-icons {
    cursor: pointer;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 18px;
}

.top-bar .fa-icons {
    font-size: 24px;
}

.music-image {
    width: 240px;
    height: 240px;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.music-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper {
    display: flex;
    justify-content: center;
}

.music-titles {
    text-align: center;
    margin: 25px 0 15px;
    color: #f1f1f1;
}
.music-titles .name {
    font-size: 20px;
    font-weight: bold;
}
.music-titles .album,
.music-titles .artist {
    font-size: 14px;
    opacity: 0.7;
}

.progress-details {
    width: 100%;
    height: 8px;
    background: #444;
    border-radius: 50px;
    margin: 20px 0 8px;
}

.progress-bar {
    background-color: #ff6b00;
    height: 100%;
    border-radius: inherit;
    width: 0.01%;
    position: relative;
}

.progress-bar span {
    background-color: #ff6b00;
}

.progress-details:hover .progress-bar span {
    opacity: 1;
}

.time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    color: #f1f1f1;
}

.control-btn {
  margin-top: 35px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.control-btn span {
  --p: 0%;
  --t: 0s;

  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #ff6b00;
  background: none;
  color: #ff6b00;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Efecto de relleno dinámico */
.control-btn span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#ff6b00 0 0) no-repeat
    calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
  transition:
    0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
  z-index: 0;
}

/* Ícono por encima del relleno */
.control-btn span i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

/* Activar relleno al hacer hover */
.control-btn span:hover {
  --p: 100%;
  --t: 0.3s;
  color: white;
}

.control-btn span:hover i {
  color: white;
}


.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  padding: 8px 12px;
  border-radius: 30px;
  margin-top: 15px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Icono del volumen con efecto fill */
.volume-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b00;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#ff6b00 0 0) no-repeat
    calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
              background-position 0.3s calc(0.3s - var(--t, 0s));
  z-index: 0;
}

.volume-icon:hover {
  --p: 100%;
  --t: 0.3s;
  color: white;
}
.volume-icon i {
  position: relative;
  z-index: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  padding: 8px 12px;
  border-radius: 30px;
  margin-top: 15px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

/* Icono con círculo */
.volume-icon {
  width: 35px;
  height: 35px;
  min-width: 35px;
  border-radius: 50%;
  border: 2px solid #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b00;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Slider de volumen que se expande */
#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  background: #333;
  border-radius: 10px;
  outline: none;
  transition: background 0.3s ease;
  cursor: pointer;
}

/* Thumb personalizado */
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b00;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b00;
  cursor: pointer;
  border: none;
}

/* Etiqueta de porcentaje */
#volume-label {
  color: #f1f1f1;
  font-size: 14px;
  min-width: 35px;
  text-align: right;
}

/* Boton para volver al curriculum*/
.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;

  border: 2px solid #ff6b00;
  border-radius: 25px;
  background: none;
  color: #ff6b00;

  z-index: 100;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  
  --p: 0%;
  --t: 0s;
}

/* Efecto de relleno tipo "fill" */
.back-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#ff6b00 0 0) no-repeat
    calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
              background-position 0.3s calc(0.3s - var(--t, 0s));
  z-index: -1;
}

/* Cambios al hacer hover */
.back-btn:hover {
  --p: 100%;
  --t: 0.3s;
  color: #fff;
}

.back-btn i {
  font-size: 18px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.back-btn:hover i {
  color: #fff;
}

/* 
Referencias de donde aprendi a como hacer este CSS. https://www.w3schools.com/css/default.asp
Code efecto de relleno. https://codepen.io/nefejames/pen/yyBedGg
*/