/* #region: GENERAL */

.discography-title {
  margin-top: 12rem;
  margin-bottom: 6rem;
}

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;

  margin-top: 5rem;
  margin-bottom: 5rem;
}

/* #endregion */

/* #region: AUDIO PLAYER */

.audio-player {
  width: 80%;
  max-width: 45rem;
  margin-top: 6rem;
  margin-bottom: 5rem;
  margin-left: auto;
  margin-right: auto;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  font-family: "Roboto", sans-serif;
  color: rgb(255, 250, 234);

  text-transform: none;
}

.player {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  gap: 2rem;
}

.player-left-section {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-cover {
  width: 100%;
}

.player-right-section {
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2rem;
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 0.2rem;
}

.player-artist p {
  letter-spacing: 0.1rem;
}

.player-title p {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.3rem;
  margin: 0;
}

.player-role p {
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  opacity: 0.8;
}

.player-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.player-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.player-buttons-left {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.player-buttons-big {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-right: 1.5rem;
}

.player-buttons-big img {
  height: 2rem;
  opacity: 1;
}

.player-buttons-small {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-right: 0.5rem;
}

.player-buttons-small img {
  width: 1.5rem;
  opacity: 1;
}

.player-duration {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 200;
  color: rgb(255, 250, 234);
  margin-left: 1rem;
}

.player-seek-bar input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 0.6rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 0.2rem;
}

.player-seek-bar input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.6rem;
  background: linear-gradient(
    to right,
    rgb(255, 250, 234, 1) var(--range-value, 0%),
    rgba(255, 255, 255, 0.1) var(--range-value, 0%)
  );
}

.player-seek-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  margin-top: -4px;
}

.playlist {
  width: 100%;
  max-height: 13.6rem;
  overflow-y: auto;
  padding-right: 1rem;

  /* firefox */
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.playlist-song {
  width: 100%;
  height: 3.4rem;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  background-color: transparent;
  border: none;
  font: inherit;
  color: inherit;

  cursor: pointer;
}

.song-left-section {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 2rem;

  padding-left: 0.3rem;
}

.song-right-section {
  padding-right: 0.3rem;
}

.playlist-song:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

.song-divider {
  width: 100%;
  border: none;
  background-color: rgba(255, 255, 255, 0.3);
  height: 1px;
}

/* #endregion */

/* #region: GRID */

.discography-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;

  text-transform: none;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  max-width: 60rem;
  padding: 1.5rem;
}

.grid-item {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 100%;
  height: 0;

  cursor: pointer;
}

.grid-item-cover {
  width: 100%;
  transform: translateY(50%) scale(1);
  transition: transform 0.8s;
}

.grid-item:hover .grid-item-cover {
  transform: translateY(50%) scale(1.1);
}

.grid-item-overlay {
  background-color: rgb(22, 22, 22);
  opacity: 0;
  transition: opacity 0.15s;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item:hover .grid-item-overlay {
  opacity: 0.8;
}

.grid-item-text {
  opacity: 0;
  transition: opacity 0.15s;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;

  padding: 0;
  margin: 0;
}

.grid-item:hover .grid-item-text {
  opacity: 1;
}

.grid-item-text p {
  font-size: 1rem;
  line-height: 1.2rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.grid-item-name {
  font-weight: 400;

  position: absolute;
  top: 0;
  width: 100%;
  left: 50%;
  transform: translate(-50%, 0);
}

.grid-item-role {
  font-weight: 200;

  position: absolute;
  bottom: 0;
  width: 100%;
  left: 50%;
  transform: translate(-50%, 0);
}

/* #endregion */

/* #region: MEDIA QUERY */

@media (max-width: 768px) {
  .discography-title {
    margin-top: 3rem;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .grid-item-text {
    width: 80%;
    height: 80%;
  }

  .grid-item-text p {
    font-size: 0.8rem;
    line-height: normal;
    letter-spacing: 0.08em;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .audio-player {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;

    gap: 1rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  .player {
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }

  .player-left-section {
    flex: none;
  }

  .player-cover {
    width: 6rem;
  }

  .player-right-section {
    gap: 0.5rem;
    flex: 1;
  }

  .player-artist p {
    letter-spacing: 0.1rem;
    font-size: 0.7rem;
  }

  .player-title p {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
  }

  .player-role p {
    font-size: 0.6rem;
    letter-spacing: normal;
    opacity: 0.8;
  }

  .player-controls {
    gap: 0rem;
  }

  .player-buttons-big {
    margin-right: 0.6rem;
  }

  .player-buttons-big img {
    height: 1.3rem;
  }

  .player-buttons-small {
    margin-right: 0.3rem;
  }

  .player-buttons-small img {
    width: 1.2rem;
  }

  .player-duration {
    font-size: 0.6rem;
  }

  .player-seek-bar input[type="range"] {
    height: 0.4rem;
  }

  .player-seek-bar input[type="range"]::-webkit-slider-runnable-track {
    height: 0.4rem;
  }

  .playlist {
    max-height: 12rem;
  }

  .playlist-song {
    height: 2.7rem;
  }

  .playlist-song p {
    font-size: 0.8rem;
  }

  .song-left-section {
    gap: 1rem;

    padding-left: 0.15rem;
  }

  .song-right-section {
    padding-right: 0.15rem;
  }
}

/* #endregion */
