* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Arimo', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.25rem;
    font-weight: 400;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

svg,
img {
    max-width: 100%;
    height: auto;
}

img:is([sizes="auto" i], [sizes^="auto," i]) {
    contain: size !important;
    contain-intrinsic-size: 300px 150px;
}

figure {
    margin: 1rem 0;
}

figure.aligncenter {
    display: flex;
    justify-content: center;
}

iframe {
    max-width: 100%;
    border-radius: var(--border-radius);
}

a {
    color: var(--text-color);
}

.band-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-primary);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.band-page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(16px);
    opacity: .5;
}

.band-page-output {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.band-card {
    background-color: var(--bg-secondary);
    background: linear-gradient(0deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: calc(var(--border-radius) * 2);
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.band-block-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .2;
    z-index: 1;
}

.band-block-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.band-block-info {
    position: relative;
    z-index: 2;
}

.band-page-header {
    display: grid;
    grid-template-columns: 60% auto;
    gap: 2rem;
}

.band-page-header-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
}

.band-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.band-page-title h1 {
    font-size: 8rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--highlight);
    text-align: center;
    line-height: 1;
    margin: 0;
}

.band-image {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

.band-short-desc p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    max-width: 100%;
    opacity: 0.92;
    font-weight: 350;
    letter-spacing: 0.01em;
    text-align: center;
}

.band-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}

.band-links a {
    display: block;
    width: 3rem;
    height: 3rem;
    background-color: var(--buttons);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color .3s;
}

.band-links a:hover {
    background-color: var(--accent);
}

.band-presave-block {
    display: grid;
    grid-template-columns: 20rem auto;
    gap: 2rem;
}

.band-presave-title h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.band-ya-block.ya-playlist {
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.band-card h3 {
    font-size: 4rem;
    line-height: 1.2;
    text-decoration: none;
    margin: 0;
    text-align: center;
}

.band-ya-block .block-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.band-ya-block iframe {
    width: 100% !important;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.ya-block-playlist {
    width: 100%;
}

.button-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--buttons);
    color: #000;
    text-decoration: none;
    transition: background-color .3s;
}

.button-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: .5rem;
}

.button-link:hover {
    background-color: var(--accent);
}

.band-vk-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.band-vk-block .block-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 820px) {
    .band-vk-block .block-title .button-link {
        margin-top: 0;
    }
}

.band-vk-text p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
    opacity: 0.92;
}

@media (min-width: 820px) {
    .band-vk-text{
        padding-right: 18rem;
    }
}

/* ─── Блок «Текст» ──────────────────────────────── */
.band-text-block {
    display: grid;
    grid-template-columns: 40% auto;
    gap: 2.5rem 3rem;
}

@media (min-width: 820px) {
    .band-text-block-title {
        grid-column: span 2;
    }

    .band-text-block-noimage {
        grid-column: span 2;
    }
}

.band-text-block-title h2 {
    text-align: center;
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--highlight);
    margin: 0;
    word-break: break-word;
}

.band-text-block-text p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
    opacity: 0.92;
}

.band-text-block-image {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.band-text-block-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ─── Блок «Дополнительные ссылки» ────────────── */
.band-extra-links-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.band-extra-links-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.band-extra-links-title h2 {
    text-align: center;
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--highlight);
    margin: 0;
    word-break: break-word;
}

.band-extra-links-list-odd a:last-child {
    grid-column: span 2;
}

.band-extra-links-list a {
    width: 100%;
    display: grid;
    grid-template-columns: 2rem auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--buttons);
    color: #000;
    text-decoration: none;
    transition: background .3s;
    text-decoration: none;
    word-break: break-all;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.band-extra-links-list a:hover {
    background-color: var(--accent);
    text-decoration: underline;
}

.button-link-wrap{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1260px) {
    .band-page-title h1 {
        font-size: 6rem;
        line-height: 1;
    }

    .band-short-desc p {
        font-size: 1rem;
        line-height: 1.2;
    }
}

@media (max-width: 980px) {
    .band-page-header {
        grid-template-columns: 1fr 1fr;
    }

    .band-page-title h1 {
        font-size: 4rem;
        line-height: 1;
    }
}

@media (max-width: 820px) {
    .band-card {
        padding: 1.5rem 1.5rem 1rem;
    }

    .band-text-block,
    .band-extra-links-list,
    .band-page-header {
        grid-template-columns: 1fr;
    }

    .band-page-header-column:first-child {
        order: 2;
    }

    .band-page-header-column:last-child {
        order: 1;
    }

    .band-text-block-image {
        width: 100%;
        height: auto;
    }

    .band-vk-block .block-title {
        flex-direction: column;
    }

    .band-links a {
        width: 4rem;
        height: 4rem;
    }

    .band-presave-block {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .band-vk-text p {
        font-size: 1rem;
        line-height: 1.1;
    }

    .band-vk-text {
        margin-top: 2rem;
    }

    .band-extra-links-list-odd a:last-child {
        grid-column: span 1 !important;
    }
}

@media (max-width: 620px) {
    html {
        font-size: 14px;
    }

    .band-releases-title h2,
    .band-card h3 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .band-extra-links-title h2 {
        font-size: 2rem;
        line-height: 1.1;
    }
}

@media (max-width: 380px) {
    .band-page-title h1 {
        font-size: 3rem;
        line-height: 1;
    }
}