/* ==========================================================================
   MAIN PAGE UI REFRESH — визитка в том же языке, что и плеер.
   Акцентные цвета (#a855f7 / #c084fc) НЕ меняются.
   ========================================================================== */

:root {
    --font-body: var(--font-stack);
    --font-heading: var(--font-stack);
    /* Те же поверхности, что и в плеере */
    --bg-dark: #0e0e10;
    --bg-surface: #131316;
    --bg-card: rgba(24, 24, 27, 0.82);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(168, 85, 247, 0.42);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(168, 85, 247, 0.16), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.08), transparent 55%),
        var(--bg-dark);
}

/* Сетка на фоне становится едва заметной — как в стриминговых сервисах */
body::before { opacity: 0.025; background-size: 44px 44px; }

/* Скроллбары как в плеере */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

/* Шапка */
.site-header {
    background: rgba(12, 12, 14, 0.86);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav-links a { border-radius: 999px; padding: 6px 12px; transition: all 0.18s var(--ease-out); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--violet-bright); }

/* Кнопки — тот же ритм, что и в плеере */
.btn { transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), border-color 0.16s var(--ease-out); }
.btn-solid {
    background: var(--violet-main);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}
.btn-solid:hover { background: var(--violet-bright); }
.btn-line {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 2px; border-radius: 8px; }

/* Карточки — такие же, как карточки плейлистов в плеере */
.info-card,
.hero-player-card {
    background: linear-gradient(180deg, #17171a, #131316);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.info-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.card-icon { border-radius: var(--radius-sm); background: rgba(168, 85, 247, 0.14); border-color: rgba(168, 85, 247, 0.28); }

/* Демо-плеер: ведёт себя как нижняя панель настоящего плеера */
.cover-art-box { border-radius: var(--radius-md); }
.progress-bar-container { height: 5px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.progress-bar-fill {
    background: linear-gradient(90deg, var(--violet-main), var(--violet-bright));
    box-shadow: none;
}
.hero-player-card .control-btn.play-main {
    background: var(--violet-main);
    color: #0b0b0d;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}
.hero-player-card .control-btn.play-main svg { fill: #0b0b0d; }
.hero-player-card .control-btn.play-main:hover { background: var(--violet-bright); color: #0b0b0d; transform: scale(1.06); }

/* Заголовки */
.hero-title,
.section-title { letter-spacing: -0.01em; }

/* Same typography, controls and surfaces as the library. */
.hero-title { font-size: clamp(3rem, 5.8vw, 5.4rem); line-height: 1.08; font-weight: 750; letter-spacing: -.055em; text-transform: none; text-shadow: none; }
.hero-title { background: none; -webkit-text-fill-color: currentColor; color: #fff; }
.hero-title span { color: var(--violet-bright); }
.hero-lead { max-width: 520px; font-size: 1.05rem; line-height: 1.75; color: #a7a7b0; }
.section-title { font-weight: 700; text-transform: none; letter-spacing: -.04em; line-height: 1.15; }
.badge-label { border: 0; background: #a855f716; color: var(--violet-bright); border-radius: 999px; letter-spacing: .06em; }
.btn { border-radius: 999px; font-family: var(--font-stack); font-weight: 650; text-transform: none; letter-spacing: 0; min-height: 46px; }
.btn-solid, .hero-player-card .control-btn.play-main { box-shadow: none; }
.hero-player-card { transform: none; border-radius: 24px; overflow: hidden; background: #1b1b1f; }
.hero-player-card:hover { transform: none; }
.info-card { box-shadow: none; border-radius: 20px; overflow: hidden; background: #1b1b1f; }
.info-card:hover { box-shadow: none; }
.info-card h3 { text-transform: none; letter-spacing: -.02em; }
.player-status-bar { color: #a7a7b0; }
.cover-art-box { background: #241a32; border: 1px solid #3b2d50; box-shadow: none; }
.status-pill { background: #a855f716; border-color: #a855f733; }
.site-footer { color: #a7a7b0; }
.mobile-copy { display: none; }
@media (max-width: 640px) {
    .desktop-copy { display: none; }
    .mobile-copy { display: inline; }
    .section-screen { touch-action: pan-x; min-height: 100svh; padding-bottom: 40px; }
    .card-body, .cards-grid > *, .hero-content { min-width: 0; overflow-wrap: anywhere; }
    .info-card { height: auto; }
}
@media (max-width: 600px) {
    .hero-title { font-size: clamp(2.75rem, 11vw, 3.8rem); }
    .hero-actions .btn { width: 100%; }
    .hero-player-card { padding: 22px; }
}

/* Подвал */
.site-footer { background: #0a0a0c; border-top: 1px solid var(--border-subtle); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
