:root {
  --primary-color: #c5d100;
  --primary-gradient: linear-gradient(135deg, #d7e800 0%, #64d9ff 100%);
  --bg-primary: #000;
  --bg-secondary: #090b0d;
  --bg-card: rgba(9, 11, 13, 0.9);
  --text-primary: #fff;
  --text-secondary: #dce2e6;
  --text-muted: #9ca7ad;
  --accent-color: #c5d100;
  --accent-blue: #64d9ff;
  --success-color: #10b981;
  --border-radius: 8px;
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.2);
  --transition-smooth: 0.3s ease;
  --header-height: 90px; /* Increased from 80px */
  --player-height: 100px; /* Increased from 90px */
  --fullscreen-player-height: 100vh;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
}

[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #e9ecef;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
}

.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.45)),
    url('915images/915-graffiti-hero.png') center / cover no-repeat,
    #000;
  z-index: -1;
  transition: all 0.3s ease;
}

[data-theme="light"] .app-background {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(226,232,236,0.92)),
    url('915images/915-graffiti-hero.png') center / cover no-repeat,
    #eef2f3;
}

.app-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 18% 42%, rgba(197, 209, 0, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 82% 20%, rgba(100, 217, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 52% 88%, rgba(197, 209, 0, 0.16) 0%, transparent 48%);
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  transition: background-color 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.95);
}

.header__logo {
  height: 65px; /* Increased from 55px */
  width: 65px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.header__logo:active {
  transform: scale(0.95);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 55px; /* Increased from 45px */
  height: 55px; /* Increased from 45px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-primary);
  font-size: 1.2rem; /* Added font size */
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
}

.fullscreen-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.45)),
    url('915images/915-graffiti-hero.png') center / cover no-repeat,
    #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.fullscreen-player.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}

[data-theme="light"] .fullscreen-player {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(243,246,247,0.92)),
    url('915images/915-graffiti-hero.png') center / cover no-repeat,
    #f3f6f7;
}

.fullscreen-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(197, 209, 0, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(100, 217, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

.fullscreen-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 10;
}

.player-cover:not(.smooth-transition),
.fullscreen-album-art:not(.smooth-transition) {
  transition: opacity 0.2s ease !important;
}

.show-playlist-btn {
  background: rgba(197, 209, 0, 0.14);
  border: 1px solid rgba(197, 209, 0, 0.48);
  border-radius: 30px; /* Increased from 25px */
  color: var(--text-primary);
  padding: 1rem 2rem; /* Increased from 0.75rem 1.5rem */
  font-size: 1.1rem; /* Increased from 0.9rem */
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Increased from 0.5rem */
  backdrop-filter: blur(10px);
}

.show-playlist-btn:hover {
  background: rgba(197, 209, 0, 0.24);
  border-color: rgba(197, 209, 0, 0.72);
  transform: scale(1.05);
}

[data-theme="light"] .show-playlist-btn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .show-playlist-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.5);
}

.fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px; /* Increased from 600px */
  padding: 0 var(--spacing-lg);
  gap: var(--spacing-lg);
  height: calc(100vh - 90px); /* Updated for new header height */
  height: calc(100dvh - 90px);
  overflow: hidden;
}

/* ALBUM ART SIZING - VERY SMALL FOR DESKTOP */
.fullscreen-album-art {
  width: min(20vh, 15vw, 180px) !important; /* MUCH smaller for desktop */
  height: min(20vh, 15vw, 180px) !important;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease;
  animation: albumPulse 3s ease-in-out infinite;
  flex-shrink: 0;
  aspect-ratio: 1/1 !important;
  display: block !important;
}

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

/* 
DEVELOPER NOTE: For synchronized transitions, update the JavaScript updateCoverImageImproved function:
- Remove the setTimeout delays (150ms) for text updates
- Update images and text simultaneously
- Use Promise.all() for simultaneous operations
*/

/* SYNCHRONIZED TRANSITIONS - Ensure images and text update together */
.fullscreen-album-art,
.player-cover {
  transition: opacity 0.2s ease !important;
}

/* Clickable cover styling for advertisements */
.fullscreen-album-art[style*="cursor: pointer"],
.player-cover[style*="cursor: pointer"] {
  cursor: pointer !important;
}

.fullscreen-album-art[style*="cursor: pointer"]:hover,
.player-cover[style*="cursor: pointer"]:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* UNIVERSAL ALBUM ART FIXES - Catch all possible selectors */
img[alt*="Album Cover"],
img[alt*="Cover"],
.fullscreen-album-art,
#fullscreenCover,
img.fullscreen-album-art,
.fullscreen-content img {
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
}

/* Desktop - Force small size on ALL album art */
@media (min-width: 769px) {
  img[alt*="Album Cover"],
  img[alt*="Cover"],
  .fullscreen-album-art,
  #fullscreenCover,
  img.fullscreen-album-art,
  .fullscreen-content img {
    width: min(80px , 100px) !important; /* Smaller size for desktop */
    height: min(80px, 100px) !important;
    max-width: 180px !important;
    max-height: 180px !important;
    border: none !important;
  }
}

/* Mobile - Force size on ALL album art */
@media (max-width: 768px) {
  img[alt*="Album Cover"],
  img[alt*="Cover"], 
  .fullscreen-album-art,
  #fullscreenCover,
  img.fullscreen-album-art,
  .fullscreen-content img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #playerCover{
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
  }
}

.fullscreen-track-info {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.fullscreen-title {
  font-size: 3rem; /* Increased from 2.5rem */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem; /* Increased from 0.5rem */
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-artist {
  font-size: 1.8rem; /* Increased from 1.5rem */
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.75rem; /* Increased from 0.5rem */
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-station {
  font-size: 1.2rem; /* Increased from 1rem */
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.75rem 1.5rem; /* Increased from 0.5rem 1rem */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px; /* Increased from 20px */
  backdrop-filter: blur(10px);
  display: inline-block;
  transition: all 0.4s ease;
}

/* DJ indicator for when DJ is on air */
.fullscreen-station.dj-active::after {
  content: " 🎙️ LIVE";
  color: var(--accent-color);
  font-weight: bold;
  animation: djLive 1s ease-in-out infinite alternate;
}

@keyframes djLive {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* DJ and Advertisement animations */
.dj-on-air {
  animation: djPulse 2s ease-in-out infinite;
}

@keyframes djPulse {
  0%, 100% { color: var(--text-primary); }
  50% { color: var(--accent-color); }
}

.advertisement-active {
  animation: adPulse 2s ease-in-out infinite;
}

@keyframes adPulse {
  0%, 100% { color: var(--text-primary); }
  50% { color: #fbbf24; } /* Golden color for ads */
}

.fullscreen-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.fullscreen-play-btn {
  width: 100px; /* Increased from 80px */
  height: 100px; /* Increased from 80px */
  margin-left: 30px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem; /* Increased from 2rem */
  box-shadow: 0 15px 40px rgba(197, 209, 0, 0.28), 0 0 30px rgba(100, 217, 255, 0.18);
}

.fullscreen-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 50px rgba(197, 209, 0, 0.36), 0 0 36px rgba(100, 217, 255, 0.22);
}

.fullscreen-station-selector-container {
  position: relative;
  min-width: 250px; /* Increased from 200px */
}

.fullscreen-station-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px; /* Increased from 15px */
  color: var(--text-primary);
  padding: 1.25rem 2rem; /* Increased from 1rem 1.5rem */
  font-size: 1.2rem; /* Increased from 1rem */
  font-weight: 500;
  min-width: 250px; /* Increased from 200px */
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fullscreen-station-selector:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .fullscreen-station-selector {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .fullscreen-station-selector:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.4);
}

.fullscreen-station-selector i {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  font-size: 1.2rem; /* Added explicit size */
}

.fullscreen-station-selector.active i {
  color: var(--accent-color);
  transform: rotate(180deg);
}

.fullscreen-station-dropdown {
  position: absolute;
  background: var(--bg-card);
  border: 2px solid var(--accent-color);
  border-radius: 15px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 2001;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  min-width: 250px; /* Increased from 200px */
  width: 100%;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.fullscreen-station-dropdown.position-below {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.fullscreen-station-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fullscreen-station-dropdown-item {
    padding: 1.25rem 2rem; /* Increased from 1rem 1.5rem */
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 1.1rem; /* Added font size */
}

.fullscreen-station-dropdown-section {
    padding: 0.9rem 2rem 0.45rem;
    color: var(--accent-color);
    background: rgba(197, 209, 0, 0.08);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

[data-theme="light"] .fullscreen-station-dropdown-item {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.fullscreen-station-dropdown-item:last-child {
  border-bottom: none;
}

.fullscreen-station-dropdown-item:hover {
  background: rgba(197, 209, 0, 0.08);
  color: var(--accent-color);
}

.fullscreen-station-dropdown-item.selected {
  background: var(--accent-color);
  color: white;
}

.persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background: #222222;
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0) translateY(0);
  -webkit-transform: translateZ(0) translateY(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.persistent-player.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.persistent-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222222;
  z-index: -1;
}

[data-theme="light"] .persistent-player {
  background: #ffffff;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
}

[data-theme="light"] .persistent-player::before {
  background: #ffffff;
}

.player-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: var(--spacing-sm);
  min-width: 0;
}

.player-cover {
  width: clamp(60px, 8vw, 80px); /* Responsive sizing with limits */
  height: clamp(60px, 8vw, 80px);
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: opacity 0.2s ease; /* Sync with text */
  aspect-ratio: 1/1;
}



.player-text {
  flex: 1;
  min-width: 0;
  margin-right: var(--spacing-sm);
}

.player-title {
  font-size: 1.1rem; /* Increased from 1rem */
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-artist {
  font-size: 0.95rem; /* Increased from 0.85rem */
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.maximize-btn {
  width: 45px; /* Increased from 35px */
  height: 45px; /* Increased from 35px */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 1.1rem; /* Added font size */
}

.maximize-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: scale(1.1);
}

[data-theme="light"] .maximize-btn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .maximize-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.player-btn {
  width: 55px; /* Increased from 45px */
  height: 55px; /* Increased from 45px */
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  color: var(--text-primary);
  flex-shrink: 0;
  font-size: 1.3rem; /* Added font size */
}

.player-btn:hover {
  transform: scale(1.05);
}

.station-selector-container {
  position: relative;
  min-width: 180px; /* Increased from 160px */
  max-width: 220px; /* Increased from 200px */
  flex-shrink: 0;
}

.station-selector {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: var(--spacing-sm);
  font-size: 0.95rem; /* Increased from 0.85rem */
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.station-selector:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .station-selector {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .station-selector:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

.station-selector i {
  color: var(--text-secondary);
  font-size: 0.8rem; /* Increased from 0.7rem */
  transition: var(--transition-smooth);
}

.station-selector.active i {
  color: var(--accent-color);
  transform: rotate(180deg);
}

.station-dropdown-player {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1002;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  min-width: 180px; /* Increased from 160px */
  width: 100%;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
}

.station-dropdown-player.position-below {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: 4px;
}

.station-dropdown-player.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.station-dropdown-player-item {
  padding: 0.85rem var(--spacing-sm); /* Increased from 0.75rem */
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem; /* Increased from 0.85rem */
}

.station-dropdown-player-section {
  padding: 0.6rem var(--spacing-sm) 0.25rem;
  color: var(--accent-color);
  background: rgba(197, 209, 0, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

[data-theme="light"] .station-dropdown-player-item {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.station-dropdown-player-item:last-child {
  border-bottom: none;
}

.station-dropdown-player-item:hover {
  background: rgba(197, 209, 0, 0.1);
  color: var(--accent-color);
}

.station-dropdown-player-item.selected {
  background: rgba(197, 209, 0, 0.15);
  color: var(--accent-color);
  font-weight: 600;
}

.main-content {
  margin-top: var(--header-height);
  margin-bottom: var(--player-height);
  padding: var(--spacing-lg);
  min-height: calc(100vh - var(--header-height) - var(--player-height));
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
}

.main-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.page-title {
  font-size: 2.8rem; /* Increased from 2.5rem */
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.controls-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.station-dropdown-old {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  font-weight: 500;
  min-width: 200px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: none;
}

.date-time-filters {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.custom-input {
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: var(--spacing-sm);
  font-size: 1rem; /* Increased from 0.9rem */
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px; /* Increased from 45px */
}

[data-theme="light"] .custom-input {
  border-color: rgba(0, 0, 0, 0.2);
}

.custom-input:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .custom-input:hover {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.05);
}

.custom-input.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(197, 209, 0, 0.2);
}

.custom-input-icon {
  color: var(--text-secondary);
  margin-left: 8px;
  transition: var(--transition-smooth);
  font-size: 1.1rem; /* Added font size */
}

.custom-input.active .custom-input-icon {
  color: var(--accent-color);
  transform: rotate(180deg);
}

.custom-dropdown {
  position: absolute;
  background: var(--bg-card);
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  min-width: 100%;
  width: 100%;
  top: 100%;
  left: 0;
  margin-top: 4px;
}

.custom-dropdown.position-above {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.custom-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.custom-dropdown-item {
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem; /* Added font size */
}

.custom-dropdown-section {
  padding: 0.65rem var(--spacing-sm) 0.35rem;
  color: var(--accent-color);
  background: rgba(197, 209, 0, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

[data-theme="light"] .custom-dropdown-item {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown-item:hover {
  background: rgba(197, 209, 0, 0.1);
  color: var(--accent-color);
}

.custom-dropdown-item.selected {
  background: var(--accent-color);
  color: white;
}

.date-input, .time-input {
  display: none;
}

.custom-input-container {
  position: relative;
  min-width: 160px; /* Increased from 140px */
}

.time-input-old {
  min-width: 160px; /* Increased from 140px */
  max-width: 220px; /* Increased from 200px */
}

.search-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem; /* Increased from 0.9rem */
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 50px; /* Match input height */
}

.search-btn:hover {
  transform: scale(1.05);
}

.playlist-container {
  max-width: 900px;
  margin: 0 auto;
}

.playlist-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.playlist-title {
  font-size: 2rem; /* Increased from 1.8rem */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.playlist-subtitle {
  font-size: 1.1rem; /* Increased from 1rem */
  color: var(--text-secondary);
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.song-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.song-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

[data-theme="light"] .song-item:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.song-main {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.song-time {
  font-size: 0.9rem; /* Increased from 0.8rem */
  color: var(--text-muted);
  min-width: 70px; /* Increased from 60px */
  font-weight: 500;
  text-align: center;
}

.song-cover {
  width: clamp(60px, 6vw, 80px); /* Responsive sizing */
  height: clamp(60px, 6vw, 80px);
  border-radius: var(--border-radius);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

[data-theme="light"] .song-cover {
  border-color: rgba(0, 0, 0, 0.1);
}

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

.song-title {
  font-size: 1.2rem; /* Increased from 1.1rem */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-artist {
  font-size: 1rem; /* Increased from 0.9rem */
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px; /* Increased from 35px */
  height: 40px; /* Increased from 35px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 1.1rem; /* Added font size */
}

[data-theme="light"] .track-info-btn {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.track-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: scale(1.1);
}

[data-theme="light"] .track-info-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.track-info-btn.loading {
  color: var(--accent-color);
  animation: pulse 1.5s ease-in-out infinite;
}

.track-info-btn.expanded {
  background: var(--primary-gradient);
  color: var(--text-primary);
  transform: rotate(180deg);
}

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

.track-info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

[data-theme="light"] .track-info-content {
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.track-info-content.expanded {
  max-height: 600px;
  padding: var(--spacing-md);
}

.track-info-inner {
  opacity: 0;
  transition: opacity 0.3s ease-out 0.1s;
}

.track-info-content.expanded .track-info-inner {
  opacity: 1;
}

.track-info-section {
  margin-bottom: var(--spacing-sm);
}

.track-info-section:last-child {
  margin-bottom: 0;
}

.track-info-label {
  font-size: 0.9rem; /* Increased from 0.8rem */
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-info-text {
  font-size: 1rem; /* Increased from 0.9rem */
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.track-info-error {
  color: #ff6b6b;
  font-style: italic;
  text-align: center;
  padding: var(--spacing-sm);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

[data-theme="light"] .loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-color);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

/* Enhanced transitions for metadata updates - SYNCHRONIZED */
.player-title, .player-artist, .fullscreen-title, .fullscreen-artist {
  transition: opacity 0.2s ease; /* Faster, sync with images */
}

.player-cover, .fullscreen-album-art {
  transition: opacity 0.2s ease; /* Same timing as text */
}

.fullscreen-station {
  transition: opacity 0.2s ease; /* Consistent timing */
}

/* Error state styling */
.error-state {
  text-align: center;
  padding: var(--spacing-lg);
  color: #ff6b6b;
}

.error-state i {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

/* Modal Enhancements */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--bg-card);
  color: var(--text-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-gradient);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

/* Form Enhancements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(197, 209, 0, 0.1);
}

/* Button Enhancements */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 209, 0, 0.3);
}

.btn-secondary {
  background: #64748b;
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

/* Badge Enhancements */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Table Enhancements */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* IMPROVED MOBILE RESPONSIVENESS - FIXES FOR ALBUM ART AND CONSISTENT SIZING */

@media (max-width: 768px) {
  :root {
    --header-height: 80px; /* Increased from 70px */
    --player-height: 100px; /* Increased from 90px */
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --transition-smooth: 0.2s ease; /* Slightly increased for better mobile experience */
  }

  /* Disable heavy animations on mobile for better performance */
  .app-background::before,
  .fullscreen-player::before {
    animation: none !important;
  }

  .header,
  .persistent-player,
  .fullscreen-station-selector,
  .show-playlist-btn {
    backdrop-filter: blur(5px); /* Slightly increased */
  }

  .header {
    padding: 0 var(--spacing-sm);
    height: var(--header-height);
  }

  .header__logo {
    height: 55px; /* Increased from 45px */
  }

  .theme-toggle {
    width: 50px; /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    font-size: 1.1rem;
  }

  .main-content {
    padding: var(--spacing-sm);
    margin-bottom: calc(var(--player-height) + 20px);
    margin-top: var(--header-height);
  }

  .page-title {
    font-size: 2rem; /* Increased from 1.8rem */
    margin-bottom: var(--spacing-sm);
  }

  /* MOBILE ALBUM ART - FORCE DISPLAY FOR ALL STATIONS */
  .fullscreen-album-art,
  .fullscreen-album-art[src],
  .fullscreen-album-art[style],
  img.fullscreen-album-art,
  #fullscreenCover {
    width: 280px !important; /* Fixed size for mobile */
    height: 280px !important;
    min-width: 280px !important;
    min-height: 280px !important;
    max-width: 280px !important;
    max-height: 280px !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s ease !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fullscreen-content {
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
    padding-bottom: env(safe-area-inset-bottom, 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .fullscreen-content::-webkit-scrollbar {
    display: none;
  }

  .fullscreen-title {
    font-size: 2rem; /* Increased from 1.8rem */
    margin-bottom: 0.75rem;
    line-height: 1.1;
  }

  .fullscreen-artist {
    font-size: 1.4rem; /* Increased from 1.2rem */
    margin-bottom: 0.75rem;
  }

  .fullscreen-station {
    font-size: 1rem; /* Increased from 0.9rem */
    padding: 0.6rem 1rem; /* Increased from 0.4rem 0.8rem */
    margin-bottom: 1rem;
  }

  .fullscreen-controls {
    gap: var(--spacing-md);
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .fullscreen-play-btn {
    width: 80px; /* Increased from 70px */
    height: 80px; /* Increased from 70px */
    font-size: 2rem; /* Increased from 1.8rem */
    margin-bottom: 1rem;
  }

  .fullscreen-station-selector-container {
    width: 100%;
    max-width: 320px; /* Increased from 280px */
  }

  .fullscreen-station-selector {
    min-width: 300px; /* Increased from 280px */
    padding: 1rem 1.5rem; /* Increased from 0.8rem 1.2rem */
    font-size: 1rem; /* Increased from 0.9rem */
    width: 100%;
  }

  .fullscreen-station-dropdown {
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px; /* Increased from 8px */
    width: 90vw;
    max-width: 320px; /* Increased from 300px */
  }

  .fullscreen-station-dropdown.position-below {
    transform: translateX(-50%);
    margin-top: 10px; /* Increased from 8px */
    margin-bottom: 0;
  }

  .fullscreen-station-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }

  .fullscreen-station-dropdown-item {
    padding: 1rem 1.5rem; /* Increased padding */
    font-size: 1rem; /* Increased font size */
  }

  .show-playlist-btn {
    padding: 0.8rem 1.5rem; /* Increased from 0.6rem 1.2rem */
    font-size: 1rem; /* Increased from 0.85rem */
  }

  .persistent-player {
    height: var(--player-height);
    padding: var(--spacing-sm);
    flex-direction: row;
    align-items: center;
    bottom: 0;
    position: fixed;
    background: #222222;
    transform: translateZ(0) translateY(0);
    -webkit-transform: translateZ(0) translateY(0);
    box-shadow: 0 -8px 25px rgba(0,0,0,0.6); /* Enhanced shadow */
    border-top: 2px solid rgba(255, 255, 255, 0.15);
  }

  .persistent-player::before {
    background: #222222;
  }

  [data-theme="light"] .persistent-player {
    background: #ffffff;
    border-top: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 -8px 25px rgba(0,0,0,0.3);
  }

  [data-theme="light"] .persistent-player::before {
    background: #ffffff;
  }

  .player-info {
    flex: 1;
    min-width: 0;
    margin-right: var(--spacing-sm);
  }

  .player-cover {
    width: 60px; /* Increased from 50px */
    height: 60px; /* Increased from 50px */
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .player-text {
    margin-right: var(--spacing-sm);
  }

  .player-title {
    font-size: 1rem; /* Increased from 0.9rem */
  }

  .player-artist {
    font-size: 0.9rem; /* Increased from 0.8rem */
  }

  .player-controls {
    flex-shrink: 0;
    gap: var(--spacing-sm);
  }

  .player-btn {
    width: 50px; /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    font-size: 1.2rem;
  }

  .maximize-btn {
    width: 40px; /* Increased from 30px */
    height: 40px; /* Increased from 30px */
    font-size: 1rem;
  }

  .station-selector-container {
    min-width: 120px; /* Increased from 100px */
    max-width: 150px; /* Increased from 120px */
  }

  .station-selector {
    font-size: 0.85rem; /* Increased from 0.75rem */
    padding: 0.7rem; /* Increased from 0.5rem */
  }

  .station-dropdown-player {
    right: 0;
    left: auto;
    width: 220px; /* Increased from 200px */
    margin-bottom: 10px; /* Increased from 8px */
  }

  .station-dropdown-player.position-below {
    margin-top: 10px; /* Increased from 8px */
    margin-bottom: 0;
  }

  .station-dropdown-player-item {
    padding: 0.9rem var(--spacing-sm); /* Increased padding */
    font-size: 0.9rem; /* Increased from smaller sizes */
  }

  .controls-section {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .station-dropdown {
    display: none;
  }

  .date-time-filters {
    gap: 0.75rem; /* Increased from 0.5rem */
    justify-content: center;
    width: 100%;
  }

  .date-input, .time-input, .station-dropdown {
    display: none;
  }

  .custom-input-container {
    position: relative;
    min-width: 0;
    flex: 1;
  }

  .custom-input {
    font-size: 0.9rem; /* Increased from 0.8rem */
    padding: 0.7rem; /* Increased from 0.5rem */
    min-width: 0;
    width: 100%;
    min-height: 50px; /* Increased from smaller */
  }

  .custom-dropdown {
    max-height: 180px; /* Increased from 150px */
    font-size: 0.9rem; /* Increased from 0.8rem */
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 320px; /* Increased from 300px */
    margin-top: 8px; /* Increased from 6px */
  }

  .custom-dropdown.position-above {
    transform: translateX(-50%);
    margin-bottom: 8px; /* Increased from 6px */
    margin-top: 0;
  }

  .custom-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }

  .custom-dropdown-item {
    padding: 0.7rem; /* Increased from 0.5rem */
    font-size: 0.9rem; /* Increased from 0.8rem */
  }

  .search-btn {
    padding: 0.7rem 1.2rem; /* Increased from 0.5rem 1rem */
    font-size: 0.9rem; /* Increased from 0.8rem */
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
    min-height: 50px;
  }

  .song-main {
    padding: var(--spacing-sm);
    gap: 0.75rem; /* Increased from 0.5rem */
  }

  .song-cover {
    width: 60px; /* Increased from 50px */
    height: 60px; /* Increased from 50px */
  }

  .song-title {
    font-size: 1.1rem; /* Increased from 1rem */
  }

  .song-artist {
    font-size: 0.9rem; /* Increased from 0.8rem */
  }

  .track-info-btn {
    width: 35px; /* Increased from 30px */
    height: 35px; /* Increased from 30px */
    font-size: 1rem;
  }

  .song-time {
    min-width: 60px; /* Increased from 50px */
    font-size: 0.85rem; /* Increased from 0.75rem */
  }

  /* Improved mobile fullscreen experience */
  .fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
  }

  body.fullscreen-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Very small mobile screens */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .fullscreen-album-art {
    width: 260px !important; /* Slightly smaller for tiny screens */
    height: 260px !important;
    min-width: 260px !important;
    min-height: 260px !important;
    max-width: 260px !important;
    max-height: 260px !important;
  }

  .fullscreen-title {
    font-size: 1.8rem;
  }

  .fullscreen-artist {
    font-size: 1.2rem;
  }

  .date-time-filters {
    flex-direction: column;
    width: 100%;
    gap: 1rem; /* Increased gap */
  }

  .search-btn {
    width: 100%;
    margin-top: 1rem; /* Increased from 0.5rem */
    padding: 1rem; /* Increased padding */
    font-size: 1rem;
  }

  .custom-input-container {
    width: 100%;
    margin-bottom: 0.75rem; /* Increased from 0.5rem */
  }

  .custom-input {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.8rem; /* Increased from 0.6rem */
    min-height: 55px; /* Increased */
  }

  .custom-dropdown,
  .fullscreen-station-dropdown {
    width: 95vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
  }

  .custom-dropdown.active,
  .fullscreen-station-dropdown.active {
    transform: translateX(-50%) translateY(0);
  }

  .custom-dropdown.position-above,
  .fullscreen-station-dropdown.position-above {
    transform: translateX(-50%);
  }

  .main-content {
    padding: 1rem; /* Increased from 0.5rem */
    margin-bottom: calc(var(--player-height) + 30px);
  }

  .song-main {
    padding: 0.75rem; /* Increased from 0.5rem */
    gap: 0.75rem;
  }

  .track-info-text {
    font-size: 0.9rem; /* Increased from 0.8rem */
    line-height: 1.5; /* Improved from 1.4 */
    padding-right: 0.5rem;
  }

  .track-info-content.expanded {
    padding: 1rem; /* Increased padding */
  }
}

/* Large Desktop - Better sizing for modern displays */
@media (min-width: 1200px) {
  .fullscreen-album-art {
    width: 450px; /* Increased */
    height: 450px;
  }

  .fullscreen-title {
    font-size: 3.5rem; /* Increased */
  }

  .fullscreen-artist {
    font-size: 2rem;
  }

  .fullscreen-play-btn {
    width: 120px; /* Increased */
    height: 120px;
    font-size: 3rem;
  }

  .show-playlist-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
  }

  .theme-toggle {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }

  .header__logo {
    height: 75px;
  }
}

/* Dark theme enhancements */
[data-theme="dark"] .modal-content {
  background-color: #1f2937;
  color: white;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #374151;
  border-color: #4b5563;
  color: white;
}

[data-theme="dark"] .table th {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
