@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0b0c10;
  --bg-secondary: #12131a;
  --bg-elevated: #1a1b28;
  --bg-card: rgba(18, 19, 26, 0.85);
  --bg-glass: rgba(26, 27, 40, 0.6);
  --accent-pink: #ec1c24;       /* Taegeuk Crimson Red from logo */
  --accent-blue: #0066ff;       /* Taegeuk Electric Blue from logo */
  --accent-violet: #8b5cf6;     /* Complementary violet */
  --accent-pink-glow: rgba(236, 28, 36, 0.35);
  --accent-blue-glow: rgba(0, 102, 255, 0.35);
  --accent-violet-glow: rgba(139, 92, 246, 0.35);
  --text-primary: #f0f2f5;
  --text-secondary: #8a8d9b;
  --text-hangeul: #ffffff;
  --text-romanization: #c4b5fd;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(236, 28, 36, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-pink: 0 0 30px rgba(236, 28, 36, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(0, 102, 255, 0.2);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease-out;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-korean: 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1440px;
  --content-width: 1200px;
  --sidebar-width: 300px;
}

/* =========================================
   1. Reset & Base
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-pink);
  color: #fff;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-pink);
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   2. Grain Overlay
========================================= */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.03;
  z-index: 9999;
  /* Simple CSS grain effect via multiple linear gradients */
  background-image: 
    repeating-linear-gradient(45deg, #000 0, #000 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(-45deg, #000 0, #000 1px, transparent 1px, transparent 4px);
  background-size: 4px 4px;
}

/* =========================================
   3. Typography
========================================= */
h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-glow {
  text-shadow: 0 0 15px var(--accent-pink-glow);
}

.text-accent-pink {
  color: var(--accent-pink);
}

.text-accent-blue {
  color: var(--accent-blue);
}

.text-accent-violet {
  color: var(--accent-violet);
}

/* =========================================
   4. Navigation (.navbar)
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 76px;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: 0.75rem;
}

.logo-img {
  height: 66px;
  max-height: 66px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.5));
}

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

.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-search {
  display: flex;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.5rem 0.25rem 1rem;
  border: 1px solid var(--border-subtle);
  align-items: center;
  position: relative;
}

.navbar-search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-body);
  width: 150px;
}

.navbar-search button {
  background: transparent;
  color: var(--accent-blue);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* User Auth Badge in Navbar */
.nav-auth-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-user-btn:hover {
  background: rgba(255, 45, 120, 0.15);
  border-color: var(--accent-pink);
}

.auth-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* Auth Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal-card {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-modal-close:hover {
  color: #ff2d78;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-google {
  background: #ffffff;
  color: #1a1a2e;
}
.btn-google:hover {
  background: #f0f0f5;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-twitter {
  background: #000000;
  color: #ffffff;
  border-color: #333333;
}
.btn-twitter:hover {
  background: #111111;
  border-color: #555555;
}

.btn-apple {
  background: #121212;
  color: #ffffff;
  border-color: #2a2a3a;
}
.btn-apple:hover {
  background: #1f1f2e;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   5. Hero Section (.hero)
========================================= */
.hero {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at center, var(--bg-elevated) 0%, var(--bg-primary) 100%);
  padding: 80px 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--accent-violet-glow) 0%, transparent 60%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  width: 100%;
}

.hero-card-layout {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-album-art {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow-pink);
  object-fit: cover;
  flex-shrink: 0;
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
}

.hero-album-art:hover {
  transform: rotate(0) scale(1.05);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.hero-tag {
  width: fit-content;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 0.5rem;
  line-height: 1.2;
  word-break: break-word;
}

.hero-title-kr {
  font-family: var(--font-korean);
  font-size: 1.2rem;
  color: var(--text-secondary);
}

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

.hero-btn {
  margin-top: 1rem;
  width: fit-content;
}

/* =========================================
   6. Song Cards (.song-card)
========================================= */
.song-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.song-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-pink);
  border-color: var(--border-glow);
}

.song-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.song-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.song-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
}

.song-card-artist {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.song-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* =========================================
   7. Tags/Badges (.tag)
========================================= */
.tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-pink {
  background-color: rgba(255, 45, 120, 0.1);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 45, 120, 0.2);
}

.tag-blue {
  background-color: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.tag-violet {
  background-color: rgba(168, 85, 247, 0.1);
  color: var(--accent-violet);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.tag-primary {
  background-color: rgba(255, 45, 120, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 45, 120, 0.3);
}

.text-secondary {
  color: var(--text-secondary);
}

/* =========================================
   8. Buttons (.btn)
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow-pink);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-secondary:hover {
  background-color: rgba(0, 212, 255, 0.1);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

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

/* =========================================
   9. Grid Layouts
========================================= */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* =========================================
   10. Artist Carousel (.artist-carousel)
========================================= */
.artist-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}

.artist-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.artist-card {
  flex-shrink: 0;
  text-align: center;
  width: 120px;
  text-decoration: none;
  color: inherit;
}

.artist-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  transition: all var(--transition-normal);
  margin: 0 auto;
}

.artist-card:hover .artist-avatar {
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-glow-pink);
}

.artist-name {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* =========================================
   11. Lyrics Page Styles
========================================= */
.song-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0;
}

.album-cover-large {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow-pink);
  object-fit: cover;
}

.song-info {
  padding-top: 1rem;
}

.song-title-kr {
  font-family: var(--font-korean);
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.youtube-embed {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
}

.youtube-embed iframe,
.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lyrics-container {
  max-width: 800px;
  margin-bottom: 4rem;
}

.lyrics-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 70px; /* Below navbar */
  z-index: 10;
  background-color: var(--bg-primary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.lyrics-section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-pink);
  margin: 2rem 0 1rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 45, 120, 0.08);
  border-radius: var(--radius-sm);
}

.lyrics-line {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  opacity: 1;
  transform: translateY(0);
}

.lyrics-line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color var(--transition-fast), border-color var(--transition-fast);
}

.lyrics-line:hover {
  background-color: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.06);
}

.lyrics-line.active {
  background-color: var(--bg-elevated);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.15);
}

.lyrics-hangeul {
  font-family: var(--font-korean);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-hangeul);
  line-height: 1.8;
}

.lyrics-romanization {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-romanization);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  transition: opacity var(--transition-fast);
}

.lyrics-romanization.hidden {
  display: none;
}

/* =========================================
   12. Sidebar Layout for Song Page
========================================= */
.song-page-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2rem;
}

.song-main {
  min-width: 0;
}

.song-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

/* =========================================
   13. Related Songs (.related-songs)
========================================= */
.related-songs {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

/* =========================================
   14. Ad Containers
========================================= */
.ad-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: 0;
  background: transparent;
  border: none;
}

.ad-zone:empty,
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

.ad-leaderboard {
  max-width: 100%;
  width: 100%;
  min-height: 0;
}

.ad-rectangle {
  width: 100%;
  max-width: 336px;
  min-height: 0;
}

.ad-skyscraper {
  width: 160px;
  min-height: 0;
}

.ad-native-card {
  width: 100%;
  min-height: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =========================================
   15. Footer (.footer)
========================================= */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col a {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* =========================================
   16. Animations
========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 120, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 120, 0.4); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* =========================================
   17. Responsive Design
========================================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .song-page-layout { grid-template-columns: 1fr; }
  .song-sidebar { display: none; } /* hide sidebar on tablet */
  .ad-skyscraper { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 1rem; }
  .navbar-links { display: none; } /* hidden, shown via mobile menu */
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .hero { min-height: auto; padding: 85px 0 2rem; }
  .hero-content { width: 100%; }
  .hero-card-layout { flex-direction: row; align-items: center; gap: 1.25rem; text-align: left; }
  .hero-album-art { width: 120px; height: 120px; border-radius: var(--radius-md); transform: rotate(0); }
  .hero-title { font-size: 1.35rem; margin-top: 0.2rem; }
  .hero-title-kr { font-size: 0.95rem; }
  .hero-artist { font-size: 0.9rem; }
  .hero-btn { margin-top: 0.5rem; padding: 0.5rem 1rem; font-size: 0.85rem; }
  .song-header { grid-template-columns: 1fr; text-align: center; }
  .album-cover-large { max-width: 200px; margin: 0 auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-leaderboard { width: 100%; height: auto; min-height: 60px; }
  .section { padding: 2rem 0; }
  .song-row, .artist-row { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-card-layout { gap: 1rem; }
  .hero-album-art { width: 105px; height: 105px; }
  .hero-title { font-size: 1.2rem; }
  .hero-tag { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
}

/* =========================================
   18. Utility Classes
========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.w-full { width: 100%; }

/* =========================================
   19. Search Results Overlay (.search-results)
========================================= */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  z-index: 100;
  margin-top: 0.5rem;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--bg-card);
}

/* Latest items hover */
.latest-item:hover {
  background-color: var(--bg-elevated) !important;
}

/* Hero decorations */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-decoration-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-pink-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-decoration-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

/* Artist card hover on carousel */
.artist-card:hover img {
  border-color: var(--accent-pink) !important;
  box-shadow: var(--shadow-glow-pink);
}

/* =========================================
   20. Mobile Menu (.mobile-menu)
========================================= */
.mobile-menu {
  position: fixed;
  top: 76px; /* Below navbar */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.mobile-menu a:last-child {
  border-bottom: none;
}
