/* === ШРИФТЫ === */
@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bounded';
    src: url('../fonts/Bounded-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === VARIABLES === */
:root {
    --bg: #000;
    --fg: #fff;
    --muted: #888;
    --font: 'Bounded', sans-serif;
    --max-w: 1200px;
    --gap: 24px;
}

/* === BASE === */
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    padding: var(--gap) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.logo-frame {
    background: var(--fg);
    color: var(--bg);
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
}

.nav__link:hover {
    color: var(--fg);
}

.nav__link.is-active {
    color: var(--fg);
}

.nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--fg);
}

/* === MAIN === */
.main {
    flex: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 60px var(--gap);
}

/* === FOOTER === */
.footer {
    margin-top: auto;
    padding: 40px var(--gap);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* === AUDIO PLAYER === */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    padding: 12px var(--gap);
    display: none;
    align-items: center;
    gap: 16px;
}

.audio-player.is-visible {
    display: flex;
}

.audio-player__btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
    flex-shrink: 0;
}

.audio-player__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audio-player__title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player__progress {
    height: 2px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.audio-player__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--fg);
}

/* === PAGES === */
.page {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    :root {
        --gap: 18px;
    }

    .header {
        padding-top: 18px;
        gap: 20px;
    }

    .logo-frame {
        padding: 12px 24px;
        font-size: 15px;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 20px;
        padding: 0 var(--gap);
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav__link {
        flex-shrink: 0;
        font-size: 12px;
    }

    .main {
        padding: 40px var(--gap) 60px;
    }
}
/* === TRACK LIST === */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    transition: background 0.2s;
}

.track:hover {
    background: rgba(255,255,255,0.06);
}

.track span {
    font-size: 15px;
    font-weight: 400;
}

.play-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 50%;
    transition: opacity 0.2s;
}

.play-btn:hover {
    opacity: 0.8;
}