/* (PART A) RESET & PAGE */
* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

/* (PART B) OUTER WRAPPER — player + lyrics side by side */
#playerWrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* (PART C) PLAYER */
#player {
  display: flex;
  flex-wrap: wrap;
  min-width: 340px;
  flex: 0 0 420px;
  padding: 20px;
  border-radius: 12px;
  background: black;
  /* border: 1px solid #2a2a4a; */
  height: 95vh;
  overflow: hidden;
  align-content: flex-start;
  text-align: left;
}

/* PLAYER TOP — image + controls, never scrolls */
#playTop {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 20px;
}

/* PLAYER PLAYLISTS — scrollable */
#playPlaylists {
  width: 100%;
  overflow-y: auto;
  max-height: calc(95vh - 230px);
}

/* (PART D) SONG IMAGE */
#playImg {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

/* (PART E) CONTROLS */
#playControls {
  width: calc(100% - 110px);
  padding-left: 12px;
}

#player input[type="range"] {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
  accent-color: #e94560;
  width: 100%;
  cursor: pointer;
}

#playName {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#playTimeD {
  display: flex;
}

#playTimeN,
#playTimeT {
  width: 50%;
  font-size: 13px;
  color: #888;
}

#playTimeT {
  text-align: right;
}

/* (PART F) ICOMOON */
@font-face {
  font-family: icomoon;
  src: url(fonts/icomoon.eot?d3ybsy);
  src: url(fonts/icomoon.eot?d3ybsy#iefix) format('embedded-opentype'), url(fonts/icomoon.ttf?d3ybsy) format('truetype'), url(fonts/icomoon.woff?d3ybsy) format('woff'), url(fonts/icomoon.svg?d3ybsy#icomoon) format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: block
}

[class*=" icon-"],
[class^=icon-] {
  color: #c0c0c0;
  font-family: icomoon !important;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

.icon-play3:before {
  content: "\ea1c"
}

.icon-pause2:before {
  content: "\ea1d"
}

.icon-previous2:before {
  content: "\ea23"
}

.icon-next2:before {
  content: "\ea24"
}

.icon-volume-high:before {
  content: "\ea26"
}

.icon-volume-mute2:before {
  content: "\ea2a"
}

/* (PART G) BUTTONS */
#playButtons {
  display: flex;
  margin-top: 10px;
  align-items: center;
  /* width: 100%; */
  width: auto;
  margin-left: -30%;
}
}

#playLast,
#playTog,
#playNext,
#playVolI {
  cursor: pointer;
}

#playLast,
#playTog,
#playNext {
  font-size: 30px;
  flex-grow: 1;
  text-align: center;
  cursor: pointer;
}

#playVolI {
  font-size: 16px;
  margin-right: 5px;
  cursor: pointer;
}

#playVolR {
  flex-shrink: 1;
  max-width: 100px;
}

/* (PART H) PLAYLIST SECTIONS */
.playListSection {
  width: 100%;
  margin-top: 20px;
}

.playListTitle {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fda73;
}

.playList div {
  padding: 4px 10px;
  cursor: pointer;
  /* color: #b0b0b0; */
  /* border-radius: 4px; */
  font-size: 14px;
}

.playList div:nth-child(odd) {
  background: #060606;
}

.playList div:nth-child(even) {
  background: #060606;
}

.playList div.current {
  font-weight: 700;
  color: #e94560;
}

.playList div:hover {
  color: #ffffff;
}

/* (PART I) LYRICS PANEL */
#playLyrics {
  flex: 1 1 0;
  min-width: 300px;
  padding: 20px;
  border-radius: 12px;
  background: black;
  /* border: 1px solid black; */
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.5;
  height: 95vh;
  overflow-y: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
  text-align: left;
}

#playLyrics.empty {
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
}

#playLyricsContent {
  transition: opacity 0.3s;
}

#playLyricsContent.loading {
  opacity: 0;
}

#playLyricsTitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fda73;
  margin-bottom: 12px;
}

/* (PART K) INLINE LYRICS TOGGLE — mobile only */
.playItemHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playItemTitle {
  flex: 1;
  cursor: pointer;
}

.playItemLyricsToggle {
  display: none;
}

.playItemLyrics {
  display: none;
  font-size: 12px;
  line-height: 1.6;
  color: #888;
  padding: 8px 10px;
  background: #0a0a0a;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: normal;
}

@media (max-width: 850px) {
  .playItemLyricsToggle {
    display: inline;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    opacity: 0.7;
  }

  .playItemLyricsToggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
  }

  .playItemLyricsToggle.active {
    background: rgba(254, 238, 170, 0.3);
    opacity: 1;
  }

  #playerWrap {
    flex-direction: column;
    margin-top: 0;
  }

  #player {
    flex: none;
    min-width: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0px;
  }

  #playTop {
    padding-bottom: 0px;
  }

  #playName {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #playControls {
    width: calc(100% - 90px);
    padding-left: 12px;
  }

  #playImg {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
  }

  #playPlaylists {
    max-height: calc(100vh - 210px);
    line-height: 1.7;
  }

  #playLyrics {
    width: 100%;
    max-height: none;
    display: none;
  }

  #playLyrics.empty {
    display: none;
  }
}