/*  Global Style */
.center {
  display: flex;
  align-items: center;
}

.globalPlayer {
  background-color: #111;
  width: 100%;
  height: 8em;
  color: #fff;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.player {
  width: 100%;
  height: inherit;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* ==== Background Player */
.background__player {
  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: 2;
  /* background-color: red; */
}

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

.background__img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.music__player {
  --primary-color: #ddd;
  --secondary-color: #999;
  --green-color: #2d5;
  --padding: 1em;
  /* background-color: #333; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  height: inherit;
  padding: var(--padding);
  color: var(--primary-color);
  z-index: 3;
}

.player.fullscreen .music__player {
  flex-flow: column wrap;
}

.logo__player {
  position: absolute;
  top: 30px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: none;
}

.player.fullscreen .logo__player {
  display: block;
}

.img__logo {
  width: 100%;
  height: 100%;
}

/* Song - Song__bar */
.song__bar {
  position: absolute;
  left: var(--padding);

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 35%;
  /* border: 1px solid #fff; */
}

.player.fullscreen .song__bar {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  left: 0;
  margin-bottom: 1em;
}

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

.player.fullscreen .song__infos {
  flex-direction: column;
  /* border: 1px solid #fff; */
}

.song__description {
  display: flex;
  flex-direction: column;

  /* border: 1px solid #fff; */
}

.player.fullscreen .song__description {
  text-align: center;
  /* border: 1px solid #fff; */
}

.song__image {
  --size: 8em;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
}

.player.fullscreen .song__image {
  --size: 15em;
  border-radius: 1em;
}

.music-cover {
  width: 100%;
  height: 100%;
}

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

/* Song Description */
.song__name,
.song__artist {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}


.song__name {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  padding: 0;
}

.song__artist {
  color: var(--secondary-color);
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
}

/* Controls */
.song__controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* border: 1px solid #fff; */
}

.controls__buttons {
  display: flex;
  align-items: center;
  gap: 2em;
  /* border: 1px solid #fff; */
}

.player__fullscreen {
  position: absolute;
  justify-content: center;
  background-color: var(--green-color);
  width: 1.5em;
  height: 1.5em;
  top: 10px;
  right: 30px;
  padding: var(--padding);
  color: #000;
}

.player.fullscreen .player__fullscreen {
  top: 30px;
}

/* ============== Media Query 768px ================= */
/* @media screen and (max-width: 768px) {

} */

/* ============== Media Query 768px ================= */
@media screen and (max-width: 1024px) {
  .globalPlayer {
    height: 10em;
    /* border: 1px solid #fff; */
  }

  .music__player {
    height: inherit;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* border: 1px solid #fff; */
  }

  .player.fullscreen .music__player {
    flex-flow: column wrap;
    justify-content: center;
  }

  .song__bar {
    width: 100%;
    position: relative;
    /* border: 1px solid #fff; */
  }

  .song__infos {
    width: 100%;
    position: relative;
    gap: 0;
  }

  .song__description {
    width: 70%;
    /* border: 1px solid #fff; */
  }

  .song__image {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0.8;
    z-index: -1;
  }

  .player.fullscreen .song__image {
    position: relative;
  }

  .music-cover {
    -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%);
  }

  .player.fullscreen .music-cover {
    -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-description {
    width: 80%;
  }

  .progress-controller {
    margin-left: 1em;
    width: 90%;
    gap: 1em;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* ============== Media Query 600px ================= */
@media screen and (max-width: 600px) {
  .song-description {
    width: 70%;
  }

  .player.fullscreen .music__player {
    flex-flow: column wrap;
    justify-content: center;
  }
}