:root {
    color-scheme: light;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --ink: #06050c;
    --text: #17121f;
    --muted: #665f72;
    --border: #e7dfef;
    --accent: #692cfe;
    --accent-2: #e336cf;
    --cyan: #18b7f4;
    --soft: #f2ecff;
    --pink-soft: #ffeafd;
    --shadow: 0 22px 60px rgba(31, 18, 54, 0.13);
    --accent-shadow: rgba(105, 44, 254, 0.25);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    background: transparent;
}

body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 0%, rgba(105, 44, 254, 0.14), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(24, 183, 244, 0.14), transparent 22rem),
        linear-gradient(135deg, #ffffff 0%, #f5f4f8 100%);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
.progress:focus-visible {
    outline: 3px solid rgba(105, 44, 254, 0.28);
    outline-offset: 3px;
}

.page {
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 22px 24px 42px;
}

.hero {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 8px 0 22px;
}

.logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(6, 5, 12, 0.12);
}

.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.24em;
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

.flip {
    display: inline-flex;
    height: 1.08em;
    overflow: hidden;
    color: var(--accent-2);
    vertical-align: top;
}

.flip-inner {
    display: flex;
    flex-direction: column;
    animation: flip-words 8s infinite;
}

.flip-inner span {
    display: block;
    line-height: 1.08;
    white-space: nowrap;
}

.lead {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.playlist-section {
    padding: 26px 0 8px;
}

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

.section-head h2 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.section-head p {
    margin-bottom: 0;
    color: var(--muted);
}

.track-count {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 7px 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.track-list {
    display: grid;
    gap: 12px;
}

.track-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px 52px minmax(0, 1fr) 132px;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.9)),
        #fff;
    box-shadow: var(--shadow);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.track-card.is-playing {
    border-color: rgba(105, 44, 254, 0.55);
    box-shadow: 0 24px 62px rgba(105, 44, 254, 0.2);
}

.cover {
    position: relative;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8), transparent 28%),
        linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

.sound-bars {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: end;
    gap: 3px;
    opacity: 0;
}

.sound-bars span {
    display: block;
    width: 4px;
    height: 12px;
    border-radius: 999px;
    background: #fff;
    animation: barMove 700ms ease-in-out infinite alternate;
}

.sound-bars span:nth-child(2) {
    height: 18px;
    animation-delay: 140ms;
}

.sound-bars span:nth-child(3) {
    height: 9px;
    animation-delay: 280ms;
}

.track-card.is-playing .sound-bars {
    opacity: 1;
}

.play-button {
    display: inline-flex;
    width: 52px;
    height: 52px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 14px 30px var(--accent-shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.play-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(227, 54, 207, 0.24);
}

.play-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.icon-pause,
.track-card.is-playing .icon-play {
    display: none;
}

.track-card.is-playing .icon-pause {
    display: block;
}

.track-main {
    min-width: 0;
}

.track-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.track-title-row h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.15;
}

.track-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

.track-pills span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border: 1px solid rgba(105, 44, 254, 0.14);
    border-radius: 999px;
    background: #fff;
    padding: 4px 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.track-comment {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.progress {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgba(105, 44, 254, 0.22) 0 5px, transparent 5px 11px),
        var(--soft);
    cursor: pointer;
}

.progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--cyan));
}

.progress-row time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.buy-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.44), transparent 20%),
        linear-gradient(100deg, var(--cyan) 0%, var(--accent) 42%, var(--accent-2) 100%);
    color: #fff;
    padding: 12px 22px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(105, 44, 254, 0.27);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.buy-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 44%, transparent 60%);
    transform: translateX(-120%);
    animation: buttonShine 3200ms ease-in-out infinite;
}

.buy-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 48px rgba(227, 54, 207, 0.28);
}

.buy-button > span:last-child {
    position: relative;
    z-index: 2;
}

.spark {
    position: absolute;
    z-index: 1;
    width: 16px;
    height: 16px;
    background: #fff;
    clip-path: polygon(50% 0%, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0% 50%, 38% 37%);
    animation: sparklePulse 1600ms ease-in-out infinite;
}

.spark::before,
.spark::after {
    display: none;
}

.sparkle-main {
    left: 16px;
    top: 50%;
    translate: 0 -50%;
}

.sparkle-one {
    top: 11px;
    left: 38px;
    width: 8px;
    height: 8px;
    animation-delay: 380ms;
}

.sparkle-two {
    right: 18px;
    bottom: 12px;
    width: 9px;
    height: 9px;
    animation-delay: 760ms;
}

.marquee-ribbon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid rgba(105, 44, 254, 0.18);
    border-radius: 18px;
    background: linear-gradient(90deg, #effbff, #f3edff 48%, #ffeafd);
    box-shadow: 0 16px 34px rgba(31, 18, 54, 0.09);
}

.marquee-label,
.marquee-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    border: 0;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent);
    padding: 0 16px;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}

.marquee-label:hover,
.marquee-cta:hover {
    color: var(--accent-2);
}

.marquee-label {
    border-right: 1px solid rgba(105, 44, 254, 0.14);
}

.marquee-cta {
    border-left: 1px solid rgba(105, 44, 254, 0.14);
}

.marquee-track {
    overflow: hidden;
    pointer-events: none;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeRun 18s linear infinite;
    pointer-events: none;
}

.marquee-content span {
    padding: 0 22px;
    color: var(--ink);
    font-weight: 850;
    white-space: nowrap;
}

.marquee-ribbon:hover .marquee-content {
    animation-play-state: paused;
}

.empty-state {
    display: grid;
    gap: 5px;
    border: 1px dashed rgba(105, 44, 254, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    padding: 24px;
    color: var(--muted);
}

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

.modal {
    position: absolute;
    inset: 0;
    z-index: 20;
    min-height: 100%;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    min-height: 100%;
    background: rgba(6, 5, 12, 0.48);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: absolute;
    top: var(--modal-top, 24px);
    left: 50%;
    z-index: 1;
    width: min(420px, 100%);
    max-width: calc(100vw - 44px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 4%, rgba(24, 183, 244, 0.22), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fbf8ff 100%);
    padding: 28px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(6, 5, 12, 0.28);
    animation: modalIn 220ms ease both;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f3eef9;
    color: var(--ink);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.modal-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(105, 44, 254, 0.16);
}

.modal-card h2 {
    margin: 18px 0 4px;
    color: var(--ink);
    font-size: 30px;
}

.modal-card p {
    margin-bottom: 8px;
    color: var(--muted);
}

.modal-track {
    display: block;
    margin: 12px 0 16px;
    color: var(--accent);
    font-size: 15px;
}

.messengers {
    display: grid;
    gap: 10px;
}

.messengers a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 950;
    text-align: left;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.messengers a:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 44, 254, 0.34);
    box-shadow: 0 14px 30px rgba(31, 18, 54, 0.1);
}

.messengers img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

#pageAudio {
    display: none;
}

.bitrix-order-trigger {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 44px;
    height: 44px;
    opacity: 0;
}

@keyframes flip-words {
    10% { transform: translateY(-112%); }
    25% { transform: translateY(-100%); }
    35% { transform: translateY(-212%); }
    50% { transform: translateY(-200%); }
    60% { transform: translateY(-312%); }
    75% { transform: translateY(-300%); }
    85% { transform: translateY(-312%); }
    100% { transform: translateY(-300%); }
}

@keyframes buttonShine {
    0%,
    45% {
        transform: translateX(-120%);
    }
    78%,
    100% {
        transform: translateX(120%);
    }
}

@keyframes sparklePulse {
    0%,
    100% {
        opacity: 0.34;
        transform: scale(0.72);
    }
    45% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes barMove {
    to {
        transform: scaleY(0.45);
    }
}

@keyframes marqueeRun {
    to {
        transform: translateX(-33.333%);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, 16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@media (max-width: 820px) {
    .page {
        padding: 18px 16px 34px;
    }

    .hero {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px;
    }

    .logo {
        width: 68px;
        height: 68px;
        border-radius: 17px;
    }

    .lead {
        font-size: 16px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .track-card {
        grid-template-columns: 70px 48px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .cover {
        width: 70px;
        height: 70px;
        border-radius: 11px;
    }

    .play-button {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }

    .track-main {
        grid-column: 3;
    }

    .track-title-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .track-pills {
        justify-content: start;
    }

    .buy-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .marquee-ribbon {
        grid-template-columns: 1fr auto;
    }

    .marquee-label {
        display: none;
    }

    .modal-card {
        padding: 24px 18px;
    }
}

@media (max-width: 520px) {
    .page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-text {
        min-width: 0;
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow-wrap: anywhere;
    }

    .logo {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    h1 {
        display: block;
        font-size: 32px;
    }

    .lead {
        font-size: 15px;
        max-width: calc(100vw - 28px);
        white-space: normal;
        word-break: break-word;
    }

    .playlist-section,
    .track-list {
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow: hidden;
    }

    .flip {
        display: flex;
        width: 100%;
    }

    .track-card {
        grid-template-columns: 62px minmax(0, 1fr);
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow: hidden;
    }

    .cover {
        width: 62px;
        height: 62px;
        border-radius: 10px;
    }

    .play-button {
        grid-column: 1;
        grid-row: 2;
        width: 62px;
    }

    .track-main {
        grid-column: 2;
        grid-row: 1 / span 2;
        max-width: calc(100vw - 126px);
        overflow: hidden;
    }

    .track-title-row h3 {
        font-size: 18px;
    }

    .track-pills span {
        padding: 4px 8px;
        font-size: 11px;
    }

    .progress-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .progress-row time {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
