/* ===== mp3.kz — laconic adaptive UI ===== */
:root {
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #ede9fe;
  --pink: #ec4899;
  --ink: #0f0a1a;
  --text: #2d2640;
  --muted: #6b7280;
  --line: #e8e5f0;
  --bg: #f7f5fb;
  --card: #ffffff;
  --ok: #10b981;
  --shadow: 0 1px 2px rgba(15, 10, 26, .04), 0 8px 24px rgba(124, 58, 237, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1080px;
  --font: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.link { font-weight: 600; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: linear-gradient(90deg, var(--purple-light), #fce7f3);
  font-size: .8rem;
}
.topbar__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 20px; gap: 8px; flex-wrap: wrap;
}
.topbar__item { color: var(--purple-dark); }
.topbar__muted { color: var(--muted); }
.header__row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: .95rem;
}
.logo__dot { color: var(--purple); }
.search {
  flex: 1 1 180px; max-width: 280px;
  display: flex; position: relative; min-width: 0;
}
.search__input {
  width: 100%; padding: 9px 40px 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: var(--bg); outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.search__input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.search__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--purple); color: #fff; cursor: pointer; font-size: .9rem;
}
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav__link {
  padding: 7px 10px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: .86rem; white-space: nowrap;
}
.nav__link:hover {
  background: var(--purple-light); color: var(--purple-dark); text-decoration: none;
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-weight: 700; font-size: .82rem;
  color: var(--purple-dark); background: #fff;
}
.lang-switch:hover { background: var(--purple-light); text-decoration: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}

/* ===== breadcrumbs ===== */
.breadcrumbs { padding: 14px 20px 0; font-size: .84rem; color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; color: #d1d5db; }
.breadcrumbs .current { color: var(--text); }

/* ===== hero ===== */
.hero {
  background: linear-gradient(160deg, #ede9fe 0%, #fce7f3 45%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 28px; align-items: center;
}
.hero__eyebrow {
  margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--purple-dark);
}
.hero__title { max-width: 15ch; margin-bottom: 12px; }
.hero__lead { font-size: 1.05rem; max-width: 48ch; margin-bottom: 20px; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__trust-item {
  font-size: .8rem; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px;
}
.hero__visual { display: flex; justify-content: center; }
.hero__disc {
  width: min(260px, 70vw); height: min(260px, 70vw); border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  animation: spin 12s linear infinite;
}
.hero__disc-inner {
  width: 36%; height: 36%; border-radius: 50%;
  background: var(--ink);
  border: 4px solid rgba(255,255,255,.2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
  font-size: .92rem; border: 0; cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.btn--secondary {
  background: #fff; color: var(--purple-dark); border: 1px solid var(--purple);
}
.btn--ghost {
  background: transparent; color: var(--purple-dark); border: 1px solid var(--line);
}
.btn--lg { padding: 12px 20px; font-size: .98rem; }
.btn--sm { padding: 8px 14px; font-size: .82rem; }

/* ===== sections ===== */
.main { padding-bottom: 48px; min-width: 0; }
.section { margin: 32px 0; }
.taxonomy-axis { font-size: .98rem; margin: 16px 0 8px; color: var(--purple-dark); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}

.load-more {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.page-head { padding-top: 24px; }
.lead { font-size: 1.05rem; max-width: 68ch; color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  display: inline-flex; padding: 7px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--text);
  transition: all .15s;
}
.chip:hover {
  border-color: var(--purple); background: var(--purple-light);
  color: var(--purple-dark); text-decoration: none;
}
.chip--accent {
  background: var(--purple-light); border-color: var(--purple);
  color: var(--purple-dark); font-weight: 600;
}

/* ===== track list (flex — не ломается без rank) ===== */
.track-list {
  display: flex; flex-direction: column; gap: 6px;
}
.track-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
  transition: box-shadow .15s, border-color .15s;
}
.track-row:hover {
  box-shadow: var(--shadow);
  border-color: #ddd6fe;
}
.track-row__rank {
  flex: 0 0 22px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.track-row__cover {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--cover, var(--purple));
  display: grid; place-items: center;
  color: #fff; text-decoration: none;
}
.track-row__cover:hover { text-decoration: none; filter: brightness(1.08); }
.track-row__play { font-size: .7rem; opacity: .9; }
.track-row__info {
  flex: 1 1 auto;
  min-width: 0;
}
.track-row__title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row__title:hover { color: var(--purple); text-decoration: none; }
.track-row__sub {
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px; min-width: 0;
  font-size: .82rem; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.track-row__artist {
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis;
}
.track-row__artist:hover { color: var(--purple); }
.track-row__dot { opacity: .5; flex-shrink: 0; }
.track-row__year,
.track-row__dur { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.track-row__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ===== artist grid ===== */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.artist-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.artist-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .15s; min-width: 0;
}
.artist-card:hover {
  border-color: var(--purple); box-shadow: var(--shadow);
  text-decoration: none; transform: translateY(-2px);
}
.artist-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: grid; place-items: center; margin-bottom: 10px;
}
.artist-card__name {
  font-weight: 700; color: var(--ink); font-size: .9rem;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.artist-card__genre { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ===== stream buttons ===== */
.stream-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
.stream-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); transition: all .15s; min-width: 0;
}
.stream-btn:hover {
  border-color: var(--brand, var(--purple));
  box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px);
}
.stream-btn__icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand, var(--purple)); color: #fff;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.stream-btn__text { flex: 1; min-width: 0; }
.stream-btn__label { display: block; font-size: .72rem; color: var(--muted); }
.stream-btn__name {
  display: block; font-weight: 700; font-size: .92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stream-btn__arrow { color: var(--muted); font-size: 1.05rem; flex-shrink: 0; }
.stream-disclosure { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.badge {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
.badge--ad { background: #fef3c7; color: #92400e; }

/* ===== track / artist hero ===== */
.track-hero, .artist-head {
  display: flex; gap: 20px; align-items: flex-start;
  padding-top: 24px; flex-wrap: wrap;
}
.track-hero__cover, .artist-head__cover {
  width: 140px; height: 140px; border-radius: var(--radius);
  background: var(--cover, var(--purple));
  display: grid; place-items: center;
  box-shadow: var(--shadow); flex-shrink: 0;
}
.track-hero__info, .artist-head__info { flex: 1 1 220px; min-width: 0; }
.track-hero__play { font-size: 1.8rem; color: #fff; opacity: .9; }
.artist-head__initial { font-size: 3.4rem; font-weight: 800; color: #fff; }
.track-hero__artist { font-size: .92rem; color: var(--purple); font-weight: 600; }
.track-hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .86rem; color: var(--muted); margin-top: 8px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  padding: 4px 10px; background: var(--purple-light);
  color: var(--purple-dark); border-radius: 999px;
  font-size: .8rem; font-weight: 500;
}
.tag--muted { background: var(--line); color: var(--muted); }
.stream-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}

/* ===== cards / prose ===== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card--info { border-left: 4px solid var(--purple); }
.prose { max-width: 72ch; }
.eeat-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 28px;
  padding: 20px;
}
.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.steps li b { color: var(--ink); }

/* ===== FAQ ===== */
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 16px;
}
.faq__item summary {
  padding: 14px 0; cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 0 14px; color: var(--text); font-size: .94rem; }

/* ===== footer ===== */
.site-footer {
  background: var(--ink); color: #c4b5fd;
  padding: 40px 0 24px; margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px; margin-bottom: 28px;
}
.footer__tagline { font-size: .88rem; margin-top: 8px; color: #a78bfa; }
.footer__col h4 { color: #fff; margin-bottom: 12px; font-size: .88rem; }
.footer__col a { display: block; color: #c4b5fd; font-size: .86rem; margin-bottom: 8px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
}
.footer__disclosure { font-size: .76rem; color: #a78bfa; margin-bottom: 8px; }
.footer__copy { font-size: .76rem; color: #7c3aed; }
.logo--footer .logo__text { color: #fff; }

/* ===== brands ===== */
.brand-hero {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, #fff), #fff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 8px; flex-wrap: wrap;
}
.brand-hero__icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--brand);
  color: #fff; font-weight: 800; font-size: 1.8rem;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-hero__content { flex: 1 1 220px; min-width: 0; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brand-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.brand-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .15s; border-top: 3px solid var(--brand, var(--purple));
  min-width: 0;
}
.brand-card:hover {
  box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px);
}
.brand-card--lg { min-height: 148px; }
.brand-card__icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--brand);
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.brand-card__name { font-weight: 700; color: var(--ink); }
.brand-card__desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.brand-card__link { font-size: .84rem; color: var(--purple); font-weight: 600; margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  padding: 8px 0 8px 26px; position: relative;
  border-bottom: 1px solid var(--line);
}
.ticks li::before {
  content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
.brand-features { max-width: 640px; }

/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { margin-left: 0; }
}

@media (max-width: 768px) {
  .header__row { gap: 10px; }
  .search { order: 3; max-width: none; flex: 1 1 100%; }
  .header__actions { margin-left: auto; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 14px; flex-direction: column; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .header__row { position: relative; }
  .topbar__row { font-size: .74rem; }
  .topbar__muted { display: none; }

  .track-row { gap: 10px; padding: 10px; }
  .track-row__rank { display: none; }
  .track-row__cover { flex-basis: 40px; width: 40px; height: 40px; }
  .track-row__year { display: none; }
  .track-row__cta { padding: 7px 12px; font-size: .78rem; }

  .track-hero__cover, .artist-head__cover {
    width: 100px; height: 100px;
  }
  .brand-hero { padding: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 32px 0 28px; }
  .hero__title { max-width: none; }
}

@media (max-width: 420px) {
  .track-row__dur { display: none; }
  .hero__cta .btn { width: 100%; }
  .stream-buttons { grid-template-columns: 1fr; }
}
