/* =========================================================
   IRANSansX — local font family
   Put the font files here:  assets/fonts/
   Required filenames (rename your files to match, or edit the
   src paths below to match your actual filenames):
     IRANSansX-Regular.woff2 / .woff   (400)
     IRANSansX-Medium.woff2  / .woff   (500)
     IRANSansX-Bold.woff2    / .woff   (700)
   Any weight you don't have, delete its @font-face block below —
   the browser will fall back to the nearest weight it does have.
   ========================================================= */
@font-face{
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2'),
       url('../fonts/IRANSansX-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2'),
       url('../fonts/IRANSansX-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2'),
       url('../fonts/IRANSansX-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Lyrixa.xyz — Design tokens
   Concept: "خط طلایی" — highlighting a lyric line, like a
   highlighter pen drawn under your favourite verse.
   Background: pure black. Accent: high-contrast yellow sweep.
   Secondary accents: rose + teal for genre tagging.
   ========================================================= */
:root{
  --ink:        #0a0a0c;
  --ink-2:      #131315;
  --ink-3:      #1c1c1f;
  --line:       #2c2c30;
  --paper:      #f6f1e4;
  --paper-dim:  #e8e0cc;
  --text:       #f3f3f0;
  --text-dim:   #a3a3aa;
  --gold:       #f5c518;
  --gold-dim:   #b6910f;
  --gold-soft:  rgba(245,197,24,.16);
  --rose:       #d6607e;
  --teal:       #6fb3a0;

  --font-display: 'IRANSansX', Georgia, "Times New Roman", serif;
  --font-body: 'IRANSansX', -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: "Courier New", monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;

  --shadow-card: 0 10px 30px -12px rgba(0,0,0,.7);
  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

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

.skip-link{
  position:absolute; right:-9999px; top:0; z-index:200;
  background: var(--gold); color: var(--ink); font-weight:700;
  padding: 12px 20px; border-radius: 0 0 var(--radius-s) var(--radius-s);
}
.skip-link:focus{ right:20px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

body{
  background-image:
    radial-gradient(700px 400px at 85% -10%, rgba(245,197,24,.08), transparent 60%),
    radial-gradient(600px 500px at -10% 20%, rgba(214,96,126,.08), transparent 60%);
  background-attachment: fixed;
}

/* Header */
.site-header{
  position: sticky; top:0; z-index:50;
  background: rgba(8,8,10,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s;
}
.site-header::after{
  content:""; position:absolute; inset-inline:0; bottom:-1px; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 50%, transparent);
  opacity:.5;
}
.site-header{ position: sticky; }
.site-header.scrolled{ box-shadow: 0 12px 30px -18px rgba(0,0,0,.8); border-color: rgba(245,197,24,.14); }
.site-header .bar{ display:flex; align-items:center; gap:28px; padding: 15px 20px; position:relative; }
.logo{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text);
  display:flex; align-items:center; gap:10px;
  white-space: nowrap;
  transition: opacity .2s;
}
.logo:hover{ opacity:.88; }
.logo img{ width:38px; height:38px; border-radius:11px; flex-shrink:0; box-shadow: 0 3px 10px -3px rgba(0,0,0,.6); }
.logo em{ font-style: normal; color: var(--gold); position: relative; }
.logo em::after{
  content:""; position:absolute; right:-2px; left:-2px; bottom:-2px; height:2px;
  background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px;
}
.main-nav{ display:flex; align-items:center; gap:30px; flex:1; }
.main-nav a{ color: var(--text-dim); font-size: 14.5px; font-weight:500; transition: color .2s; position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active{ color: var(--text); }
.main-nav a::after{ content:""; position:absolute; right:0; left:0; bottom:0; height:2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .2s; transform-origin: center; }
.main-nav a:hover::after{ transform: scaleX(.5); }
.main-nav a.active::after{ transform: scaleX(1); }
.search-box{
  display:flex; align-items:center; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; min-width: 230px; gap:9px; transition: border-color .2s, background .2s;
}
.search-box:focus-within{ border-color: var(--gold-dim); background: var(--ink-2); }
.search-box input{ background:transparent; border:none; outline:none; color: var(--text); font-size: 14px; width:100%; font-family: inherit; }
.search-box input::placeholder{ color: var(--text-dim); }
.search-box svg{ flex-shrink:0; opacity:.7; }
.search-box-mobile{ display:none; }
.search-box-desktop-wrap{ position:relative; }

.search-autocomplete{
  display:none; position:absolute; top: calc(100% + 8px); right:0; left:0;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card); overflow:hidden; z-index:80;
}
.search-autocomplete.open{ display:block; }
.search-autocomplete a{
  display:flex; align-items:center; gap:10px; padding: 9px 12px;
  border-bottom: 1px dashed var(--line);
}
.search-autocomplete a:last-child{ border-bottom:none; }
.search-autocomplete a:hover{ background: var(--ink-3); }
.search-autocomplete img{ width:36px; height:36px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.search-autocomplete span{ display:flex; flex-direction:column; min-width:0; }
.search-autocomplete b{ font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-autocomplete small{ font-size:11.5px; color: var(--text-dim); }
[data-for="mobile"]{ position:static; margin-top:8px; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding:0; margin-inline-start:auto; align-items:center;
}
.nav-toggle span{ width:16px; height:2px; background: var(--text); border-radius:2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Ad slots — sized to standard IAB ad units so images, GIFs, or a
   third-party network's embed/shortcode drop in without clipping.
   Each container is a flexible max-size box; actual ad content
   (img/gif/iframe/script output) is centred and scales to fit. */
.ad-slot{ margin: 28px auto; width:100%; }
.ad-slot img, .ad-slot iframe, .ad-slot video{
  display:block; margin:0 auto; max-width:100%; height:auto; border-radius: var(--radius-s);
}
.ad-placeholder{
  border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--ink-2);
  color: var(--text-dim); font-size: 13px; display:flex; flex-direction:column; gap:4px;
  align-items:center; justify-content:center; text-align:center; width:100%; height:100%; padding: 12px;
}
.ad-placeholder .ad-size-tag{ color: var(--text-dim); opacity:.7; font-size:11px; }

/* Header / footer banners — leaderboard up to billboard size */
.ad-slot[data-slot="header-banner"],
.ad-slot[data-slot="footer-banner"]{ max-width: 970px; min-height: 90px; }
.ad-slot[data-slot="header-banner"] .ad-placeholder,
.ad-slot[data-slot="footer-banner"] .ad-placeholder{ min-height: 90px; }
@media (min-width: 981px){
  .ad-slot[data-slot="header-banner"] .ad-placeholder,
  .ad-slot[data-slot="footer-banner"] .ad-placeholder{ min-height: 250px; }
}

/* Sidebar — medium rectangle up to half-page */
.ad-slot[data-slot="sidebar-1"],
.ad-slot[data-slot="sidebar-2"]{ max-width: 336px; }
.ad-slot[data-slot="sidebar-1"] .ad-placeholder,
.ad-slot[data-slot="sidebar-2"] .ad-placeholder{ min-height: 250px; }

/* In-content — medium rectangle */
.ad-slot[data-slot="in-lyrics"]{ max-width: 336px; }
.ad-slot[data-slot="in-lyrics"] .ad-placeholder{ min-height: 280px; }

/* Mobile: banners shrink to mobile-leaderboard proportions */
@media (max-width: 600px){
  .ad-slot[data-slot="header-banner"] .ad-placeholder,
  .ad-slot[data-slot="footer-banner"] .ad-placeholder{ min-height: 100px; }
}

/* Hero */
.hero{ padding: 0; position: relative; overflow:hidden; border-bottom: 1px solid var(--line); }
.hero-bg{
  position:absolute; inset:0; background-image: var(--hero-img, none);
  background-size: cover; background-position: center; opacity:.16; filter: blur(2px) saturate(1.1);
  transform: scale(1.1);
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,10,12,.55) 0%, var(--ink) 92%);
}
.hero-inner{ position:relative; padding: 64px 20px 40px; }
.hero-grid{ display:grid; grid-template-columns: 1.3fr 1fr; align-items:center; gap: 40px; }
.hero-eyebrow{ color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; display:flex; align-items:center; gap:10px; }
.hero-eyebrow::before{ content:""; width:26px; height:1px; background: var(--gold-dim); }
.hero-line{ font-family: var(--font-display); font-size: clamp(24px, 4vw, 42px); line-height:1.55; font-weight: 700; }
.hero-line .hl{ background: linear-gradient(transparent 62%, rgba(245,197,24,.38) 62%); padding: 0 2px; }
.hero-sub{ margin-top: 18px; color: var(--text-dim); font-size: 16px; max-width: 560px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 24px; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height: 280px; }
.hero-disc-glow{
  position:absolute; width: 320px; height:320px; border-radius:50%;
  background: radial-gradient(circle, rgba(245,197,24,.28) 0%, rgba(245,197,24,0) 70%);
  filter: blur(6px);
}
.hero-disc{
  position:relative; width: 280px; height:280px; border-radius:50%; object-fit:cover;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.75), 0 0 0 6px rgba(245,197,24,.12);
  animation: spin-slow 22s linear infinite;
}
@keyframes spin-slow{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero-disc{ animation:none; } }

/* Ticker */
.ticker{
  border-bottom: 1px solid var(--line); background: var(--ink-2);
  overflow:hidden; white-space:nowrap; padding: 10px 0;
}
.ticker-track{ display:inline-flex; align-items:center; gap:14px; animation: ticker-scroll 38s linear infinite; }
.ticker-track a{ font-size: 13px; color: var(--text-dim); }
.ticker-track a:hover{ color: var(--gold); }
.ticker-track a span{ color: var(--text-dim); opacity:.7; }
.ticker-dot{ color: var(--gold-dim); font-size:8px; }
@keyframes ticker-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation:none; overflow-x:auto; } }

.stats-bar{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow:hidden; margin-top: 40px; max-width: 720px;
}
.stats-bar .stat{ background: var(--ink-2); padding: 16px 10px; text-align:center; }
.stats-bar .stat b{ display:block; font-size: 22px; color: var(--gold); font-family: var(--font-display); }
.stats-bar .stat span{ font-size: 12px; color: var(--text-dim); }
@media (max-width: 560px){ .stats-bar{ grid-template-columns: repeat(2, 1fr); } }

/* Popular artists */
.artists-row{ display:flex; gap: 18px; overflow-x:auto; padding-bottom: 8px; scrollbar-width: thin; }
.artists-directory{ display:grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 14px; }
.artist-directory-card{ flex:none; }
.artist-card{ flex: 0 0 130px; text-align:center; }
.artist-avatar{
  width:104px; height:104px; border-radius:50%; margin:0 auto 12px; object-fit:cover; display:block;
  border: 2px solid var(--line); box-shadow: var(--shadow-card); transition: border-color .18s, transform .18s;
}
.artist-card:hover .artist-avatar{ border-color: var(--gold-dim); transform: translateY(-3px); }
.artist-name{ font-size: 14px; font-weight:600; }
.artist-count{ font-size: 12px; color: var(--text-dim); margin-top:2px; }

/* Artist hero page — big banner photo (breaks out of .container) */
.artist-banner{
  position: relative; width:100%; height: 320px; overflow:hidden;
  border-bottom: 1px solid var(--line); margin-top: 10px; background: var(--ink-2);
}
.artist-banner-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.artist-banner-overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end;
  background: linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.55) 55%, var(--ink) 100%);
}
.artist-banner-inner{ display:flex; align-items:flex-end; gap:24px; padding-bottom: 26px; flex-wrap:wrap; }
.artist-banner-avatar{
  width:110px; height:110px; border-radius: var(--radius-m); flex-shrink:0; object-fit:cover;
  border: 3px solid var(--gold-dim); box-shadow: var(--shadow-card);
}
.artist-hero-name{ font-family: var(--font-display); font-size: clamp(24px,3.6vw,34px); margin: 6px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.artist-hero-stats{ display:flex; gap:18px; font-size:13.5px; color: var(--text-dim); flex-wrap:wrap; }
.artist-hero-stats a{ color: var(--gold); }
.artist-hero-stats a:hover{ text-decoration:underline; }
.artist-hero-genres{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.genre-chip-sm{
  font-size:12px; padding:5px 12px; border-radius:999px; border:1px solid var(--line);
  background: var(--ink-2); color: var(--chip-color, var(--text-dim));
}
.genre-chip-sm:hover{ border-color: var(--chip-color, var(--gold-dim)); }

/* CTA band */
.cta-band{ background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 20px; }
.cta-band-inner{ display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 34px 20px; flex-wrap:wrap; }
.cta-band-inner h3{ font-family: var(--font-display); margin: 0 0 6px; font-size:20px; }
.cta-band-inner p{ color: var(--text-dim); font-size: 14px; margin:0; max-width: 460px; }

/* Sections */
.section{ padding: 46px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 14px; gap: 16px; flex-wrap:wrap; }
.section-title{ font-family: var(--font-display); font-size: 21px; display:flex; align-items:center; gap:10px; }
.section-title::before{ content:""; width:8px; height:8px; border-radius:50%; background: var(--gold); display:inline-block; }
.section-desc{ color: var(--text-dim); font-size: 13.5px; margin: 6px 0 0; }
.section-link{ color: var(--gold); font-size: 14px; white-space:nowrap; }
.section-link:hover{ text-decoration: underline; }

/* Scroll-reveal */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }
.reveal .songs-grid > *,
.reveal .genre-showcase > *,
.reveal .artists-row > *,
.reveal .features-grid > *,
.reveal .chart-list > *{
  opacity:0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in-view .songs-grid > *,
.reveal.in-view .genre-showcase > *,
.reveal.in-view .artists-row > *,
.reveal.in-view .features-grid > *,
.reveal.in-view .chart-list > *{
  opacity:1; transform: translateY(0);
}
.reveal .songs-grid > *:nth-child(1),  .reveal .genre-showcase > *:nth-child(1),  .reveal .artists-row > *:nth-child(1),  .reveal .features-grid > *:nth-child(1),  .reveal .chart-list > *:nth-child(1){ transition-delay: 0ms; }
.reveal .songs-grid > *:nth-child(2),  .reveal .genre-showcase > *:nth-child(2),  .reveal .artists-row > *:nth-child(2),  .reveal .features-grid > *:nth-child(2),  .reveal .chart-list > *:nth-child(2){ transition-delay: 60ms; }
.reveal .songs-grid > *:nth-child(3),  .reveal .genre-showcase > *:nth-child(3),  .reveal .artists-row > *:nth-child(3),  .reveal .features-grid > *:nth-child(3),  .reveal .chart-list > *:nth-child(3){ transition-delay: 120ms; }
.reveal .songs-grid > *:nth-child(4),  .reveal .genre-showcase > *:nth-child(4),  .reveal .artists-row > *:nth-child(4),  .reveal .features-grid > *:nth-child(4),  .reveal .chart-list > *:nth-child(4){ transition-delay: 180ms; }
.reveal .songs-grid > *:nth-child(5),  .reveal .genre-showcase > *:nth-child(5),  .reveal .artists-row > *:nth-child(5),  .reveal .chart-list > *:nth-child(5){ transition-delay: 240ms; }
.reveal .songs-grid > *:nth-child(6),  .reveal .genre-showcase > *:nth-child(6),  .reveal .artists-row > *:nth-child(6){ transition-delay: 300ms; }
.reveal .songs-grid > *:nth-child(7),  .reveal .genre-showcase > *:nth-child(7),  .reveal .artists-row > *:nth-child(7){ transition-delay: 360ms; }
.reveal .songs-grid > *:nth-child(8),  .reveal .artists-row > *:nth-child(8){ transition-delay: 420ms; }

/* Weekly chart */
.chart-list{ display:flex; flex-direction:column; gap:2px; border:1px solid var(--line); border-radius: var(--radius-m); overflow:hidden; }
.chart-row{
  display:flex; align-items:center; gap:16px; padding: 12px 16px; background: var(--ink-2);
  border-bottom: 1px dashed var(--line); transition: background .15s;
}
.chart-row:last-child{ border-bottom:none; }
.chart-row:hover{ background: var(--ink-3); }
.chart-rank{ font-family: var(--font-display); font-size: 20px; color: var(--gold-dim); width: 34px; flex-shrink:0; }
.chart-row:nth-child(1) .chart-rank{ color: var(--gold); }
.chart-cover{ width:44px; height:44px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.chart-info{ flex:1; min-width:0; }
.chart-title{ font-weight:600; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chart-artist{ font-size:12.5px; color: var(--text-dim); }
.chart-genre{ flex-shrink:0; }
.chart-views{ flex-shrink:0; font-size:12.5px; color: var(--text-dim); min-width:90px; text-align:left; }
@media (max-width: 640px){
  .chart-row{ gap:12px; padding: 10px 12px; }
  .chart-genre{ display:none; }
  .chart-views{ min-width:0; font-size:11.5px; }
}
@media (max-width: 420px){
  .chart-views{ display:none; }
}

/* Genre showcase */
.genre-showcase{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.genre-showcase-card{
  background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-m);
  padding: 18px; text-align:center; transition: transform .18s, border-color .18s;
}
.genre-showcase-card:hover{ transform: translateY(-3px); border-color: var(--genre-color, var(--gold-dim)); }
.genre-stack{ position:relative; width:76px; height:76px; margin: 0 auto 14px; }
.genre-stack-img{
  position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover;
  border: 2px solid var(--ink-2); box-shadow: 0 4px 10px -4px rgba(0,0,0,.6);
}
.genre-stack-img:nth-child(1){ z-index:3; }
.genre-stack-img:nth-child(2){ z-index:2; transform: translate(14px, 6px) scale(.85); opacity:.85; }
.genre-stack-img:nth-child(3){ z-index:1; transform: translate(-14px, 10px) scale(.72); opacity:.65; }
.genre-showcase-name{ font-weight:700; font-size:15px; color: var(--genre-color, var(--text)); }
.genre-showcase-count{ font-size:12px; color: var(--text-dim); margin-top:2px; }

/* Features grid */
.features-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card{ background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-m); padding: 24px 20px; }
.feature-icon{ font-size: 28px; margin-bottom: 12px; }
.feature-card h4{ margin: 0 0 8px; font-family: var(--font-display); font-size: 16px; }
.feature-card p{ margin:0; color: var(--text-dim); font-size: 13.5px; line-height:1.8; }

/* Song cards */
.songs-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.song-card{
  background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-m); overflow:hidden;
  box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .18s ease; display:flex; flex-direction:column;
}
.song-card:hover{ transform: translateY(-4px); border-color: var(--gold-dim); }
.song-card .cover{ aspect-ratio: 1/1; overflow:hidden; position:relative; }
.song-card .cover img{ width:100%; height:100%; object-fit:cover; }
.song-card .genre-tag{
  position:absolute; top:10px; left:10px; font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(18,16,34,.75); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.15);
}
.fav-btn{
  position:absolute; top:8px; right:8px; width:32px; height:32px; border-radius:50%;
  background: rgba(10,10,12,.6); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size:15px; display:flex; align-items:center; justify-content:center;
  transition: transform .15s, color .15s, border-color .15s; z-index:2;
}
.fav-btn:hover{ transform: scale(1.1); }
.fav-btn.active{ color: var(--rose); border-color: var(--rose); }
.chart-row .fav-btn{ position:static; width:30px; height:30px; flex-shrink:0; background: var(--ink-3); }
.song-card .body{ padding: 14px 16px 18px; flex:1; display:flex; flex-direction:column; gap:6px; }
.song-card .title{ font-weight:700; font-size: 16px; }
.song-card .artist{ color: var(--text-dim); font-size: 13.5px; }
.song-card .excerpt{ color: var(--text-dim); font-size: 13px; margin-top:6px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.song-card .meta-row{ margin-top: auto; padding-top: 10px; display:flex; justify-content:space-between; font-size: 12px; color: var(--text-dim); border-top: 1px dashed var(--line); }

/* Genre tiles (used on /genre.html overview) */
.genre-tile{ align-items: center; }
.genre-tile-body{ align-items:center; text-align:center; padding: 26px 16px; }
.genre-tile-title{ color: var(--tile-color, var(--gold)); font-size: 19px; }

/* Genre chips */

/* Sidebar layout */
.with-sidebar{ display:grid; grid-template-columns: 1fr 300px; gap: 34px; align-items:start; }
@media (max-width: 860px){ .with-sidebar{ grid-template-columns: 1fr; } }
.sidebar-widget{ background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-m); padding: 18px; margin-bottom: 20px; }
.sidebar-widget h4{ margin:0 0 14px; font-size:15px; font-family: var(--font-display); }
.mini-song-row{ display:flex; gap:10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mini-song-row:last-child{ border-bottom:none; }
.mini-song-row img{ width:48px; height:48px; border-radius:8px; object-fit:cover; }
.mini-song-row .t{ font-size:13.5px; font-weight:600; }
.mini-song-row .a{ font-size:12px; color: var(--text-dim); }
.empty-hint{ color: var(--text-dim); font-size:13px; }

/* Song detail */
/* Reading progress bar */
.reading-progress{ position:sticky; top:0; z-index:60; height:3px; background:transparent; }
.reading-progress::before{
  content:""; display:block; height:100%; width: calc(var(--progress, 0) * 1%);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width .1s linear;
}

/* Breadcrumbs */
.breadcrumbs{ display:flex; flex-wrap:wrap; gap:8px; font-size:12.5px; color: var(--text-dim); padding: 16px 0 0; }
.breadcrumbs a{ color: var(--text-dim); }
.breadcrumbs a:hover{ color: var(--gold); }
.breadcrumbs .current{ color: var(--text); }

.song-hero{ display:flex; gap: 26px; align-items:flex-end; padding: 40px 0 30px; border-bottom: 1px solid var(--line); flex-wrap:wrap; }
.song-hero img{ width:170px; height:170px; border-radius: var(--radius-m); object-fit:cover; box-shadow: var(--shadow-card); }
.song-hero .genre-pill{ display:inline-block; font-size:12px; padding:4px 12px; border-radius:999px; background: var(--ink-3); border:1px solid var(--line); margin-bottom:10px; color: var(--gold); }
.song-hero h1{ font-family: var(--font-display); font-size: clamp(24px,3.6vw,36px); margin:0 0 8px; }
.song-hero .artist-line{ color: var(--text-dim); font-size:16px; margin-top: 2px; }
.artist-line-link{ display:inline-flex; align-items:center; gap:8px; color: var(--text-dim); }
.artist-line-link:hover{ color: var(--gold); }
.artist-line-avatar{ width:26px; height:26px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.song-hero .stats{ margin-top:12px; display:flex; gap:18px; font-size:13px; color:var(--text-dim); }

/* Reading controls */
.reading-controls{ display:flex; align-items:center; gap:8px; padding-top: 20px; flex-wrap:wrap; }
.reading-controls-label{ font-size:12px; color: var(--text-dim); margin-inline-end:4px; }
.reading-controls-sep{ margin-inline-start:14px; }
.icon-btn{ padding: 6px 12px; font-size:12.5px; }
.icon-btn.active{ border-color: var(--gold-dim); color: var(--gold); background: var(--gold-soft); }

:root{ --lyrics-scale: 1; }
.lyrics-block{
  font-family: var(--font-display); font-size: calc(18px * var(--lyrics-scale)); line-height: 2.2;
  white-space: pre-line; transition: background .2s, color .2s, border-color .2s;
  margin-top: 18px; padding: 30px 28px; border-radius: var(--radius-m);
  background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.lyrics-block.theme-sepia{
  background: var(--paper); color: #2a2113; border-color: var(--paper-dim);
}
.lyric-hl{ background: var(--gold); color: var(--ink); padding: 1px 3px; border-radius: 3px; }
.theme-sepia .lyric-hl{ background: #2a2113; color: var(--paper); }
.lyrics-block p{ margin: 0 0 16px; }
.lyrics-toolbar{ display:flex; gap:10px; padding: 18px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.lyrics-toolbar .btn.active{ border-color: var(--rose); color: var(--rose); }

/* Share row */
.share-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top: 6px; }
.share-label{ font-size:12px; color: var(--text-dim); }
.share-btn{ padding: 8px 16px; border-radius: var(--radius-s); font-size:12.5px; border:1px solid var(--line); background: var(--ink-2); color: var(--text); }
.share-btn.telegram:hover{ border-color:#2ea6de; color:#2ea6de; }
.share-btn.whatsapp:hover{ border-color:#25d366; color:#25d366; }
.share-btn.x:hover{ border-color:#fff; color:#fff; }
.share-btn.copy:hover{ border-color: var(--gold-dim); color: var(--gold); }
.btn{ padding: 9px 16px; border-radius: var(--radius-s); border:1px solid var(--line); background: var(--ink-2); color: var(--text); font-size:14px; display:inline-flex; align-items:center; gap:6px; }
.btn:hover{ border-color: var(--gold-dim); color: var(--gold); }
.btn.primary{ background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight:700; }
.btn.primary:hover{ opacity:.9; color: var(--ink); }
.btn.danger{ border-color:#7a3446; color:#e0879a; }
.btn.danger:hover{ background:#3a1c24; }

/* Search */
.search-summary{ color: var(--text-dim); margin-bottom: 22px; }
.search-summary b{ color: var(--gold); }
.sort-bar{ display:flex; align-items:center; gap:10px; margin-bottom: 20px; font-size:13.5px; color: var(--text-dim); }
.sort-bar select{
  background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-s);
  color: var(--text); padding: 7px 12px; font-size:13.5px; font-family:inherit;
}
.empty-state{ text-align:center; padding: 60px 20px; color: var(--text-dim); }
.legal-page{ max-width: 720px; }
.legal-page p{ color: var(--text-dim); line-height:2; margin-bottom: 16px; }
.legal-page a{ color: var(--gold); }
.legal-page a:hover{ text-decoration:underline; }
.contact-list{ list-style:none; margin: 0 0 18px; padding:0; }
.contact-list li{
  padding: 12px 16px; background: var(--ink-2); border:1px solid var(--line); border-radius: var(--radius-s);
  margin-bottom: 10px; color: var(--text-dim); line-height:1.8;
}
.notfound-search{ margin: 20px auto; }
.empty-state .big{ font-size: 44px; margin-bottom: 10px; }

/* Footer */
.site-footer{ margin-top: 60px; border-top: 1px solid var(--line); background: var(--ink-2); padding: 46px 0 24px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid-3{ grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h5{ font-size:14px; margin:0 0 14px; color: var(--text); }
.footer-grid a{ display:block; color: var(--text-dim); font-size:13.5px; padding:5px 0; }
.footer-grid a:hover{ color: var(--gold); }
.footer-bottom{ margin-top: 34px; padding-top: 20px; border-top: 1px dashed var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color: var(--text-dim); font-size: 12.5px; }
.version-tag{ background: var(--ink-3); color: var(--gold); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.footer-brand-note{ color: var(--text-dim); font-size: 13.5px; line-height:1.8; margin-top:10px; max-width:320px; }

.privacy-notice{
  position: fixed; bottom:0; inset-inline:0; z-index:90;
  background: var(--ink-2); border-top: 1px solid var(--line);
  padding: 14px 20px; display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap;
  font-size: 13px; color: var(--text-dim); box-shadow: 0 -10px 30px -14px rgba(0,0,0,.7);
}
.privacy-notice .btn{ flex-shrink:0; padding: 7px 16px; font-size:12.5px; }

/* Utility */
.pill-list{ display:flex; flex-wrap:wrap; gap:8px; }
.badge{ font-size:11px; padding:3px 9px; border-radius:999px; background: var(--ink-3); color: var(--text-dim); }
.skeleton{ background: linear-gradient(90deg,var(--ink-2),var(--ink-3),var(--ink-2)); background-size:200% 100%; animation: shimmer 1.4s infinite; border-radius:8px; }
@keyframes shimmer{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

.artists-row{ -webkit-overflow-scrolling: touch; }

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .search-box-desktop{ display:none; }
  .main-nav{
    display:none; position:absolute; top:100%; right:0; left:0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    flex-direction:column; align-items:stretch; gap:0; padding: 6px 20px 18px;
    max-height: calc(100vh - 64px); overflow-y:auto;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding: 12px 4px; border-bottom: 1px dashed var(--line); }
  .main-nav a::after{ display:none; }
  .main-nav a.active{ color: var(--gold); }
  .search-box-mobile{ display:flex; margin-top: 14px; }
  .site-header .bar{ position:relative; flex-wrap: nowrap; }
  .hero-inner{ padding: 40px 20px 30px; }
  .hero-grid{ grid-template-columns: 1fr; text-align:center; gap:26px; }
  .hero-sub{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
  .hero-visual{ order:-1; min-height:200px; }
  .hero-disc{ width:180px; height:180px; }
  .hero-disc-glow{ width:220px; height:220px; }
}

@media (max-width: 600px){
  .container{ padding: 0 16px; }
  .section{ padding: 34px 0; }
  .song-hero{ gap:16px; padding: 28px 0 22px; }
  .song-hero img{ width:112px; height:112px; }
  .song-hero .stats{ gap:12px; font-size:12px; }
  .lyrics-block{ font-size: 16px; line-height: 2; padding: 20px 18px; margin-top: 12px; }
  .chart-cover{ width:38px; height:38px; }
  .cta-band-inner{ flex-direction:column; align-items:flex-start; text-align:right; }
  .artist-banner{ height: 230px; }
  .artist-banner-avatar{ width:76px; height:76px; }
  .artist-hero-stats{ gap:10px; font-size:12px; }
}

@media (max-width: 480px){
  .footer-grid{ grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:6px; }
  .stats-bar{ grid-template-columns: repeat(2, 1fr); }
  .hero-line{ font-size: clamp(22px, 7vw, 32px); }
  .genre-showcase{ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap:12px; }
  .lyrics-toolbar{ flex-direction:column; align-items:stretch; }
  .lyrics-toolbar .btn{ justify-content:center; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .song-card, .skeleton{ animation:none; transition:none; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* Layout utilities — replace inline style="" attributes */
.mt-lg{ margin-top: 22px; }
.mb-none{ margin-bottom: 0; }
.no-border{ border-bottom: none; }
.w-full{ width: 100%; }
.justify-center{ justify-content: center; }
.hidden{ display: none; }
.col-span-full{ grid-column: 1 / -1; }
.max-w-search{ max-width: 520px; }
.max-w-form{ max-width: 420px; }
.ms-sm{ margin-inline-start: 6px; }
.mb-md{ margin-bottom: 16px; }
.mt-md{ margin-top: 18px; }
.swatch{ display:inline-block; width:14px; height:14px; border-radius:50%; background: var(--swatch-color, var(--gold)); }
