/* Radio Player Styles */

/* Background Image Overlay */
.radio-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  filter: blur(20px) brightness(0.4);
}

.radio-background.active {
  opacity: 1;
}

.radio-page {
  min-height: 100vh;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Player Section */
.player-section {
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Album Art */
.album-art-container {
  width: 300px;
  height: 300px;
  position: relative;
}

.album-art-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-art-wrapper:hover .album-art {
  transform: scale(1.05);
}

.vinyl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 35%, rgba(0, 0, 0, 0.3) 36%, rgba(0, 0, 0, 0.3) 45%, transparent 46%);
  pointer-events: none;
  border-radius: 50%;
}

.album-art-wrapper.playing .album-art {
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Now Playing */
.now-playing {
  text-align: center;
  width: 100%;
}

.track-title {
  font-size: 2em;
  margin: 0 0 10px 0;
  color: #ffffff;
  font-weight: bold;
}

.track-artist {
  font-size: 1.3em;
  margin: 0 0 5px 0;
  color: rgba(255, 255, 255, 0.8);
}

.track-meta {
  font-size: 1em;
  margin: 0 0 15px 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Lore Badges */
.lore-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.lore-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  text-decoration: none;
  color: var(--primary-color, #6366f1);
  font-size: 0.85em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lore-badge:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.lore-badge-story {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.lore-badge-story:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.lore-badge-chapter {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.lore-badge-chapter:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.lore-badge-character {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.lore-badge-character:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.lore-badge-object {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.lore-badge-object:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.badge-icon {
  font-size: 0.9em;
  line-height: 1;
}

.badge-text {
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.playlist-item-badges .lore-badge {
  font-size: 0.75em;
  padding: 4px 10px;
}

.playlist-item-badges .badge-text {
  max-width: 120px;
}

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

.control-btn {
  background: var(--primary-color, #6366f1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.control-btn.active {
  background: var(--secondary-color, #8b5cf6);
}

.control-btn.play-pause {
  width: 80px;
  height: 80px;
  font-size: 2em;
}

/* Progress Bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.time-display {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  min-width: 50px;
  text-align: center;
}

.progress-bar-wrapper {
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color, #6366f1), var(--secondary-color, #8b5cf6));
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.volume-icon {
  font-size: 1.5em;
}

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

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color, #6366f1);
  cursor: pointer;
}

.volume-value {
  min-width: 50px;
  text-align: center;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

/* Playlist Mode Selector */
.playlist-mode-selector {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.mode-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color, #6366f1);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-family: var(--display-font, 'AnimeAce', Arial, sans-serif) !important;
  transition: all 0.3s;
}

.mode-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
}

.mode-btn.active {
  background: var(--primary-color, #6366f1);
  color: white;
}

/* Screensaver Button */
.screensaver-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color, #6366f1), var(--secondary-color, #8b5cf6));
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-family: var(--display-font, 'AnimeAce', Arial, sans-serif) !important;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.screensaver-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Playlist Section */
.playlist-section {
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.playlist-header h2 {
  margin: 0;
  color: #ffffff;
}

.playlist-stats {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
}

.playlist-items {
  max-height: 600px;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
  cursor: pointer;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.playing {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-left: 4px solid var(--primary-color, #6366f1);
}

.playlist-item-number {
  font-size: 1.2em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  min-width: 40px;
  text-align: center;
  margin-right: 15px;
}

.playlist-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
  border: 2px solid var(--primary-color, #6366f1);
}

.playlist-item-content {
  flex: 1;
}

.playlist-item-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 5px 0;
}

.playlist-item-artist {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.playlist-item-favorite {
  margin-left: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s;
}

.playlist-item-favorite:hover {
  opacity: 1;
  transform: scale(1.2);
}

.playlist-item-favorite.active {
  opacity: 1;
  color: #e91e63;
}

.loading-playlist {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
}

/* Auto Screensaver Countdown Dialog */
.auto-screensaver-countdown {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.auto-screensaver-countdown.active {
  display: flex;
  opacity: 1;
}

.countdown-content {
  background: rgba(18, 18, 23, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-content h2 {
  margin: 0 0 20px 0;
  font-size: 2em;
  color: #ffffff;
}

.countdown-text {
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.countdown-text span {
  font-weight: bold;
  color: var(--primary-color, #667eea);
  font-size: 1.2em;
}

.cancel-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cancel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Screensaver Overlay */
.screensaver-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: none;
  overflow: hidden;
}

.screensaver-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screensaver-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screensaver-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.screensaver-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.screensaver-gallery img.active {
  opacity: 1;
}

/* Image Effect Animations */
.screensaver-gallery img.effect-zoom {
  animation: screensaverZoom 43s ease-in-out infinite;
  animation-delay: 0s;
}

.screensaver-gallery img.effect-rotate {
  animation: screensaverRotate 61s ease-in-out infinite;
  animation-delay: 2s;
}

.screensaver-gallery img.effect-hue {
  animation: screensaverHue 83s linear infinite;
  animation-delay: 5s;
}

.screensaver-gallery img.effect-brightness {
  animation: screensaverBrightness 31s ease-in-out infinite;
  animation-delay: 3s;
}

/* Combined animations - zoom and rotate both affect transform, so combine them */
.screensaver-gallery img.effect-zoom.effect-rotate {
  animation: screensaverZoomRotate 43s ease-in-out infinite;
  animation-delay: 0s;
}

/* Hue and brightness both affect filter, so combine them */
.screensaver-gallery img.effect-hue.effect-brightness {
  animation: screensaverHueBrightness 83s linear infinite;
  animation-delay: 5s;
}

/* Zoom + Hue */
.screensaver-gallery img.effect-zoom.effect-hue {
  animation: screensaverZoom 43s ease-in-out infinite, screensaverHue 83s linear infinite;
  animation-delay: 0s, 5s;
}

/* Zoom + Brightness */
.screensaver-gallery img.effect-zoom.effect-brightness {
  animation: screensaverZoom 43s ease-in-out infinite, screensaverBrightness 31s ease-in-out infinite;
  animation-delay: 0s, 3s;
}

/* Rotate + Hue */
.screensaver-gallery img.effect-rotate.effect-hue {
  animation: screensaverRotate 61s ease-in-out infinite, screensaverHue 83s linear infinite;
  animation-delay: 2s, 5s;
}

/* Rotate + Brightness */
.screensaver-gallery img.effect-rotate.effect-brightness {
  animation: screensaverRotate 61s ease-in-out infinite, screensaverBrightness 31s ease-in-out infinite;
  animation-delay: 2s, 3s;
}

/* Zoom + Rotate + Hue */
.screensaver-gallery img.effect-zoom.effect-rotate.effect-hue {
  animation: screensaverZoomRotate 43s ease-in-out infinite, screensaverHue 83s linear infinite;
  animation-delay: 0s, 5s;
}

/* Zoom + Rotate + Brightness */
.screensaver-gallery img.effect-zoom.effect-rotate.effect-brightness {
  animation: screensaverZoomRotate 43s ease-in-out infinite, screensaverBrightness 31s ease-in-out infinite;
  animation-delay: 0s, 3s;
}

/* Zoom + Hue + Brightness */
.screensaver-gallery img.effect-zoom.effect-hue.effect-brightness {
  animation: screensaverZoom 43s ease-in-out infinite, screensaverHueBrightness 83s linear infinite;
  animation-delay: 0s, 5s;
}

/* Rotate + Hue + Brightness */
.screensaver-gallery img.effect-rotate.effect-hue.effect-brightness {
  animation: screensaverRotate 61s ease-in-out infinite, screensaverHueBrightness 83s linear infinite;
  animation-delay: 2s, 5s;
}

/* All effects */
.screensaver-gallery img.effect-zoom.effect-rotate.effect-hue.effect-brightness {
  animation: screensaverZoomRotate 43s ease-in-out infinite, screensaverHueBrightness 83s linear infinite;
  animation-delay: 0s, 5s;
}

@keyframes screensaverZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes screensaverRotate {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes screensaverZoomRotate {
  0%, 100% {
    transform: scale(1) rotate(-5deg);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
}

@keyframes screensaverHue {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes screensaverBrightness {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

@keyframes screensaverHueBrightness {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    filter: hue-rotate(180deg) brightness(1.3);
  }
  50% {
    filter: hue-rotate(360deg) brightness(1);
  }
  75% {
    filter: hue-rotate(540deg) brightness(1.3);
  }
  100% {
    filter: hue-rotate(720deg) brightness(1);
  }
}

.screensaver-info {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 100px;
  transition: opacity 1s ease-out;
}

.screensaver-info.hidden {
  opacity: 0;
  pointer-events: none;
}

.screensaver-track-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.screensaver-track-artist {
  font-size: 1.5em;
  opacity: 0.9;
}

/* Small Title in Top Left */
.screensaver-top-left-info {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screensaver-top-left-info.visible {
  opacity: 1;
}

.screensaver-small-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 4px;
}

.screensaver-small-details {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Lyrics Display */
.screensaver-lyrics {
  position: absolute;
  bottom: 120px;
  left: 100%;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  line-height: 1.6;
}

.screensaver-lyrics.visible {
  opacity: 1;
}

.screensaver-lyrics.scrolling {
  animation: scrollLyrics linear infinite;
}

@keyframes scrollLyrics {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Random Badges */
.screensaver-badges {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.screensaver-badge-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-size: 0.9em;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 300px;
}

.screensaver-badge-item.has-image {
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border-radius: 12px;
}

.screensaver-badge-item.has-image .badge-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.screensaver-badge-item.has-image .badge-content {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.screensaver-badge-item.visible {
  opacity: 1;
  transform: scale(1);
}

.screensaver-badge-item:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.6);
  transform: scale(1.05);
}

.screensaver-badge-item.has-image:hover {
  background: transparent;
}

.screensaver-badge-item.has-image:hover .badge-content {
  background: rgba(0, 0, 0, 0.6);
}

.screensaver-badge-item.lore-badge-story {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.screensaver-badge-item.lore-badge-story:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.6);
}

.screensaver-badge-item.lore-badge-chapter {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.screensaver-badge-item.lore-badge-chapter:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

.screensaver-badge-item.lore-badge-character {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
}

.screensaver-badge-item.lore-badge-character:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
}

.screensaver-badge-item.lore-badge-object {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}

.screensaver-badge-item.lore-badge-object:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.6);
}

.screensaver-badge-item .badge-icon {
  font-size: 1em;
  line-height: 1;
}

.screensaver-badge-item .badge-text {
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screensaver-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 2;
}

.screensaver-control-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

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

.screensaver-control-btn.merch-btn {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.8);
}

.screensaver-control-btn.merch-btn:hover {
  background: rgba(99, 102, 241, 0.5);
  transform: scale(1.15);
}

.screensaver-customization {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.customization-toggle {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.customization-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.customization-content {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 20px;
  margin-top: 10px;
  min-width: 250px;
  backdrop-filter: blur(10px);
}

.customization-content.expanded {
  display: block;
}

.customization-section {
  margin-bottom: 20px;
}

.customization-section h4 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 1em;
}

.weather-controls,
.image-controls,
.transition-controls,
.title-lyrics-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-direction: column;
}

.title-lyrics-controls {
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.9em;
}

.title-lyrics-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.title-fade-control,
.lyrics-speed-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 0.9em;
}

.title-fade-control label,
.lyrics-speed-control label {
  min-width: 140px;
}

.title-fade-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9em;
}

.lyrics-speed-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}

.lyrics-speed-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.speed-value {
  min-width: 40px;
  text-align: right;
  font-weight: bold;
}

.weather-btn,
.image-btn,
.transition-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s;
}

.weather-btn:hover,
.image-btn:hover,
.transition-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.weather-btn.active,
.image-btn.active,
.transition-btn.active {
  background: rgba(99, 102, 241, 0.8);
  border-color: rgba(99, 102, 241, 1);
}

.screensaver-exit-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.screensaver-overlay.active .screensaver-exit-hint {
  opacity: 1;
  animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

/* Weather Canvas */
.weather-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .player-section {
    padding: 20px;
  }
  
  .album-art-container {
    width: 200px;
    height: 200px;
  }
  
  .track-title {
    font-size: 1.5em;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
  }
  
  .control-btn.play-pause {
    width: 70px;
    height: 70px;
    font-size: 1.8em;
  }
  
  .screensaver-track-title {
    font-size: 2em;
  }
  
  .screensaver-track-artist {
    font-size: 1.2em;
  }
}

