/* Music Room Specific Styles */
.music-room-container {
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

.music-room-section {
  display: grid;
  gap: 24px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Central Vinyl Player */
.vinyl-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  position: relative;
  z-index: 3;
}

.vinyl-player {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-disk {
  width: 280px;
  height: 280px;
  background: 
    /* Vinyl grooves */
    radial-gradient(circle at center, 
      #1a1a1a 0%, 
      #1a1a1a 15%, 
      #333 16%, 
      #333 20%, 
      #1a1a1a 21%, 
      #1a1a1a 25%, 
      #444 26%, 
      #444 30%, 
      #1a1a1a 31%, 
      #1a1a1a 35%, 
      #333 36%, 
      #333 40%, 
      #1a1a1a 41%, 
      #1a1a1a 45%, 
      #444 46%, 
      #444 50%, 
      #1a1a1a 51%, 
      #1a1a1a 55%, 
      #333 56%, 
      #333 60%, 
      #1a1a1a 61%, 
      #1a1a1a 65%, 
      #444 66%, 
      #444 70%, 
      #1a1a1a 71%, 
      #1a1a1a 100%);
  border-radius: 50%;
  position: relative;
  border: 2px solid #555;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vinyl-disk.playing {
  animation: vinyl-spin-smooth 3s linear infinite;
  box-shadow: 
    0 8px 24px rgba(128, 0, 32, 0.4),
    0 0 30px rgba(128, 0, 32, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: rgba(128, 0, 32, 0.6);
}

.vinyl-center-hole {
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  border: 2px solid #333;
  position: absolute;
  z-index: 2;
}

.vinyl-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  z-index: 3;
}

.vinyl-dots .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.vinyl-dots .dot:nth-child(1) {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.vinyl-dots .dot:nth-child(2) {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.vinyl-dots .dot:nth-child(3) {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.vinyl-dots .dot:nth-child(4) {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.vinyl-disk.playing .vinyl-dots .dot {
  background: rgba(128, 0, 32, 0.8);
  box-shadow: 0 0 8px rgba(128, 0, 32, 0.5);
  animation: dot-pulse 1s ease-in-out infinite alternate;
}

@keyframes dot-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.tonearm {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, #666, #333);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(25deg);
  transition: transform 0.5s ease;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.tonearm::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -4px;
  width: 12px;
  height: 12px;
  background: #888;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tonearm::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -3px;
  width: 10px;
  height: 10px;
  background: #444;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vinyl-disk.playing + .tonearm {
  transform: rotate(15deg);
}

@keyframes vinyl-spin-smooth {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Music Notes Container */
.music-notes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.music-note {
  position: absolute;
  font-size: 24px;
  color: rgba(128, 0, 32, 0.8);
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: bounce-around 8s linear infinite;
}

.music-note:nth-child(2n) {
  color: rgba(160, 0, 40, 0.7);
  font-size: 20px;
  animation-duration: 10s;
}

.music-note:nth-child(3n) {
  color: rgba(200, 0, 50, 0.6);
  font-size: 28px;
  animation-duration: 12s;
}

.music-note:nth-child(4n) {
  color: rgba(255, 100, 150, 0.5);
  font-size: 22px;
  animation-duration: 9s;
}

.music-note:nth-child(5n) {
  color: rgba(128, 0, 32, 0.9);
  font-size: 26px;
  animation-duration: 11s;
}

@keyframes bounce-around {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  10% {
    transform: translate(100px, -50px) rotate(36deg);
  }
  20% {
    transform: translate(200px, 20px) rotate(72deg);
  }
  30% {
    transform: translate(150px, 100px) rotate(108deg);
  }
  40% {
    transform: translate(50px, 150px) rotate(144deg);
  }
  50% {
    transform: translate(-50px, 100px) rotate(180deg);
  }
  60% {
    transform: translate(-100px, 50px) rotate(216deg);
  }
  70% {
    transform: translate(-150px, -20px) rotate(252deg);
  }
  80% {
    transform: translate(-100px, -100px) rotate(288deg);
  }
  90% {
    transform: translate(-20px, -150px) rotate(324deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}

/* Music Player Controls */
.music-room-controls {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.track-info {
  text-align: center;
}

.track-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.track-artist {
  font-size: 14px;
  color: var(--muted);
}

.player-controls-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.control-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(128, 0, 32, 0.5);
  transform: scale(1.05);
}

.play-btn-main {
  background: linear-gradient(135deg, #800020 0%, #a50034 100%);
  border-color: rgba(128, 0, 32, 0.5);
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.play-btn-main:hover {
  background: linear-gradient(135deg, #a50034 0%, #c70040 100%);
  box-shadow: 0 4px 16px rgba(128, 0, 32, 0.4);
}

.play-btn-main.playing {
  animation: pulse-red 2s ease-in-out infinite;
}

.progress-section {
  display: grid;
  gap: 8px;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #800020 0%, #a50034 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.progress-bar:hover .progress-fill {
  background: linear-gradient(90deg, #a50034 0%, #c70040 100%);
}

.volume-section {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.volume-icon {
  font-size: 16px;
  opacity: 0.7;
}

.volume-slider {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #800020;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #800020;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-display {
  font-size: 12px;
  color: var(--muted);
  min-width: 35px;
}

/* Track Selection */
.track-selection {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.track-selection h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.track-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(40, 40, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-item:hover {
  background: rgba(60, 60, 60, 0.7);
  border-color: rgba(128, 0, 32, 0.3);
  transform: translateX(4px);
}

.track-item.active {
  background: rgba(128, 0, 32, 0.2);
  border-color: rgba(128, 0, 32, 0.5);
}

.track-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  min-width: 24px;
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist-name {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-play-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.track-play-btn:hover {
  background: rgba(128, 0, 32, 0.3);
  border-color: rgba(128, 0, 32, 0.5);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .vinyl-player {
    width: 250px;
    height: 250px;
  }
  
  .vinyl-disk {
    width: 230px;
    height: 230px;
  }
  
  .music-room-controls {
    margin: 0 10px;
  }
  
  .track-selection {
    margin: 0 10px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .vinyl-player {
    width: 200px;
    height: 200px;
  }
  
  .vinyl-disk {
    width: 180px;
    height: 180px;
  }
  
  .player-controls-main {
    gap: 12px;
  }
  
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .play-btn-main {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .section-title {
    font-size: 20px;
  }
}

/* Scrollbar styling */
.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb {
  background: rgba(128, 0, 32, 0.5);
  border-radius: 3px;
}

.track-list::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 0, 32, 0.7);
}
