* {
  box-sizing: border-box;
  scroll-padding-top: 100px;
}

:root {
  --primary: #f59e0b;
  --primary-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  --bg: #0b0f1a;
  --card-bg: rgba(23, 32, 53, 0.72);
  --card-hover: rgba(30, 41, 59, 0.88);
  --text-main: #f8fafc;
  --text-dim: #cbd5e1;
  --shadow: 0 26px 48px rgba(0, 0, 0, 0.18), 0 12px 18px rgba(0, 0, 0, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --lyrics-bg: rgba(15, 23, 42, 0.2);
  --lyrics-font-size: 1.2rem;
  --glass: blur(16px) saturate(180%);
  --radius: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --spacing-lg: 24px;
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --inner-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
  --link-color: #ffbe63;
  --link-hover: #ffd79c;
  --button-primary-text: #ffffff;
  --button-secondary-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-hover-bg: rgba(255, 255, 255, 0.14);
  --button-secondary-border: rgba(255, 255, 255, 0.14);
  --button-secondary-text: #f8fafc;
  --modal-overlay: rgba(2, 6, 23, 0.72);
  --modal-surface: linear-gradient(180deg, rgba(22, 32, 55, 0.98), rgba(12, 18, 33, 0.96));
  --modal-border-color: rgba(255, 255, 255, 0.12);
  --modal-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.link {
  cursor: pointer;
  transition: var(--transition-fast);
}

body.light-mode {
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --card-hover: #f8fafc;
  --text-main: #202124;
  --text-dim: #374151;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.12);
  --lyrics-bg: #ffffff;
  --card-border: 1px solid rgba(0, 0, 0, 0.06);
  --link-color: #b45309;
  --link-hover: #8a3d00;
  --button-secondary-bg: rgba(251, 140, 0, 0.12);
  --button-secondary-hover-bg: rgba(251, 140, 0, 0.18);
  --button-secondary-border: rgba(251, 140, 0, 0.2);
  --button-secondary-text: #8a3d00;
  --modal-overlay: rgba(15, 23, 42, 0.3);
  --modal-surface: linear-gradient(180deg, #ffffff, #fff7ed);
  --modal-border-color: rgba(180, 83, 9, 0.14);
  --modal-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --surface: #f8f9fa;
}

body.light-mode .header {
  background: rgba(240, 241, 243, 0.95);
  color: #202124;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .theme-btn,
body.light-mode .lang-btn,
body.light-mode .login-btn,
body.light-mode .user-btn,
body.light-mode .print-btn,
body.light-mode .more-btn {
  color: #202124;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .lang-btn:hover,
body.light-mode .login-btn:hover,
body.light-mode .user-btn:hover,
body.light-mode .print-btn:hover,
body.light-mode .more-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.18);
}

body.light-mode .username-display {
  background: rgba(0, 0, 0, 0.1);
  color: #202124;
}

body.light-mode .profile-pic {
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .clear-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #202124;
}

body.light-mode .browse-filter-clear {
  background: rgba(0, 0, 0, 0.08);
  color: #202124;
}

body.light-mode .clear-btn:hover {
  color: var(--primary);
}

body.light-mode .btn-action.secondary {
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-text);
}

body.light-mode .btn-action.secondary:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
}

body.light-mode .user-menu-dropdown,
body.light-mode .header-more-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.light-mode .detail-title {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Light Mode Navigation */
body.light-mode .main-nav-container {
  background: rgba(240, 241, 243, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .main-nav button {
  color: var(--text-dim);
}

body.light-mode .main-nav button.active {
  background: rgba(251, 140, 0, 0.12);
  color: var(--primary);
}

body.light-mode .main-nav .nav-link-standalone {
  color: var(--text-dim);
}

body.light-mode .main-nav .nav-link-standalone:hover {
  color: var(--primary);
}

/* Light Mode Lyrics Container */
body.light-mode .lyrics-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Light Mode Buttons */
body.light-mode .btn-action.secondary {
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-text);
}

body.light-mode .btn-action.secondary:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
}

body.light-mode .btn-back-full {
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-text);
}

body.light-mode .btn-back-full:hover {
  background: var(--button-secondary-hover-bg);
}

/* Light Mode Footer */
body.light-mode .footer {
  background: rgba(240, 241, 243, 0.95);
  border-top-color: rgba(0, 0, 0, 0.08);
  color: var(--text-dim);
}

/* Light Mode Songs Card */
body.light-mode .song {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .song:hover {
  background: #f8f9fa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light-mode .song:active {
  background: #f0f1f3;
}

/* Light Mode Search Wrapper */
body.light-mode .search-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Light Mode Song Info */
body.light-mode .song-info {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Light Mode Details Container */
body.light-mode .view-details-container {
  background: var(--bg);
}

/* Light Mode Cookie Banner */
body.light-mode .cookie-banner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Light Mode Static Pages */
body.light-mode .static-page {
  color: var(--text-main);
}

body.light-mode .static-page h1,
body.light-mode .static-page h2 {
  color: var(--primary);
}

/* Light Mode Song Content */
body.light-mode .lyrics-content {
  color: var(--text-main) !important;
}

body.light-mode .song-info,
body.light-mode .song-meta {
  color: var(--text-dim);
}

/* Lyrics font size control */
.lyrics-content {
  font-size: var(--lyrics-font-size);
}

/* Light Mode Tabs/Categories */
body.light-mode .category-tab,
body.light-mode .composer-tab,
body.light-mode .singer-tab {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

body.light-mode .category-tab.active,
body.light-mode .composer-tab.active,
body.light-mode .singer-tab.active {
  background: rgba(251, 140, 0, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Light Mode Text Shadows */
body.light-mode .detail-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Light Mode Badges/Tags */
body.light-mode .badge,
body.light-mode .tag {
  background: rgba(251, 140, 0, 0.1);
  color: var(--primary);
  border-color: rgba(251, 140, 0, 0.2);
}

/* Light Mode Badges/Tags */
body.light-mode .badge,
body.light-mode .tag {
  background: rgba(251, 140, 0, 0.1);
  color: var(--primary);
  border-color: rgba(251, 140, 0, 0.2);
}

/* Light Mode Input/Form Elements */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
  background: #ffffff;
  color: #202124;
  border: 1px solid #cbd5e1;
}

body.light-mode input:focus,
body.light-mode textarea:focus,
body.light-mode select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 140, 0, 0.08);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #6b7280;
}

/* Light Mode Auth Pages Visibility Fix */
body.light-mode .auth-container,
body.light-mode .login-container,
body.light-mode .auth-page-wrapper {
  color: #202124;
}

body.light-mode .auth-card,
body.light-mode .login-card,
body.light-mode .registration-card,
body.light-mode .login-box,
body.light-mode .auth-container,
body.light-mode .reset-box,
body.light-mode .profile-page {
  background: #ffffff;
  color: #202124;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body.light-mode .auth-card h2,
body.light-mode .auth-card h3,
body.light-mode .login-container h1,
body.light-mode .registration-container h1,
body.light-mode .reset-box h1,
body.light-mode .profile-title {
  color: #111827;
}

body.light-mode .auth-card label,
body.light-mode .auth-container label,
body.light-mode .login-container label,
body.light-mode .registration-container label,
body.light-mode .field label,
body.light-mode .profile-card label {
  color: #475569;
  font-weight: 600;
}

body.light-mode .profile-card {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Shared Link Colors */
a {
  color: var(--link-color);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Light Mode Scrollbar */
body.light-mode ::-webkit-scrollbar-track {
  background: #f8f9fa;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Light Mode Text Selection */
body.light-mode ::selection {
  background: rgba(251, 140, 0, 0.2);
  color: #202124;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

::selection {
  background: rgba(251, 140, 0, 0.3);
  color: white;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, rgba(251, 140, 0, 0.14), transparent 28%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 34%),
              linear-gradient(160deg, #08101d 0%, #0e1628 50%, #131a2f 100%);
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text-main);
  line-height: 1.6;
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

body.light-mode {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 3vw, 12px);
  padding: 16px var(--spacing-md);
  max-width: 100%;
  margin: 0 auto;
  background: rgba(15, 25, 45, 0.94);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1100;
}

@media (min-width: 1400px) {
  .header {
    padding-left: calc((100% - 1400px) / 2 + var(--spacing-md));
    padding-right: calc((100% - 1400px) / 2 + var(--spacing-md));
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0; /* Necessary for title truncation */
}

.header-brand.link:hover {
  opacity: 0.85;
}

.header-logo {
  height: clamp(28px, 9vw, 36px);
  width: auto;
  object-fit: contain;
}

#header-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1rem, 5vw, 1.25rem);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-header-control {
  display: inline-flex;
}

.mobile-header-menu {
  display: none;
  position: relative;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  transition: var(--transition-smooth);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
}

.login-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.user-menu {
  position: relative;
}

.user-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.username-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
}

.profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(9, 15, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
  min-width: 220px;
  z-index: 2000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.user-menu-dropdown.hidden {
  display: none;
}

.user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.user-info p {
  margin: 4px 0;
  word-break: break-word;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-size: 0.95rem;
}

.menu-item:hover {
  background: var(--card-hover);
  color: var(--primary);
}

.logout-item {
  color: #f44336;
}

.logout-item:hover {
  background: rgba(244, 67, 54, 0.1);
}

/* Print Styles */
@media print {
  html,
  body,
  .container,
  .container.static-page,
  .content-body,
  .song-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    box-sizing: border-box !important;
  }

  body {
    color: black !important;
    font-family: 'Times New Roman', serif !important;
    line-height: 1.5 !important;
  }

  .header,
  .main-nav-container,
  .footer,
  .song-controls,
  .audio-player,
  .font-controls,
  .font-slider-container,
  .theme-btn,
  .lang-btn,
  .login-btn,
  .user-menu,
  .search-wrapper,
  .nav-buttons,
  .share-buttons {
    display: none !important;
  }

  .header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: static !important;
    background: transparent !important;
  }

  .header-brand {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .header-logo,
  .print-header img {
    max-height: 40pt !important;
    width: auto !important;
    margin: 0 !important;
  }

  #header-title,
  .print-header,
  .static-page h1,
  .static-page h2 {
    text-align: center !important;
    margin: 0 auto 12pt !important;
    width: 100% !important;
  }

  .lyrics,
  .lyrics-content {
    font-size: 14pt !important;
    line-height: 1.9 !important;
    color: black !important;
    padding: 0 !important;
    border: none !important;
    white-space: pre-wrap !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .lyrics-section .section-content {
    line-height: 1.9 !important;
    margin-bottom: 0.75em !important;
  }

  .lyrics-section .section-content p {
    margin: 0 0 0.75em 0 !important;
  }

  .lyrics-section .section-content p:last-child {
    margin-bottom: 0 !important;
  }

  .lyrics-content p,
  .lyrics p {
    margin: 0 0 8pt !important;
  }

  .song-content,
  .content-body {
    page-break-inside: auto !important;
    break-inside: auto !important;
    padding-bottom: 1in !important;
  }

  .print-header,
  .song-title,
  .song-meta {
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
  }

  .song-title {
    font-size: 18pt !important;
    color: black !important;
    margin-bottom: 10pt !important;
  }

  .song-meta {
    font-size: 12pt !important;
    color: #333 !important;
    margin-bottom: 15pt !important;
    border-bottom: 1px solid #ccc !important;
    padding-bottom: 10pt !important;
  }

  .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    text-align: center !important;
    margin-bottom: 12pt !important;
    page-break-after: avoid !important;
    width: 100% !important;
  }

  .print-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 10pt !important;
    color: #333 !important;
    border-top: 1px solid #ccc !important;
    padding: 6pt 0 !important;
    background: transparent !important;
  }

  @page {
    margin: 0.5in;
  }
}

/* Reading Progress Indicator */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reading-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s ease;
}

.song-content:hover .reading-progress {
  opacity: 1;
}

/* Recently Viewed */
.recently-viewed {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.recently-viewed h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.recent-songs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.recent-song-item {
  appearance: none;
  width: 100%;
  text-align: left;
  background: var(--card-hover);
  padding: var(--spacing-md);
  border-radius: 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.recent-song-item:hover {
  background: var(--lyrics-bg);
  border-color: var(--border);
  transform: translateY(-2px);
}

.recent-song-item .title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  font-size: 0.95rem;
  display: block;
}

.recent-song-item .meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.feature-section {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 28, 51, 0.95), rgba(13, 18, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.feature-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.feature-section-header .section-title,
.recently-viewed .section-title {
  margin: 0;
}

.feature-section-subtitle {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.feature-section-actions,
.feature-card-actions,
.playlist-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-inline-btn,
.song-manage-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.feature-inline-btn:hover,
.song-manage-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 183, 77, 0.28);
  background: rgba(255, 183, 77, 0.14);
}

.feature-inline-btn.danger,
.song-manage-btn {
  border-color: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.feature-inline-btn.danger:hover,
.song-manage-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.28);
}

.feature-empty-state {
  padding: 18px 0 4px;
  color: var(--text-dim);
}

/* Global Notice Banner */
#global-notice-area {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

.global-notice-bar {
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  backdrop-filter: var(--glass);
  animation: slideInDown 0.4s ease-out;
}

.global-notice-bar.warning { background: rgba(251, 140, 0, 0.15); border-color: rgba(251, 140, 0, 0.3); }
.global-notice-bar.success { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.3); }

.global-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.global-notice-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Admin Notice Styles */
.admin-notice-section {
  margin-bottom: 24px;
}

.admin-notice-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: fadeInUp 0.5s ease-out;
}

.admin-notice-card.warning {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-notice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.admin-notice-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-date-pill,
.playlist-summary-updated,
.daily-bhajan-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-date-pill,
.playlist-summary-updated {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.daily-bhajan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.35), rgba(255, 160, 70, 0.25), rgba(255, 220, 150, 0.2));
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.daily-bhajan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.18);
}

.daily-bhajan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.daily-bhajan-chip {
  background: rgba(255, 235, 205, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.daily-bhajan-alt-text {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

.daily-bhajan-copy h4,
.playlist-summary-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-main);
}

.daily-bhajan-copy p,
.playlist-summary-header p,
.playlist-detail-note {
  margin: 8px 0 0;
  color: var(--text-dim);
}

.playlist-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.playlist-summary-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
}

.playlist-summary-header {
  display: grid;
  gap: 10px;
}

.playlist-detail-note {
  margin-top: 4px;
  font-size: 0.9rem;
}

.playlist-detail-shell {
  border-radius: 20px;
  display: grid;
  gap: 18px;
}

.playlist-detail-shell,
.playlist-detail-shell *,
.btn-back-full.playlist-detail-back {
  box-sizing: border-box;
}

.btn-back-full.playlist-detail-back {
  width: auto;
  min-height: 40px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

.playlist-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.playlist-detail-title-block {
  min-width: 0;
}

.playlist-detail-shell .section-title {
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.playlist-detail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.14);
  border: 1px solid rgba(255, 183, 77, 0.22);
  color: #ffd79a;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.playlist-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-detail-shell .feature-inline-btn,
.playlist-detail-shell .btn-download-playlist,
.playlist-detail-shell .playlist-public-toggle {
  min-height: 42px;
}

.playlist-detail-shell .btn-download-playlist {
  flex-shrink: 1;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

.playlist-detail-shell + #list {
  display: grid;
  gap: 12px;
}

.playlist-detail-shell + #list .song {
  margin: 0;
  border-radius: 18px;
}

.playlist-detail-shell + #list .song-header {
  flex-wrap: wrap;
}

.playlist-detail-shell + #list .song-actions-group {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  flex-shrink: 1 !important;
}

.playlist-detail-shell + #list .song-position-controls {
  margin-left: 0;
}

.playlist-detail-shell + #list .song-manage-btn {
  min-height: 34px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.song-manage-btn {
  align-self: center;
  flex-shrink: 0;
}

.song-position-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 0;
  order: 2;
}

.song-position-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.song-position-btn:hover:not(.disabled) {
  background: rgba(255, 183, 77, 0.18);
  border-color: rgba(255, 183, 77, 0.28);
  color: #ffb43d;
}

.song-position-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--text-dim);
}

body.light-mode .song-position-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: #202124;
}

body.light-mode .song-position-btn:hover:not(.disabled) {
  background: rgba(251, 140, 0, 0.15);
  border-color: rgba(251, 140, 0, 0.25);
  color: #fb8c00;
}

body.light-mode .feature-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.88));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.light-mode .feature-inline-btn,
body.light-mode .song-manage-btn,
body.light-mode .playlist-summary-card,
body.light-mode .feature-date-pill,
body.light-mode .playlist-summary-updated {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #202124;
}

body.light-mode .daily-bhajan-card {
  background: linear-gradient(135deg, rgba(255, 228, 181, 0.9), rgba(255, 218, 185, 0.85));
  border-color: rgba(255, 160, 100, 0.35);
}

body.light-mode .daily-bhajan-chip {
  background: rgba(180, 83, 9, 0.12);
  color: #8a3d00;
  border-color: rgba(180, 83, 9, 0.25);
}

body.light-mode .daily-bhajan-alt-text {
  color: rgba(139, 69, 19, 0.6);
}

body.light-mode .feature-inline-btn.danger,
body.light-mode .song-manage-btn {
  color: #b91c1c;
}

body.light-mode .playlist-detail-count {
  background: rgba(251, 140, 0, 0.12);
  border-color: rgba(251, 140, 0, 0.22);
  color: #9a4f00;
}

body.light-mode .playlist-detail-toolbar {
  border-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  .feature-section,
  .recently-viewed {
    padding: 18px;
  }

  .feature-section-header,
  .feature-section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-bhajan-card {
    grid-template-columns: 1fr;
  }

  .feature-card-actions,
  .playlist-summary-actions {
    flex-direction: column;
  }
  
  .song-position-controls {
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-top: 0;
  }
  
  .song-position-btn {
    padding: 3px 6px;
    min-width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  .playlist-detail-shell {
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .btn-back-full.playlist-detail-back {
    width: 100%;
    margin-bottom: 12px;
  }

  .playlist-detail-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .playlist-detail-count {
    width: 100%;
  }

  .playlist-detail-toolbar,
  .playlist-detail-shell .feature-inline-btn,
  .playlist-detail-shell .btn-download-playlist,
  .playlist-detail-shell .playlist-public-toggle {
    width: 100%;
  }

  .playlist-detail-shell .playlist-public-toggle {
    justify-content: space-between;
  }

  .playlist-detail-shell + #list {
    margin: 0;
  }

  .playlist-detail-shell + #list .song {
    padding: 14px;
  }

  /* Generalize stacking for any song list that contains management actions */
  #list .song-header,
  #list .song-actions-group {
    width: 100%;
  }

  #list .song-actions-group {
    justify-content: flex-start;
    margin-top: 8px !important;
  }

  .playlist-detail-shell + #list .song-position-controls {
    width: 100%;
  }

  .playlist-detail-shell + #list .song-manage-btn {
    flex: 1 1 140px;
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .main-nav-container {
    margin: 0 8px 8px;
  }
  
  .main-nav button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .main-nav button {
    justify-content: center;
    min-width: 50px;
  }

  /* Mobile header improvements */
  .header {
    padding: 12px var(--spacing-md);
  }

  .header-brand {
    flex: 1;
    min-width: 0;
  }

  #header-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  /* Mobile search improvements */
  .search-wrapper {
    margin-bottom: 20px;
    padding: 4px;
  }

  .search {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* Touch-friendly */
  }

  .search-btn {
    min-width: 50px;
    min-height: 44px;
  }

  /* Mobile container improvements */
  .container {
    padding: var(--spacing-lg);
  }

  /* Mobile footer improvements */
  .footer {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-section {
    margin-bottom: var(--spacing-md);
  }

  /* Mobile song list improvements */
  #list {
    margin: 0;
  }

  .song-header {
    flex-wrap: wrap;
  }

  .song-title-wrapper {
    width: 100%;
  }

  .song-actions-group {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .song {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .song-title {
    font-size: 1rem;
    line-height: 1.4;
  }

  .song-meta-row {
    margin-bottom: 8px;
  }

  /* Mobile category grid */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 12px;
    font-size: 0.9rem;
  }

  .category-card .cat-thumb {
    width: 80px;
    height: 80px;
  }

  /* Mobile flex list for singers/composers */
  .flex-list {
    flex-direction: column;
    gap: 10px;
  }

  .composer-chip {
    width: 100%;
    display: block;
    text-align: left;
  }

  /* Mobile reading mode */
  .reading-mode .lyrics-container {
    padding: var(--spacing-md);
  }

  .reading-mode .song-title {
    font-size: 1.5rem;
  }

  /* Mobile modal improvements */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 10px;
  }

  .desktop-header-control {
    display: none;
  }

  .mobile-header-menu {
    display: block;
  }

  .action-bar-secondary {
    display: none;
  }

  .action-bar-secondary.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .song-actions-more-toggle {
    display: flex;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-dim: rgba(255, 255, 255, 0.7);
  }
  
  body.light-mode {
    --border: rgba(0, 0, 0, 0.3);
    --text-dim: rgba(0, 0, 0, 0.7);
  }
}

/* Print Button */
.print-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.print-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.more-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.more-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.header-more-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(9, 15, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 2000;
}

.header-more-dropdown.hidden {
  display: none;
}

.header-menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-fast);
}

.header-menu-button:hover:not(:disabled) {
  background: var(--card-hover);
  color: var(--primary);
}

.header-menu-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.header-action-disabled {
  opacity: 0.45;
  box-shadow: none;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-md);
  box-sizing: border-box;
}

.search-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  background: var(--card-bg);
  padding: 6px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--inner-shadow);
}

.search-wrapper .search { border: none; background: transparent; }

.search {
  flex: 1;
  padding: 16px 45px 16px 20px;
  border-radius: 18px;
  color: var(--text-main);
  font-size: 1.05rem;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.search-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;
}

.search[type="search"]::-webkit-search-decoration,
.search[type="search"]::-webkit-search-cancel-button,
.search[type="search"]::-webkit-search-results-button,
.search[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.clear-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.clear-btn:hover { color: var(--primary); }

.search-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  width: 56px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(251, 140, 0, 0.3);
  transition: var(--transition-smooth);
}
.search-btn i { font-style: normal; }

.search-btn:hover {
  filter: brightness(1.1);
}

.browse-filter {
  margin-bottom: 18px;
}

.browse-filter-input {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 50px 4px 6px;
  box-shadow: var(--shadow), var(--inner-shadow);
}

.browse-filter-field {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  padding: 12px 10px;
  font-size: 0.98rem;
}

.browse-filter-field:focus {
  outline: none;
}

.browse-filter-field[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;
}

.browse-filter-field[type="search"]::-webkit-search-decoration,
.browse-filter-field[type="search"]::-webkit-search-cancel-button,
.browse-filter-field[type="search"]::-webkit-search-results-button,
.browse-filter-field[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.browse-filter-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  cursor: pointer;
}

.browse-filter-empty {
  margin: -4px 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.hidden-by-filter {
  display: none !important;
}

.search-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.65;
  box-shadow: none;
}

.search-btn:active { transform: scale(0.92); }

.search:focus {
  outline: none;
}

.search-hint {
  min-height: 20px;
  margin: -4px 0 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.search-meta {
  margin: -2px 0 18px;
  display: grid;
  gap: 6px;
}

.search-summary {
  color: var(--text-main);
  font-weight: 600;
}

.search-note {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.search-empty-state {
  text-align: center;
  padding: 34px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-empty-state h3 {
  margin: 0 0 10px;
  color: var(--text-main);
}

.search-empty-state p {
  margin: 0;
  color: var(--text-dim);
}

.search-suggestions {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.search-suggestions-title {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.search-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-suggestion-chip {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-suggestion-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.search-load-more {
  margin-bottom: 20px;
}

.search-load-more:disabled {
  cursor: wait;
  opacity: 0.72;
}

.pagination-nav {
  margin: 20px 0 28px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pagination-summary {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--primary), #ffb347);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.28);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pagination-edge {
  min-width: 72px;
}

.pagination-ellipsis {
  padding: 0 2px;
  color: var(--text-dim);
  font-weight: 700;
}

body.light-mode .pagination-nav {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .pagination-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .pagination-btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.14);
}

.pagination-slot-top .pagination-nav {
  margin-top: 0;
  margin-bottom: 18px;
}

.pagination-slot-bottom .pagination-nav {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .pagination-nav {
    padding: 12px;
  }

  .pagination-summary {
    width: 100%;
    text-align: center;
  }

  .pagination-controls {
    width: 100%;
    justify-content: center;
  }

  .pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
  }

  .pagination-edge {
    min-width: 62px;
  }
}

.main-nav-container {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: sticky;
  top: 78px;
  z-index: 999;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  margin: 0 auto 16px;
  width: calc(100% - 32px);
  max-width: 900px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (min-width: 1400px) {
  .main-nav-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.main-nav {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.main-nav button {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav button:hover {
  color: var(--primary);
}

.main-nav button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 140, 0, 0.14);
  border-radius: 16px;
}

.main-nav .nav-link-standalone {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .main-nav-container {
    position: fixed;
    top: auto;
    bottom: 0;
    border-bottom: none;
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  }

  .main-nav button {
    flex-direction: column;
    gap: 1px;
    font-size: 0.62rem;
    padding: 6px 2px;
    flex: 1 1 0;
    min-width: 0;
    border-bottom: none;
  }
  .main-nav button span:last-child {
    width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .main-nav button span:first-child {
    font-size: 1.25rem;
  }

  .main-nav button:active {
    transform: scale(0.92);
  }

  .main-nav .nav-link-standalone {
    flex-direction: column;
    gap: 1px;
    font-size: 0.62rem;
    padding: 6px 2px;
    flex: 1 1 0;
    min-width: 0;
    border-bottom: none;
  }

  .main-nav .nav-link-standalone span:last-child {
    width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .main-nav .nav-link-standalone span:first-child {
    font-size: 1.25rem;
  }

  .main-nav {
    gap: 0;
    justify-content: space-between;
  }

  .main-nav-container.nav-hidden {
    transform: translateY(calc(100% + 20px));
  }

  .player, .cookie-banner {
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    padding: 10px 14px;
    box-sizing: border-box;
  }

  .player-controls { gap: 12px; }
  .progress-container { gap: 8px; }
  
  #currentTime, #duration { 
    min-width: 32px; 
    font-size: 0.68rem; 
  }

  #progress { height: 20px; } /* Larger touch area height on mobile */

  #main-content-area {
    padding-bottom: 80px;
  }
}

.category {
  color: var(--primary);
  margin-top:10px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.section-title {
  font-size: 1.1rem;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-thumb {
  border-radius: 12px;
  object-fit: cover;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) 0;
  content-visibility: auto;
}

.flex-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius);
}

.category-card:active {
  transform: scale(0.95);
}

.category-card .cat-thumb {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  border: 2px solid var(--border);
  margin-bottom: 8px;
  transition: transform 0.3s ease;
  background-color: var(--button-secondary-bg);
}

.category-card:hover {
    background: var(--card-hover);
}
.category-card:hover .cat-thumb {
  transform: translateY(-5px);
}

.song-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.category-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  line-height: 1.2;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
  .login-text {
    display: none;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .theme-btn, .print-btn {
    padding: 6px;
    font-size: 0.9rem;
  }
  
  .recent-songs {
    grid-template-columns: 1fr;
  }
  
  .recent-song-item {
    padding: 12px;
  }
  
  .reading-progress {
    height: 4px;
  }
}

.composer-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.composer-chip:hover { 
  background: var(--primary); color: white; border-color: var(--primary);
}

.song {
  background: linear-gradient(180deg, rgba(18, 28, 51, 0.95), rgba(13, 18, 34, 0.92));
  padding: 22px;
  margin: 18px 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  animation: fadeInUp 0.45s ease-out both;
}
.song:nth-child(even) { animation-delay: 0.05s; }

.song:hover {
  background: linear-gradient(180deg, rgba(23, 35, 58, 0.98), rgba(18, 24, 40, 0.95));
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.25);
}

.song-title-wrapper {
  flex: 1;
  min-width: 0; /* Important for text truncation inside flex */
  width: 100%;
}

.song-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.song-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  font-size: 1.02rem;
}

.song-category-chip,
.song-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.song-category-chip {
  background: rgba(251, 140, 0, 0.16);
  color: #ffd49a;
  border: 1px solid rgba(251, 140, 0, 0.22);
}

.song-category-chip.link:hover {
  background: rgba(251, 140, 0, 0.25);
}

.song-meta-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.song-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.song-meta-separator,
.song-inline-icon {
  color: var(--text-dim);
  font-size: 0.82rem;
}

body.light-mode .song-category-chip {
  color: #b45309;
  background: rgba(251, 140, 0, 0.12);
  border-color: rgba(251, 140, 0, 0.18);
}

body.light-mode .song-meta-chip {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.song:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.player {
  position: fixed;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(30, 41, 59, 0.85); /* Darker for player contrast */
  box-sizing: border-box;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
  z-index: 2000; /* Ensure it stays above mobile navigation and all content */
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mini-Player Progress Bar */
.mini-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  display: block;
}

.player.is-expanded .mini-progress-container {
  display: none;
}

.mini-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
}

.player.is-expanded {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 0;
  background: var(--bg);
  padding: calc(20px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2100; /* Overlays everything including headers */
}

/* Expanded Player Drag Handle */
.player.is-expanded::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 10;
}

.player-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* Tapping this expands/collapses */
}

/* Expanded UI Elements */
.expanded-art-container {
  width: 100%;
  aspect-ratio: 1;
  margin: 40px 0;
  display: none;
  justify-content: center;
  align-items: center;
}

.player.is-expanded .expanded-art-container {
  display: flex;
}

#expandedArt {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: cover;
}

.player.is-expanded .player-controls {
  flex-direction: column;
  max-width: 100%;
  gap: 30px;
}

.player.is-expanded #nowPlaying {
  font-size: 1.5rem;
  white-space: normal;
  text-align: center;
}

.player.is-expanded .progress-container {
  width: 100%;
  order: -1;
  margin-bottom: 10px;
}

.player.is-expanded .player-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.minimize-player-btn {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  display: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.player.is-expanded .minimize-player-btn {
  display: block;
}

/* Volume Control UI */
.volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 400px;
  margin: 15px auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: none;
}

.player.is-expanded .volume-container {
  display: flex;
}

#volumeSlider {
  flex: 1;
  height: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Marquee Scrolling Text for Mini-Player */
@keyframes marquee {
  0% { transform: translateX(0); }
  25% { transform: translateX(0); } /* Initial pause */
  100% { transform: translateX(-100%); }
}

.player:not(.is-expanded) #nowPlaying.is-overflowing {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
  text-overflow: clip;
  white-space: nowrap;
}

/* Enhanced Visual Feedback for Shuffle/Repeat */
.btn-action.active,
.repeat-btn.active,
.shuffle-btn.active {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(251, 140, 0, 0.4) !important;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .player {
    bottom: calc(75px + env(safe-area-inset-bottom));
    padding: 8px 16px;
  }
  
  #nowPlaying {
    font-size: 0.85rem;
  }

  .player.is-expanded {
    bottom: 0;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

body.light-mode .music-bubble {
  background: rgba(255, 255, 255, 0.95);
  color: #202124;
}

body.light-mode .progress-ring__background {
  stroke: rgba(0,0,0,0.05);
}

body.light-mode .player {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.player-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#nowPlaying {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  font-size: 0.95rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

#progress {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: var(--primary);
  margin: 0; /* Reset browser default margins */
  display: block;
}

#currentTime, #duration {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 40px;
  text-align: center;
}

.player button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
  box-shadow: none;
}

.player input[type="range"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.player[style*="opacity: 0.7"] {
  transition: opacity 0.3s ease;
}

#playPauseBtn,
.stop-btn,
.download-btn,
.repeat-btn,
.nav-btn {
  background: var(--primary-gradient);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow);
}

#playPauseBtn:hover, .stop-btn:hover, .download-btn:hover, .repeat-btn:hover, .nav-btn:hover {
  transform: scale(1.1);
}

.stop-btn,
.download-btn,
.repeat-btn,
.nav-btn {
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
  /* Common properties are now defined in the combined selector above */
  /* cursor: pointer; */
  /* transition: var(--transition-fast); */
}


.repeat-btn.active {
  background: var(--primary) !important;
  color: white !important;
}

body.light-mode .stop-btn,
body.light-mode .download-btn,
body.light-mode .repeat-btn,
body.light-mode .nav-btn {
  background: rgba(0, 0, 0, 0.08);
  color: #202124;
}

/* Enhanced Player Controls */
.player-secondary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.volume-control-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.volume-control-wrapper:hover {
  background: rgba(255, 255, 255, 0.1);
}

#volumeSlider {
  width: 80px;
  height: 4px;
  cursor: pointer;
  accent-color: var(--primary);
  -webkit-appearance: slider-horizontal;
  appearance: slider-horizontal;
}

#volumeSlider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.speed-control-wrapper {
  position: relative;
}

#speedBtn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 45px;
}

#speedBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

#speedBtn.active {
  background: var(--primary);
  color: white;
}

.speed-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  min-width: 80px;
}

.speed-menu.hidden {
  display: none;
}

.speed-menu button {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.2s ease;
}

.speed-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.speed-menu button.active {
  background: var(--primary);
  color: white;
  font-weight: bold;
}

.control-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-main) !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  min-width: 40px !important;
  text-align: center !important;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.05);
}

.control-btn.active {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(251, 140, 0, 0.4) !important;
}

.progress-bar-wrapper {
  flex: 1;
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.mini-progress-bar {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 1px;
  pointer-events: none;
}

#progress {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 4px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Loading Indicator */
.loading-indicator {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(251, 140, 0, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  z-index: 1;
}

.loading-indicator.hidden {
  display: none;
}

@keyframes spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.now-playing-info {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-display {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 40px;
  text-align: center;
}

/* Mobile adaptations */
@media (max-width: 640px) {
  .player-secondary-controls {
    gap: 6px;
  }

  #volumeSlider {
    width: 60px;
  }

  .control-btn, #speedBtn {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    min-width: 36px !important;
  }

  .speed-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Light mode adjustments */
body.light-mode .volume-control-wrapper {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .volume-control-wrapper:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .speed-menu {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .speed-menu button:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .control-btn {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .control-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* ===== ENHANCED AUDIO PLAYER STYLES ===== */

/* Player Container */
.player {
  position: fixed;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  right: var(--spacing-md);
  max-width: calc(100% - var(--spacing-md) * 2);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mini Player View */
.player-mini-view {
  padding: 12px 20px;
}

.player-header-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.player-artwork-compact {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.compact-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info-compact {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.now-playing-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.now-playing-composer {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.progress-bar-wrapper {
  flex: 1;
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}

.mini-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.player-controls-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.player-btn-play {
  background: var(--primary-gradient);
  color: white;
  font-size: 1.1rem;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 15px rgba(251, 140, 0, 0.3);
}

.player-btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(251, 140, 0, 0.4);
}

.player-btn-secondary {
  font-size: 0.9rem;
  width: 36px;
  height: 36px;
}

.player-controls-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.volume-control-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.volume-control-wrapper:hover {
  background: rgba(255, 255, 255, 0.12);
}

.volume-slider {
  width: 70px;
  height: 3px;
  cursor: pointer;
  accent-color: var(--primary);
}

.volume-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

/* Speed Menu */
.speed-control-wrapper {
  position: relative;
}

#speedBtn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#speedBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.speed-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.speed-menu.hidden {
  display: none;
}

.speed-menu button {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-align: center;
}

.speed-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.speed-menu button.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* Expanded Player View */
.player.is-expanded {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  max-width: none;
  border-radius: 0;
  background: var(--bg);
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 2100;
}

.player.is-expanded .player-mini-view {
  display: none;
}

.player-expanded-view {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.player.is-expanded .player-expanded-view {
  display: flex;
}

.player-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.expanded-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.player-btn-close {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
}

.player-expanded-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expanded-artwork-container {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  margin-bottom: 30px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.expanded-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expanded-song-details {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.expanded-song-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.expanded-song-composer {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.expanded-song-category {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.expanded-song-duration {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.expanded-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 30px;
}

.progress-bar-expanded {
  flex: 1;
  height: 6px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 3px;
}

.progress-bar-expanded::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 2px 8px rgba(251, 140, 0, 0.4);
}

.progress-bar-expanded::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.expanded-main-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.expanded-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.expanded-btn-nav {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.expanded-btn-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.expanded-btn-play {
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 8px 24px rgba(251, 140, 0, 0.3);
}

.expanded-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(251, 140, 0, 0.4);
}

.expanded-secondary-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  width: 100%;
  flex-wrap: wrap;
}

.expanded-control-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.expanded-control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.expanded-control-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(251, 140, 0, 0.3);
}

.expanded-volume-control {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.volume-label {
  font-size: 1.4rem;
}

.volume-slider-expanded {
  flex: 1;
  height: 5px;
  cursor: pointer;
  accent-color: var(--primary);
  border-radius: 2px;
}

.volume-slider-expanded::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider-expanded::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

/* Loading Indicator */
.loading-indicator {
  position: absolute;
  bottom: 12px;
  left: 20px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(251, 140, 0, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.loading-indicator.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Light Mode Support */
body.light-mode .player {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .player-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #202124;
}

body.light-mode .player-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .volume-control-wrapper {
  background: rgba(0, 0, 0, 0.04);
}

body.light-mode .volume-control-wrapper:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .speed-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .speed-menu button:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .speed-menu button.active {
  background: var(--primary);
  color: white;
}

body.light-mode .player.is-expanded {
  background: var(--bg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .player {
    bottom: calc(75px + env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .player-header-compact {
    gap: 10px;
    margin-bottom: 8px;
  }

  .player-artwork-compact {
    width: 44px;
    height: 44px;
  }

  .now-playing-title {
    font-size: 0.85rem;
  }

  .now-playing-composer {
    font-size: 0.7rem;
  }

  .player-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .player-btn-play {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .player-btn-secondary {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .volume-control-wrapper {
    padding: 4px 8px;
    gap: 6px;
  }

  .volume-slider {
    width: 60px;
    height: 2px;
  }

  .player-controls-secondary {
    gap: 2px;
  }

  .player-progress-compact {
    gap: 6px;
    margin-bottom: 8px;
  }

  .time-display {
    font-size: 0.7rem;
    min-width: 32px;
  }

  .expanded-song-title {
    font-size: 1.5rem;
  }

  .expanded-song-composer {
    font-size: 1rem;
  }

  .expanded-main-controls {
    gap: 16px;
  }

  .expanded-btn-play {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .expanded-control-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .expanded-artwork-container {
    max-width: 250px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .player {
    bottom: calc(65px + env(safe-area-inset-bottom));
    padding: 8px 10px;
  }

  .player-header-compact {
    margin-bottom: 6px;
  }

  .player-controls-compact {
    gap: 6px;
  }

  .player-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .player-btn-play {
    width: 40px;
    height: 40px;
  }

  .player-controls-secondary {
    gap: 0;
  }

  .player-btn-secondary {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .volume-control-wrapper {
    padding: 3px 6px;
  }

  .volume-slider {
    width: 50px;
  }

  #speedBtn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .expanded-artwork-container {
    max-width: 200px;
    margin-bottom: 16px;
  }

  .expanded-song-title {
    font-size: 1.3rem;
  }

  .expanded-btn-play {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .expanded-secondary-controls {
    gap: 12px;
  }

  .expanded-control-btn {
    width: 40px;
    height: 40px;
  }
}

.hidden {
  display: none !important;
}

/* Metadata styling for song list and details */
.composer-name {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}
.composer-name.link:hover { color: var(--primary); text-decoration: underline; }

.singer-name {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}
.singer-name.link:hover { text-decoration: underline; opacity: 0.8; }

.song-info {
  background: var(--card-bg);
  padding: var(--spacing-md);
  border-radius: 20px;
  margin-bottom: var(--spacing-lg);
  border: var(--card-border);
}

.audio-controls {
  margin-bottom: 25px;
  text-align: center;
}

.song-info p {
  margin: var(--spacing-sm) 0;
  font-size: 0.95rem;
}

.song-info strong {
  color: var(--primary);
  margin-right: 5px;
}

.lyrics-content {
  font-size: var(--lyrics-font-size);
  line-height: 1.85;
  color: var(--text-main);
  white-space: pre-line;
  word-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}



/* Enhanced legibility for Sanskrit-style diacritics */
.lyrics-content.is-diacritic {
  /* Fallback stack uses Georgia/Times which handles most diacritics natively */
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.03em;
  line-height: 2.1; /* Extra space to prevent diacritics from clashing with lines above/below */
  font-weight: 450; /* Slightly heavier weight makes small marks like dots more visible */
  transition: opacity 0.2s ease-in;
}

.fonts-loading .lyrics-content.is-diacritic {
  opacity: 0.7; /* Dim the text slightly while the high-quality font is loading */
}

.lyrics-container {
  background: rgba(8, 16, 31, 0.85);
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.detail-lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.detail-lang-switch button {
  background: transparent;
  border: var(--card-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.detail-lang-switch button.active {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: bold;
  color: white;
}

.detail-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 15px 0 25px 0;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.info-item {
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.action-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.action-bar-primary,
.action-bar-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.btn-action {
  min-width: 0;
  width: 100%;
  padding: 10px 8px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:active { transform: scale(0.96); }

.btn-action.primary {
  background: linear-gradient(135deg, #ff9100, #ff6d00);
  color: white;
  grid-column: 1 / -1;
  box-shadow: 0 8px 16px rgba(255, 134, 0, 0.18);
  padding: 12px 10px;
  font-size: 0.95rem;
}

.btn-action.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 8px;
}

.song-actions-more-toggle {
  display: none;
}

/* Mobile responsive button layout */
@media (max-width: 480px) {
  .action-bar {
    gap: 8px;
    margin-bottom: 16px;
  }

  .action-bar-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-bar-secondary {
    display: none;
  }

  .action-bar-secondary.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .song-actions-more-toggle {
    display: flex;
  }
  
  .btn-action {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
  
  .btn-action.primary {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  /* Very small screen header */
  .header {
    padding: 10px 8px;
    font-size: 1rem;
  }

  #header-title {
    font-size: 1rem;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-btn,
  .lang-btn,
  .login-btn,
  .user-btn,
  .print-btn,
  .more-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Very small screen search */
  .search-wrapper {
    padding: 2px;
    margin-bottom: 16px;
  }

  .search {
    padding: 12px 40px 12px 16px;
    font-size: 16px;
  }

  .clear-btn {
    right: 12px;
  }

  .search-btn {
    width: 48px;
  }

  /* Very small screen container */
  .container {
    padding: 12px;
  }

  .song {
    padding: 16px;
    margin-bottom: 12px;
  }

  .song-meta {
    font-size: 0.8rem;
  }

  .song-title {
    font-size: 1rem;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .song-meta-row {
    margin-bottom: 8px;
  }

  .song-header {
    gap: 12px;
  }

  .song-actions-group {
    flex-shrink: 0;
  }

  .song-title-wrapper {
    flex: 1 1 auto;
    min-width: 0;
  }

  .song-title {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
  }

h1, h2, h3, h4, h5, h6 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .song-category-chip {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  /* Very small screen category grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card .cat-thumb {
    width: 70px;
    height: 70px;
  }

  .category-card span {
    font-size: 0.8rem;
  }

  /* Very small screen flex list for singers/composers */
  .flex-list {
    flex-direction: column;
    gap: 10px;
  }

  .composer-chip,
  .singer-item {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
  }

  /* Very small screen lyrics */
  .lyrics-content {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Very small screen footer */
  .footer {
    padding: var(--spacing-md) 8px;
  }

  /* Very small screen reading mode */
  .reading-mode .exit-reading-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Very small screen modals */
  .modal-content {
    width: 98%;
    margin: 5px;
    padding: 1rem;
  }

  /* Very small screen modals */
  .modal-content {
    width: 98%;
    margin: 5px;
    padding: 1rem;
  }

  /* Very small screen navigation */
  .main-nav-container {
    margin: 0 4px 4px;
  }

  .main-nav {
    padding: 0 8px;
  }

  .main-nav button {
    padding: 6px 8px;
    font-size: 0.8rem;
    min-width: 44px;
  }

  /* Very small screen forms */
  form input,
  form textarea,
  form select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* Touch-friendly */
  }

  form button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Very small screen alerts */
  .alert {
    padding: 12px;
    font-size: 14px;
  }
}

.btn-back-full {
  margin-top: var(--spacing-lg);
  width: 100%;
  padding: var(--spacing-md);
  border-radius: 18px;
  border: 1px solid var(--button-secondary-border);
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-back-full:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
  transform: translateY(-1px);
}

.font-slider-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.font-slider-container label {
  font-size: 0.92rem;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 90px;
}

.font-slider-container input {
  flex: 1;
  cursor: pointer;
  touch-action: pan-x;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.2s ease;
}

.font-slider-container input:hover {
  background: rgba(255, 255, 255, 0.18);
}

.font-slider-container input:focus {
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.14);
}

.font-slider-container input::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.font-slider-container input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  margin-top: -6px;
}

.font-slider-container input::-moz-range-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.font-slider-container input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-reset-font {
  background: rgba(255,255,255,0.05);
  border: var(--card-border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-reset-font:hover {
  background: var(--card-hover);
}

/* Light Mode Font Slider */
body.light-mode .font-slider-container {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .font-slider-container input {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .font-slider-container input:hover {
  background: rgba(0, 0, 0, 0.12);
}

body.light-mode .font-slider-container input:focus {
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
}

body.light-mode .font-slider-container input::-webkit-slider-runnable-track {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .font-slider-container input::-webkit-slider-thumb {
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .font-slider-container input::-moz-range-track {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .font-slider-container input::-moz-range-thumb {
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-mode .btn-reset-font {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

body.light-mode .btn-reset-font:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Devotional Detail Refresh */
.detail-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(49, 33, 12, 0.9), rgba(17, 24, 39, 0.96));
  border: 1px solid rgba(255, 183, 77, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.detail-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.detail-hero-main.has-art {
  grid-template-columns: minmax(0, 1fr) clamp(132px, 30vw, 192px);
}

.detail-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 8px;
}

.detail-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.14);
  color: #ffd59b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detail-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-subtitle {
  margin-top: 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.detail-meta-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.detail-meta-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffcf8b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-meta-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  justify-self: start;
}

.detail-meta-link:hover {
  color: var(--primary);
}

.detail-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.14);
  border: 1px solid rgba(255, 183, 77, 0.24);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.detail-hero-art {
  width: 100%;
  max-width: 184px;
  aspect-ratio: 0.92 / 1;
  justify-self: center;
  align-self: start;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 244, 230, 0.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.detail-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  image-rendering: auto;
}

.play-btn {
  width: 100%;
  margin: 0 0 16px;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ff6f00, #ff9800, #ffb300);
  color: white;
  border-radius: 20px;
  border: none;
  box-shadow: 0 16px 30px rgba(255, 122, 0, 0.28);
  cursor: pointer;
  transition: var(--transition-fast);
}

.play-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.action-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.action-bar-primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.action-bar-secondary {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-bar-secondary.is-open {
  display: grid;
}

.btn-action {
  min-width: 0;
  min-height: 72px;
  width: 100%;
  padding: 16px 12px;
  border-radius: 24px;
  border: none;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.25;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-action:active {
  transform: scale(0.98);
}

.btn-action.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.song-actions-more-toggle {
  display: inline-flex;
}

.song-actions-more-toggle[aria-expanded="true"] {
  background: rgba(251, 140, 0, 0.16);
  border-color: rgba(251, 140, 0, 0.24);
  color: #ffd59b;
}

.detail-lang-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.detail-lang-switch::-webkit-scrollbar {
  display: none;
}

.detail-lang-switch button {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.detail-lang-switch button.active {
  border-color: transparent;
  font-weight: 700;
  color: white;
  transform: translateY(-1px);
}

.detail-lang-switch button[data-lang="kn"].active {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.detail-lang-switch button[data-lang="en"].active {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.detail-lang-switch button[data-lang="tl"].active {
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.24);
}

.lyrics-container {
  --lyrics-card-tint: rgba(255, 255, 255, 0.05);
  --lyrics-card-border: rgba(255, 255, 255, 0.1);
  --lyrics-card-shadow: rgba(15, 23, 42, 0.14);
  --lyrics-card-accent: linear-gradient(135deg, rgba(255, 183, 77, 0.88), rgba(249, 115, 22, 0.92));
  padding: 24px 20px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--lyrics-card-tint), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--lyrics-card-border);
  border-radius: 34px;
  box-shadow: 0 16px 30px var(--lyrics-card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lyrics-container::before {
  content: '';
  display: block;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--lyrics-card-accent);
}

.lyrics-container[data-active-lang="kn"] {
  --lyrics-card-tint: rgba(251, 146, 60, 0.12);
  --lyrics-card-border: rgba(251, 146, 60, 0.22);
  --lyrics-card-shadow: rgba(249, 115, 22, 0.16);
  --lyrics-card-accent: linear-gradient(135deg, #fdba74, #f97316);
}

.lyrics-container[data-active-lang="en"] {
  --lyrics-card-tint: rgba(56, 189, 248, 0.12);
  --lyrics-card-border: rgba(59, 130, 246, 0.22);
  --lyrics-card-shadow: rgba(37, 99, 235, 0.16);
  --lyrics-card-accent: linear-gradient(135deg, #7dd3fc, #2563eb);
}

.lyrics-container[data-active-lang="tl"] {
  --lyrics-card-tint: rgba(192, 132, 252, 0.13);
  --lyrics-card-border: rgba(168, 85, 247, 0.22);
  --lyrics-card-shadow: rgba(139, 92, 246, 0.16);
  --lyrics-card-accent: linear-gradient(135deg, #d8b4fe, #8b5cf6);
}

.lyrics-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: var(--lyrics-font-size);
  line-height: 1.85;
  color: var(--text-main);
  white-space: normal;
  word-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
}

.lyrics-section {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.lyrics-section .section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 1.1rem;
}

.lyrics-section .section-title.pallavi {
  color: #ffb14a;
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.22), rgba(255, 224, 178, 0.08));
}

.lyrics-section .section-title.anupallavi {
  color: #d9b3ff;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(221, 214, 254, 0.1));
}

.lyrics-section .section-title.charana {
  color: #ffab91;
  background: linear-gradient(135deg, rgba(255, 138, 101, 0.2), rgba(255, 204, 188, 0.08));
}

.lyrics-section .section-content {
  line-height: 1.9;
  font-size: var(--lyrics-font-size);
  margin-bottom: 0;
  color: var(--text-main);
}

.lyrics-section .section-content p {
  margin: 0 0 0.75em 0;
}

.lyrics-section .section-content p:last-child {
  margin-bottom: 0;
}

.lyrics-content.is-diacritic .section-content {
  line-height: 2.05;
}

.font-slider-container {
  margin-top: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.font-slider-container label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  min-width: 96px;
}

.btn-reset-font {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

body.light-mode .detail-hero {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: rgba(251, 140, 0, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.light-mode .detail-chip {
  background: rgba(251, 140, 0, 0.1);
  color: #b45309;
}

body.light-mode .detail-title {
  color: #111827;
}

body.light-mode .detail-subtitle {
  color: #6b7280;
}

body.light-mode .detail-meta-label {
  color: #8a3d00;
}

body.light-mode .detail-meta-link {
  color: #111827;
}

body.light-mode .detail-meta-badge {
  background: rgba(251, 140, 0, 0.1);
  border-color: rgba(180, 83, 9, 0.18);
  color: #7c2d12;
}

body.light-mode .detail-hero-art {
  background: rgba(255, 244, 230, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

body.light-mode .btn-action.secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.08);
  color: #111827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.light-mode .song-actions-more-toggle[aria-expanded="true"] {
  background: rgba(251, 140, 0, 0.12);
  border-color: rgba(251, 140, 0, 0.24);
  color: #b45309;
}

body.light-mode .action-bar-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light-mode .detail-lang-switch button {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  color: #374151;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body.light-mode .detail-lang-switch button[data-lang="kn"].active {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

body.light-mode .detail-lang-switch button[data-lang="en"].active {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

body.light-mode .detail-lang-switch button[data-lang="tl"].active {
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

body.light-mode .lyrics-section {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.light-mode .lyrics-container {
  --lyrics-card-tint: rgba(255, 255, 255, 0.98);
  --lyrics-card-border: rgba(148, 163, 184, 0.12);
  --lyrics-card-shadow: rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, var(--lyrics-card-tint), rgba(255, 255, 255, 0.95));
  border-color: var(--lyrics-card-border);
  box-shadow: 0 14px 30px var(--lyrics-card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.light-mode .lyrics-container[data-active-lang="kn"] {
  --lyrics-card-tint: #fff7ed;
  --lyrics-card-border: rgba(249, 115, 22, 0.18);
  --lyrics-card-shadow: rgba(249, 115, 22, 0.1);
}

body.light-mode .lyrics-container[data-active-lang="en"] {
  --lyrics-card-tint: #eff6ff;
  --lyrics-card-border: rgba(37, 99, 235, 0.16);
  --lyrics-card-shadow: rgba(37, 99, 235, 0.1);
}

body.light-mode .lyrics-container[data-active-lang="tl"] {
  --lyrics-card-tint: #faf5ff;
  --lyrics-card-border: rgba(139, 92, 246, 0.16);
  --lyrics-card-shadow: rgba(139, 92, 246, 0.1);
}

body.light-mode .lyrics-section .section-title.pallavi {
  color: #e65100;
  background: linear-gradient(135deg, rgba(255, 204, 128, 0.5), rgba(255, 243, 224, 0.95));
}

body.light-mode .lyrics-section .section-title.anupallavi {
  color: #6a1b9a;
  background: linear-gradient(135deg, rgba(225, 190, 231, 0.7), rgba(243, 229, 245, 0.98));
}

body.light-mode .lyrics-section .section-title.charana {
  color: #bf360c;
  background: linear-gradient(135deg, rgba(255, 204, 188, 0.76), rgba(251, 233, 231, 0.98));
}

body.light-mode .font-slider-container {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .font-slider-container label,
body.light-mode .lyrics-section .section-content {
  color: #202124;
}

body.light-mode .btn-reset-font {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  color: #202124;
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 20px;
  }

  .detail-hero-main.has-art {
    grid-template-columns: minmax(0, 1fr) 138px;
  }

  .detail-hero-art {
    max-width: 138px;
    justify-self: center;
  }

  .action-bar-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-bar-secondary {
    grid-template-columns: 1fr;
  }

  .btn-action {
    min-height: 64px;
  }

  .font-slider-container {
    flex-wrap: wrap;
  }

  .font-slider-container label {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .detail-hero {
    padding: 18px;
    border-radius: 26px;
  }

  .detail-hero-main.has-art {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 14px;
  }

  .detail-hero-art {
    max-width: 118px;
    border-radius: 22px;
  }

  .detail-title {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .play-btn {
    padding: 15px 18px;
    font-size: 1.05rem;
  }

  .btn-action {
    min-height: 60px;
    padding: 14px 10px;
    font-size: 0.9rem;
  }

  .detail-lang-switch button {
    padding: 10px 14px;
  }

  .lyrics-section {
    padding: 0;
  }

  .lyrics-section .section-title {
    font-size: 1rem;
    padding: 10px 14px;
  }

  .lyrics-container {
    padding: 18px 16px;
    border-radius: 28px;
  }

  .font-slider-container {
    gap: 12px;
    padding: 16px;
  }

  .btn-reset-font {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .detail-hero-main.has-art {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-hero-art {
    max-width: 128px;
    justify-self: start;
    align-self: start;
  }
}

/* Footer and Static Pages */
.footer {
  margin-top: var(--spacing-lg);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 28, 0.9);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: var(--link-hover);
}

.footer-links .logout-link {
  color: #f44336 !important;
  font-weight: 500;
}

.footer-links .logout-link:hover {
  color: #d32f2f !important;
  text-decoration: underline;
}

.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

.static-page h1 { color: var(--primary); }
.static-page h2 { color: var(--primary); margin-top: 25px; }

/* Specific styles for new pages */
#main-content-area {
  padding-top: 15px; /* Adjust as needed */
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

.cookie-banner a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner a:hover {
  color: var(--link-hover);
}

.cookie-banner .btn-accept {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 15px;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 15px;
  padding: 5px 0;
}
.breadcrumb a {
  color: var(--link-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--link-hover);
}
.breadcrumb span { opacity: 0.5; }

.btn-fav {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-fav.active {
  color: #ef4444;
  /* Remove scale transform to prevent layout shifts */
}
.btn-fav:active { transform: scale(0.9); }

/* Favorite button in action bar should fit the grid layout */
.action-bar .btn-fav {
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 10px 8px;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.toast-notification {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 10px;
  bottom: 100px;
  max-width: 90vw;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  z-index: 2000;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  white-space: normal;
  pointer-events: auto;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toast-close:hover { background: rgba(255, 255, 255, 0.4); }

.toast-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-info { background: var(--primary-gradient); }

/* Playlist Public Toggle */
.playlist-public-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1); transition: .3s; border-radius: 22px;
}
.toggle-slider:before {
  position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
  background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .toggle-slider { background-color: var(--primary); }
input:checked + .toggle-slider:before { transform: translateX(22px); }

body.light-mode .playlist-public-toggle { background: #f1f3f4; }
body.light-mode .toggle-slider { background-color: #ccc; }
body.light-mode input:checked + .toggle-slider:before { background-color: var(--text-main); }

/* Full Screen Lyrics Adjustments */
.fullscreen-lyrics-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999; 
  background: var(--bg); 
  color: var(--text-main);
  display: block !important; /* Prevents vertical centering which causes top-clipping on overflow */
  overflow: hidden;
}

.fullscreen-lyrics-content {
  padding: 105px 24px 115px; /* Adjusted top padding to fix header overlap when scrolling to the top */
  scroll-padding-top: 105px;
  height: 100%; overflow-y: auto; box-sizing: border-box; -webkit-overflow-scrolling: touch;
  display: block; /* Ensures top-aligned scrolling */
  text-align: left !important; /* Enforce strict left alignment */
}

.fullscreen-lyrics-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 16px 20px; 
  background: rgba(15, 25, 45, 0.95); /* Solidified background for better readability */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.light-mode .fullscreen-lyrics-header,
body.light-mode .fullscreen-controls-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.08);
  color: #202124;
}

.fs-bottom-pill-wrapper {
  position: absolute;
  bottom: 100px; /* Positioned above the controls bar */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 5;
}

.fs-font-controls {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 30px;
}

.fullscreen-controls-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px 40px; 
  background: rgba(15, 25, 45, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 15px;
  transition: all 0.3s ease; z-index: 10;
}

.fs-controls-center {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.fs-counter-pill {
  background: var(--primary); /* Swapped to primary background for high contrast */
  color: #fff; /* High visibility white text */
  padding: 6px 14px; 
  border-radius: 99px;
  font-size: 0.85rem; 
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex; align-items: center; justify-content: center;
}

.fs-font-controls input[type="range"] {
  width: 100px; accent-color: var(--primary);
}

.fullscreen-lyrics-content .lyrics-content {
  text-align: left;
  margin-top: 10px;
  max-width: 100%;
  animation: fsLyricsFadeIn 0.4s ease-out;
}

@keyframes fsLyricsFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fullscreen-lyrics-content .section-content {
  text-align: left;
}

.controls-hidden .fullscreen-lyrics-header,
.controls-hidden .fullscreen-controls-bar,
.controls-hidden .fs-bottom-pill-wrapper {
  opacity: 0; pointer-events: none;
}

.exit-reading-btn .exit-icon {
  font-size: 1.2em;
  line-height: 1;
}

.exit-reading-btn .exit-text {
  font-size: 0.6em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile responsive exit button */
@media (max-width: 768px) {
  .exit-reading-btn {
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    z-index: 9999; /* Ensure it's above everything */
    position: fixed !important;
  }
  
  .exit-reading-btn .exit-icon {
    font-size: 1.4em;
  }
  
  .exit-reading-btn .exit-text {
    font-size: 0.7em;
  }
}

@media (max-width: 480px) {
  .exit-reading-btn {
    bottom: 15px;
    right: 15px;
    width: 75px;
    height: 75px;
    font-size: 2rem;
    z-index: 9999;
    position: fixed !important;
  }
  
  .exit-reading-btn .exit-icon {
    font-size: 1.6em;
  }
  
  .exit-reading-btn .exit-text {
    font-size: 0.8em;
  }
}

/* Login Modal Styles */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  animation: fadeInUp 0.3s ease-out;
}

.login-modal {
  background: var(--modal-surface);
  border: 1px solid var(--modal-border-color);
  border-radius: 20px;
  max-width: 400px;
  width: min(100%, 400px);
  box-shadow: var(--modal-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--modal-border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin-bottom: 20px;
  color: var(--text-dim);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-modal-login,
.btn-modal-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition-fast);
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .login-modal {
    width: 100%;
    border-radius: 18px;
  }

  .modal-header,
  .modal-body {
    padding: 20px 18px;
  }

  .modal-header h2 {
    font-size: 1.15rem;
  }

  .btn-modal-login,
  .btn-modal-register {
    padding: 13px 16px;
    font-size: 0.98rem;
  }
}

.btn-modal-login {
  background: var(--primary-gradient);
  color: var(--button-primary-text);
}

.btn-modal-login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-modal-register {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border-color: var(--button-secondary-border);
}

.btn-modal-register:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.exit-reading-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.exit-reading-btn:active {
  transform: scale(0.9);
}

/* Print Options Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: var(--modal-surface);
  border: 1px solid var(--modal-border-color);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--modal-shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--modal-border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.print-options h4 {
  margin: 0 0 16px 0;
  color: var(--text-main);
  font-size: 1.1rem;
}

.language-options,
.print-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.print-order-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.order-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
}

.order-selects label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-selects select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.option-item:hover {
  background: var(--card-hover);
}

.option-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.option-item input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.option-item input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.option-text {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Visual hint for admin-enforced print options shown in the print modal */
.option-item.admin-locked {
  opacity: 0.75;
  cursor: default;
}
.option-item.admin-locked .option-text::after {
  content: ' (admin)';
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 6px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--modal-border-color);
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--button-primary-text);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border-color: var(--button-secondary-border);
}

.btn-secondary:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Light mode modal styles */
body.light-mode .login-modal,
body.light-mode .modal-content {
  background: var(--modal-surface);
  border-color: var(--modal-border-color);
  box-shadow: var(--modal-shadow);
}

body.light-mode .modal-header {
  border-color: var(--modal-border-color);
}

body.light-mode .modal-footer {
  border-color: var(--modal-border-color);
}

body.light-mode .option-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .checkmark {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .btn-secondary {
  background: var(--button-secondary-bg);
  border-color: var(--button-secondary-border);
  color: var(--button-secondary-text);
}

body.light-mode .btn-secondary:hover {
  background: var(--button-secondary-hover-bg);
  border-color: var(--button-secondary-border);
}

/* ===== RESPONSIVE WIDTH OPTIMIZATION ===== */
/* Ensure content doesn't stretch too wide on large screens */
#main-content-area {
  width: 100%;
  box-sizing: border-box;
}

/* Add maximum readable width for large screens while keeping responsive */
@media (min-width: 1400px) {
  #main-content-area {
    max-width: 1400px;
    margin: 0 auto;
  }

  .container {
    max-width: 1400px;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .container {
    max-width: 100%;
    padding: var(--spacing-lg) 40px;
  }
}

/* Tablet and medium screens */
@media (min-width: 769px) and (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: var(--spacing-md) 32px;
  }
}

/* Ensure playlist views look good on all screens */
.feature-section {
  width: 100%;
  box-sizing: border-box;
}

.playlist-detail-shell {
  width: 100%;
  box-sizing: border-box;
}

#list {
  width: 100%;
  box-sizing: border-box;
}

/* Make buttons and controls more responsive */
@media (min-width: 1024px) {
  .playlist-detail-toolbar {
    gap: 14px;
  }

  .playlist-detail-toolbar button,
  .playlist-detail-toolbar .feature-inline-btn,
  .playlist-detail-toolbar .playlist-public-toggle {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .playlist-detail-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .playlist-detail-shell .feature-inline-btn,
  .playlist-detail-shell .btn-download-playlist,
  .playlist-detail-shell .playlist-public-toggle {
    min-width: 100px;
    font-size: 0.8rem;
  }
}

/* Prominent Play All Button */
.btn-play-all {
  background: var(--primary-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: 999px !important; /* Musical pill shape */
  padding: 12px 32px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 30px rgba(251, 140, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  min-height: 52px !important; /* Overriding default action btn height for toolbars */
}

.btn-play-all:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(251, 140, 0, 0.4) !important;
  filter: brightness(1.1);
}

.btn-play-all:active {
  transform: scale(0.96);
}

.btn-shuffle-all {
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  min-height: 52px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-shuffle-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

.btn-shuffle-all.active {
  background: #2c3e50 !important;
  color: white !important;
  border-color: #2c3e50 !important;
}

/* Styles for audio version count badge */
.song-audio-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; /* Ensure it's a small circle/pill */
  height: 18px;
  padding: 0 5px;
  border-radius: 999px; /* Pill shape */
  background: rgba(255, 255, 255, 0.15); /* Slightly more prominent than default meta chip */
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 2px; /* Small separation from the "Audio" text */
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0; /* Prevent shrinking in flex containers */
}

body.light-mode .song-audio-count-badge {
  background: rgba(0, 0, 0, 0.1); /* A light grey for light mode */
  color: var(--text-main); /* Main text color */
}

/* ===== PLAYLIST DROPDOWN STYLES FOR LYRICS PAGE ===== */
.playlist-dropdown-wrapper-lyrics {
  position: relative;
  display: inline-block;
  width: 100%;
}

.playlist-dropdown-lyrics {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.playlist-dropdown-content-lyrics {
  display: flex;
  flex-direction: column;
}

.playlist-option-lyrics {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlist-option-lyrics:hover {
  background: rgba(251, 140, 0, 0.1);
  color: var(--primary);
}

.playlist-option-lyrics.new-playlist {
  color: var(--primary);
  font-weight: 600;
  border-bottom: none;
}

.playlist-option-lyrics.new-playlist:hover {
  background: rgba(251, 140, 0, 0.15);
}

.playlist-option-lyrics i {
  opacity: 0.7;
}

.playlist-dropdown-lyrics::-webkit-scrollbar {
  width: 6px;
}

.playlist-dropdown-lyrics::-webkit-scrollbar-track {
  background: transparent;
}

.playlist-dropdown-lyrics::-webkit-scrollbar-thumb {
  background: rgba(251, 140, 0, 0.3);
  border-radius: 3px;
}

.playlist-dropdown-lyrics::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 140, 0, 0.5);
}

body.light-mode .playlist-dropdown-lyrics {
  background: var(--card-bg);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .playlist-option-lyrics {
  border-bottom-color: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

body.light-mode .playlist-option-lyrics:hover {
  background: rgba(251, 140, 0, 0.08);
}


/* AUTH PAGE UI UPDATE */
body.auth-layout:not(.light-mode) {
 background: radial-gradient(circle at top right, rgba(251, 140, 0, 0.14), transparent 28%), radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 34%), linear-gradient(160deg, #08101d 0%, #0e1628 50%, #131a2f 100%);
}
body.light-mode .login-box,
body.light-mode .register-box,
body.light-mode .auth-card,
body.light-mode .registration-card{
 background:#FFFDF8!important;
 border:1px solid #F3E8D0!important;
 border-radius:20px;
 box-shadow:0 20px 50px rgba(0,0,0,.15);
}
.auth-layout #header-title{color:#fff!important;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.3);}
body.light-mode #header-title {
  color: var(--text-main) !important;
}

/* Auth Page Text Visibility Fixes for Dark/Light Themes */
.auth-layout .auth-card h1, 
.auth-layout .auth-card h2, 
.auth-layout .registration-container h1 { color: #fff; }

.auth-layout .auth-footer, .auth-layout .auth-footer span, .auth-layout .auth-switch, .auth-layout .register-prompt, .auth-layout .login-prompt { color: var(--text-dim); }
body.light-mode .auth-footer, body.light-mode .auth-footer span, body.light-mode .auth-switch, body.light-mode .register-prompt, body.light-mode .login-prompt { color: #374151 !important; }

.auth-layout .auth-footer a, .auth-layout .auth-switch a, .auth-layout .register-prompt a, .auth-layout .login-prompt a { color: #E67E00 !important; font-weight: 700; }

.auth-layout .field label, .auth-layout .form-group label { color: var(--text-main); font-weight: 600; }
body.light-mode .field label, body.light-mode .form-group label { color: #374151 !important; }

/* Global Placeholder Visibility Fix */
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.45) !important; opacity: 1; }
body.light-mode input::placeholder, body.light-mode textarea::placeholder { color: #6b7280 !important; }
