/* ==========================================
   TamilPaatuLyrics Design System & CSS Styles
   ========================================== */

/* Design Tokens & CSS Variables */
:root {
  --font-primary: 'Outfit', 'Inter', sans-serif;
  --font-tamil: 'Noto Sans Tamil', 'Inter', sans-serif;
  
  /* Color Palette (Dark Theme Default - Midnight Emerald & Gold) */
  --bg-primary: #050a08;
  --bg-secondary: #0b1512;
  --bg-tertiary: #13241f;
  
  --text-primary: #f0fdfa;
  --text-secondary: #8f9d99;
  --text-muted: #5b6e68;
  
  --accent: #00f5b4; /* Radiant Electric Mint */
  --accent-glow: rgba(0, 245, 180, 0.15);
  --accent-gradient: linear-gradient(135deg, #00f5b4, #d4af37);
  --accent-secondary: #d4af37; /* Luxury Soft Gold */
  
  --border-color: rgba(0, 245, 180, 0.08);
  --glass-bg: rgba(11, 21, 18, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
  
  /* Column widths */
  --left-col-w: 200px;
  --right-col-w: 320px;
  --center-col-max-w: 720px;
  
  /* Theme-aware Singer Tokens (Dark Mode Default) */
  --female-text: #ffe4e6;
  --male-text: #f0fdfa;
  --female-bg: rgba(244, 114, 182, 0.02);
  --male-bg: rgba(96, 165, 250, 0.02);
  --female-border: rgba(244, 114, 182, 0.08) rgba(244, 114, 182, 0.08) rgba(244, 114, 182, 0.08) #f472b6;
  --male-border: rgba(96, 165, 250, 0.08) rgba(96, 165, 250, 0.08) rgba(96, 165, 250, 0.08) #60a5fa;
  --female-badge-bg: rgba(244, 114, 182, 0.08);
  --female-badge-text: #f472b6;
  --male-badge-bg: rgba(96, 165, 250, 0.08);
  --male-badge-text: #60a5fa;
}

/* Light Theme Variables */
body.light-mode {
  --bg-primary: #f2f5f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e1e7e5;
  
  --text-primary: #12201c;
  --text-secondary: #52635f;
  --text-muted: #80928e;
  
  --accent: #00875a; /* Deep Forest Jade */
  --accent-glow: rgba(0, 135, 90, 0.1);
  --accent-gradient: linear-gradient(135deg, #00875a, #b45309);
  
  --border-color: rgba(0, 135, 90, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 135, 90, 0.05);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  /* Theme-aware Singer Tokens (Light Mode Day Mode) */
  --female-text: #9d174d; /* Deep pink-rose */
  --male-text: #1e293b; /* Deep slate-grey */
  --female-bg: rgba(244, 114, 182, 0.04);
  --male-bg: rgba(96, 165, 250, 0.04);
  --female-border: rgba(244, 114, 182, 0.12) rgba(244, 114, 182, 0.12) rgba(244, 114, 182, 0.12) #db2777;
  --male-border: rgba(96, 165, 250, 0.12) rgba(96, 165, 250, 0.12) rgba(96, 165, 250, 0.12) #2563eb;
  --female-badge-bg: rgba(219, 39, 119, 0.1);
  --female-badge-text: #db2777;
  --male-badge-bg: rgba(37, 99, 235, 0.1);
  --male-badge-text: #2563eb;
}

/* Typography Theme Presets */
/* 1. Classic Serif (Default) */
body.font-preset-serif {
  --font-primary: 'Lora', 'Georgia', serif;
  --font-tamil: 'Noto Serif Tamil', 'Georgia', serif;
}
body.font-preset-serif .song-title,
body.font-preset-serif h1,
body.font-preset-serif h2,
body.font-preset-serif h3,
body.font-preset-serif .logo {
  font-family: 'Fraunces', 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
}

/* 2. Modern Sans */
body.font-preset-modern {
  --font-primary: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-tamil: 'Hind Madurai', 'Mukta Malar', sans-serif;
}
body.font-preset-modern .song-title,
body.font-preset-modern h1,
body.font-preset-modern h2,
body.font-preset-modern h3,
body.font-preset-modern .logo {
  font-family: 'Outfit', sans-serif;
}

/* 3. Clean Humanist */
body.font-preset-humanist {
  --font-primary: 'Inter', sans-serif;
  --font-tamil: 'Catamaran', 'Noto Sans Tamil', sans-serif;
}
body.font-preset-humanist .song-title,
body.font-preset-humanist h1,
body.font-preset-humanist h2,
body.font-preset-humanist h3,
body.font-preset-humanist .logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* --- Lean public build: hide not-yet-real features ---
   The mock audio player and the empty comments box are hidden until they are
   backed by real functionality. Remove these two rules to bring them back. */
.player-widget { display: none; }
.comments-section { display: none; }

/* Reset & Global Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Accessibility: visible keyboard focus ring (does not affect mouse users) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Navigation Bar (Glassmorphic) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: background-color var(--transition-normal), transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  cursor: pointer;
}

.logo-icon {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

img.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: none;
}

.logo-highlight {
  color: var(--accent);
}

.search-bar {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 200;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition-fast);
}

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

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

.search-result-item .sr-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-item .sr-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.search-no-result {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--text-secondary);
  background-color: var(--border-color);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #04150f; /* dark text for contrast on the light mint/gold gradient */
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 245, 180, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 180, 0.45);
}

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

/* --- Three-Column Page Grid Layout --- */
.page-grid {
  max-width: 1440px;
  margin: 70px auto 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: var(--left-col-w) 1fr var(--right-col-w);
  gap: 30px;
  position: relative;
  transition: padding var(--transition-slow);
}

/* Gutters (Sidebars) */
.gutter-col {
  height: max-content;
  position: relative;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.sticky-wrapper {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Widgets inside Gutters */
.widget-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.widget-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.live {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Mock Audio Player Widget */
.audio-player-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.album-spin-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.album-disk {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: diskSpin 20s linear infinite;
  animation-play-state: paused;
}

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

.disk-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background-color: var(--bg-primary);
  border: 4px solid var(--bg-secondary);
  border-radius: 50%;
}

.track-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.track-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-icon-sub {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.btn-play {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-play:hover {
  transform: scale(1.1);
}

.progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-container .time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.progress-bar-bg {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Safe Ad Containers */
.ad-container-vertical {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 auto;
}

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

.medium-rect-ad {
  width: 300px;
  height: 250px;
  min-height: 250px;
}

.half-page-ad {
  width: 300px;
  height: 450px;
  min-height: 450px;
}

.ad-placeholder {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.ad-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: auto 0;
}

.ad-icon {
  font-size: 2.2rem;
  color: var(--text-muted);
  opacity: 0.4;
}

.ad-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ad-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-ad-mock {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ad-mock:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Horizontal Banner Ad */
.ad-container-horizontal {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius-md);
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
}

.leaderboard-ad {
  min-height: 90px;
}

/* In-content responsive ad below the lyrics (reserves height to avoid layout shift) */
.incontent-ad {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  position: relative;
}

.incontent-ad .adsbygoogle {
  width: 100%;
}

/* "Advertisement" watermark shown while a slot is empty (before AdSense fills it).
   Once a real ad loads, the ad iframe sits on top and covers this label. */
.ad-container-vertical::before,
.incontent-ad::before {
  content: "Advertisement";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.45;
  pointer-events: none;
}

.ad-content-horizontal {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ad-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-badge-small {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-left strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.ad-left p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-ad-mock-horizontal {
  background-color: var(--accent);
  color: #04150f;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* --- CENTER COLUMN CONTENT: Song & Lyrics --- */
.lyrics-main-col {
  max-width: var(--center-col-max-w);
  width: 100%;
  margin: 0 auto;
}

/* Song Hero Card */
.song-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.25);
  transform: scale(1.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.poster-container {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.song-poster {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.poster-shadow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

.song-details-header {
  flex: 1;
}

.song-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge.category {
  background-color: var(--accent-glow);
  color: var(--accent);
}

.badge.year {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.song-title {
  font-family: var(--font-primary);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.tamil-title-sub {
  font-family: var(--font-tamil);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 8px;
}

.movie-line {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.movie-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* Metadata Compact Grid */
.metadata-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stream-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-stream {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-stream:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-stream.spotify { background-color: #1DB954; }
.btn-stream.apple { background-color: #FC3C44; }
.btn-stream.youtube { background-color: #FF0000; }
.btn-stream.caller {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Hero text stays light in BOTH themes.
   The hero background image is always dark (blurred + brightness 0.25), so in
   day mode the theme's dark text would otherwise become invisible on it. */
.song-hero-card .hero-content,
.song-hero-card .meta-val,
.song-hero-card .meta-val i {
  color: #f4fffb;
}

.song-hero-card .song-title {
  color: #ffffff;
}

.song-hero-card .tamil-title-sub {
  color: rgba(255, 255, 255, 0.82);
}

.song-hero-card .movie-line {
  color: rgba(255, 255, 255, 0.78);
}

.song-hero-card .movie-name {
  color: #ffffff;
}

.song-hero-card .meta-label {
  color: rgba(255, 255, 255, 0.55);
}

/* Year badge: light text on the translucent chip over the dark hero */
.song-hero-card .badge.year {
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

/* Lyrics Card Frame */
.lyrics-card-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transition-slow);
}

.lyrics-card-wrapper.focused-glow {
  box-shadow: 0 0 40px var(--accent-glow), var(--shadow-md);
  border-color: rgba(0, 245, 180, 0.25);
}

/* Controls Bar */
.lyrics-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.1);
}

.language-tabs {
  display: flex;
  background-color: var(--bg-primary);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background-color: var(--bg-secondary);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.display-utils {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-selector-container {
  display: flex;
  align-items: center;
}

.select-tool {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0 12px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-tool:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.select-tool option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.select-tool-nav {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0 16px;
  height: 38px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-tool-nav:hover {
  border-color: var(--accent);
}

.select-tool-nav option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-tool {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tool:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-tool-primary {
  background-color: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0, 245, 180, 0.25);
  padding: 0 14px;
  height: 32px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tool-primary:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-tool-primary.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Lyrics Content Viewport
   Note: lyrics flow naturally in the page so users read/scroll the whole
   song in one motion — no cramped inner scrollbar nested inside the page. */
.lyrics-viewport {
  padding: 30px;
  position: relative;
  /* User-controlled zoom scale, driven by the +/- buttons (see app.js) */
  --lyric-scale: 1;
}

.quote-helper-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: max-content;
}

/* Lyrics Content Tabs */
.lyrics-content-tab {
  display: none;
}

.lyrics-content-tab.active {
  display: block;
}

/* --- Clean Centered Verse Layout (simple, readable lyric-sheet style) --- */
.lyrics-verse {
  margin-bottom: 32px;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  position: relative;
}

/* Singer role shown as a bold inline prefix: "Female : ", "Male : " */
.singer-label {
  position: static;
  display: inline;
  width: auto;
  margin: 0 4px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: 'Work Sans', var(--font-primary);
  font-size: calc(1.2rem * var(--lyric-scale, 1));
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.singer-label::after {
  content: " :";
}

/* No gender icons in the clean reading layout */
.singer-label i {
  display: none;
}

/* Female / Male role colors (label only — lines stay in the readable body color) */
.lyrics-verse[data-singer="female"] .singer-label {
  color: var(--female-badge-text);
}

.lyrics-verse[data-singer="male"] .singer-label {
  color: var(--male-badge-text);
}

/* The first line of a verse sits inline right after the role label */
.lyrics-verse .lyrics-line:first-of-type {
  display: inline;
}

/* Side-by-side dual view uses the same centered look */
.dual-columns-container .lyrics-verse {
  padding: 0;
}

/* Individual Lyrics Lines (English script locked to Work Sans;
   Tamil lines are overridden to Noto Sans Tamil by the :lang(ta) rule below) */
.lyrics-line {
  font-family: 'Work Sans', var(--font-primary);
  font-size: calc(1.2rem * var(--lyric-scale, 1));
  font-weight: 500; /* Medium — clearer for reading without looking heavy */
  line-height: 1.85;
  letter-spacing: -0.01em;
  padding: 2px 10px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  user-select: none;
}

/* Tamil lines: matched by language so the rule works in every tab
   (English/Tamil/Bilingual) as long as a lang="ta" is on the line or an
   ancestor. Tamil needs a larger size + extra leading for stacked vowel marks. */
.lyrics-line:lang(ta),
#tab-tamil-content .lyrics-line {
  font-family: 'Noto Sans Tamil', var(--font-tamil);
  font-size: calc(1.3rem * var(--lyric-scale, 1));
  line-height: 2.1;
  letter-spacing: normal; /* Tamil should never be tracked */
}

/* Tamil role labels (e.g. "ஆண் - பல்லவி") also need the Tamil font */
.singer-label:lang(ta),
#tab-tamil-content .singer-label {
  font-family: 'Noto Sans Tamil', var(--font-tamil);
}

.lyrics-line:hover {
  background-color: rgba(0, 245, 180, 0.08);
  color: var(--text-primary);
}

.lyrics-line.highlighted-line {
  background-color: rgba(0, 245, 180, 0.15);
  color: var(--accent);
  font-weight: 600;
  position: relative; /* anchor for the share chip */
}

/* Inline "Share" chip — appears on the line the user selected, so reading is
   never interrupted by an auto-popup. The user opts in to sharing. */
.line-share-chip {
  position: absolute;
  top: -14px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #04150f;
  background: var(--accent);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  white-space: nowrap;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.line-share-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Dual Column Layout */
.dual-columns-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.dual-col-pane {
  display: flex;
  flex-direction: column;
}

.pane-lang-header {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* --- FAQ SECTION --- */
.faq-section {
  margin-top: 50px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

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

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 18px 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-header i {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

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

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.accordion-body p {
  padding-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- COMMENTS SECTION --- */
.comments-section {
  margin-top: 30px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.comments-section h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.comment-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-box textarea {
  width: 100%;
  height: 90px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  resize: none;
  transition: border-color var(--transition-fast);
}

.comment-box textarea:focus {
  border-color: var(--accent);
}

.btn-primary-small {
  background: var(--accent-gradient);
  color: #04150f;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  align-self: flex-end;
  cursor: pointer;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.comment-body {
  flex: 1;
}

.comment-body strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* --- SUGGESTIONS SIDEBAR --- */
.song-list-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mini-song-item:hover {
  background-color: var(--bg-tertiary);
}

.mini-song-item.inactive {
  opacity: 0.65;
}

.song-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mini-details {
  display: flex;
  flex-direction: column;
}

.mini-details strong {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.mini-details span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.recommendations-widget h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* --- INTERACTIVE SING-ALONG IMMERSIVE FOCUS MODE --- */
body.immersive-mode {
  /* Dim background color further */
  --bg-primary: #050608;
  --bg-secondary: #0a0c10;
}

body.immersive-mode .navbar {
  transform: translateY(-70px);
  opacity: 0;
  pointer-events: none;
}

body.immersive-mode .gutter-col {
  opacity: 0.04;
  pointer-events: none;
  transform: scale(0.97);
}

body.immersive-mode .faq-section,
body.immersive-mode .comments-section,
body.immersive-mode .footer,
body.immersive-mode .song-hero-card {
  opacity: 0.08;
  pointer-events: none;
}

body.immersive-mode .page-grid {
  margin-top: 30px;
}

/* Focus button toggle styling state */
#focus-mode-btn.active {
  background-color: var(--accent);
  color: white;
}

/* Quote Selection Helper overlay styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Quote Card Image Mock Preview */
.quote-card-preview {
  position: relative;
  border-radius: var(--radius-md);
  padding: 30px;
  color: #ffffff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.card-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 70%);
}

.card-quote-icon {
  font-size: 2.2rem;
  opacity: 0.15;
  position: absolute;
  top: 15px;
  right: 15px;
}

.quote-text-display {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.quote-source {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.source-info {
  display: flex;
  flex-direction: column;
}

.source-info strong {
  font-size: 0.8rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.source-info span {
  font-size: 0.68rem;
  opacity: 0.8;
}

.source-branding {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Theme selector in Quote Generator */
.card-controls {
  margin-top: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.color-options {
  display: flex;
  gap: 8px;
}

.color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast);
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.modal-footer {
  padding: 16px 24px;
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

/* --- FLOATING STRATEGY DRAWER/SIDEBAR --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 550px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active .drawer-content {
  right: 0;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-drawer {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0,0,0,0.15);
}

.drawer-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.drawer-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.01);
}

.drawer-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background-color: var(--bg-secondary);
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.drawer-tab-content {
  display: none;
}

.drawer-tab-content.active {
  display: block;
}

.strategy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.strategy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strategy-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.strategy-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.strategy-list blockquote {
  border-left: 3px solid var(--accent);
  background-color: rgba(0, 245, 180, 0.05);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.82rem;
}

.schema-box {
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #06070a;
  overflow: hidden;
}

.schema-header {
  padding: 10px 16px;
  background-color: rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.schema-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-copy-small {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-small:hover {
  color: var(--text-primary);
  background-color: rgba(255,255,255,0.05);
}

.schema-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  padding: 16px;
  color: #a78bfa;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

/* --- FOOTER --- */
.footer {
  margin-top: 80px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 30px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-about h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}

.footer-links h4,
.footer-legal h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links a,
.footer-legal a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet Layout (Hide Left Gutter, collapse to 2 columns) */
@media (max-width: 1200px) {
  :root {
    --left-col-w: 0px;
  }
  
  .page-grid {
    grid-template-columns: 1fr var(--right-col-w);
  }
  
  .left-gutter {
    display: none; /* In production, we shift the visualizer inline */
  }
}

/* Small Tablet (Hide Right Gutter, center content) */
@media (max-width: 900px) {
  :root {
    --right-col-w: 0px;
  }
  
  .page-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  
  .right-gutter {
    display: none;
  }
  
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .song-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .song-badges {
    justify-content: center;
  }
  
  .tamil-title-sub {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  
  .metadata-compact-grid {
    width: 100%;
  }
  
  .stream-buttons {
    justify-content: center;
  }
  
  .ad-content-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  
  .ad-left {
    flex-direction: column;
    align-items: center;
  }
  
  .dual-columns-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-about p {
    margin: 0 auto;
  }
}

/* Mobile Screen optimization */
@media (max-width: 600px) {
  .navbar {
    height: 60px;
  }
  
  .nav-container {
    padding: 0 16px;
  }
  
  .search-bar,
  .nav-links {
    display: none; /* Hide search and nav links on pure mobile layout */
  }
  
  .logo span {
    font-size: 1.2rem;
  }
  
  .page-grid {
    margin-top: 60px;
    padding: 16px 12px;
  }
  
  .hero-content {
    padding: 20px 16px;
  }
  
  .poster-container {
    width: 120px;
  }
  
  .song-title {
    font-size: 1.6rem;
  }
  
  .tamil-title-sub {
    font-size: 1.15rem;
  }
  
  .metadata-compact-grid {
    grid-template-columns: 1fr;
  }
  
  .lyrics-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  
  .language-tabs {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  
  .tab-btn {
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: center;
  }
  
  .display-utils {
    justify-content: space-between;
  }
  
  .lyrics-verse,
  .dual-columns-container .lyrics-verse {
    padding: 0;
    margin-bottom: 26px;
  }

  .singer-label,
  .dual-columns-container .singer-label {
    font-size: calc(1.05rem * var(--lyric-scale, 1));
  }
  
  .lyrics-viewport {
    padding: 20px 16px;
  }
  
  .lyrics-line {
    font-size: calc(1.05rem * var(--lyric-scale, 1));
    line-height: 1.75;
  }

  .lyrics-line:lang(ta),
  #tab-tamil-content .lyrics-line {
    font-size: calc(1.15rem * var(--lyric-scale, 1));
  }
  
  .quote-helper-tip {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .modal-card {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 90vh;
    position: absolute;
    bottom: 0;
  }
  
  .drawer-content {
    max-width: 100%;
  }
}
