/* ============================================
   ELECTRA DJ RADIO - Player Styles
   ============================================ */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 600px;
  padding: 20px;
}

/* --- Logo --- */
.logo-container {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.logo-container img {
  max-width: 280px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* --- Top Actions --- */
.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-action:active {
  transform: translateY(0);
}

/* --- Player Card --- */
.player-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}

/* --- Album Art --- */
.album-art {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 30px;
  display: block;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* --- Track Info --- */
.track-info {
  text-align: center;
  margin-bottom: 30px;
}

.track-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.track-artist {
  font-size: 1rem;
  color: var(--text-primary);
}

.nowPlaying {
  -webkit-padding-before: 16px;
  padding-block-start: 16px;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  font-size: 10px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.SoundWaves > svg {
  width: 12px;
  height: 12px;
}

/* --- Vote Buttons --- */
.vote-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.btn-vote {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

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

.btn-vote:active {
  animation: voteClick 0.3s ease;
}

.btn-vote.voted {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(3, 72, 74, 0.1);
}

@keyframes voteClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Live Indicator --- */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: normal;
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.5);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* --- Controls --- */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.btn-play {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(3, 72, 74, 0.4);
}

.btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(3, 72, 74, 0.6);
}

.btn-play:active {
  transform: scale(0.95);
}

/* --- Volume --- */
.volume-control {
  display: none;
}

.btn-volume {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 30px;
}

.btn-volume:hover {
  color: var(--primary-color);
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

/* --- Error & Loading --- */
.error-message {
  background: rgba(205, 5, 5, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  display: none;
}

.loading {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 10px;
}

.loading i {
  animation: spin 1s linear infinite;
}

/* --- History --- */
.history-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.history-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.history-item-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 32px;
  text-align: center;
  opacity: 0.7;
}

.history-item-cover {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
}

.history-item-info {
  flex: 1;
  min-width: 0;
}

.history-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-artist {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Sponsors --- */
.sponsors-section {
  margin-top: 30px;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.sponsors-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.sponsor-item {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.sponsor-item:hover {
  transform: scale(1.1);
  opacity: 1;
}

.sponsor-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
  filter: brightness(1);
}

/* --- Player Footer Override --- */
.player-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.player-footer .social-links {
  margin-bottom: 15px;
}

.player-footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.player-footer a:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .container {
    padding: 15px;
    max-width: 100%;
  }

  .player-card {
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

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

  .track-artist {
    font-size: 1rem;
  }

  .btn-play {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .history-item-cover {
    width: 45px;
    height: 45px;
  }

  .history-item-title {
    font-size: 0.85rem;
  }

  .history-item-artist {
    font-size: 0.75rem;
  }

  .history-item-time {
    font-size: 0.65rem;
    min-width: 40px;
  }
}
