:root {
  --player-color-primary: #1c1f2e;
  --player-color-secondary: #ffee34;
  --player-color-third: #1c1f2ef0;
  --player-color-white: #ffffff;
  --player-accent-color: #85E9E1;

}


.playlist-page {
  flex-direction: column;
}

.playlist-header {
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.playlist-image_backout {
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    #85e9e100 0%,
    var(--color-primary-bg) 94%
  );
  opacity: 1;
}

.playlist-info {
  min-height: 70vh;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;

  .playlist-name {
    margin: 0;
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-9xl);
    font-weight: var(--font-weight-extra-bold);
    text-transform: capitalize;
    color: var(--color-secondary-text);
  }
}

.widget-playlist {
  display: flex;
  justify-content: end;
  align-items: center;

  .widget-link {
    padding: 16px 8px;

    .ssp-icon {
      width: 31px;
      height: 31px;
    }
  }
}

.playlist-content {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;

  .icon-rotate {
    padding: 0;
    margin-top: 6em;
  }

  .offers-text {
    margin-top: 6em;
    gap: 2em;

    .offers-label,
    .outline-wrapper {
      width: 50%;
    }
  }

  .proposal-container {
    .proposed-button {
      width: fit-content;
    }
  }
}


@media (max-width: 768px) {
  .playlist-info {

    .playlist-name {
      font-size: var(--font-size-5xl);
    }
  }
}

/******* Player *********/
/* General player styles */
.playlist-player {
  background: #f5f5f5;
  color: var(--player-color-primary);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  /* max-width: 92%; */
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: -8rem;
  width: 84%;
  font-family: "Playfair Display", Sans-serif;
}

/* Track cover */
#playlist-cover {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Track title & author */
.track-info {

  margin-bottom: 10px;
}

span#playlist-track-title a{
  font-weight: 700;
  font-size: 1.8em;
  text-decoration: none;
  color: var(--player-color-primary);
}
.track-info #playlist-author a{
  text-decoration: none;
  color: var(--player-color-primary);
}

/* Player controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.6em 0;
}

/* Play/Pause, Prev, Next buttons */
.player-controls button {
  background: transparent;
  color: var(--player-color-primary);
  width: 40px;
  height: 40px;
  font-size: 2em;
  cursor: pointer;
  margin: 0 auto;
  background: none;
  box-shadow: none;
  border: none;
  transition: 0.2s ease-in-out;
}

.player-controls button:hover {
}

/* Timeline (seek bar) */
.timeline {
  flex-grow: 1;
  margin: 0 10px;
}



#playlist-seek-slider {
  /* Style the slider: remove default appearance, custom thumb */
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--player-color-primary);
  border-radius: 4px;
  outline: none;
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  transition: all 0.3s;
  font-family: "Playfair Display", Sans-serif;
}

/*  Styling the slider thumb (the draggable part) is complex and browser-specific */
#playlist-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; /* Thumb width */
  height: 18px; /* Thumb height */
  background: var(--player-color-primary); /* Yellow thumb */
  border-radius: 50%;
  cursor: pointer;
  z-index: 99;
  position: relative;
}
#playlist-seek-slider::-moz-range-thumb { /* Firefox */
  z-index: 99;
}
#playlist-seek-slider::-ms-thumb { /* IE/Edge */
  z-index: 99;
}

#playlist-seek-slider::before {
  content: ''; 
  position: absolute;
  top: 0;
  left: 0;
  height: 100%; 
  background-color: var(--player-accent-color); 
  border-radius: 4px 0px 0px 4px;
  z-index: 1; 
  width: var(--played-width, 0%); /* Use the custom property, default to 0% */
}

html[dir="rtl"] #playlist-seek-slider::before {
  left: auto;
  right: 0;
  border-radius: 0px 4px 4px 0px;
}

/* Add similar styles for other browsers if needed: */
#playlist-seek-slider::-moz-progress-bar { /* Firefox */
  background-color: var(--player-accent-color); 
}
#playlist-seek-slider::-ms-fill { /* IE/Edge */
  background-color: var(--player-accent-color); 
}

/* Time display */
.undertimeline {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  /*color: var(--player-color-white);*/
  font-size: 1.2em;
  font-family: "Montserrat", Sans-serif;
}

/* Playlist styling */
.playlist {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.playlist li {
  background: var(--player-color-white);
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlist li img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
}

.playlist li:hover {
  background: var(--player-color-primary);
  color: var(--player-color-white);
}

.playlist li.active {
  background: var(--player-color-primary);
  color: var(--player-color-white);
  font-weight: bold;
}

.speed-controls{
  margin-bottom: 0.5em;
}

.speed-controls button {
    background: #1c1f2e;
    border: 1px solid #1c1f2e;
    color: #fff;
    border-radius: 0.2em;
    padding: 0.5em 0.6em;
    font-family: "Playfair Display", Sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-controls button:hover {
    background: #ffffff;
    color: #1c1f2e;
}

#playback-speed-display{
  display: none;
}

@media (max-width: 1140px) {

  .playlist-player {
      margin-top: -5rem;
  }

}