body {
  background: #000000;
  font-family: 'Turret Road', serif;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  color: white;
  box-sizing: border-box;
}

.header {
  text-align: center;
  position: relative;
  height: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.album-title {
  font-weight: normal;
  font-size: 2.5rem;
  margin-top: 180px;
  letter-spacing: 2px;
}

.cd-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
}

.cd {
  width: 240px;
  height: 240px;
  margin-left: -120px;
  margin-top: -120px;
  border-radius: 120px;
  animation: cd 12s linear infinite;
  -webkit-animation: cd 16s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
}
.cd:before {
  content: '';
  position: absolute;
  animation: bg 6s linear infinite;
  -webkit-animation: bg 6s linear infinite;
  left: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    45deg,
    #ffffff 0%,
    #8db4c6 12%,
    #62b276 21%,
    #888 32%,
    #d8a2d8 38%,
    #ccc 42%,
    #76bf70 47%,
    #d8a2d8 57%,
    #29b8e5 61%,
    #d8a2d8 74%,
    #ffffff 81%,
    #1c1814 88%,
    #ffcc00 94%,
    #ffffff 97%,
    #bce0ee 100%
  );
  -webkit-background: linear-gradient(
    45deg,
    #ffffff 0%,
    #8db4c6 12%,
    #62b276 21%,
    #888 32%,
    #d8a2d8 38%,
    #ccc 42%,
    #76bf70 47%,
    #d8a2d8 57%,
    #29b8e5 61%,
    #d8a2d8 74%,
    #ffffff 81%,
    #1c1814 88%,
    #ffcc00 94%,
    #ffffff 97%,
    #bce0ee 100%
  );
}
.cd:after {
  content: '';
  width: 80px;
  height: 80px;
  background: #000000;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  border: 20px solid #ddd;
  box-sizing: border-box;
  border-radius: 150px;
  box-shadow: 0px 0px 0px 5px rgba(0, 0, 0, 0.6);
}
@keyframes cd {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
@keyframes bg {
  50% {
    left: -150%;
  }
}
@-webkit-keyframes cd {
  0% {
    -webkit-transform: rotateY(0deg);
  }
  100% {
    -webkit-transform: rotateY(360deg);
  }
}
@-webkit-keyframes bg {
  50% {
    left: -150%;
  }
}

.tracklist {
  width: 100%;
  max-width: 425px;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #000;
}

.tracklist::-webkit-scrollbar {
  width: 6px;
}

.tracklist::-webkit-scrollbar-track {
  background: #000;
}

.tracklist::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 3px;
}

.track-row {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.track-row:hover .track-title,
.track-row:hover .track-duration,
.track-row:hover .play-btn {
  color: #a80000;
}

.track-row.active {
  color: #ff0000;
}

.track-row.active .track-title,
.track-row.active .track-duration,
.track-row.active .play-btn {
  color: #ff0000;
}

.track-controls {
  width: 30px;
  display: flex;
  justify-content: center;
}

.play-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}

.track-info {
  flex-grow: 1;
  padding-left: 15px;
}

.track-duration {
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #ff0000;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  z-index: 1000;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.player.visible {
  display: flex;
}

.player-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-header {
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
}

.player-track-title {
  font-size: 0.9rem;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.player-btn {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
}

#play-pause-btn {
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-info-row {
  display: flex;
  justify-content: flex-end;
  padding-right: 5px;
  margin-bottom: 2px;
}

.time-display {
  font-size: 0.8rem;
  color: #aaa;
  font-family: monospace;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: #333;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.progress-bar {
  height: 100%;
  background: #ff0000;
  width: 0%;
  transition: width 0.1s linear;
}

.volume-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-left: 1px solid #333;
  padding-left: 15px;
  min-width: 30px;
}

.volume-icon {
  font-size: 0.8rem;
  color: #ff0000;
}

.volume-container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#volume-slider {
  transform: rotate(-90deg);
  width: 60px;
  height: 4px;
  accent-color: #ff0000;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .cd {
    width: 210px;
    height: 210px;
    margin-left: -105px;
    margin-top: -105px;
    border-radius: 120px;
    animation: cd 12s linear infinite;
    -webkit-animation: cd 16s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
  }

  .player {
    width: 65%;
    padding: 10px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .volume-wrapper {
    display: none;
  }
  .player-main {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .player-controls {
    gap: 10px;
  }
  .progress-container {
    width: 100%;
  }
  .tracklist {
    position: absolute;
    top: 350px;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 425px;
    height: auto;
    max-height: none;
    flex-grow: 0;
    margin: 0;
    padding-bottom: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
  }
  .track-row {
    font-size: 1.1rem;
  }

  .album-title {
    font-weight: normal;
    font-size: 2rem;
    margin-top: 130px;
    letter-spacing: 2px;
  }
  .main-container {
    justify-content: flex-start;
    padding-top: 110px;
  }

  .info-icon {
    display: none !important;
  }

  .hamburger-menu {
    display: block !important;
  }
}

.nav-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  gap: 15px;
}

.info-icon,
.hamburger-menu {
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.info-icon:hover,
.hamburger-menu:hover {
  color: #a80000;
}

.hamburger-menu {
  display: none;
}

.info-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.info-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.info-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 40px;
  border: 1px solid #ff0000;
  background: rgba(10, 10, 10, 0.95);
  border-radius: 15px;
  max-width: 80%;
}

.close-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ff0000;
  font-size: 1.2rem;
  cursor: pointer;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.info-link {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.info-link:hover {
  color: #ff0000;
}

.social-icons {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.social-icon {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.social-icon:hover {
  color: #ff0000;
}

@media (max-width: 768px) {
  .info-icon,
  .hamburger-menu {
    font-size: 1.2rem;
  }
}
