:root {
  /* Modern color palette */
  --primary-color: #e8e8eb;
  --secondary-color: #ffffff;
  --app-background-color: #0f0f1e;
  --background-color: #1a1a2e;
  --foreground-color: #16213e;
  --highlight-color: #00f5a0;
  --accent-glow: rgba(0, 245, 160, 0.15);

  /* font sizes */
  --root-font-size: 16px;
  font-size: var(--root-font-size);

  /* font-families */
  --font-headline: "Roboto Mono", monospace;
  --font-family: "Lato", sans-serif;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: var(--primary-color);
  font-family: var(--font-family);
  min-height: 100vh;
}

h1 {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.5px;
}

h2 {
  font-size: var(--root-font-size);
  font-weight: 500;
  letter-spacing: 0.5px;
}

ul {
  margin: 0;
}

.container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 5px;
}

.player,
.playlist {
  width: 450px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(0, 245, 160, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(10px);
}

.player {
  height: 260px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
}

.player-bar,
.playlist-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  width: 100%;
  height: 30px;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 160, 0.08);
}

.parallel-lines {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  padding: 0 5px;
}

.parallel-lines > div {
  height: 2px;
  width: 100%;
  min-width: 75px;
  background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.3);
  border-radius: 2px;
}

.fcc-title,
.playlist-title {
  color: var(--secondary-color);
  margin: 0 10px;
  font-family: var(--font-headline);
  text-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}

.player-content {
  display: flex;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.6) 0%, rgba(26, 26, 46, 0.6) 100%);
  width: 430px;
  height: 200px;
  column-gap: 13px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 160, 0.08);
}

#player-album-art {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 6px solid var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 245, 160, 0.1) inset;
}

#player-album-art video {
  width: 150px;
  display: block;
}

.player-display {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 30, 0.9) 100%);
  height: 153px;
  width: 226px;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 160, 0.08);
}

.player-display-song-artist {
  height: 80px;
}

.player-buttons svg {
  fill: var(--primary-color);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.player-buttons svg:hover {
  fill: var(--highlight-color);
  filter: drop-shadow(0 0 8px rgba(0, 245, 160, 0.6));
}

.playing > svg {
  fill: var(--highlight-color);
  filter: drop-shadow(0 0 12px rgba(0, 245, 160, 0.8));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.player-buttons {
  display: flex;
  justify-content: space-around;
}

button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: var(--root-font-size);
  outline-color: var(--highlight-color);
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 4px;
}

button:hover {
  background: rgba(0, 245, 160, 0.05);
  transform: scale(1.05);
}

button:active {
  transform: scale(0.95);
}

.playlist-song {
  outline-color: var(--highlight-color);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.playlist-song:hover {
  background: rgba(0, 245, 160, 0.05);
  transform: translateX(4px);
}

.playlist li:not(:last-child) {
  border-bottom: 1px solid rgba(26, 26, 46, 0.5);
}

button:focus,
.playlist-song:focus {
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 2px;
  background: rgba(0, 245, 160, 0.08);
}

/* Playlist */
.playlist {
  height: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
}

#playlist-songs {
  width: 430px;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.4) 0%, rgba(26, 26, 46, 0.4) 100%);
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  padding: 8px 9px;
  visibility: visible;
  justify-content: start;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 160, 0.08);
}

.playlist-song {
  display: flex;
  height: 55px;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}

[aria-current="true"] {
  background: linear-gradient(90deg, rgba(0, 245, 160, 0.15) 0%, rgba(0, 245, 160, 0.05) 100%);
  border-left: 3px solid var(--highlight-color);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.1);
}

[aria-current="true"] p {
  color: var(--highlight-color);
  font-weight: 500;
}

.playlist-song-info {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  column-gap: 7px;
  padding: 10px 0;
  padding-left: 3px;
  padding-right: 3px;
  font-family: var(--font-family);
}

#player-song-title,
#player-song-artist {
  margin: 0;
}

#player-song-artist {
  color: var(--highlight-color);
  font-size: 0.75rem;
  opacity: 0.9;
}

#player-song-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.playlist-song-title {
  font-size: 0.85rem;
  width: 241px;
  text-align: left;
}

.playlist-song-artist {
  font-size: 0.725rem;
  width: 80px;
  opacity: 0.7;
}

.playlist-song-duration {
  font-size: 0.725rem;
  margin: auto;
  font-family: var(--font-headline);
  width: 30px;
  opacity: 0.6;
}

.playlist-song-delete {
  padding: 0;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.playlist-song-delete,
.playlist-song-delete {
  fill: rgba(232, 232, 235, 0.3);
}

.playlist-song-delete:hover circle,
.playlist-song-delete:focus circle {
  fill: #ff3366;
  filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.6));
}

@media (max-width: 700px) {
  .player,
  .playlist {
    width: 300px;
  }

  .player {
    height: 340px;
  }

  #playlist-songs {
    height: 280px;
    padding: 5px 6px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-color: var(--highlight-color) rgba(26, 26, 46, 0.5);
    scrollbar-width: thin;
  }

  #playlist-songs::-webkit-scrollbar {
    width: 5px;
  }

  #playlist-songs::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
  }

  #playlist-songs::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--highlight-color), rgba(0, 245, 160, 0.5));
    border-radius: 10px;
  }

  h1 {
    font-size: 0.813rem;
  }

  h2 {
    font-size: 0.75rem;
  }

  .player-bar,
  .playlist-bar,
  .player-content,
  #playlist-songs {
    width: 280px;
  }

  .playlist-song {
    justify-content: space-between;
  }

  .playlist-song-title {
    width: 140px;
  }

  .playlist-song-artist {
    width: 40px;
  }

  .playlist-song-duration > button {
    padding: 0;
  }

  .player-content {
    display: inline;
    position: relative;
    justify-items: center;
    height: 100%;
  }

  #player-album-art {
    z-index: -100;
    height: 280px;
    box-shadow: none;
    background: linear-gradient(135deg, #0f0f1e 0%, #000 100%);
  }

  #player-album-art img {
    width: 100%;
    opacity: 0.6;
  }

  .player-display-song-artist {
    padding: 0 10px;
  }

  .player-display-song-artist > p {
    white-space: pre-wrap;
  }

  .player-display {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 30, 0.85) 50%, rgba(26, 26, 46, 0.95) 100%);
    top: 0;
    height: 280px;
    justify-content: space-between;
    text-align: center;
  }
}