
:root {
  --bg: #06060a;
  --bg-elevated: #0c0c12;
  --surface: #12121a;
  --surface-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent: #7c3aed;
  --accent-bright: #a78bfa;
  --accent-pink: #db2777;
  --accent-glow: rgba(124, 58, 237, 0.32);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 48px var(--accent-glow);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-lyrics: "Source Serif 4", Georgia, "Times New Roman", serif;
  --container: 1120px;
  --nav-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(124, 58, 237, 0.16), transparent),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(219, 39, 119, 0.07), transparent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  display: flex;
  width: 38px;
  height: 38px;
  color: white;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-bg {
  fill: url(#logo-gradient);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-height);
  flex-wrap: wrap;
  padding: 10px 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--surface);
}

.nav-link.is-active {
  color: var(--accent-bright);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.az-index {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  order: 10;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .az-index {
    display: flex;
    width: auto;
    order: 0;
    padding-top: 0;
    border-top: none;
  }
}

.az-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.az-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.btn-menu:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.search-form.compact {
  max-width: 300px;
  flex: 1;
}

.search-form.hero-search {
  max-width: 580px;
  margin: 0 auto;
}

.search-form.page-search {
  max-width: 640px;
  margin-top: 32px;
}

.search-wrapper {
  position: relative;
  flex: 1;
}

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

.search-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

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

.btn-primary {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
  text-decoration: none;
}

/* Main */
.main-content {
  flex: 1;
  padding: 32px 0 72px;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 28px 80px;
  margin-bottom: 56px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.11) 0%, transparent 58%),
    var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  margin-bottom: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--text) 15%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Sections */
.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-subtle);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* SEO intro block */
.seo-intro {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.seo-intro a {
  font-weight: 600;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.song-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.song-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.song-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

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

.song-card:hover .song-card-title {
  color: var(--accent-bright);
}

/* Browse grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
}

.browse-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: var(--font-display);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.browse-letter:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  border-color: transparent;
  color: white;
  text-decoration: none;
  transform: scale(1.06);
}

/* Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

/* Page headers */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.12;
}

.page-subtitle {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.page-subtitle a {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

/* Lyrics */
.lyrics-body {
  text-align: left;
  font-family: var(--font-lyrics);
  font-size: 1.125rem;
  line-height: 1.9;
  margin: 28px auto 36px;
  max-width: 620px;
  color: var(--text);
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lyrics-stanza {
  margin: 0 0 1.35em;
}

.lyrics-stanza:last-child {
  margin-bottom: 0;
}

/* Share bar */
.div-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.share-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.share-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
}

.breadcrumb li:not(:last-child)::after {
  content: " / ";
  color: var(--text-subtle);
  margin-left: 4px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-bright);
}

/* Artist / letter pages */
.album-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: -0.02em;
}

.song-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  columns: 2;
  column-gap: 36px;
}

@media (max-width: 600px) {
  .song-list {
    columns: 1;
  }
}

.song-list li {
  padding: 5px 0;
  break-inside: avoid;
}

.song-list a {
  font-weight: 500;
}

.artist-grid {
  columns: 3;
  column-gap: 36px;
}

@media (max-width: 768px) {
  .artist-grid {
    columns: 2;
  }
}

.artist-grid a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  break-inside: avoid;
  font-weight: 500;
}

.artist-grid a:hover {
  color: var(--accent-bright);
}

/* Search results */
.search-results {
  margin-top: 36px;
}

.search-results-meta {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.9375rem;
}

.search-results .result-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.search-results .result-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-bright);
  background: rgba(124, 58, 237, 0.12);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.search-results .result-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.search-results .result-subtitle {
  color: var(--text-muted);
}

.search-results .result-snippet {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-top: 8px;
  line-height: 1.55;
}

/* Album panel on song page */
.album-panel .panel-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.songlist-panel {
  text-align: center;
  margin-top: 24px;
}

.album-cover {
  max-width: 168px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.songinalbum_title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.listalbum-item {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

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

.listalbum-item small {
  display: block;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 340px;
  margin: 14px 0 0;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-subtle);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-subtle);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* Badges & errors */
.source-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--success-bg);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

.error-box {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  text-align: center;
  margin: 64px 0;
}

.error-box h1 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.error-box p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Features row on homepage */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.feature-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-bright);
  font-size: 1.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-content {
  padding-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.25em;
  color: var(--accent-bright);
  font-weight: 800;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Content pages (about, privacy) */
.content-page {
  max-width: 720px;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}

.content-page p,
.content-page li {
  color: var(--text-muted);
  line-height: 1.75;
}

.content-page ul {
  padding-left: 1.25rem;
}

.content-page li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .navbar-inner {
    gap: 12px;
  }

  .search-form.compact {
    max-width: none;
    width: 100%;
    order: 5;
  }

  .navbar-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .lyrics-body {
    padding: 28px 24px;
    font-size: 1.0625rem;
  }

  .hero {
    padding: 52px 20px 60px;
  }
}

@media print {
  .noprint {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .lyrics-body {
    border: none;
    background: none;
    box-shadow: none;
    font-size: 12pt;
  }
}
