/* Player Page Styles */
.player-page {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-container {
  display: grid;
  grid-template-columns: minmax(400px, 600px) 1fr;
  grid-template-rows: auto 1fr;
  padding-top: 2rem;
  width: 100%;
  min-height: 95vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Album Art */
.album-art {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 2rem 0;
}

.album-art img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(215, 33, 39, 0.3);
  margin-bottom: 2rem;
}

/* Personnel Section */
.personnel {
  grid-column: 1;
  grid-row: 2;
  padding: 1rem 2rem 2rem;
  color: #ffffff;
  align-self: flex-start;
}

.personnel h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #d72127;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.personnel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.personnel li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #cccccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.personnel li:last-child {
  border-bottom: none;
}

.personnel .role {
  color: #999999;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Player Section */
.player-section {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
}

.player-header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  font-weight: 700;
}

.player-header .subtitle {
  font-size: 1.2rem;
  color: #999;
  margin: 0;
}

/* Now Playing */
.now-playing {
  margin: 2rem 0;
}

.track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.track-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d72127;
}

.track-time {
  font-size: 0.9rem;
  color: #666;
}

.track-time .current-time {
  margin-right: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d72127 0%, #b51d1f 100%);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}

/* Player Controls */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
}

.control-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.play-btn {
  background: #d72127;
  width: 50px;
  height: 50px;
}

.play-btn:hover {
  background: #b51d1f;
  transform: scale(1.1);
}

.play-btn svg {
  display: block;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.volume-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #333333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #d72127;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #d72127;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Playlist */
.playlist {
  margin: 0;
}

.playlist-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.playlist-tracks {
  padding-right: 0.5rem;
}

.track-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #d72127;
}

.track-item.active {
  background: rgba(215, 33, 39, 0.15);
  border-left-color: #d72127;
}

.track-number {
  width: 30px;
  font-weight: 600;
  color: #666;
}

.track-item.active .track-number {
  color: #d72127;
}

.track-name {
  flex: 1;
  color: #ffffff;
}

/* Back Link */
.back-link {
  margin-top: 2rem;
  text-align: center;
}

.back-link a {
  color: #999;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-link a:hover {
  color: #d72127;
}

/* Responsive */
@media (max-width: 1024px) {
  .player-page {
    align-items: flex-start;
    padding: 0;
  }

  .player-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-radius: 0;
  }

  .album-art {
    order: 1;
    padding: 2rem 1.5rem 0;
  }

  .player-section {
    order: 2;
    min-height: auto;
  }

  .personnel {
    order: 3;
    padding: 1.5rem 1.5rem 1.5rem 48px;
  }
}

@media (max-width: 768px) {
  .album-art {
    padding: 1.5rem 1.5rem 0;
  }

  .album-art img {
    margin-bottom: 0;
  }

  .personnel h3 {
    font-size: 1rem;
  }

  .personnel li {
    font-size: 0.85rem;
  }

  .player-section {
    padding: 2rem 1.5rem 3rem;
  }


  .player-header h1 {
    font-size: 2rem;
  }

  .player-header .subtitle {
    font-size: 1rem;
  }

  .track-title {
    font-size: 1.2rem;
  }

  .player-controls {
    gap: 1rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .back-link {
    margin-top: 0;
  }
}
