.hero {
  font-size: 14px;
  position: relative;
}

.hero-top {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  /* border: 1px solid #fff; */
}

.music-player {
  --primary-color: #ddd;
  --secundary-color: #999;
  --green-color: #2d5;
  --padding: 1em;
  position: relative;
  display: flex;
  align-items: center;
  height: 80vh;
  width: 100%;
  color: var(--primary-color);
}

.music-player.bottom {
  position: fixed;
  display: flex;
  align-items: center;
  height: 12vh;
  left: 0;
  bottom: 0;
  z-index: 150;
}

.music-player.fullscreen {
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}

/* .music-player::before {
    content: "";
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0 0 0 / .75), transparent);
    width: 100%;
    aspect-ratio: 6 / 1;
    z-index: 1;
    pointer-events: none;
}

.music-player.bottom .music-player::before {
    display: none;
} */

/*========================== Background Start ==========================*/
.player__background {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  object-fit: cover;
  z-index: -1;
}

.player__background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  background-color: rgba(31 31 31 /0.8);
  backdrop-filter: blur(10px);
  z-index: 11;
}

.background__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}
/* ================== Background end ==================*/

/* Logo FullScreen */
.player-logo {
  --size: 6em;
  width: var(--size);
  height: var(--size);
  top: 2em;
  position: absolute;
  object-fit: cover;
  overflow: hidden;
  display: none;
}

.player.fullscreen .player-logo {
  display: block;
}

.player-logo__image {
  width: 100%;
  height: 100%;
}

.player-wrapper {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.music-player.bottom .player-wrapper {
  max-width: initial;
  width: 100%;
  height: inherit;
  align-items: center;
  flex-direction: row;
}

.music-player.fullscreen .player-wrapper {
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
}

.left-content {
  display: flex;
  justify-content: flex-start;
  width: inherit;
  /* margin-bottom: 1.5rem; */
  /* border: 1px solid #fff; */
}

.music-player.bottom .left-content {
  align-items: center;
  width: 35%;
  margin-bottom: 1rem;
}

.music-player.fullscreen .left-content {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.image-container {
  --size: 12em;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 1em;
  overflow: hidden;
}

.music-player.bottom .image-container {
  --size: 10em;
  border-radius: 0;
}
.music-player.fullscreen .image-container {
  --size: 16em;
  border-radius: 1em;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-bar {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 70%;
  padding-left: var(--padding);
}

.music-player.bottom .song-bar {
  width: 100%;
}

.music-player.fullscreen .song-bar {
  width: 50%;
  text-align: center;
  justify-content: center;
  margin: 2rem 0;
}

.music-player.bottom .player-widget {
  display: flex;
  align-items: center;
}

.music-player.fullscreen .player-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

/* === XXXXX  On Air  XXXXX === */
.onair {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 4em;
}

.onair__span {
  text-align: center;
  font-size: 0.6rem;
  padding: 0;
}

.onair__wave {
  width: 4em;
  height: 2em;
  display: flex;
  align-items: flex-end;
}

.wave1 {
  width: 3px;
  height: 30px;
  margin-right: 3px;
  background-color: var(--gestihub-1);
  animation: unset;
}

.wave1:nth-child(2) {
  height: 15px;
  margin-right: 3.5px;
  animation-delay: 0.2s;
}
.wave1:nth-child(3) {
  height: 25px;
  animation-delay: 0.4s;
}
.wave1:nth-child(4) {
  height: 20px;
  animation-delay: 0.8s;
}
.wave1:nth-child(5) {
  height: 25px;
  animation-delay: 0.16s;
}
.wave1:nth-child(6) {
  height: 10px;
  animation-delay: 0.24s;
}
.wave1:nth-child(7) {
  height: 15px;
  animation-delay: 0.36s;
}
.wave1:nth-child(8) {
  height: 27px;
  animation-delay: 0.42s;
}
.wave1:nth-child(9) {
  height: 15px;
  animation-delay: 0.56s;
}

/* ========================= Javascript Class wave  =========================*/
.active1 .wave1 {
  animation: wave 0.8s linear infinite;
}

.active1 .wave1:nth-child(2) {
  animation-delay: 0.2s;
}
.active1 .wave1:nth-child(3) {
  animation-delay: 0.4s;
}
.active1 .wave1:nth-child(4) {
  animation-delay: 0.8s;
}
.active1 .wave1:nth-child(5) {
  animation-delay: 0.16s;
}
.active1 .wave1:nth-child(6) {
  animation-delay: 0.24s;
}
.active1 .wave1:nth-child(7) {
  animation-delay: 0.36s;
}
.active1 .wave1:nth-child(8) {
  animation-delay: 0.42s;
}
.active1 .wave1:nth-child(9) {
  animation-delay: 0.56s;
}
/* ======================= Animaciones de Wave ======================= */
@keyframes wave {
  0% {
    height: 10px;
  }
  20% {
    height: 30px;
  }
  40% {
    height: 5px;
  }
  60% {
    height: 25px;
  }
  80% {
    height: 10px;
  }
  100% {
    height: 30px;
  }
}

.song-info {
  display: flex;
  align-items: center;
  gap: 1em;
}

.music-player.bottom .song-info {
  padding-left: 1em;
}

.music-player.fullscreen .song-info {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.song-description {
  margin: 0.2em 0;
}

.music-player.fullscreen .song-description {
  text-align: center;
}

.name,
.artist {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* -webkit-line-clamp: 1; */
  overflow: hidden;
}

.name {
  font-size: 2rem;
  font-weight: 800;
}

.music-player.bottom .name {
  font-size: 1.2rem;
  font-weight: 600;
}

.music-player.fullscreen .name {
  font-size: 2rem;
}

.artist {
  font-size: 0.9rem;
  color: var(--secundary-color);
}

.music-player.fullscreen .artist {
  font-size: 0.9rem;
}

.center-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* border: 1px solid #fff; */
}

.music-player.bottom .center-content {
  position: absolute;
}
.music-player.fullscreen .center-content {
  position: relative;
}

.controls-container {
  display: flex;
  z-index: 100;
  opacity: 0.4;
  transition: opacity 200ms ease;
}

.music-player:hover .controls-container,
.music-player:focus-within .controls-container,
.music-player.paused .controls-container {
  opacity: 1;
}

.controls-container .controls {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.25rem;
  align-items: center;
}

.button {
  padding: 0;
  color: inherit;
  height: 30px;
  width: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 250ms ease-in-out;
}

.button:hover {
  opacity: 1;
}

.play-pause-btn {
  --size: 4em;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  text-align: center;
  padding: 0.2em;
  background-color: var(--gestihub-2);
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.play-icon {
  padding-left: 0.3em;
}

.compartir-icon {
  width: 30px;
  height: 30px;
}

.disabled {
  cursor: no-drop;
  opacity: 0.2;
}

.music-player.bottom .play-pause-btn {
  --size: 2.5em;
}
.music-player.fullscreen .play-pause-btn {
  --size: 4em;
}

.play-pause-btn:hover {
  background-color: var(--gestihub-1);
  color: var(--gestihub-2);
}

.music-player.paused .pause-icon {
  display: none;
}

.music-player:not(.paused) .play-icon {
  display: none;
}

.music-player.fullscreen .subir-icon {
  display: none;
}

.music-player:not(.fullscreen) .bajar-icon {
  display: none;
}

.button__fullscreen {
  position: absolute;
  right: 2rem;
  top: 2rem;
  --size: 2.5em;
  background-color: var(--gestihub-primary);
  width: var(--size);
  height: var(--size);
  padding: 0.5em;
  display: none;
  color: #000;
}

.music-player.bottom .button__fullscreen {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: block;
  z-index: 15;
}
.music-player.fullscreen .button__fullscreen {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: block;
}

/*=========================== Compartir ===========================*/
.modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  z-index: 1000;
  position: fixed;
  padding: 2rem;
  z-index: 10000;
}

.modal::backdrop {
  background: rgba(0 0 0 / 0.95);
  opacity: 0.5;
}

.h2-compartir {
  margin-top: 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gestihub-2);
  text-align: center;
}

.text-compat {
  color: var(--secundary-color);
  text-align: center;
  font-size: 1.2rem;
}

.ul-compartir {
  display: flex;
  justify-content: center;
}

.compartir-item {
  margin: 2rem;
}

.compartir-link {
  color: var(--gestihub-2);
  transition: color 300ms ease-in-out;
}

.compartir-link:hover {
  color: var(--gestihub-1);
}

.csi {
  font-size: 2rem;
  font-weight: 500;
}

.close-button {
  --size: 2em display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  width: var(--size);
  height: var(--si);
  background-color: var(--gestihub-1);
  padding: 0.2em 0.6em;
  color: var(--primary-color);
  top: 0.5em;
  right: 0.5em;
  transition: background-color 200ms ease-in-out;
  cursor: pointer;
  z-index: 10200;
}

.close-button:hover {
  background-color: var(--gestihub-2);
}

/* ============= Volumen ==================== */
.controls__volumen {
  position: relative;
}

.volume__input {
  transform: rotate(-90deg);
  transform-origin: left;
  margin-left: 0.9em;
  bottom: 3em;
  position: absolute;
  justify-content: space-around;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

input[type="range"] {
  height: 5px;
  background: var(--gestihub-1);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--gestihub-secundary);
  height: 1.5em;
  width: 1.5em;
  border-radius: 50%;
  cursor: pointer;
  border: 5px solid var(--gestihub-primary);
}

.controls__volumen:hover .volume__input,
.controls__volumen:focus-within .volume__input {
  opacity: 1;
}

.volume-up,
.volume-down,
.volume-muted {
  display: none;
}

.music-player[data-volume-level="high"] .volume-up {
  display: block;
}

.music-player[data-volume-level="low"] .volume-down {
  display: block;
}
.music-player[data-volume-level="muted"] .volume-muted {
  display: block;
}
/* ================== Final de los Codigos del Player ================ */

/* Smartphones (portrait & landscape) 
#Dispositivo = Mayoría de teléfonos móviles (vertical y horizontal) 
#Resolución = B/w 320px to 479px */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  .music-player {
    height: 35vh;
  }

  .music-player.bottom {
    height: 15vh;
  }

  .left-content {
    margin-bottom: 0.5rem;
  }

  .player-wrapper {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: inherit;
  }

  .music-player.bottom .player-wrapper {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: inherit;
  }

  .music-player.fullscreen .player-wrapper {
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .music-player.bottom .left-content {
    width: 100%;
    margin-bottom: 0.3rem;
  }

  .music-player.bottom .center-content {
    position: relative;
    justify-content: flex-start;
    padding-left: 1em;
  }

  .image-container {
    position: absolute;
    height: 100%;
    width: 40%;
    right: 0;
    top: 0;
    opacity: 0.8;
    border-radius: 0;
  }

  .music-player.fullscreen .image-container {
    --size: 15em;
    flex-shrink: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 1em;
    overflow: hidden;
    position: relative;
  }

  .image-container img {
    -webkit-mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(5%, transparent),
      color-stop(80%, black)
    );
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 80%);
    mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(5%, transparent),
      color-stop(80%, black)
    );
    mask-image: linear-gradient(to right, transparent 5%, black 80%);
  }

  .music-player.fullscreen .image-container img {
    -webkit-mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(0%, transparent),
      color-stop(0%, black)
    );
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%);
    mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(0%, transparent),
      color-stop(0%, black)
    );
    mask-image: linear-gradient(to right, transparent 0%, black 0%);
  }

  .song-bar {
    width: 90%;
  }

  .music-player.fullscreen .song-bar {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
  }

  .music-player.fullscreen .song-info {
    justify-content: center;
    width: 90%;
    text-align: center;
  }

  .song-description {
    margin: 0.2em 0;
  }

  .music-player.fullscreen .song-description {
    text-align: center;
  }

  .name {
    font-size: 1.5rem;
  }

  .music-player.fullscreen .name {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .compartir-item {
    margin: 2rem 1rem;
  }
}

/* #Dispositivo = Tablets de baja resolución y teléfonos Móviles (horizontal) 
  #Resolución = B/w 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .music-player {
    height: 35vh;
  }

  .music-player.bottom {
    height: 15vh;
  }

  .player-wrapper {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: inherit;
  }

  .music-player.bottom .player-wrapper {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: inherit;
  }

  .music-player.fullscreen .player-wrapper {
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .music-player.bottom .left-content {
    width: 100%;
  }
  .music-player.bottom .center-content {
    position: relative;
  }

  .image-container {
    position: absolute;
    height: 100%;
    width: 40%;
    right: 0;
    top: 0;
    opacity: 0.8;
    border-radius: 0;
  }

  .music-player.fullscreen .image-container {
    --size: 15em;
    flex-shrink: 0;
    width: var(--size);
    height: var(--size);
    border-radius: 1em;
    overflow: hidden;
    position: relative;
  }

  .image-container img {
    -webkit-mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(5%, transparent),
      color-stop(80%, black)
    );
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 80%);
    mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(5%, transparent),
      color-stop(80%, black)
    );
    mask-image: linear-gradient(to right, transparent 5%, black 80%);
  }

  .music-player.fullscreen .image-container img {
    -webkit-mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(0%, transparent),
      color-stop(0%, black)
    );
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%);
    mask-image: -webkit-gradient(
      linear,
      left top,
      right top,
      color-stop(0%, transparent),
      color-stop(0%, black)
    );
    mask-image: linear-gradient(to right, transparent 0%, black 0%);
  }

  .song-bar {
    width: 90%;
  }

  .music-player.fullscreen .song-bar {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
  }

  .music-player.fullscreen .song-info {
    justify-content: center;
    width: 70%;
    text-align: center;
  }

  .song-description {
    margin: 0.2em 0;
  }

  .music-player.fullscreen .song-description {
    text-align: center;
  }

  .name {
    font-size: 1.5rem;
  }

  .music-player.fullscreen .name {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .compartir-item {
    margin: 2rem 1rem;
  }
}