/* ============================================================
   SongLyrics.com — theme.css
   Complete design system. Mobile-first. Single source of truth.
   ============================================================ */

/* --- Font Face --- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo2-400';
  src: url('/fonts/Exo2-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exo2-700';
  src: url('/fonts/Exo2-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/fonts/Literata.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  /* Core neutrals — Midnight Stage dark palette */
  --c-text: #e8e4df;
  --c-text-secondary: #787a7d;
  --c-bg: #0c1018;
  --c-surface: #0c1018;
  --c-border: #14161b;

  /* Brand + functional accents — Amber/Gold */
  --c-primary: #d4a053;
  --c-primary-hover: #e0b06a;
  --c-focus: #d4a053;
  --c-link: #d4a053;
  --c-link-hover: #e0b06a;

  /* Semantic */
  --c-success: #15803D;
  --c-warning: #B45309;
  --c-danger: #DC2626;

  /* Header/Footer — dark surface */
  --c-navy: #0c1018;
  --c-navy-light: #0f1520;
  --c-navy-mid: #14161b;

  /* Typography */
  --font-base: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-lyrics: 'Literata', 'Source Serif 4', Georgia, serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing (8dp rhythm) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* Layout */
  --max-width: 1200px;
  --sidebar-width: 300px;
  --content-width: calc(var(--max-width) - var(--sidebar-width) - 2rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-full: 9999px;

  /* Alternate/tertiary colors */
  --c-bg-alt: #0c1018;
  --c-primary-soft: #1a150f;
  --c-text-tertiary: #525457;
  --c-border-subtle: #111318;

  /* Section spacing */
  --section-sm: 32px;
  --section-md: 48px;
  --section-lg: 64px;

  /* Section band colors */
  --c-band-default: var(--c-surface);
  --c-band-alt: var(--c-bg-alt);

  /* Grid gaps */
  --grid-gap: 32px;
  --grid-gap-mobile: 24px;

  /* Typography extras */
  --ls-wide: 0.025em;
  --ls-wider: 0.05em;

  /* Motion */
  --duration-fast: 0.1s;
  --duration-normal: 0.2s;
  --duration-slow: 0.35s;
  --ease-out: cubic-bezier(0.25, 0, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.20);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.30);
}

/* Dark mode blocks and theme toggle removed — Midnight Stage is dark-only */

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


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-bg);
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-link);
  text-decoration: none;
}
a:hover {
  color: var(--c-link-hover);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-family: var(--font-heading);
  font-weight: 400;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-base); font-weight: 400; }

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.clear { clear: both; }


/* ============================================================
   REUSABLE COMPONENTS — Cards, Chips, Buttons, Focus
   ============================================================ */

/* Cards — Standard */
.card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card a {
  text-decoration: none;
  color: inherit;
}
.card a:hover {
  text-decoration: none;
}
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card:hover .card-img {
  transform: scale(1.06);
}
.card-body { padding: var(--s-4); }
.card-title { font-weight: 600; color: var(--c-text); }
.card-meta { color: var(--c-text-secondary); font-size: var(--text-sm); }

/* Card — Featured/Overlay */
.card-featured {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}
.card-featured .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card-featured:hover .card-img {
  transform: scale(1.06);
}
.card-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.card-featured .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s-6);
  color: #fff;
  z-index: 1;
}
.card-featured .card-content .card-title {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
}
.card-featured .card-content .card-meta {
  color: #d2d2d3;
}

/* Card — Compact/Horizontal */
.card-compact {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border-subtle);
}
.card-compact:last-child {
  border-bottom: none;
}
.card-compact img {
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.card-compact .card-title {
  font-size: var(--text-base);
  font-weight: 500;
}
.card-compact .card-meta {
  font-size: var(--text-sm);
}


/* Chips / Filter Pills — filled by default */
.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--c-bg-alt);
  color: var(--c-text);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}
.chip:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  text-decoration: none;
}
.chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
}
.chip.active:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #FFFFFF;
}

/* Overline label */
.overline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--c-text-tertiary);
  margin-bottom: var(--s-2);
}

/* Section band — full-bleed background zones for visual hierarchy */
.section-band {
  padding: var(--section-md) 0;
}
.section-band + .section-band {
  /* Prevent doubled padding between adjacent bands */
}

/* Section band — full-bleed alternate background */
.section-band-alt {
  background: var(--c-bg-alt);
  padding: var(--section-lg) 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  color: #FFFFFF;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.btn-secondary:hover { background: var(--c-bg); }
.btn-sm {
  padding: var(--s-1) var(--s-3);
  font-size: var(--text-xs);
}

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--c-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #14161b;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  line-height: 1;
  font-family: 'Exo2-400', 'Inter', sans-serif;
}
.logo .song {
  font-family: 'Exo2-700', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.logo .lyrics {
  font-family: 'Exo2-700', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #d4a053;
}
.logo .com {
  font-family: 'Exo2-400', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #525457;
  margin-left: 4px;
}
/* Logo colors set via inline styles in layout.php — always light-on-dark navy header */

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 0.75rem;
  display: flex;
}
.header-search form {
  display: flex;
  position: relative;
  width: 100%;
}
.header-search input[type="text"] {
  width: 100%;
  padding: 8px 40px 8px 14px;
  border: 1px solid #1a1c21;
  border-radius: var(--r-sm);
  background: #16181d;
  color: #fff;
  font-size: var(--text-sm);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}
.header-search input[type="text"]::placeholder {
  color: #525457;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.header-search input[type="text"]:focus {
  border-color: #564121;
  background: #1a1c21;
}
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 6px 8px;
  font-size: var(--text-lg);
  line-height: 1;
  display: flex;
  align-items: center;
}
.header-search button svg {
  width: 16px;
  height: 16px;
}

/* Desktop Nav */
.site-nav {
  display: none;
}
.site-nav ul {
  display: flex;
  gap: 0;
}
.site-nav a {
  display: block;
  color: #858789;
  font-size: 13px;
  font-weight: 500;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: #14161b;
  text-decoration: none;
}

/* Hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--c-navy);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 70px 1.5rem 2rem;
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}
.mobile-drawer-overlay.open {
  display: block;
}
.mobile-drawer .mobile-search {
  margin-bottom: 1.5rem;
}
.mobile-drawer .mobile-search form {
  display: flex;
}
.mobile-drawer .mobile-search input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--c-navy-mid);
  color: #fff;
  font-size: var(--text-base);
  outline: none;
}
.mobile-drawer .mobile-search input[type="text"]::placeholder {
  color: #9ca3af;
}
.mobile-drawer .mobile-search button {
  padding: 10px 14px;
  border: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-primary);
  color: #fff;
  cursor: pointer;
  font-size: var(--text-base);
}
/* Drawer nav sections */
.mobile-drawer .drawer-section {
  border-bottom: 1px solid var(--c-navy-mid);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-2);
}
.mobile-drawer .drawer-section:last-child {
  border-bottom: none;
}
.mobile-drawer .drawer-section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: var(--s-2) 0 var(--s-1);
}
.mobile-drawer nav a {
  display: block;
  color: #ccc;
  font-size: var(--text-lg);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-navy-mid);
  text-decoration: none;
}
.mobile-drawer nav a:last-child {
  border-bottom: none;
}
.mobile-drawer nav a:hover {
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   MASTHEAD AD
   ============================================================ */
.sl-masthead {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}


/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--s-3) 1rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: var(--text-sm);
  color: #525457;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "\203A";
  margin: 0 var(--s-2);
  color: #525457;
  opacity: 0.5;
}
.breadcrumbs a {
  color: #5e6063;
}
.breadcrumbs a:hover {
  color: var(--c-link);
  text-decoration: underline;
}
.breadcrumbs .current {
  color: #858789;
  font-weight: 500;
}


/* ============================================================
   MAIN LAYOUT — Two-Column
   ============================================================ */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-main {
  width: 100%;
  min-width: 0;
}

.content-sidebar {
  width: 100%;
}


/* ============================================================
   PAGE TITLES
   ============================================================ */
.page-title {
  margin-bottom: 0.25rem;
}
.page-title h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}
.page-subtitle {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  margin-bottom: 1rem;
}
.page-subtitle a {
  color: var(--c-link);
}


/* ============================================================
   SONG HERO
   ============================================================ */
.song-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0f1520 0%, #0a0c12 60%, #0d0f16 100%);
  border-bottom: 1px solid #14161b;
  /* Break out of page-wrapper to go full-width */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
/* Noise texture overlay */
.song-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
/* Amber gradient bottom line */
.song-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(212,160,83,0.35) 30%, rgba(212,160,83,0.35) 70%, transparent 95%);
  z-index: 2;
}
.song-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0 22px;
}
.hero-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.hero-art img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: brightness 0.15s ease;
}
a.hero-art:hover img {
  filter: brightness(1.15);
}
.hero-art svg {
  border-radius: 8px;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.hero-meta {
  font-size: 13px;
  color: #787a7d;
}
.hero-meta a {
  color: var(--c-link);
  text-decoration: none;
}
.hero-meta a:hover {
  color: var(--c-link-hover);
  text-decoration: underline;
}
.genre-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: #2a2115;
  color: #d4a053;
  text-decoration: none;
}
.genre-badge:hover {
  background: #3a3125;
  text-decoration: none;
  color: #d4a053;
}

/* Breadcrumbs inside hero */
.song-hero .breadcrumbs {
  max-width: none;
  padding: 14px 0 0;
  margin: 0;
}
.song-hero .breadcrumbs ol {
  font-size: 12px;
  color: #525457;
}
.song-hero .breadcrumbs a {
  color: #5e6063;
}
.song-hero .breadcrumbs a:hover {
  color: #a07a3d;
}
.song-hero .breadcrumbs .current {
  color: #6b6d70;
  font-weight: 400;
}
.song-hero .breadcrumbs li + li::before {
  content: "\203A";
  color: #6b6d70;
  opacity: 1;
}


/* ============================================================
   SONG PAGE — Lyrics
   ============================================================ */
#songLyricsDiv-outer {
  max-width: 65ch;
}

#songLyricsDiv,
.lyrics-body {
  font-family: var(--font-lyrics);
  font-size: 1.15rem;
  line-height: 1.85;
  word-wrap: break-word;
  max-width: 65ch;
  color: #cdc9c5;
  padding: 20px 0 20px 20px;
  border-left: 2px solid #1f1913;
  font-optical-sizing: auto;
  background: transparent;
  box-shadow: none;
}

.lyrics-header {
  margin-bottom: 1rem;
}
.lyrics-header .song-info {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}
.lyrics-header .song-info a {
  color: var(--c-link);
}

/* About This Song section */
.song-about {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}
.song-about h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--s-2) 0;
  color: var(--c-text);
}
.song-about p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-text-secondary);
  margin: 0;
}

/* Sticky header removed — Midnight Stage design */




/* ============================================================
   SIDEBAR COMPONENTS
   ============================================================ */
.sidebar-section {
  margin-bottom: 0;
  padding: 24px 0 20px;
  border-top: 2px solid #d4a053;
}
.sidebar-section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.sidebar-list {
  padding: 0;
}
.sidebar-list li {
  border-bottom: none;
}
.sidebar-list a {
  color: #858789;
  font-size: 13px;
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-list a:hover {
  color: #fff;
  border-left-color: #d4a053;
  padding-left: 16px;
  background: #0f0e0c;
  text-decoration: none;
}
.sidebar-list a.current {
  color: #d4a053;
  font-weight: 600;
  border-left-color: #d4a053;
}
.sidebar-list .song-meta {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
  display: block;
}
.viewall {
  display: block;
  padding: var(--s-3) 0;
  font-size: var(--text-sm);
  color: var(--c-link);
  text-align: right;
}


/* ============================================================
   ALBUM CARDS — Artist Page
   ============================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.album-card {
  text-align: center;
}
.album-card a {
  display: block;
  color: var(--c-text);
  text-decoration: none;
}
.album-card a:hover {
  text-decoration: none;
}
.album-card a:hover .album-card-title {
  color: var(--c-link);
}
.album-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--c-bg);
}
.album-card-title {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--s-2);
  line-height: 1.3;
  transition: color 0.15s;
}
.album-card-year {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
}

/* Missing album cover fallback */
.album-cover-fallback {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-navy-light), var(--c-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.album-cover-fallback svg {
  opacity: 0.6;
}

/* Artist header gradient band */
.artist-header-band {
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-light));
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: var(--section-md) calc(50vw - 50%);
  color: #fff;
}
.artist-header-band .page-title h1 {
  color: #fff;
  font-weight: 800;
}
.artist-header-band .page-subtitle {
  color: #b8b9bb;
}
.artist-header-band .page-subtitle a {
  color: #ebebec;
}
.artist-header-band .overline {
  color: #858789;
}

/* Artist bio */
.artist-bio {
  max-width: 680px;
  line-height: 1.7;
}


/* ============================================================
   TRACKLIST TABLE — Song list, Album tracklist, Genre, Tops
   ============================================================ */
.tracklist {
  width: 100%;
}
.tracklist tr {
  border-bottom: 1px solid var(--c-border-subtle);
  transition: background 0.1s;
}
.tracklist tr:last-child {
  border-bottom: none;
}
.tracklist tr:hover {
  background: var(--c-bg);
}
.tracklist td {
  padding: var(--s-3) var(--s-2);
  vertical-align: middle;
}

.tracklist .td-iter,
.tracklist .td-iter-big {
  width: 40px;
  text-align: center;
  color: var(--c-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.tracklist .td-iter-big {
  font-size: var(--text-xl);
}
.tracklist .td-iter-accent {
  color: var(--c-primary);
  font-weight: 700;
}
.tracklist .td-iter-big.td-iter-accent {
  font-size: var(--text-2xl);
}

.tracklist .td-item {
  padding: var(--s-3) var(--s-2);
}
.tracklist .td-item h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin: 0;
}
.tracklist .td-item h3 a {
  color: var(--c-text);
}
.tracklist .td-item h3 a:hover {
  color: var(--c-link);
  text-decoration: none;
}
.tracklist .td-item span {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}
.tracklist .td-item .rating-info {
  color: var(--c-primary);
  font-weight: 500;
}

.tracklist .td-item img,
.tracklist .tiny-img {
  border-radius: var(--r-sm);
}
.tracklist .td-item img.album {
  border-radius: var(--r-sm);
}

/* Current track highlight (album page) */
.tracklist tr.current-track {
  background: color-mix(in srgb, var(--c-primary) 8%, transparent);
}

/* No-lyrics track grayout */
.track-no-lyrics { opacity: 0.45; color: #858789; }

/* Separator between ordered and unordered tracks (album table) */
.tracklist tr.tracklist-separator td {
  padding: var(--s-1) 0;
  border-bottom: none;
}
.tracklist tr.tracklist-separator td::after {
  content: '';
  display: block;
  border-top: 1px dashed var(--c-text-secondary);
  opacity: 0.3;
}

/* Bonus tracks heading between ordered and unordered tracks (sidebar list) */
li.tracklist-bonus-heading {
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff;
  padding: var(--s-3) 0 0;
  margin: 0 0 16px;
  border-bottom: none !important;
}

/* Sidebar tracklist layout */
.sidebar-tracklist li:not(.tracklist-bonus-heading) {
  display: flex;
  align-items: baseline;
}
.sidebar-tracklist li:not(.tracklist-bonus-heading) a,
.sidebar-tracklist li:not(.tracklist-bonus-heading) .track-no-lyrics {
  flex: 1;
  min-width: 0;
}
.sidebar-tracklist .tracklist-bonus-heading ~ li:not(.tracklist-bonus-heading) {
  padding-left: 1.8em;
}
.track-num {
  color: var(--c-text-secondary);
  font-size: var(--text-sm);
  min-width: 1.8em;
  display: inline-block;
  flex-shrink: 0;
}
.track-no-lyrics {
  font-size: 13px;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
}


/* ============================================================
   ARTIST ROW — A-Z Browse (char.php) — Card row layout
   ============================================================ */
.artist-list {
  display: flex;
  flex-direction: column;
}
.artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border-subtle);
  transition: background 0.1s;
}
.artist-row:last-child {
  border-bottom: none;
}
.artist-row:hover {
  background: var(--c-bg-alt);
}
.artist-row a {
  color: var(--c-text);
  font-weight: 500;
}
.artist-row a:hover {
  color: var(--c-link);
  text-decoration: none;
}
.artist-row-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.artist-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.artist-row .artist-row-meta {
  color: var(--c-text-secondary);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Legacy artist-table (keep for compatibility) */
.artist-table {
  width: 100%;
}
.artist-table thead th {
  text-align: left;
  padding: var(--s-3) var(--s-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-secondary);
  border-bottom: 2px solid var(--c-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.artist-table tbody tr {
  border-bottom: 1px solid var(--c-border);
}
.artist-table tbody tr:hover {
  background: var(--c-bg);
}
.artist-table tbody tr.even {
  background: color-mix(in srgb, var(--c-text) 2%, transparent);
}
.artist-table td {
  padding: var(--s-3) var(--s-3);
  font-size: var(--text-base);
}
.artist-table td a {
  color: var(--c-text);
  font-weight: 500;
}
.artist-table td a:hover {
  color: var(--c-link);
}
.artist-table .item-meta {
  color: var(--c-text-secondary);
  font-size: var(--text-sm);
}


/* ============================================================
   A-Z LETTER NAVIGATION
   ============================================================ */
.az-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin: 1rem 0;
}
.az-links a,
.az-links .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.az-links a {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.az-links a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}
.az-links .current {
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
}

/* Prefix filter chip row */
.prefix-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
ul.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  margin: 1.5rem 0;
  padding: 0;
}
.pagination a,
.pagination .current,
.pagination .li_pagination a,
.pagination .li_pagination,
.li_pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pagination a,
.li_pagination a {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.pagination a:hover,
.li_pagination a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}
.pagination .current,
.li_pagination.active {
  background: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
  font-weight: 700;
}
.li_pagination.dots {
  border: none;
  color: var(--c-text-secondary);
}
.pagination span:not(.current) {
  color: var(--c-text-secondary);
  padding: 0 var(--s-1);
}


/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-form {
  margin-bottom: 1.5rem;
}
.search-form form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.search-form .search-wide,
.search-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: var(--s-3) var(--s-4);
  height: 48px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-lg);
  outline: none;
  transition: border-color 0.15s;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.search-form .search-wide:focus,
.search-form input[type="text"]:focus {
  border-color: var(--c-primary);
}
.search-form .search-btn,
.search-form button[type="submit"] {
  padding: var(--s-3) var(--s-6);
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.search-form .search-btn:hover,
.search-form button[type="submit"]:hover {
  background: var(--c-primary-hover);
}

/* Filter chips (CSS-only: hidden checkbox + chip label) */
.search-form .filters {
  width: 100%;
}
.search-form .filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-2) 0;
}
.search-form .filters li {
  display: inline-flex;
}
.search-form .filters label {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 0;
}
.search-form .filters label:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.search-form .filters input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.search-form .filters label:has(input:checked) {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFFFFF;
}

.search-results {
  font-weight: 600;
  margin: var(--s-3) 0;
  color: var(--c-text-secondary);
  font-size: var(--text-sm);
}

/* Search result rows */
.serpresult {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-border-subtle);
  transition: background var(--duration-fast);
}
.serpresult:last-of-type {
  border-bottom: none;
}
.serpresult:hover {
  background: var(--c-bg-alt);
}
.serpresult .imgserp {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.serpresult h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--s-1);
}
.serpresult h3 a {
  color: var(--c-text);
}
.serpresult h3 a:hover {
  color: var(--c-link);
}
.serpdesc-2 {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}
.serpdesc-2 a {
  color: var(--c-link);
}
.serplyrics {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  margin-top: var(--s-1);
  opacity: 0.8;
}
.no-results {
  color: var(--c-text-secondary);
  padding: 2rem 0;
  font-size: var(--text-base);
}

/* Widen search results area */
.coltwo-wide-2 {
  width: 100%;
}

/* Smart top results — artist + album cards above song results */
.smart-results-section {
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}
.smart-results-section .overline {
  margin-bottom: var(--s-3);
}
.smart-artist-list {
  display: flex;
  flex-direction: column;
}
.smart-artist-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.smart-artist-card:hover {
  background: var(--c-bg-alt);
  text-decoration: none;
}
.smart-artist-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
}
.smart-artist-fallback {
  width: 60px;
  height: 60px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-navy-light), var(--c-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}
.smart-artist-info .card-title {
  font-size: var(--text-base);
  font-weight: 600;
}
.smart-artist-info .card-meta {
  font-size: var(--text-sm);
}
.smart-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--s-4);
}


/* ============================================================
   HOMEPAGE
   ============================================================ */
.search-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-light));
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-bottom: 0;
}
.search-hero h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}
.search-hero p {
  color: #b8b9bb;
  margin-bottom: 1.5rem;
  font-size: var(--text-lg);
}
.search-hero form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
}
.search-hero input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #272a30;
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-size: var(--text-lg);
  outline: none;
  background: #1e2027;
  color: #fff;
}
.search-hero input[type="text"]::placeholder {
  color: #858789;
}
.search-hero input[type="text"]:focus {
  border-color: var(--c-primary);
  background: #272a30;
}
.search-hero button {
  padding: 14px 28px;
  background: var(--c-primary);
  color: #fff;
  border: 2px solid var(--c-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.search-hero button:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

/* Homepage section — open layout (no card wrapper) */
.homepage-section-open {
  padding: 0;
  margin-bottom: 0;
}
.homepage-section-open h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Legacy homepage-section (keep for compat) */
.homepage-section {
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.homepage-section h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-border);
}

/* Trending songs card grid — featured + standard */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-mobile);
}
.trending-grid .card {
  text-align: center;
}
.trending-grid .card-body {
  padding: var(--s-3);
}
.trending-grid .card-title {
  font-size: var(--text-sm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-grid .card-meta {
  font-size: var(--text-xs);
  margin-top: var(--s-1);
}
.trending-grid .card-rank {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  background: var(--c-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.trending-grid .card .card-img-wrap {
  position: relative;
}

/* Cover fallback — replaces album-nophoto.gif for cards */
.cover-fallback {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-navy-light), var(--c-navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.cover-fallback svg {
  opacity: 0.5;
}
.card-featured .cover-fallback {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: var(--r-lg);
}

/* News compact list (homepage) */
.news-compact-list {
  display: flex;
  flex-direction: column;
}
.news-compact-list .card-compact h3 {
  margin-bottom: var(--s-1);
}
.news-compact-list .card-compact h3 a {
  color: var(--c-text);
}
.news-compact-list .card-compact h3 a:hover {
  color: var(--c-link);
  text-decoration: none;
}

/* On This Day in Music (homepage) */
.on-this-day-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.on-this-day-item {
  padding: var(--s-3);
  background: var(--c-surface);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-primary);
}
.on-this-day-artist {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.on-this-day-artist a {
  color: var(--c-link);
  text-decoration: none;
}
.on-this-day-artist a:hover {
  text-decoration: underline;
}
.on-this-day-blurb {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Genre chip grid (homepage) */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Legacy seo-section (still used in genre page etc) */
.seo-section {
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.seo-section h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-border);
}

/* Legacy genre-grid */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-2);
}
.genre-grid a {
  display: block;
  padding: var(--s-3) var(--s-3);
  background: var(--c-bg);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.genre-grid a:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
}

/* Homepage news module */
.news-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.news-card {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: box-shadow 0.15s;
}
.news-card:hover {
  box-shadow: var(--shadow-sm);
}
.news-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.news-card h3 a {
  color: var(--c-text);
}
.news-card h3 a:hover {
  color: var(--c-link);
}
.news-card .news-card-meta {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}


/* ============================================================
   GENRE PAGE
   ============================================================ */
.genre-dropdown {
  margin-bottom: 1rem;
}
.genre-dropdown select {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: var(--text-base);
  color: var(--c-text);
  cursor: pointer;
}
.genre-stats {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  margin-bottom: 1rem;
}

/* Genre chip row */
.genre-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: 1.5rem;
}

/* Page title inline form/select (genre page etc.) */
.page-title h1.selectbox {
  display: inline;
}
.page-title form {
  margin: 0.5rem 0 1rem;
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}
.page-title select {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: var(--text-sm);
  color: var(--c-text);
}


/* ============================================================
   ALBUM PAGE — Hero
   ============================================================ */
.album-hero {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.album-hero-img {
  width: 160px;
  height: 160px;
  border-radius: var(--r-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.album-hero-info h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--s-1);
}
.album-hero-info .album-meta {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
}
.album-hero-info .album-meta p {
  margin-bottom: var(--s-1);
}
.album-hero-info .album-meta a {
  color: var(--c-link);
}


/* ============================================================
   CONTENT PAGE (About, Privacy, etc.)
   ============================================================ */
.content-body {
  line-height: 1.8;
  font-size: var(--text-base);
  max-width: 680px;
}
.content-body h2 {
  font-size: var(--text-2xl);
  margin: 2rem 0 0.75rem;
}
.content-body h3 {
  font-size: var(--text-lg);
  margin: 1.5rem 0 0.5rem;
}
.content-body p {
  margin-bottom: 1rem;
}
.content-body ul,
.content-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
}
.content-body ul {
  list-style: disc;
}
.content-body ol {
  list-style: decimal;
}
.content-body li {
  margin-bottom: 0.25rem;
}
.content-body a {
  color: var(--c-link);
}
.content-body a:hover {
  text-decoration: underline;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 36rem;
}
.contact-form .form-group {
  margin-bottom: var(--s-4);
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-1);
  font-size: var(--text-sm);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px #1f1913;
}
.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}
.contact-success {
  background: var(--c-surface);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
  color: var(--c-text);
}
.contact-errors {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  color: #fca5a5;
}
.contact-errors ul {
  margin: 0;
  padding-left: var(--s-4);
}
.contact-errors li {
  margin-bottom: var(--s-1);
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 {
  font-size: var(--text-4xl);
  color: var(--c-primary);
  margin-bottom: 0.5rem;
}
.error-page p {
  color: var(--c-text-secondary);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
}
.error-page .search-form {
  max-width: 500px;
  margin: 0 auto 2rem;
}
.error-page .browse-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}


/* ============================================================
   AD CONTAINERS
   Preserve all slot IDs. Styled containers with reserved heights.
   ============================================================ */

/* Ad slot containers — no reserved height; ads size themselves */
.sl-slot {
  text-align: center;
  overflow: hidden;
}
.sl-slot-sidebar {
  max-width: 300px;
}

/* Mobile ad containers (currently unused — placeholder for future) */
.sl-mobile {
  display: none;
  text-align: center;
  margin: 1rem 0;
}

/* Mobile anchor ad — fixed bottom */
.sl-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  text-align: center;
  padding: var(--s-2);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}
.sl-anchor-close {
  position: absolute;
  top: -28px;
  right: var(--s-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text-secondary);
}
#sl-anchor-slot {
  min-height: 50px;
}

/* PubGalaxy ad slot IDs — spacing */
/* 728x90_ATF: masthead leaderboard */
#div-gpt-ad-songlyricscom37728 {
  margin: 0 auto;
}
/* 300x250_Top_RSB: sidebar first (song) / sidebar top (non-song) */
#div-gpt-ad-songlyricscom37730 {
  margin: 0 auto;
}
/* 300x250: song sidebar second */
#div-gpt-ad-songlyricscom37731 {
  margin: 0.5rem auto;
}
/* 300x600_RSB: sidebar tall */
#div-gpt-ad-songlyricscom37732 {
  margin: 0.5rem auto;
}
/* 300x250_ATF: non-song sidebar top */
#div-gpt-ad-songlyricscom37733 {
  margin: 0 auto;
}
/* 300x250 Mobile: mobile slot */
#div-gpt-ad-songlyricscom37735 {
  margin: 0 auto;
}


/* ============================================================
   NEWS PAGES
   ============================================================ */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: 1.5rem;
}
.news-categories a {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--c-surface);
  color: var(--c-text);
  transition: all 0.15s ease;
}
.news-categories a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}
.news-categories a.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  text-decoration: none;
}

.news-item {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-border-subtle);
}
.news-item:last-child {
  border-bottom: none;
}
.news-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--s-1);
}
.news-item h3 a {
  color: var(--c-text);
}
.news-item h3 a:hover {
  color: var(--c-link);
}
.news-item .news-meta {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
  margin-bottom: var(--s-2);
}
.news-item .news-summary {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  line-height: 1.6;
}
.news-item .news-source-link {
  font-size: var(--text-xs);
  color: var(--c-link);
  margin-top: var(--s-1);
  display: inline-block;
}

/* Article page */
.news-article {
  line-height: 1.8;
  max-width: 680px;
}
.news-article-meta {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-subtle);
}
.news-attribution {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  border-left: 3px solid var(--c-primary);
}
.writer-bio {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--c-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-subtle);
}
.writer-bio-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.writer-bio p {
  font-size: var(--text-sm);
  color: var(--c-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* "In the Know" sidebar widget */
.sidebar-news .news-brief {
  padding: 0;
  border-bottom: none;
}
.sidebar-news .news-brief a {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.35;
  color: #9fa0a2;
  padding: 10px 0 10px 12px;
}
.sidebar-news .news-brief a:hover {
  color: #fff;
}
.sidebar-news .news-brief .news-brief-date {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
  display: block;
  margin-top: 2px;
}


/* ============================================================
   TAG PAGE
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 1rem 0;
}
.tag-cloud a,
.tag-cloud li a {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: var(--text-sm);
  transition: all 0.15s ease;
}
.tag-cloud a:hover,
.tag-cloud li a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}
.tag-cloud li {
  display: inline-flex;
}
/* Remove legacy size classes — all tags now uniform chip style */
.tag-cloud .s1, .tag-cloud .s2, .tag-cloud .s3,
.tag-cloud .s4, .tag-cloud .s5, .tag-cloud .s6,
.tag-cloud .s7, .tag-cloud .s8, .tag-cloud .s9,
.tag-cloud .s10 {
  display: inline-flex;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0c1018;
  color: #ccc;
  margin-top: 2rem;
  border-top: 1px solid #16181d;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 24px;
}

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

.footer-col h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-col ul li {
  margin-bottom: var(--s-2);
}
.footer-col a {
  color: #6b6d70;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #d4a053;
  text-decoration: none;
}

/* Footer A-Z browse links */
.footer-az {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.footer-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  color: #6b6d70;
  font-size: var(--text-xs);
  font-weight: 600;
}
.footer-az a:hover {
  color: #d4a053;
  background: #171310;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #16181d;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.footer-copyright {
  font-size: 12px;
  color: #3b3d42;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.footer-links a {
  font-size: 11px;
  color: #3b3d42;
}
.footer-links a:hover {
  color: #d4a053;
}


/* Song page specific */
#songLyricsContainer,
#songLyricsDiv-outer {
  padding: 0;
}




/* ============================================================
   CARD HERO — Reusable overlay card (#8)
   ============================================================ */
.card-hero {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}
.card-hero .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card-hero:hover .card-img {
  transform: scale(1.06);
}
.card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.card-hero .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s-6);
  color: #fff;
  z-index: 1;
}
.card-hero .card-content .card-title {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
}
.card-hero .card-content .card-meta {
  color: #d2d2d3;
}
/* Size variants */
.card-hero-sm { min-height: 200px; }
.card-hero-md { min-height: 300px; }
.card-hero-lg { min-height: 400px; }


/* ============================================================
   ROW COMPACT — Numbered list with optional thumbnail (#9)
   ============================================================ */
.row-compact {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border-subtle);
  transition: background 0.1s;
}
.row-compact:last-child {
  border-bottom: none;
}
.row-compact:hover {
  background: var(--c-bg-alt);
}
.row-compact-rank {
  width: 28px;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-text-secondary);
  flex-shrink: 0;
}
.row-compact-rank.accent {
  color: var(--c-primary);
  font-size: var(--text-lg);
}
.row-compact-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.row-compact-body {
  flex: 1;
  min-width: 0;
}
.row-compact-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-compact-title a {
  color: inherit;
}
.row-compact-title a:hover {
  color: var(--c-link);
  text-decoration: none;
}
.row-compact-meta {
  font-size: var(--text-xs);
  color: var(--c-text-secondary);
}




/* ============================================================
   MOBILE ANCHOR AD (#10)
   ============================================================ */
.sl-anchor {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  text-align: center;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
  padding: var(--s-2);
}
.sl-anchor-inner {
  max-width: 728px;
  margin: 0 auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sl-anchor-close {
  position: absolute;
  top: -20px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sl-anchor-close:hover {
  background: var(--c-bg-alt);
}
/* Reserve bottom padding when anchor is visible */
body.has-anchor {
  padding-bottom: 70px;
}


/* ============================================================
   HOMEPAGE COVER FALLBACK — Styled placeholder for missing covers (#1)
   ============================================================ */
.cover-fallback {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy-light), var(--c-navy-mid));
  color: #525457;
  border-radius: var(--r-md);
}
.cover-fallback svg {
  opacity: 0.5;
}
/* Featured card cover fallback */
.card-featured .cover-fallback {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS — Mobile First
   ============================================================ */

/* 768px — Tablet: Show desktop nav, two-column layout */
@media (min-width: 768px) {
  .header-search {
    margin: 0 1.5rem;
  }
  .site-nav {
    display: block;
  }
  .hamburger {
    display: none;
  }

  .page-content {
    flex-direction: row;
  }
  .content-main {
    flex: 1;
    min-width: 0;
  }
  .content-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
  }

  /* Trending grid — 4 columns on tablet+ */
  .trending-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
  }

  /* Footer columns — 4 across on tablet+ */
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Mobile ad hidden */
  .sl-mobile { display: none !important; }

}

/* 1024px — Desktop: Wider layout */
@media (min-width: 1024px) {
  .album-hero-img {
    width: 200px;
    height: 200px;
  }
}


/* Max 767px — Mobile overrides */
@media (max-width: 767px) {
  .site-header-inner {
    height: 48px;
  }
  .logo .song,
  .logo .lyrics {
    font-size: 18px;
  }
  .logo .com {
    font-size: 10px;
  }

  /* Song hero mobile */
  .hero-art {
    width: 56px;
    height: 56px;
  }
  .hero-art img {
    width: 56px;
    height: 56px;
  }
  .hero-text h1 {
    font-size: 1.2rem;
  }
  /* Mobile ads visible */
  .sl-mobile {
    display: block;
  }

  /* Mobile anchor ad visible */
  .sl-anchor {
    display: block;
  }

  /* Masthead ads — mobile size */
  .sl-masthead {
    padding: var(--s-2) 1rem;
  }
  /* Masthead leaderboard: constrain on mobile */
  #div-gpt-ad-songlyricscom37728 {
    max-width: 320px;
  }

  /* Stack search hero */
  .search-hero h1 {
    font-size: var(--text-2xl);
  }
  .search-hero p {
    font-size: var(--text-base);
  }
  .search-hero form {
    flex-direction: column;
  }
  .search-hero input[type="text"] {
    border-right: 2px solid #272a30;
    border-radius: var(--r-md);
    margin-bottom: var(--s-2);
  }
  .search-hero input[type="text"]:focus {
    border-color: var(--c-primary);
  }
  .search-hero button {
    border-radius: var(--r-md);
    width: 100%;
    justify-content: center;
  }


  /* Album hero stacks on mobile */
  .album-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Genre chip row horizontal scroll on mobile */
  .genre-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--s-2);
  }
  .genre-chip-row::-webkit-scrollbar {
    display: none;
  }

  /* A-Z links smaller */
  .az-links a,
  .az-links .current {
    width: 30px;
    height: 30px;
    font-size: var(--text-xs);
  }

  /* Pagination wraps */
  .pagination,
  ul.pagination {
    justify-content: center;
  }

  /* Sidebar ad hide skyscraper */
  #sidebar-left,
  #sidebar-left-2 {
    display: none;
  }

  /* Song page lyrics — slightly smaller on mobile */
  #songLyricsDiv,
  .lyrics-body {
    padding-left: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* Tracklist smaller images */
  .tracklist .td-item img.album {
    width: 60px;
    height: 60px;
  }

  /* Genre grid fewer columns */
  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Smart results mobile */
  .smart-album-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
  .smart-artist-card img,
  .smart-artist-fallback {
    width: 48px;
    height: 48px;
  }

  /* Search results stack on very small */
  .serpresult {
    padding: var(--s-3);
  }
}

/* Max 479px — Small phone */
@media (max-width: 479px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .artist-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-1);
  }

  .serpresult .imgserp {
    width: 60px;
    height: 60px;
  }
  .smart-album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  line-height: 1.6;
}
.badge-genre {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: var(--section-lg);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}

.comment-item {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border);
}

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

.comment-meta {
  display: flex;
  gap: var(--s-2);
  align-items: baseline;
  margin-bottom: var(--s-1);
}

.comment-author {
  font-weight: 600;
  color: var(--c-text);
}

.comment-date {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.comment-body {
  color: var(--c-text-secondary);
  line-height: 1.5;
}

#disqus_thread {
  min-height: 300px;
}

/* ============================================================
   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: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--c-text-secondary); }
.text-secondary { color: var(--c-text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
