@font-face {
    font-family: "GT Pressura Mono";
    src: url("/fonts/GT-Pressura-LCGV-Mono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GT Pressura Mono";
    src: url("/fonts/GT-Pressura-LCGV-Mono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GT Pressura Mono";
    src: url("/fonts/GT-Pressura-LCGV-Mono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #020202;
    --text: #f0eee6;
    --muted: #d1cdc2;
    --panel: #dbd7cd;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "GT Pressura Mono", monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.record-page {
    display: flex;
    justify-content: center;
}

.record-shell {
    width: min(100%, 460px);
    padding: 26px 24px 48px;
}

.record-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.1;
}

.record-nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.record-nav-link:last-child {
    justify-self: end;
}

.record-brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    white-space: nowrap;
}

.record-brand-logo {
    width: clamp(156px, 38vw, 210px);
    height: auto;
    display: block;
}

.record-styleline {
    margin: 0 0 14px;
    min-height: 1.2em;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.record-cover-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0d0d0d;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.record-cover-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.record-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 220ms ease, filter 320ms ease;
}

.record-cover.is-loading {
    opacity: 0;
    filter: blur(10px);
}

.record-cover.is-loaded {
    opacity: 1;
    filter: blur(0);
}

.record-main {
    padding: 2px 8px 0;
}

.record-title {
    margin: 0;
    font-size: 45px;
    line-height: 1.06;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.record-subtitle {
    margin: 12px 0 0;
    font-size: 18px;
    color: var(--muted);
    font-weight: 500;
}

.record-format {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.record-condition {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

.record-buy {
    margin-top: 18px;
    background: var(--panel);
    color: #0e0e0e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px 10px 10px;
}

.record-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.record-price-label {
    font-size: 14px;
    font-weight: 700;
}

.record-price-value {
    font-size: 30px;
    line-height: 0.95;
    font-weight: 700;
}

.record-ruble-char {
    display: inline-block;
    margin-left: 0.10em;
    font-family: "GT Pressura Mono", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    line-height: 1;
    vertical-align: -0.03em;
}

.record-ruble-svg {
    display: inline-block;
    width: 0.43em;
    height: 0.64em;
    margin-left: 0.08em;
    vertical-align: -0.02em;
    background-color: currentColor;
    -webkit-mask-image: url("/images/ruble-glyph.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("/images/ruble-glyph.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.record-buy-link {
    color: #0e0e0e;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.record-tracklist-wrap {
    margin-top: 22px;
    padding: 0 8px;
}

.record-tracklist-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.record-tracklist {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
}

.record-error {
    margin-top: 20px;
    padding: 0 10px;
    color: #ff8d8d;
    font-size: 16px;
}

@media (max-width: 520px) {
    .record-shell {
        width: 100%;
        padding: calc(70px + env(safe-area-inset-top, 0px)) 24px 40px;
    }

    .record-topbar {
        font-size: 16px;
    }

    .record-styleline {
        font-size: 11px;
    }

    .record-title {
        font-size: 23px;
    }

    .record-subtitle {
        font-size: 16px;
    }

    .record-format {
        font-size: 16px;
    }

    .record-condition {
        font-size: 15px;
    }

    .record-price-label {
        font-size: 15px;
    }

    .record-price-value {
        font-size: 43px;
    }

    .record-buy-link {
        font-size: 18px;
        gap: 12px;
    }

    .record-tracklist-title {
        font-size: 12px;
    }

    .record-tracklist {
        font-size: 12px;
    }
}
