/* ============================================================
   SoundWave — основной файл стилей
   ============================================================ */

:root {
    --ink: #0a0a12;
    --ink-2: #1e1b2e;
    --muted: #6b7280;
    --muted-2: #9ca3af;
    --brand: #7c3aed;
    --brand-dark: #6d28d9;
    --brand-soft: #f3e8ff;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --green: #059669;
    --red: #dc2626;
    --bg: #f7f5fb;
    --surface: #ffffff;
    --line: #e9e4f2;
    --line-2: #dcd3ea;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(10, 10, 18, .06), 0 1px 3px rgba(10, 10, 18, .08);
    --shadow-md: 0 12px 30px -14px rgba(30, 20, 60, .28);
    --shadow-lg: 0 34px 60px -28px rgba(20, 10, 50, .45);
    --container: 1240px;
    --header-h: 76px;
    --player-h: 84px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}

body.has-player { padding-bottom: var(--player-h); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

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

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ------------------------------ Шапка ------------------------------ */

.topbar { background: #0a0a12; color: #b8b2cc; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__link { color: #ddd6fe; border-bottom: 1px dashed rgba(221, 214, 254, .35); white-space: nowrap; }
.topbar__link:hover { color: #fff; border-color: #fff; }

.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(30, 20, 60, .5); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--pink) 100%);
    box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .9);
}
.logo__text { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.logo__text span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 12px; border-radius: 10px;
    font-size: 15px; font-weight: 600; color: var(--ink-2);
    transition: background .15s, color .15s;
}
.nav__link:hover, .nav__link.is-active { color: var(--brand); background: var(--brand-soft); }
.chev { transition: transform .2s; }
.nav__item--dropdown:hover .chev { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 230px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: .18s ease;
}
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
.dropdown__link:hover { background: var(--brand-soft); color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search { position: relative; display: flex; align-items: center; width: 250px; }
.search__input {
    width: 100%; height: 42px; padding: 0 42px 0 16px;
    border: 1px solid var(--line-2); border-radius: 12px;
    background: #faf8fd; font-size: 14px; outline: none; transition: .18s;
}
.search__input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.search__btn { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--muted); }
.search__btn:hover { background: var(--brand-soft); color: var(--brand); }

.search-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-md); overflow: hidden;
}
.search-suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 14px; }
.search-suggest a:hover { background: var(--bg); }
.search-suggest img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; }
.search-suggest .ss-sub { display: block; font-size: 11.5px; color: var(--muted); }
.search-suggest .ss-dur { margin-left: auto; font-size: 12px; color: var(--muted); }

.icon-btn {
    position: relative; height: 42px; min-width: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
    color: var(--ink-2); font-size: 14px; font-weight: 600; transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn__label { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-count {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; background: var(--pink); color: #fff; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; border: 2px solid #fff;
}

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ Кнопки ------------------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 12px;
    font-size: 15px; font-weight: 700; white-space: nowrap;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px rgba(124, 58, 237, .95); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255, 255, 255, .2); }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: #db2777; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr !important; }
}

/* ------------------------------- Хиро ------------------------------- */

.hero { position: relative; overflow: hidden; margin: 22px auto 0; max-width: var(--container); padding: 0 24px; }
.hero__panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px;
    padding: 60px 56px;
    border-radius: 30px;
    background:
        radial-gradient(900px 520px at 88% 0%, rgba(236, 72, 153, .35), transparent 60%),
        radial-gradient(760px 520px at 6% 100%, rgba(124, 58, 237, .55), transparent 60%),
        linear-gradient(135deg, #0a0714 0%, #1c1036 55%, #0a0714 100%);
    color: #fff;
}
.hero__panel::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 78%);
}
.hero__content { position: relative; z-index: 2; align-self: center; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #f9a8d4;
}
.hero__title { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, #f472b6, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { margin-top: 18px; max-width: 480px; color: #cfc9e2; font-size: 16.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; gap: 34px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.hero__stat span { font-size: 12.5px; color: #a79fc2; }

.hero__visual { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero__now {
    position: relative; width: min(360px, 100%);
    padding: 16px; border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
}
.hero__cover { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8); }
.hero__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__equalizer { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 46px; display: flex; align-items: flex-end; gap: 4px; }
.hero__equalizer i { flex: 1; background: rgba(255, 255, 255, .85); border-radius: 3px; height: 40%; animation: eq 1.1s ease-in-out infinite alternate; }
@keyframes eq { from { height: 12%; } to { height: 92%; } }
.hero__track { display: flex; align-items: center; gap: 10px; padding: 14px 4px 2px; }
.hero__track b { display: block; font-size: 15px; }
.hero__track span { display: block; font-size: 12.5px; color: #bdb4d6; }
.hero__play { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; }
.hero__chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
    padding: 9px 13px; border-radius: 13px; background: rgba(255, 255, 255, .95); color: var(--ink);
    box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 600;
}
.hero__chip--1 { top: 6%; right: -2%; }
.hero__chip--2 { bottom: 8%; left: -6%; }
.hero__chip small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }

/* ----------------------------- Секции ----------------------------- */

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.section__title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; font-weight: 800; }
.section__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.section__link:hover { gap: 12px; }

.genres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.genre-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 4px;
    padding: 20px; min-height: 118px;
    border-radius: 16px; border: 1px solid var(--line);
    background: var(--surface);
    transition: .2s;
}
.genre-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.genre-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.genre-card b { font-size: 15.5px; }
.genre-card span { font-size: 12.5px; color: var(--muted); }
.genre-card::after {
    content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 70%);
}

/* --------------------------- Карточка трека --------------------------- */

.tracks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tracks-grid--3 { grid-template-columns: repeat(3, 1fr); }

.track-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: .22s ease;
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.track-card__cover { position: relative; aspect-ratio: 1; overflow: hidden; background: #eee7f8; }
.track-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.track-card:hover .track-card__cover img { transform: scale(1.04); }

.play-btn {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    display: grid; place-items: center; color: #fff;
    background: rgba(124, 58, 237, .95);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7);
    transition: .2s;
}
.play-btn:hover { background: var(--pink); transform: scale(1.06); }

.track-card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 4px; }
.track-card__genre { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.track-card__title { font-size: 16px; line-height: 1.3; font-weight: 700; }
.track-card__title a:hover { color: var(--brand); }
.track-card__artist { font-size: 13.5px; color: var(--brand); font-weight: 600; }
.track-card__meta { display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.track-card__fav {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .85); color: var(--ink-2); backdrop-filter: blur(6px);
    transition: .15s;
}
.track-card__fav:hover { color: var(--pink); transform: scale(1.06); }
.track-card__fav.is-active { color: var(--pink); background: #fff; }
.track-card__fav.is-active svg { fill: currentColor; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge--new { background: var(--pink); color: #fff; }

/* ----------------------------- Список треков ----------------------------- */

.track-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.track-row { display: grid; grid-template-columns: 44px 54px minmax(0, 1fr) 120px 60px 84px 44px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: #fbf9ff; }
.track-row__play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--brand); display: grid; place-items: center; }
.track-row__play:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.track-row__cover { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; }
.track-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.track-row__title { font-weight: 700; font-size: 15px; }
.track-row__title:hover { color: var(--brand); }
.track-row__sub { font-size: 12.5px; color: var(--muted); }
.track-row__formats { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.track-row__dur, .track-row__dl { font-size: 13px; color: var(--muted); }
.track-row__get { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.track-row__get:hover { background: var(--brand); color: #fff; }

/* ------------------------------ Баннеры ------------------------------ */

.promo {
    display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 30px;
    padding: 42px 48px; border-radius: 26px; overflow: hidden;
    background: linear-gradient(120deg, #f3e8ff 0%, #fce7f3 100%);
    border: 1px solid #ead9ff;
}
.promo__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.promo__text { margin-top: 10px; color: var(--muted); max-width: 540px; }
.promo__img { justify-self: end; width: 100%; max-width: 380px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.step__num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feature__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.feature span { font-size: 12.8px; color: var(--muted); }

.subscribe { background: #0f0a1e; color: #fff; padding: 54px 0; }
.subscribe__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.subscribe h2 { font-size: 26px; letter-spacing: -.02em; }
.subscribe p { color: #a79fc2; margin-top: 6px; font-size: 14.5px; }
.subscribe__form { display: flex; gap: 10px; width: min(480px, 100%); }
.subscribe__form input { flex: 1; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; }
.subscribe__form input::placeholder { color: #a79fc2; }
.subscribe__form input:focus { outline: none; border-color: var(--pink); }

/* ------------------------------ Подвал ------------------------------ */

.footer { background: #08060f; color: #a79fc2; padding: 56px 0 0; margin-top: 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.logo--footer { color: #fff; margin-bottom: 16px; }
.footer__text { font-size: 14px; max-width: 330px; }
.footer__title { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__list li { margin-bottom: 9px; font-size: 14px; }
.footer__list a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.footer__socials a:hover { background: var(--brand); color: #fff; }
.footer__form { display: flex; gap: 8px; }
.footer__form input { flex: 1; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13.5px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #6f6788; }

/* ------------------------------ Плеер ------------------------------ */

.player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(12, 8, 22, .97); color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .8);
}
.player__inner { max-width: var(--container); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.player__toggle { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.player__toggle:hover { background: var(--pink); }
.player__cover { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.player__info { min-width: 150px; max-width: 240px; }
.player__info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__info span { display: block; font-size: 12px; color: #a79fc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__timeline { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #a79fc2; }
.player__bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); cursor: pointer; overflow: hidden; }
.player__fill { height: 100%; width: 0; background: linear-gradient(90deg, #a78bfa, #f472b6); border-radius: 999px; }
.player__download { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #ddd6fe; background: rgba(255, 255, 255, .08); }
.player__download:hover { background: var(--brand); color: #fff; }
.player__close { background: none; border: 0; color: #a79fc2; font-size: 24px; line-height: 1; }

/* ------------------------------ Страницы ------------------------------ */

.page-head { padding: 34px 0 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: var(--muted-2); }
.page-title { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; font-weight: 800; }
.page-subtitle { margin-top: 8px; color: var(--muted); max-width: 760px; }

.layout-catalog { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; padding: 26px 0 64px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters__group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filters__group:first-child { padding-top: 0; }
.filters__group:last-child { border-bottom: 0; padding-bottom: 0; }
.filters__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter-link { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.filter-link:hover { background: var(--bg); }
.filter-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.filter-link span { color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.catalog-toolbar__count { font-size: 14px; color: var(--muted); }
.catalog-toolbar__count b { color: var(--ink); }
.select { height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; font-size: 14px; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty { padding: 70px 20px; text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------------------------- Страница трека ---------------------------- */

.track-page { display: grid; grid-template-columns: 380px 1fr; gap: 46px; padding: 28px 0 30px; align-items: start; }
.track-page__cover { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); align-self: start; }
.track-page__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.track-page__cover .play-btn { width: 64px; height: 64px; right: 18px; bottom: 18px; }
.track-page__genre { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.track-page__title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 10px; }
.track-page__artist { font-size: 17px; color: var(--ink-2); font-weight: 600; }
.track-page__artist a { color: var(--brand); }
.track-page__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0; font-size: 13.5px; color: var(--muted); }
.track-page__meta b { color: var(--ink); }
.track-page__desc { color: var(--ink-2); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tag:hover { border-color: var(--brand); color: var(--brand); }

.downloads { display: grid; gap: 10px; margin: 22px 0; }
.download-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.download-row__fmt { width: 54px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.download-row b { font-size: 14px; }
.download-row span { font-size: 12.5px; color: var(--muted); }
.download-row .btn { margin-left: auto; }

.gate { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px solid #e3d2ff; margin: 22px 0; }
.gate b { display: block; font-size: 15px; }
.gate span { font-size: 13px; color: var(--muted); }
.gate .btn { margin-left: auto; }

.related { margin-top: 20px; }

/* ------------------------------- Формы ------------------------------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #fff; outline: none; transition: .15s; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .1); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12.5px; color: var(--red); }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert--info { background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; }

.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 40px auto 70px; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.auth__aside { padding: 44px; color: #fff; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(600px 400px at 80% 0%, rgba(236, 72, 153, .4), transparent 60%), linear-gradient(150deg, #0a0714, #241245); }
.auth__aside h2 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 12px; }
.auth__aside p { color: #cfc9e2; font-size: 14.5px; }
.auth__aside ul { margin-top: 22px; display: grid; gap: 10px; font-size: 14px; color: #e9e4f2; }
.auth__form { padding: 40px; }
.auth__form h1 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.02em; }
.auth__form .muted { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth__switch { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.auth__switch a { color: var(--brand); font-weight: 700; }

/* ------------------------------- Профиль ------------------------------- */

.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; padding: 24px 0 64px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.profile-card__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.profile-menu { display: grid; gap: 4px; margin-top: 20px; }
.profile-menu a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.profile-menu a:hover, .profile-menu a.is-active { background: var(--brand-soft); color: var(--brand); }
.profile-rows { display: grid; gap: 10px; }
.profile-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.profile-row__cover { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex: none; }
.profile-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-row b { font-size: 14.5px; }
.profile-row span { font-size: 12.5px; color: var(--muted); }
.profile-row__right { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); }

/* ------------------------------- Таблицы ------------------------------- */

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 14px 16px; background: #fbf9ff; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfaff; }

.status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status--new { background: #eff6ff; color: #1d4ed8; }
.status--done { background: #f0fdf4; color: #15803d; }

/* ------------------------------- Toast ------------------------------- */

.toast {
    position: fixed; right: 24px; bottom: calc(var(--player-h) + 16px); z-index: 500;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: 13px;
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { background: #b91c1c; }

.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 24px; z-index: 300; display: grid; gap: 10px; }
.flash { padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md); background: #fff; border-left: 4px solid var(--brand); animation: slideIn .3s ease; }
.flash--success { border-color: var(--green); }
.flash--error { border-color: var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

/* --------------------------- Анимации --------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__equalizer i { animation: none; height: 40%; }
}

/* ---------------------------- Адаптивность ---------------------------- */

@media (max-width: 1100px) {
    .hero__panel { padding: 46px 38px; }
    .genres { grid-template-columns: repeat(3, 1fr); }
    .tracks-grid { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .layout-catalog { grid-template-columns: 230px 1fr; }
    .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer__col--brand { grid-column: 1 / -1; }
    .track-page { grid-template-columns: 320px 1fr; gap: 30px; }
    .track-row { grid-template-columns: 44px 54px minmax(0, 1fr) 60px 44px; }
    .track-row__formats, .track-row__dl { display: none; }
}

@media (max-width: 900px) {
    .topbar__right { display: none; }
    .nav {
        position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px 20px 24px; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .25s ease; z-index: 90;
        max-height: calc(100vh - var(--header-h)); overflow: auto;
    }
    .nav.is-open { transform: translateY(0); }
    .nav__link { padding: 13px 12px; border-radius: 10px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
    .nav__item--dropdown.is-open .dropdown { display: block; }
    .burger { display: block; }
    .search { width: 180px; }
    .header__inner { gap: 14px; }
    .hero__panel { grid-template-columns: 1fr; padding: 40px 30px; }
    .hero__visual { display: none; }
    .track-page { grid-template-columns: 1fr; }
    .track-page__cover { max-width: 360px; }
    .promo { grid-template-columns: 1fr; padding: 32px; }
    .promo__img { display: none; }
    .steps { grid-template-columns: 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .profile-grid { grid-template-columns: 1fr; }
    .layout-catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .subscribe__inner { flex-direction: column; align-items: flex-start; }
    .tracks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .container { padding: 0 16px; }
    .topbar__left .topbar__item:last-child { display: none; }
    .header__inner { height: 66px; }
    .logo__text { font-size: 18px; }
    .logo__mark { width: 38px; height: 38px; }
    .search { display: none; }
    .icon-btn__label { display: none; }
    .icon-btn { padding: 0 10px; }
    .genres { grid-template-columns: repeat(2, 1fr); }
    .tracks-grid, .tracks-grid--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .features { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
    .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero { margin-top: 14px; padding: 0 16px; }
    .hero__panel { padding: 32px 22px; border-radius: 22px; }
    .hero__stats { gap: 20px; }
    .hero__stat b { font-size: 20px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer__bottom { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .page-head { padding-top: 22px; }
    .track-row { grid-template-columns: 40px 48px minmax(0, 1fr) 40px; gap: 10px; }
    .track-row__dur { display: none; }
    .track-row__cover { width: 48px; height: 48px; }
    .player__info { min-width: 90px; }
    .player__timeline { display: none; }
    .player__inner { gap: 10px; padding: 10px 14px; }
    .player__download { display: none; }
}

@media (max-width: 480px) {
    .genres { grid-template-columns: 1fr; }
    .tracks-grid, .tracks-grid--3 { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .subscribe__form { flex-direction: column; }
    .footer__grid { grid-template-columns: 1fr; }
    .download-row { flex-wrap: wrap; }
    .download-row .btn { width: 100%; }
}
