/* Публичные страницы (чарт, артисты, «узнать песню») — дизайн-система приложения.
   Чарт и артисты собираются на бэкенде (admin-backend/seo.py), этот файл лежит на сайте. */
:root {
  --bg: #16161a; --surface: #1e1e24; --surface-2: #1f1f24; --surface-3: #2a2a30; --border: #26262c;
  --muted: #9a9aa2; --subtle: #6a6a72; --play: #ffc400; --accent: #7a2be0; --card: 20px;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: #fff; font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
h1, h2 { margin: 0; font-weight: 900; letter-spacing: -0.04em; line-height: .95; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 56px; }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--play); }
.sub { margin: 16px 0 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #b17aee; outline-offset: 3px; border-radius: 12px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgb(22 22 26 / 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 999px; }
.links { display: flex; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.links a { padding: 8px 12px; border-radius: 999px; }
.links a:hover { color: #fff; background: var(--surface); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: scale(1.03); }
.btn-play { background: var(--play); color: #000; }
.btn-surface { background: var(--surface-3); color: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

main { padding: 56px 0 24px; }
.head { margin-bottom: 32px; }

/* Список треков — как в приложении */
.tracks { margin: 28px 0 0; padding: 8px; list-style: none; border-radius: var(--card); background: var(--surface); }
.trk { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; transition: background-color .15s ease; }
.trk:hover { background: var(--surface-3); }
.trk .n { width: 26px; text-align: right; font-weight: 800; color: var(--subtle); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.trk .cv { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--surface-3); }
.trk .cv.ph { background: linear-gradient(135deg, #ffbd05, #eb528c 55%, #7324e6); }
.trk .tt { flex: 1; min-width: 0; }
.trk b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk small { color: var(--muted); font-size: 14px; }
.trk small a:hover { color: #fff; text-decoration: underline; }
.trk .d { color: var(--subtle); font-size: 14px; font-variant-numeric: tabular-nums; }
.trk .play { width: 40px; height: 40px; border-radius: 999px; background: var(--play); color: #000; display: grid; place-items: center; flex: 0 0 auto; opacity: 0; transition: opacity .15s ease, transform .2s ease; }
.trk:hover .play, .trk .play:focus-visible { opacity: 1; }
.trk .play:hover { transform: scale(1.08); }
.trk .play svg { width: 18px; height: 18px; margin-left: 2px; }
@media (hover: none) { .trk .play { opacity: 1; } }

.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; }
.chip:hover { background: var(--surface-3); }

.artist { display: flex; align-items: center; gap: 28px; }
.ava { width: 160px; height: 160px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; background: var(--surface-3); }
.ava.ph { background: linear-gradient(135deg, #ffbd05, #eb528c 55%, #7324e6); display: grid; place-items: center; font-size: 64px; font-weight: 900; color: rgb(255 255 255 / 0.9); }
.text p { margin: 14px 0 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.cta-card { margin-top: 56px; border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  background: radial-gradient(120% 80% at 100% 0%, rgb(122 43 224 / 0.3), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(255 196 0 / 0.14), transparent 60%), var(--surface); }
.cta-card b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.cta-card span { display: block; margin-top: 6px; max-width: 520px; color: var(--muted); line-height: 1.5; }
.cta-card .row { margin: 0; }

/* «Узнать песню» */
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { border-radius: var(--card); background: var(--surface); padding: 24px; line-height: 1.5; color: #d6d6dc; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-3); color: var(--play); font-weight: 900; }
.steps b { color: #fff; }
.faq { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border-radius: var(--card); background: var(--surface); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; }

footer { margin-top: 64px; border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: #fff; }

@media (max-width: 720px) {
  .links { display: none; }
  .artist { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ava { width: 120px; height: 120px; }
  .steps { grid-template-columns: 1fr; }
  .trk .d { display: none; }
}
