:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #eff6ff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #0b63f6;
  --primary-dark: #074fc7;
  --primary-soft: rgba(11, 99, 246, .10);
  --accent: #6366f1;
  --success: #0f9f6e;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, .06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --wrap: min(1280px, calc(100% - 32px));
}

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

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(11, 99, 246, .08), transparent 26rem),
    radial-gradient(circle at 94% 12%, rgba(99, 102, 241, .07), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

main {
  min-height: 60vh;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99999;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--text);
  transform: translateY(-150%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(11, 99, 246, .35);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(11, 99, 246, .25);
}

.brand-text {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand-text span {
  color: var(--primary);
}

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

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav a:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 28px;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid rgba(11, 99, 246, .12);
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .96)),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  top: -130px;
  right: -70px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(11, 99, 246, .18), transparent 68%);
}

.hero::after {
  bottom: -180px;
  left: 20%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(99, 102, 241, .13), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 830px;
  margin-inline: auto;
  text-align: center;
}

.hero-kicker,
.page-kicker,
.section-kicker {
  display: inline-block;
  color: var(--primary-dark);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker,
.page-kicker {
  padding: 8px 12px;
  border: 1px solid rgba(11, 99, 246, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
}

.hero h1 {
  max-width: 800px;
  margin: 16px auto 12px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.searchbar,
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.hero-search {
  max-width: 760px;
  margin: 28px auto 0;
}

.hero-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.hero-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.searchbar input,
.hero-search input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.searchbar input::placeholder,
.hero-search input::placeholder {
  color: #94a3b8;
}

.searchbar input:focus,
.hero-search input:focus {
  border-color: rgba(11, 99, 246, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 99, 246, .11), 0 10px 24px rgba(15, 23, 42, .06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2458dc);
  box-shadow: 0 12px 24px rgba(11, 99, 246, .22);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(11, 99, 246, .28);
}

.btn-soft {
  color: var(--primary-dark);
  border-color: rgba(11, 99, 246, .15);
  background: var(--primary-soft);
}

.hero-search-btn {
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 17px;
}

/* Content sections and cards */
.section-block {
  margin-top: clamp(34px, 5vw, 58px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--primary-dark);
  font-size: .93rem;
  font-weight: 850;
  transition: gap .18s ease, background .18s ease;
}

.section-head a:hover {
  gap: 10px;
  background: var(--primary-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  border-color: rgba(11, 99, 246, .22);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #eff6ff, #eef2ff);
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

.card:hover .card-cover {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.card-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .24), transparent 48%);
  opacity: .5;
  transition: opacity .2s ease;
}

.card:hover .card-cover-wrap::after {
  opacity: .78;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.card:hover .card-play,
.card-link:focus-visible .card-play {
  transform: translateY(0);
  opacity: 1;
}

.card-body {
  padding: 15px 15px 17px;
}

.card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.018em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-artist {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-meta {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 750;
}

.artist-card .card-cover {
  object-position: center top;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 150px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .7);
}

.empty-state strong {
  color: var(--text);
}

/* Listing / search */
.page-head {
  margin-top: 28px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
}

.page-head h1 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 920;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.search-page-head .hero-search {
  max-width: 780px;
  margin: 22px 0 0;
}

.results-head {
  margin-top: 26px;
  margin-bottom: 16px;
}

.results-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: -.025em;
}

.results-head p {
  margin: 3px 0 0;
  color: var(--muted);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 32px 0 52px;
}

.pagination-link,
.pagination .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
  font-size: .92rem;
  font-weight: 800;
}

.pagination-link:first-child {
  justify-self: start;
}

.pagination-link:last-child {
  justify-self: end;
}

.pagination a:hover {
  color: var(--primary-dark);
  border-color: rgba(11, 99, 246, .25);
  background: var(--surface-blue);
}

.pagination .is-current {
  color: var(--primary-dark);
  border-color: rgba(11, 99, 246, .16);
  background: var(--surface-blue);
}

.pagination .is-disabled {
  color: #a8b2c1;
  cursor: default;
  box-shadow: none;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Artist profile */
.artist-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.artist-hero__media,
.artist-hero__copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.artist-hero__media {
  overflow: hidden;
  aspect-ratio: 1;
}

.artist-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.artist-hero__copy h1 {
  margin: 18px 0 6px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 930;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.artist-stats {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.song-description {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: var(--surface-soft);
}

.song-description p {
  margin: 0;
}

/* Song page */
.section-song-v67 {
  padding: 26px 0 56px;
}

.song-breadcrumb {
  margin-bottom: 16px;
  padding: 0 4px;
}

.song-v67-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.song-v67-card,
.song-v67-side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.song-v67-card {
  padding: clamp(20px, 4vw, 38px);
}

.song-v67-side {
  position: sticky;
  top: 100px;
}

.song-v67-side-card {
  padding: 20px;
}

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

.song-v67-heading {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  font-weight: 930;
  letter-spacing: -.04em;
  line-height: 1.13;
}

.song-v67-heading span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .5em;
  font-weight: 750;
  letter-spacing: -.01em;
}

.song-v67-cover-wrap {
    width: min(100%, 340px) !important;
    margin: 18px auto 28px;
    padding: 8px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.song-v67-cover {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 15px;
}

.song-v67-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.song-v67-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.song-v67-table th,
.song-v67-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.song-v67-table tr:last-child th,
.song-v67-table tr:last-child td {
  border-bottom: 0;
}

.song-v67-table th {
  width: 27%;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: .9rem;
  font-weight: 850;
}

.song-v67-table td {
  color: var(--text-soft);
}

.song-v67-table td a {
  color: var(--primary-dark);
  font-weight: 760;
}

.song-v67-table td a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.song-v67-share-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.song-v67-share-inline a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(11, 99, 246, .14);
  border-radius: 999px;
  background: var(--surface-blue);
  font-size: .84rem;
}

.song-v67-download-row {
  display: flex;
  justify-content: center;
  margin: 22px 0 18px;
}

.song-v67-download-btn {
  min-height: 54px;
  padding-inline: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 15px 28px rgba(11, 99, 246, .24);
}

.song-v67-download-btn:hover {
  box-shadow: 0 18px 34px rgba(11, 99, 246, .30);
}

/* Audio player */
.nx-player {
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(11, 99, 246, .14);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow: var(--shadow-sm);
}

.nx-player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.nx-play {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(11, 99, 246, .22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nx-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(11, 99, 246, .28);
}

.nx-ico-pause {
  display: none;
}

.nx-player.is-playing .nx-ico-play {
  display: none;
}

.nx-player.is-playing .nx-ico-pause {
  display: block;
}

.nx-wave-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(11, 99, 246, .12);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(11, 99, 246, .08), rgba(255, 255, 255, .3));
}

.nx-wave {
  width: 100%;
  height: 56px;
}

.nx-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nx-time {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.nx-cur {
  color: var(--primary-dark);
}

.nx-sep {
  color: #a3afbf;
}

.nx-player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(226, 232, 240, .8);
}

.nx-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.nx-volume {
  width: 120px;
  accent-color: var(--primary);
}

.nx-hint {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

/* Lyrics and FAQ */
.song-seo-lyrics-box,
.song-faq {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.song-seo-lyrics-title {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.song-seo-lyrics-content {
  color: var(--text-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.song-faq details {
  border-top: 1px solid var(--line);
}

.song-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.song-faq summary {
  position: relative;
  padding: 14px 34px 14px 0;
  color: var(--text);
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

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

.song-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 5px;
  color: var(--primary);
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.song-faq details[open] summary::after {
  content: "−";
}

.song-faq p {
  margin: -2px 0 14px;
  color: var(--muted);
}

/* Related songs */
.song-v67-side-title {
  margin: 6px 0 16px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.song-v67-side-list {
  display: grid;
  gap: 9px;
}

.song-v67-side-item {
  position: relative;
  display: block;
  min-width: 0;
  padding: 13px 38px 13px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.song-v67-side-item:hover {
  border-color: rgba(11, 99, 246, .25);
  background: var(--surface-blue);
  transform: translateX(3px);
}

.song-v67-side-name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: .94rem;
  font-weight: 820;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-v67-side-by {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--primary);
  font-weight: 900;
  transform: translateY(-50%);
}

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

/* Download / static pages */
.download-box,
.prose {
  margin-top: 34px;
  margin-bottom: 50px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

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

.download-box h1,
.prose h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 920;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.download-box p,
.prose p,
.prose li {
  color: var(--text-soft);
}

.download-artist a {
  color: var(--primary-dark);
  font-weight: 800;
}

.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 10px 0;
  padding: 0 16px;
  border: 1px solid rgba(11, 99, 246, .13);
  border-radius: 999px;
  color: var(--primary-dark) !important;
  background: var(--surface-blue);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.disabled {
  opacity: .52;
  pointer-events: none;
}

.prose {
  text-align: left;
}

.prose a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose h2,
.prose h3 {
  color: var(--text);
}

/* Telegram banner */
.mobile-tg-banner {
  display: none;
}

.mobile-tg-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #229ed9, #1688c2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .24);
  font-size: .92rem;
  font-weight: 850;
}

/* Footer */
.site-footer {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 28px;
  padding-block: 30px;
}

.footer-grid strong {
  color: var(--text);
  font-size: 1.05rem;
}

.footer-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 750;
}

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

.copyright {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Progressive performance enhancement */
@supports (content-visibility: auto) {
  .section-block {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .song-v67-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 10px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    min-height: 38px;
    padding-inline: 12px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .song-v67-grid {
    grid-template-columns: 1fr;
  }

  .song-v67-side {
    position: static;
  }

  .artist-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --wrap: min(100% - 22px, 1280px);
  }

  body {
    padding-bottom: 78px;
  }

  .site-header {
    position: sticky;
  }

  .topbar {
    min-height: auto;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero {
    margin-top: 18px;
    padding: 30px 18px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .hero-search,
  .searchbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search-btn,
  .searchbar .btn {
    width: 100%;
  }

  .section-block {
    margin-top: 34px;
  }

  .section-head {
    align-items: center;
  }

  .section-head a {
    flex: 0 0 auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card {
    border-radius: 17px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

  .card-title {
    font-size: .93rem;
  }

  .card-artist {
    font-size: .82rem;
  }

  .card-meta {
    margin-top: 8px;
    font-size: .72rem;
  }

  .card-play {
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    transform: none;
    opacity: 1;
  }

  .page-head {
    margin-top: 18px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .pagination .is-current {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .pagination-link:first-child,
  .pagination-link:last-child {
    width: 100%;
  }

  .artist-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .artist-hero__media {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .artist-hero__copy {
    padding: 22px;
  }

  .section-song-v67 {
    padding-top: 18px;
  }

  .song-v67-card,
  .song-v67-side-card {
    border-radius: 21px;
  }

  .song-v67-card {
    padding: 18px;
  }

  .song-v67-cover {
    width: min(290px, 100%);
    border-width: 6px;
    border-radius: 22px;
  }

  .song-v67-table-wrap {
    overflow-x: auto;
  }

  .song-v67-table th,
  .song-v67-table td {
    padding: 12px;
  }

  .song-v67-table th {
    width: 34%;
  }

  .nx-player-top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .nx-time {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .nx-player-bottom {
    flex-wrap: wrap;
  }

  .nx-hint {
    display: none;
  }

  .mobile-tg-banner {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 999;
    display: flex;
    justify-content: center;
    pointer-events: none;
  }

  .mobile-tg-banner a {
    pointer-events: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .footer-links {
    gap: 12px;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (max-width: 420px) {
  :root {
    --wrap: min(100% - 18px, 1280px);
  }

  .nav a {
    padding-inline: 10px;
    font-size: .88rem;
  }

  .hero {
    padding: 26px 15px;
  }

  .hero h1 {
    letter-spacing: -.045em;
  }

  .section-head h2 {
    font-size: 1.3rem;
  }

  .section-head a {
    padding-inline: 8px;
    font-size: .84rem;
  }

  .song-v67-table th,
  .song-v67-table td {
    display: block;
    width: 100%;
  }

  .song-v67-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .song-v67-table td {
    padding-top: 4px;
  }

  .song-v67-table tr:last-child th {
    border-bottom: 0;
  }

  .song-v67-download-btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (hover: none) {
  .card:hover,
  .btn:hover,
  .nav a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .mobile-tg-banner,
  .site-footer,
  .song-v67-side,
  .nx-player,
  .song-v67-download-row,
  .song-v67-share-inline {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .song-v67-card,
  .page-head,
  .prose {
    border: 0;
    box-shadow: none;
  }
}

.download-cover-image {
  width: min(220px, 68vw);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  border: 7px solid #fff;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .17);
}

.artist-hero__copy > .page-kicker {
  align-self: flex-start;
  margin-top: 18px;
}
