/* ============================================
   HERO MODULE - MODULAR ARCHITECTURE
   Entry point for all hero-related styles
   ============================================ */

/* Base hero section layout and animations */
/* ---- inlined: hero/hero-section.css ---- */
/* ============================================
   HERO SECTION — v4
   Композиция первого экрана: портрет, имя артиста, единый блок
   актуального релиза/выступления и входы в разделы сайта.
   База — мобильная раскладка; десктопная сетка в hero-responsive.css.
   ============================================ */

.hero-section {
    --hero-radius-lg: 24px;
    --hero-glass-border: rgba(255, 255, 255, 0.14);
    --hero-text-soft: rgba(224, 224, 224, 0.8);
    --hero-text-muted: rgba(224, 224, 224, 0.64);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: max(10px, env(safe-area-inset-top)) clamp(14px, 4vw, 24px) max(10px, env(safe-area-inset-bottom));
    background: transparent;
    overflow: hidden;
    transition: filter 0.3s ease, opacity 0.5s ease, transform 0.1s ease-out;
}

/* Существующая фоновая анимация секции: медленное вращение мягкого блика.
   z-index поднимает блик над непрозрачной подложкой, но под контентом. */
.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.1) 0%, transparent 70%);
    animation: hero-glow-rotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hero-glow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Тонировка первого экрана градиентом фотографии артиста. Слой лежит выше
   фиксированного видеофона, но ниже контента: плеер продолжает работать,
   а цвета снимка задают настроение и мягко затемняют кадр. */
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #07080b;
    /* Mesh-градиент: пятна доминирующих цветов фотографии артиста.
       Палитру считает applyDynamicPalette() и кладёт в --hero-aura-*. */
    background-image:
        radial-gradient(48% 52% at 22% 28%, rgba(var(--hero-aura-1, 96, 122, 158), 0.55), transparent 72%),
        radial-gradient(52% 58% at 78% 30%, rgba(var(--hero-aura-2, 156, 112, 88), 0.45), transparent 74%);
}

/* Живой градиент: второй и третий слои пятен медленно перетекают
   относительно основы. Анимируются только transform и opacity. */
.hero-backdrop::before,
.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: -28%;
    background-repeat: no-repeat;
    pointer-events: none;
    will-change: transform;
    mix-blend-mode: screen;
}

.hero-backdrop::before {
    background-image:
        radial-gradient(50% 54% at 28% 70%, rgba(var(--hero-aura-3, 88, 126, 120), 0.6), transparent 74%),
        radial-gradient(44% 48% at 74% 76%, rgba(var(--hero-aura-1, 96, 122, 158), 0.5), transparent 72%);
    animation: hero-backdrop-drift-a 40s ease-in-out infinite alternate;
}

.hero-backdrop::after {
    background-image:
        radial-gradient(56% 60% at 64% 18%, rgba(var(--hero-aura-4, 128, 100, 148), 0.5), transparent 76%),
        radial-gradient(46% 50% at 12% 54%, rgba(var(--hero-aura-2, 156, 112, 88), 0.45), transparent 74%);
    opacity: 0.8;
    animation: hero-backdrop-drift-b 54s ease-in-out infinite alternate;
}

/* Затемняющая вуаль над фоном: сильнее к краям и низу, чтобы контент
   и нижние секции оставались читаемыми. */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(140% 100% at 50% 4%, rgba(4, 5, 7, 0.12) 0%, rgba(4, 5, 7, 0.5) 52%, rgba(4, 5, 7, 0.8) 100%),
        linear-gradient(180deg, rgba(4, 5, 7, 0.28) 0%, rgba(4, 5, 7, 0.55) 58%, rgba(4, 5, 7, 0.85) 100%);
}

@keyframes hero-backdrop-drift-a {
    from { transform: translate3d(-6%, -4%, 0) scale(1.08) rotate(-2deg); }
    to { transform: translate3d(7%, 5%, 0) scale(1.22) rotate(3deg); }
}

@keyframes hero-backdrop-drift-b {
    from { transform: translate3d(6%, 6%, 0) scale(1.24) rotate(4deg); }
    to { transform: translate3d(-7%, -5%, 0) scale(1.06) rotate(-3deg); }
}

.hero-topbar,
.hero-inner,
.hero-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

/* ---- Верхняя строка ---- */
.hero-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 4px;
}

.hero-business-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.22);
    color: inherit;
    font-size: 12px;
    text-decoration: none;
    transition:
        background 0.25s,
        border-color 0.25s,
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-business-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--surface-hover-border);
    transform: translateY(var(--surface-hover-lift));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 30px rgba(0, 0, 0, 0.28),
        var(--surface-glow-soft);
}

.hero-business-icon {
    display: inline-flex;
    color: #d9d9d9;
}

/* ---- Центральная колонка ---- */
.hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 8px;
}

/* Обёртка объединённого блока (фото + релиз + плитки): на мобильных
   не создаёт бокс, на десктопе собирает прямоугольник в центре секции. */
.hero-stage {
    display: contents;
}

/* Обёртка правой колонки: на мобильных не создаёт бокс, на десктопе
   собирает панель релиза и плитки в одну колонку. */
.hero-side {
    display: contents;
}

.hero-identity {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    /* Свободное место над и под именем делится поровну: блок стоит по центру
       между шапкой и фотографией артиста. */
    margin-top: auto;
    margin-bottom: auto;
}

.artist-name {
    font-family: var(--font-display);
    font-size: clamp(36px, 12vw, 52px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.36));
}

.name-gradient {
    background: linear-gradient(135deg, #fafafa 0%, #dadada 38%, #b0b0b0 67%, #989898 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-gradient-shift 5s ease infinite;
}

@keyframes hero-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-intro {
    display: grid;
    /* Все варианты надписи лежат в одной ячейке; активный центрируется
       и по горизонтали, и по вертикали, поэтому смена текста (в том числе
       на более длинный в несколько строк) не смещает имя относительно
       середины зазора между верхом экрана и блоком. */
    align-items: center;
    justify-items: center;
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
    color: var(--hero-text-soft);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
}

/* Ротирующиеся надписи лежат в одной ячейке: смена не двигает макет. */
.hero-intro__line {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-intro__line.is-active {
    opacity: 1;
    transform: none;
}

/* ---- Портрет ---- */
.hero-portrait {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* Портрет — гибкий элемент: вбирает остаток высоты, поэтому первый
       экран целиком помещается в экран, а если упирается в максимум —
       свободное место уходит в auto-отступы блока имени, которое
       центрируется между шапкой и фото. */
    flex: 1 1 auto;
    height: auto;
    min-height: 168px;
    max-height: min(50svh, 480px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 0.87;
    margin: 10px auto 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 21px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.1));
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-portrait-media {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    transform: translateZ(0);
}

.artist-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    margin-left: -5%;
    margin-top: -5%;
    object-fit: cover;
    object-position: 50% 24%;
    transition: transform 0.4s ease;
}

.hero-portrait-caption {
    display: none;
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(38, 39, 41, 0.84), rgba(12, 12, 12, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: 1.25;
    color: #e5e5e5;
}

/* ---- Центральный блок: релиз / выступление ---- */
.hero-spotlight {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 13px;
    width: 100%;
    margin-top: -20px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--dynamic-border, var(--hero-glass-border));
    border-radius: var(--hero-radius-lg);
    /* Цвет панели берётся из обложки релиза/афиши (--dynamic-bg от gradient.js,
       как у карточек треков), сверху — затемняющая вуаль для читаемости. */
    background:
        linear-gradient(160deg, rgba(10, 11, 12, 0.22), rgba(6, 7, 8, 0.58)),
        var(--dynamic-bg, linear-gradient(145deg, rgba(37, 39, 41, 0.78), rgba(11, 12, 13, 0.88)));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Фирменная реакция на наведение: панель светлеет, как .glass-card. */
.hero-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: var(--surface-hover-background);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-spotlight > * {
    position: relative;
    z-index: 1;
}

.hero-spotlight-media {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.33);
    align-self: center;
}

.hero-spotlight-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-spotlight-cover[hidden],
.hero-spotlight-date[hidden] {
    display: none !important;
}

.hero-spotlight-date {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.14), transparent 52%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.hero-spotlight-date-day {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}

.hero-spotlight-date-month {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-text-muted);
}

.hero-spotlight-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
}

.hero-spotlight-label {
    margin: 0 0 5px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c5c9cd;
}

.hero-spotlight-name {
    margin: 0 0 5px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.04;
    color: #f0f0f0;
    overflow-wrap: anywhere;
}

.hero-spotlight-meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #bfc4c7;
}

.hero-spotlight-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    margin-top: 2px;
}

.hero-spotlight-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: linear-gradient(145deg, #f0f1f2, #c5c8cc);
    color: #17191b;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.25s, transform 0.25s;
}

.hero-spotlight-primary[hidden] {
    display: none !important;
}

/* Без основной кнопки «Вся музыка» занимает всю ширину ряда. */
.hero-spotlight-primary[hidden] + .hero-spotlight-secondary {
    grid-column: 1 / -1;
}

.hero-spotlight-primary > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-spotlight-primary:hover {
    background: linear-gradient(145deg, #fff, #d7dade);
    transform: translateY(-1px);
}

/* Иконка кнопки зависит от состояния панели: слушать / билеты / пресейв. */
.hero-spotlight-icon {
    display: none;
    flex: 0 0 auto;
}

.hero-spotlight[data-state="recent-release"] .hero-spotlight-icon--play,
.hero-spotlight[data-state="upcoming-show"] .hero-spotlight-icon--ticket,
.hero-spotlight[data-state="upcoming-release"] .hero-spotlight-icon--presave {
    display: block;
}

.hero-spotlight-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 4px;
    border-radius: 999px;
    color: #d7d7d7;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.25s;
}

.hero-spotlight-secondary > span:first-child {
    white-space: nowrap;
}

.hero-spotlight-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hero-spotlight-platforms {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hero-spotlight-platforms img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
}

/* ---- Нижняя навигация: прозрачная стеклянная капсула,
   у каждой кнопки — своя пилюля с рамкой ---- */
.hero-mobile-nav,
.hero-utilities {
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(12, 13, 15, 0.34);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease,
        border-color 0.3s ease;
}

.hero-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    /* Свободное место делится поровну сверху и снизу: бар стоит по центру
       между панелью релиза и нижней границей секции. */
    margin-top: auto;
    margin-bottom: auto;
}

.hero-mobile-nav a,
.hero-utilities a {
    --hero-nav-accent: 205, 212, 224;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(var(--hero-nav-accent), 0.3);
    border-radius: 999px;
    background: linear-gradient(
        145deg,
        rgba(var(--hero-nav-accent), 0.24),
        rgba(var(--hero-nav-accent), 0.06)
    );
    color: rgba(240, 242, 245, 0.92);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.hero-mobile-nav a:hover,
.hero-utilities a:hover {
    background: linear-gradient(
        145deg,
        rgba(var(--hero-nav-accent), 0.36),
        rgba(var(--hero-nav-accent), 0.12)
    );
    border-color: rgba(var(--hero-nav-accent), 0.55);
    color: #fff;
    box-shadow: 0 6px 18px rgba(var(--hero-nav-accent), 0.16);
}

/* Свой акцентный градиент у каждой кнопки. */
.hero-mobile-nav a:nth-child(1) { --hero-nav-accent: 150, 130, 245; } /* Музыка */
.hero-mobile-nav a:nth-child(2) { --hero-nav-accent: 238, 132, 170; } /* Галерея */
.hero-mobile-nav a:nth-child(3) { --hero-nav-accent: 232, 178, 96; }  /* Контакты */

.hero-utilities a:nth-child(1) { --hero-nav-accent: 205, 212, 224; }  /* Об артисте */
.hero-utilities a:nth-child(2) { --hero-nav-accent: 232, 178, 96; }   /* Контакты */
.hero-utilities a:nth-child(3) { --hero-nav-accent: 66, 165, 245; }   /* Telegram */

.hero-mobile-nav:hover,
.hero-utilities:hover {
    transform: translateY(var(--surface-hover-lift));
    background: rgba(12, 13, 15, 0.44);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), var(--surface-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Без поддержки backdrop-filter капсула чуть плотнее, чтобы текст не терялся. */
@supports not (backdrop-filter: blur(1px)) {
    .hero-mobile-nav,
    .hero-utilities {
        background: rgba(12, 13, 15, 0.78);
    }
}

/* ---- Фирменная реакция на наведение (как у .glass-card) ---- */
.hero-portrait:hover {
    border-color: var(--surface-hover-border);
    transform: translateY(var(--surface-hover-lift));
    box-shadow:
        0 26px 58px rgba(0, 0, 0, 0.56),
        var(--surface-glow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.hero-spotlight:hover {
    border-color: var(--surface-hover-border);
    transform: translateY(var(--surface-hover-lift));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.5),
        var(--surface-glow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.hero-spotlight:hover::after {
    opacity: 1;
}

.hero-spotlight:hover .hero-spotlight-cover {
    transform: scale(1.04);
}

.hero-entry--gallery:hover .hero-gallery-photos img:first-child {
    transform: rotate(-9deg) translateY(-2px);
}

.hero-entry--gallery:hover .hero-gallery-photos img:last-child {
    transform: rotate(8deg) translateY(-2px);
}

/* Плавные ховеры превью галереи. */
.hero-gallery-photos img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Десктопные ряды превью и служебная навигация включаются в hero-responsive.css. */
.hero-entries,
.hero-utilities {
    display: none;
}

/* ---- Нижняя строка секции ---- */
.hero-footer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
}

.scroll-indicator {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    color: rgba(224, 224, 224, 0.62);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    animation: scroll-indicator-drift 3.6s ease-in-out infinite;
}

@media (max-width: 760px) {
    .scroll-indicator,
    .hero-footer {
        display: none;
    }

    /* Первый экран занимает ровно высоту экрана, без «хвоста» вниз.
       Портрет — единственный гибкий элемент: он вбирает остаток и
       сжимается на низких экранах, поэтому всё помещается целиком. */
    .hero-section {
        height: 100svh;
    }

    .hero-inner {
        min-height: 0;
    }

    .hero-portrait {
        min-height: 150px;
        max-height: min(50svh, 480px);
    }
}

/* Низкие мобильные экраны (горизонтальная ориентация): фото убираем,
   чтобы секция оставалась в высоту экрана. */
@media (max-width: 760px) and (max-height: 500px) {
    .hero-portrait {
        display: none;
    }
}

@keyframes scroll-indicator-drift {
    0%, 100% { transform: translateY(0); opacity: 0.86; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.mouse {
    width: 18px;
    height: 30px;
    border: 1.5px solid rgba(224, 224, 224, 0.58);
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.mouse::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(224, 224, 224, 0.72);
    border-radius: 999px;
    animation: scroll 2.2s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(9px); }
}

/* ---- Доступность ---- */
.hero-section a:focus-visible,
.hero-section summary:focus-visible {
    outline: 2px solid rgba(238, 238, 238, 0.9);
    outline-offset: 4px;
}

/* Фолбэк для браузеров без backdrop-filter: панель становится плотнее,
   чтобы текст не терял контраст поверх видео. */
@supports not (backdrop-filter: blur(1px)) {
    .hero-spotlight {
        background:
            linear-gradient(160deg, rgba(10, 11, 12, 0.35), rgba(6, 7, 8, 0.7)),
            var(--dynamic-bg, linear-gradient(145deg, rgba(37, 39, 41, 0.96), rgba(11, 12, 13, 0.98)));
    }
}

/* Секция вне зоны видимости (или вкладка скрыта) — анимации на паузе. */
.hero-section.hero-animations-paused::before,
.hero-section.hero-animations-paused .name-gradient,
.hero-section.hero-animations-paused .scroll-indicator,
.hero-section.hero-animations-paused .mouse::before,
.hero-section.hero-animations-paused .hero-backdrop::before,
.hero-section.hero-animations-paused .hero-backdrop::after {
    animation-play-state: paused !important;
}

/* ============================================
   ПОЯВЛЕНИЕ ПОСЛЕ ЛОАДЕРА
   Стартует, когда лоадер получает .hidden (обычный путь и failsafe).
   Если браузер не поддерживает :has — секция просто показывается сразу.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    body:has(#loader.hidden) .hero-topbar {
        animation: hero-enter-topbar 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.02s backwards;
    }

    body:has(#loader.hidden) .hero-identity {
        animation: hero-enter-up 0.75s cubic-bezier(0.25, 1, 0.5, 1) 0.08s backwards;
    }

    body:has(#loader.hidden) .hero-portrait {
        animation: hero-enter-portrait 0.75s cubic-bezier(0.25, 1, 0.5, 1) 0.16s backwards;
    }

    body:has(#loader.hidden) .hero-spotlight {
        animation: hero-enter-up 0.75s cubic-bezier(0.25, 1, 0.5, 1) 0.24s backwards;
    }

    body:has(#loader.hidden) .hero-entries {
        animation: hero-enter-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.32s backwards;
    }

    body:has(#loader.hidden) .hero-utilities {
        animation: hero-enter-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.38s backwards;
    }

    body:has(#loader.hidden) .hero-footer {
        animation: hero-enter-fade 0.6s ease 0.44s backwards;
    }
}

@keyframes hero-enter-up {
    from { opacity: 0; transform: translateY(30px); }
}

@keyframes hero-enter-topbar {
    from { opacity: 0; transform: translateY(-12px); }
}

@keyframes hero-enter-portrait {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
    }
}

@keyframes hero-enter-fade {
    from { opacity: 0; }
}


/* Hero info cards (upcoming releases, shows, recent releases) */
/* ---- inlined: hero/hero-cards.css ---- */
/* ============================================
   HERO CARDS
   Rebuilt shared layout for release and show cards
   ============================================ */

.hero-info-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    align-content: stretch;
}

.hero-card {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    transform: none;
    filter: none;
    overflow: hidden;
    transition:
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    pointer-events: none;
}

.hero-card::before {
    display: none;
}

.hero-card::after {
    display: none;
}

.hero-card:hover {
    transform: none;
    box-shadow: var(--surface-shadow-hover), var(--surface-glow-soft), var(--surface-shadow-inset-hover);
}

.hero-card.hero-card-actionable {
    cursor: pointer;
}

.hero-card.hero-card-actionable,
.hero-card.hero-card-actionable * {
    cursor: pointer;
}

.hero-card.hero-card-actionable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.34);
    outline-offset: 3px;
}

.hero-card .release-card-title {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.hero-card-layout {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-card-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0;
    transform: translateZ(0);
}

.hero-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.62);
}

.hero-card-cover,
.hero-card-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
}

/* HTML [hidden] должен побеждать display: block выше — иначе скрытая date-panel
   (белый радиальный градиент) остаётся поверх обложки в режиме organizer-cover
   и даёт белый "пересвет" на изображении. */
.hero-card-cover[hidden],
.hero-card-panel[hidden] {
    display: none !important;
}

.hero-card-cover {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.03);
    filter: none;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-panel {
    display: grid;
    place-items: center;
    border: 0;
    transform: scale(1);
    filter: none;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-panel--date {
    align-content: center;
    gap: 0.25rem;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.hero-card-date-day {
    color: #fff;
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 0.95;
}

.hero-card-date-month {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-card-panel--organizer {
    align-content: space-between;
    justify-items: start;
    padding: 0.8rem 0.82rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 46%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-card-panel-label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-card-panel-main {
    color: #fff;
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.04em;
}

.hero-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.38rem;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    padding: 1rem 1rem 1rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-name,
.hero-card-subtitle,
.hero-card-meta {
    margin: 0;
    min-width: 0;
}

.hero-card-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(1.7rem, 2.7vw, 2.7rem);
    line-height: 1;
    font-weight: 800;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-subtitle {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
}

.hero-card-meta {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.8rem;
    line-height: 1.22;
    max-width: 28ch;
    text-align: center;
    transform: translateY(0);
    opacity: 0.9;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card-hint-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin-top: 0;
}

.hero-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.82;
    transition:
        color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card.hero-card-actionable:hover .hero-card-cover {
    transform: scale(1.06);
    filter: saturate(1.03);
}

.hero-card.hero-card-actionable:hover .hero-card-panel {
    transform: scale(1.025);
    filter: saturate(1.02);
}

.hero-card.hero-card-actionable:hover .hero-card-copy {
    transform: translateY(-3px);
}

.hero-card.hero-card-actionable:hover .hero-card-text {
    transform: translateY(-1px);
}

.hero-card.hero-card-actionable:hover .hero-card-name {
    transform: translateY(-1px);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.54);
}

.hero-card.hero-card-actionable:hover .hero-card-meta {
    transform: translateY(0);
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}

.hero-card.hero-card-actionable:hover .hero-card-hint {
    color: #fff;
    opacity: 1;
}

/* ============================================
   LATEST RELEASE SECTION
   ============================================ */

#latest-release .release-content {
    /* Колонка кнопок тянется на высоту обложки и даты. */
    align-items: stretch;
    gap: 2rem;
}

#latest-release .release-artwork {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#latest-release .release-artwork .artwork-placeholder,
#latest-release .release-artwork img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
}

#latest-release .release-info {
    text-align: left;
    gap: 0.35rem;
}

#latest-release .release-track-title {
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    -webkit-line-clamp: 3;
}

#latest-release .release-date {
    font-size: 0.9rem;
    opacity: 0.6;
}

#latest-release .release-actions {
    /* Кнопки растягиваются сами, заполняя высоту обложки: коэффициенты роста
       пропорциональны натуральной высоте, поэтому пропорции сохраняются. */
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 0;
}

/* Блок площадок по натуральной высоте 9rem — растёт пропорционально
   одиночным кнопкам (2.6rem). */
#latest-release .release-actions > .streaming-links {
    flex: 9 1 auto;
}

#latest-release .release-actions > .lyrics-btn,
#latest-release .release-actions > .release-all-platforms-btn {
    flex: 2.6 1 auto;
}

/* Внутри блока площадок ряды растут в тех же пропорциях: мелкие кнопки — 2.6,
   Яндекс Музыка — 5.8. */
#latest-release .release-actions .streaming-links {
    grid-template-rows: 2.6fr 5.8fr;
}

/* The release and TikTok panels share one surface-interaction implementation. */
#recent-release-card,
.tiktok-side-card {
    background: none !important;
    border-color: var(--dynamic-border, rgba(255, 255, 255, 0.06));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), inset 0 0 14px rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
}

#recent-release-card {
    flex: 1 1 320px;
    width: auto;
    min-width: 0;
}

#recent-release-card::before,
.tiktok-side-card::before,
#recent-release-card::after,
.tiktok-side-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
}

#recent-release-card::before {
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02));
    z-index: -2;
}

.tiktok-side-card::before {
    background: var(--dynamic-bg);
    z-index: -2;
}

#recent-release-card::after,
.tiktok-side-card::after {
    background: var(--dynamic-bg-hover, rgba(255, 255, 255, 0.06));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#recent-release-card:hover::after,
.tiktok-side-card.hero-card-actionable:hover::after {
    opacity: 1;
}

#recent-release-card:hover,
.tiktok-side-card.hero-card-actionable:hover {
    box-shadow: var(--surface-shadow-hover), var(--surface-glow-soft), var(--surface-shadow-inset-hover);
}

/* TikTok-карточка кликабельна только при наличии звука — иначе статичный блок */
.tiktok-side-card.hero-card-actionable {
    cursor: pointer;
}

.tiktok-side-card.hero-card-actionable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.34);
    outline-offset: 3px;
}

.tiktok-side-card {
    --tiktok-title-to-text-gap: 0.42rem;
    --tiktok-text-to-video-gap: 0.7rem;
    --dynamic-bg: linear-gradient(135deg, rgba(255, 0, 80, 0.12), rgba(0, 242, 234, 0.06));
    --dynamic-bg-hover: linear-gradient(135deg, rgba(255, 0, 80, 0.18), rgba(0, 242, 234, 0.12));
    --dynamic-border: rgba(255, 0, 80, 0.18);
    flex: 0 0 340px;
    width: 340px;
    min-width: 0;
    align-self: stretch;
}

.tiktok-side-card .release-card-title {
    margin-bottom: 0;
    order: 1;
}

/* Обёртка правой колонки: на десктопе «прозрачна» (display: contents),
   чтобы flex-порядок остался «заголовок → подпись → видео → кнопка».
   На тач-экранах превращается в компактную колонку по центру. */
.tiktok-side-copy {
    display: contents;
}

.tiktok-side-content {
    display: flex;
    flex-direction: column;
    gap: var(--tiktok-text-to-video-gap);
    flex: 1 1 0;
    min-height: 0;
}

.tiktok-side-heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
    width: 100%;
    align-self: center;
    flex-shrink: 0;
    order: 2;
}

.tiktok-side-card .tiktok-video-strip {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    background: #000;
    order: 3;
}

.tiktok-side-card .bot-video-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Кнопки управления TikTok-видео: стеклянные круги поверх кадра */
.tiktok-video-nav,
.tiktok-video-mute {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(10, 10, 14, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    opacity: 0.82;
    transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tiktok-video-nav {
    top: 50%;
    transform: translateY(-50%);
}

.tiktok-video-nav-prev {
    left: 8px;
}

.tiktok-video-nav-next {
    right: 8px;
}

/* Кнопка звука — в правом верхнем углу кадра, по умолчанию видео без звука */
.tiktok-video-mute {
    top: 8px;
    right: 8px;
}

.tiktok-video-mute-icon {
    display: none;
}

.tiktok-video-mute:not(.is-unmuted) .tiktok-video-mute-icon-muted,
.tiktok-video-mute.is-unmuted .tiktok-video-mute-icon-unmuted {
    display: inline-flex;
}

.tiktok-video-nav:hover,
.tiktok-video-mute:hover {
    opacity: 1;
    border-color: rgba(255, 0, 80, 0.5);
    background: rgba(10, 10, 14, 0.78);
}

.tiktok-video-nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.tiktok-video-mute:hover {
    transform: scale(1.06);
}

.tiktok-video-nav:active {
    transform: translateY(-50%) scale(0.94);
}

.tiktok-video-mute:active {
    transform: scale(0.94);
}

.tiktok-video-nav:focus-visible,
.tiktok-video-mute:focus-visible {
    opacity: 1;
    outline: 2px solid rgba(255, 255, 255, 0.34);
    outline-offset: 2px;
}

/* Компактная CTA внутри TikTok-карточки: ведёт на звук релиза */
.tiktok-sound-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    align-self: center;
    flex: 0 0 auto;
    order: 4;
    padding: 0.42rem 0.95rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 80, 0.28);
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.16), rgba(0, 242, 234, 0.1));
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tiktok-sound-cta:hover {
    border-color: rgba(255, 0, 80, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.tiktok-sound-cta .platform-icon {
    width: 16px;
    height: 16px;
}

.tiktok-sound-cta-arrow {
    display: inline-flex;
    transition: transform 0.25s ease;
}

.tiktok-sound-cta:hover .tiktok-sound-cta-arrow {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    /* На тач-экранах карточки стоят друг под другом, поэтому TikTok-виджету
       нужна собственная высота; видео задаём пропорцией 3:4. */
    .tiktok-side-card {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: var(--mobile-content-max, 450px);
        margin-inline: auto;
        min-width: auto;
        order: 1;
        overflow: hidden;
    }

    /* Сетка внутри контента: контент слева, видео справа.
       flex: 0 0 auto — иначе контент схлопывается по высоте: карточка
       auto-высоты с overflow: hidden + flex-basis 0 дают нулевую высоту. */
    .tiktok-side-card .tiktok-side-content {
        display: grid;
        flex: 0 0 auto;
        min-height: auto;
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        align-items: center;
        column-gap: 0.7rem;
    }

    .tiktok-side-card .tiktok-video-strip {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        aspect-ratio: 3 / 4;
        height: auto;
        align-self: center;
    }

    /* Левая колонка — один компактный блок по центру: одинаковый небольшой
       отступ между заголовком, текстом и кнопкой. */
    .tiktok-side-card .tiktok-side-copy {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        min-width: 0;
        text-align: center;
    }

    .tiktok-side-card .release-card-title {
        font-size: 1.05rem;
        line-height: 1.1;
        margin-bottom: 0;
    }

    .tiktok-side-card .tiktok-side-heading {
        font-size: 0.72rem;
        line-height: 1.25;
        text-align: center;
    }

    /* Компактная «пилюля» по центру колонки: при нехватке места подпись
       переносится на сбалансированные строки и не выходит за карточку. */
    .tiktok-side-card .tiktok-sound-cta {
        width: auto;
        min-width: 0;
        max-width: 100%;
        padding: 0.45rem 0.7rem;
        gap: 0.35rem;
        font-size: 0.65rem;
        text-align: center;
    }

    .tiktok-side-card .tiktok-sound-cta .platform-icon {
        width: 14px;
        height: 14px;
    }

    .tiktok-side-card .tiktok-sound-cta-text {
        white-space: normal;
        text-wrap: balance;
        min-width: 0;
    }

    .tiktok-side-card .tiktok-sound-cta-arrow {
        display: none;
    }

    /* Без видео колонка одна — контент на всю ширину, по центру. */
    .tiktok-side-card .tiktok-side-content:has(#recent-tiktok-videos[style*="display: none"]) {
        grid-template-columns: minmax(0, 1fr);
    }

    .tiktok-side-card .tiktok-side-content:has(#recent-tiktok-videos[style*="display: none"]) .tiktok-side-copy {
        grid-column: 1 / -1;
    }

    .tiktok-side-card .bot-video-player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    .tiktok-side-card .tiktok-video-nav,
    .tiktok-side-card .tiktok-video-mute {
        width: 32px;
        height: 32px;
        opacity: 0.9;
    }

    .tiktok-side-card .tiktok-video-nav-prev {
        left: 6px;
    }

    .tiktok-side-card .tiktok-video-nav-next {
        right: 6px;
    }

    .tiktok-side-card .tiktok-video-mute {
        top: 6px;
        right: 6px;
    }
}


/* Placeholder states for empty cards */
/* ---- inlined: hero/hero-placeholders.css ---- */
/* ============================================
   HERO CARD PLACEHOLDER STATE
   ============================================ */

/* Карточка с заглушкой — flex column, заголовок сверху, текст растягивается на остаток */
.hero-card.is-placeholder {
    min-height: 187px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
}

/* Убираем margin у заголовка */
.hero-card.is-placeholder .release-card-title {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

/* Placeholder — flex: 1 чтобы занять всё оставшееся место, текст по центру */
.hero-card.is-placeholder .placeholder-message {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.hero-card .placeholder-message {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    color: var(--text-secondary, rgba(255,255,255,0.45));
    text-align: center;
    line-height: 1.4;
    width: 100%;
}


/* Desktop grid and hero size adaptations */
/* ---- inlined: hero/hero-responsive.css ---- */
/* ============================================
   HERO RESPONSIVE — v4
   Десктопная сетка первого экрана и её адаптация под узкие
   ноутбуки, низкие экраны и горизонтальные телефоны.
   Базовая (мобильная) раскладка — в hero-section.css.
   ============================================ */

@media (min-width: 761px) and (min-height: 501px) {
    /* ---- Архитектура первого экрана: шапка и имя делят верхнюю зону,
       объединённый блок центрируется отдельно ---- */
    .hero-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        /* Нижняя зона вмещает капсулу и подсказку прокрутки: минимум
           гарантирует, что при центрировании они не наложатся друг на друга. */
        grid-template-rows: 1fr auto minmax(150px, 1fr);
        grid-template-areas:
            "top"
            "stage"
            "bottom";
        /* Верхний отступ секции равен нулю: зона имени начинается от самого
           верха экрана, поэтому текст центрируется ровно до верха блока.
           Сам отступ шапки задан её margin, а не padding секции. */
        padding: 0 44px 14px;
    }

    .hero-topbar,
    .hero-footer {
        max-width: 1328px;
    }

    .hero-topbar {
        grid-area: top;
        align-self: start;
        min-height: 54px;
        margin-top: 22px;
        margin-bottom: 0;
    }

    /* Капсула и подсказка прокрутки живут в одной нижней зоне: капсула —
       ровно посередине между низом блока и низом секции, подсказка —
       у самого низа. */
    .hero-footer {
        grid-area: bottom;
        align-self: end;
    }

    .hero-business-link {
        gap: 10px;
        min-height: 46px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .hero-inner {
        display: contents;
    }

    /* Имя живёт в верхней зоне вместе с шапкой и центрируется в ней:
       отступ сверху и до блока получается одинаковым. */
    .hero-identity {
        grid-area: top;
        align-self: center;
        justify-self: center;
        width: auto;
        max-width: min(540px, 100%);
        margin: 0;
        text-align: center;
    }

    /* ---- Прямоугольный блок: портрет слева, релиз и плитки справа ---- */
    .hero-stage {
        grid-area: stage;
        position: relative;
        z-index: 2;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 42px;
        width: 100%;
        max-width: 1328px;
        justify-self: center;
        min-width: 0;
    }

    .hero-side {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        /* Панель релиза по высоте контента, а плитки прижаты к низу колонки
           автоотступом — их низ совпадает с низом фотографии. */
        gap: 20px;
        min-width: 0;
        min-height: 0;
    }

    .artist-name {
        font-size: clamp(62px, 5.4vw, 77px);
        line-height: 1.02;
        margin-bottom: 10px;
    }

    .hero-intro {
        font-size: 11px;
        color: #c4c4c4;
    }

    .hero-portrait {
        flex: 0 0 clamp(290px, 27vw, 380px);
        width: auto;
        height: auto;
        /* Нижняя граница колонки задаёт высоту портрета: панель релиза и
           плитки растягиваются по ней. */
        min-height: clamp(400px, 38vw, 520px);
        max-height: none;
        aspect-ratio: auto;
        margin: 0;
        padding: 7px;
        border-radius: 27px;
        align-self: stretch;
    }

    .hero-portrait-media {
        border-radius: 20px;
    }

    .artist-photo {
        object-position: 50% 29%;
    }

    .hero-portrait-caption {
        display: block;
        left: 20px;
        bottom: 20px;
        max-width: calc(100% - 40px);
        padding: 11px 14px;
        border-radius: 14px;
        font-size: 13px;
    }

    /* ---- Панель релиза/выступления. Панель по высоте равна контенту:
       зазор «обложка → кнопки» равен внутреннему отступу панели, поэтому
       кнопки стоят сразу под контентом, как на мобильной раскладке. ---- */
    .hero-spotlight {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 24px 26px;
        flex: none;
        min-height: 258px;
        margin-top: 0;
        margin-bottom: 0;
        padding: 24px;
        border-radius: 28px;
    }

    .hero-spotlight-media {
        grid-column: 1;
        grid-row: 1;
        /* Обложка — квадрат фиксированной пропорции сверху; под ней проходят кнопки. */
        width: clamp(180px, 24svh, 240px);
        height: auto;
        aspect-ratio: 1;
        border-radius: 19px;
        align-self: start;
    }

    .hero-spotlight-date-day {
        font-size: 72px;
    }

    .hero-spotlight-date-month {
        font-size: 13px;
    }

    .hero-spotlight-copy {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .hero-spotlight-label {
        font-size: 13px;
        letter-spacing: 0.07em;
        margin-bottom: 12px;
    }

    .hero-spotlight-name {
        font-size: clamp(34px, 3.7vw, 60px);
        margin-bottom: 12px;
    }

    .hero-spotlight-meta {
        font-size: 15px;
    }

    .hero-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
        gap: 17px;
        margin-top: 0;
        align-self: end;
    }

    .hero-spotlight-primary {
        min-height: 58px;
        padding: 14px 19px;
        font-size: 17px;
    }

    .hero-spotlight-secondary {
        min-height: 54px;
        padding: 12px 8px;
        font-size: 15px;
    }

    .hero-spotlight-platforms img {
        width: 19px;
        height: 19px;
    }

    /* ---- Лёгкий ряд: галерея и игра ---- */
    .hero-entries {
        --hero-entries-gap: 23px;
        display: grid;
        grid-template-columns: 1.12fr 1fr;
        gap: var(--hero-entries-gap);
        min-width: 0;
        /* Плитки прижаты к низу правой колонки — их нижняя грань совпадает
           с нижней гранью фотографии артиста. */
        flex: 0 0 auto;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .hero-entry {
        position: relative;
        display: flex;
        align-items: center;
        gap: 17px;
        min-width: 0;
        min-height: 100px;
        padding: 6px 4px 6px 14px;
        border-radius: 14px;
        color: inherit;
        text-decoration: none;
        transition:
            background 0.25s,
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-entry:hover {
        background: rgba(255, 255, 255, 0.06);
        transform: translateY(var(--surface-hover-lift));
        box-shadow: var(--surface-glow-soft);
    }

    /* Разделитель — тонкая линия по центру зазора, поэтому обе плитки
       остаются с одинаковыми скруглениями и отступами. */
    .hero-entry--quiz::before {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: calc(var(--hero-entries-gap) / -2 - 0.5px);
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
        pointer-events: none;
    }

    .hero-entry-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding-right: 30px;
    }

    .hero-entry-title {
        font-family: var(--font-display);
        font-size: 21px;
        line-height: 1.2;
    }

    .hero-entry--quiz .hero-entry-title {
        font-size: 20px;
    }

    .hero-entry-note {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.4;
        color: rgba(224, 224, 224, 0.76);
    }

    .hero-entry-label {
        font-size: 11px;
        letter-spacing: 0.04em;
        color: rgba(224, 224, 224, 0.66);
    }

    .hero-entry-label + .hero-entry-title {
        margin-top: 7px;
    }

    .hero-entry-icon {
        position: absolute;
        top: 14px;
        right: 10px;
        display: inline-flex;
        color: rgba(224, 224, 224, 0.8);
    }

    .hero-gallery-photos {
        position: relative;
        flex: 0 0 121px;
        width: 121px;
        height: 90px;
    }

    .hero-gallery-photos img {
        position: absolute;
        display: block;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
    }

    .hero-gallery-photos img:first-child {
        left: 0;
        top: 4px;
        width: 62px;
        height: 81px;
        transform: rotate(-7deg);
        object-position: 50% 22%;
    }

    .hero-gallery-photos img:last-child {
        right: 0;
        bottom: 0;
        width: 82px;
        height: 90px;
        transform: rotate(5deg);
        object-position: 50% 22%;
    }

    .hero-gallery-photos img:only-child {
        left: 0;
        top: 0;
        width: 90px;
        height: 90px;
        transform: rotate(-4deg);
    }

    .hero-mobile-nav {
        display: none;
    }

    /* ---- Служебная капсула: по центру между низом блока и низом секции ---- */
    .hero-utilities {
        grid-area: bottom;
        position: relative;
        z-index: 2;
        align-self: center;
        justify-self: center;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        width: min(100%, 540px);
        margin-top: 0;
    }

    .hero-footer {
        min-height: 34px;
        margin-top: 10px;
    }
}

/* Узкий ноутбук: компактнее портрет и панель релиза. */
@media (min-width: 761px) and (min-height: 501px) and (max-width: 1150px) {
    .hero-section {
        padding: 0 30px 12px;
    }

    .hero-topbar {
        margin-top: 20px;
    }

    .hero-stage {
        gap: 27px;
    }

    .hero-identity {
        max-width: min(440px, 100%);
    }

    .artist-name {
        font-size: clamp(50px, 5.6vw, 64px);
    }

    .hero-intro {
        font-size: 10px;
    }

    .hero-portrait {
        flex-basis: clamp(228px, 28vw, 304px);
        min-height: clamp(320px, 36vw, 430px);
    }

    .hero-portrait-caption {
        left: 16px;
        bottom: 18px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero-spotlight {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 20px 19px;
        min-height: 212px;
        padding: 20px;
    }

    .hero-spotlight-media {
        width: clamp(150px, 22svh, 200px);
        height: auto;
        aspect-ratio: 1;
        align-self: start;
        border-radius: 16px;
    }

    .hero-spotlight-name {
        font-size: clamp(30px, 3.7vw, 46px);
        margin-bottom: 10px;
    }

    .hero-spotlight-label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-spotlight-meta {
        font-size: 14px;
    }

    .hero-spotlight-primary {
        min-height: 52px;
        font-size: 15px;
    }

    .hero-spotlight-secondary {
        min-height: 50px;
        font-size: 14px;
    }

    .hero-entries {
        --hero-entries-gap: 14px;
        gap: var(--hero-entries-gap);
        padding-top: 10px;
    }

    .hero-entry {
        gap: 13px;
        min-height: 96px;
    }

    .hero-entry-title,
    .hero-entry--quiz .hero-entry-title {
        font-size: 18px;
    }

    .hero-entry-note {
        font-size: 12px;
    }

    .hero-entry-copy {
        padding-right: 14px;
    }

    .hero-gallery-photos {
        flex-basis: 86px;
        width: 86px;
        height: 77px;
    }

    .hero-gallery-photos img:first-child {
        width: 44px;
        height: 69px;
    }

    .hero-gallery-photos img:last-child {
        width: 60px;
        height: 77px;
    }
}

/* Планшет в портретной ориентации: одна колонка внутри правой части. */
@media (min-width: 761px) and (min-height: 501px) and (max-width: 880px) {
    .hero-section {
        padding-inline: 22px;
    }

    .hero-stage {
        gap: 22px;
    }

    .hero-identity {
        max-width: min(380px, 100%);
    }

    .hero-portrait {
        flex-basis: 210px;
        min-height: clamp(300px, 38vw, 340px);
    }

    .hero-spotlight {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 17px 15px;
        padding: 17px;
    }

    .hero-spotlight-media {
        grid-row: 1;
        width: clamp(120px, 20svh, 170px);
        height: auto;
        aspect-ratio: 1;
        align-self: start;
    }

    .hero-spotlight-copy {
        align-self: start;
    }

    .hero-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .hero-entry-title,
    .hero-entry--quiz .hero-entry-title {
        font-size: 17px;
    }

    .hero-entries {
        --hero-entries-gap: 10px;
        grid-template-columns: 1fr 1fr;
        gap: var(--hero-entries-gap);
    }

    .hero-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        min-height: 136px;
    }

    .hero-entry--quiz {
        justify-content: center;
        padding-top: 6px;
    }

    .hero-entry-copy {
        padding-right: 0;
    }

    .hero-gallery-photos {
        flex-basis: 45px;
        width: 76px;
        height: 45px;
    }

    .hero-gallery-photos img:first-child {
        width: 32px;
        height: 43px;
        top: 1px;
    }

    .hero-gallery-photos img:last-child {
        width: 41px;
        height: 45px;
    }

    .hero-entry-icon {
        top: 8px;
        right: 5px;
    }
}

/* Невысокий десктоп: уменьшаем портрет, панель и промежутки. */
@media (min-width: 951px) and (max-height: 820px) {
    .hero-section {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .hero-topbar {
        min-height: 48px;
        margin-top: 18px;
    }

    .hero-identity {
        max-width: min(450px, 100%);
    }

    .artist-name {
        font-size: 66px;
        margin-bottom: 9px;
    }

    .hero-intro {
        font-size: 10px;
    }

    .hero-portrait {
        min-height: clamp(340px, 34vw, 440px);
    }

    .hero-spotlight {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 22px;
        row-gap: 20px;
        min-height: 206px;
        padding: 20px;
    }

    .hero-spotlight-media {
        width: clamp(160px, 24svh, 210px);
        height: auto;
        aspect-ratio: 1;
        align-self: start;
        border-radius: 17px;
    }

    .hero-spotlight-name {
        font-size: 48px;
        margin-bottom: 9px;
    }

    .hero-spotlight-label {
        margin-bottom: 9px;
    }

    .hero-spotlight-meta {
        font-size: 14px;
    }

    .hero-spotlight-primary {
        min-height: 52px;
        font-size: 16px;
    }

    .hero-spotlight-secondary {
        min-height: 50px;
        font-size: 14px;
    }

    .hero-entry {
        min-height: 94px;
    }

    .hero-entry-title,
    .hero-entry--quiz .hero-entry-title {
        font-size: 20px;
    }

    .hero-gallery-photos {
        height: 78px;
    }

    .hero-gallery-photos img:first-child {
        height: 70px;
    }

    .hero-gallery-photos img:last-child {
        height: 78px;
    }

    .hero-footer {
        min-height: 30px;
        margin-top: 6px;
    }
}

/* Горизонтальный телефон/планшет: имя слева, панель справа, без портрета. */
@media (min-width: 761px) and (max-height: 500px) {
    .hero-section {
        padding: 12px max(24px, env(safe-area-inset-right)) 8px max(24px, env(safe-area-inset-left));
    }

    .hero-topbar {
        min-height: 46px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-inner {
        flex: 1;
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        grid-template-rows: minmax(0, 1fr) auto;
        grid-template-areas:
            "identity stage"
            "nav nav";
        column-gap: 26px;
        row-gap: 14px;
        align-content: center;
        align-items: center;
        max-width: 900px;
        padding-top: 12px;
    }

    .hero-stage {
        grid-area: stage;
        display: flex;
        align-items: stretch;
        gap: 26px;
        min-width: 0;
    }

    .hero-side {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
    }

    .hero-portrait {
        display: none;
    }

    .hero-identity {
        grid-area: identity;
        text-align: left;
        align-self: center;
        margin: 0;
        max-width: 100%;
    }

    .artist-name {
        font-size: 38px;
        margin-bottom: 6px;
    }

    .hero-intro {
        justify-items: start;
        font-size: 9px;
    }

    .hero-spotlight {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px 15px;
        margin-top: 0;
        margin-bottom: 0;
        padding: 16px;
    }

    .hero-spotlight-media {
        grid-row: 1;
        width: 120px;
        height: 120px;
        border-radius: 15px;
        align-self: start;
    }

    .hero-spotlight-name {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .hero-spotlight-label {
        margin-bottom: 6px;
    }

    .hero-spotlight-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 8px;
        margin-top: 0;
    }

    .hero-spotlight-primary {
        min-height: 46px;
        font-size: 13px;
    }

    .hero-spotlight-secondary {
        min-height: 44px;
        font-size: 12px;
    }

    .hero-mobile-nav {
        grid-area: nav;
        justify-self: center;
        width: 100%;
        max-width: 560px;
        margin: 0;
    }

    .hero-footer {
        display: none;
    }
}

/* Невысокий телефон: ужимаем отступы и текст, но оставляем портрет заметным. */
@media (max-width: 760px) and (max-height: 640px) {
    .hero-section {
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .hero-topbar {
        min-height: 40px;
        margin-bottom: 2px;
    }

    .hero-business-link {
        min-height: 36px;
        padding: 7px 12px;
    }

    .hero-inner {
        padding-top: 4px;
    }

    .artist-name {
        font-size: clamp(29px, 9.5vw, 39px);
        margin-bottom: 6px;
    }

    .hero-intro {
        font-size: 9px;
    }

    .hero-portrait {
        min-height: 140px;
        max-height: min(44svh, 400px);
        margin-top: 8px;
        padding: 6px;
        border-radius: 18px;
    }

    .hero-portrait-media {
        border-radius: 11px;
    }

    .hero-spotlight {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 8px 11px;
        margin-top: -15px;
        padding: 12px;
    }

    .hero-spotlight-media {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .hero-spotlight-name {
        font-size: 21px;
    }

    .hero-spotlight-actions {
        min-height: 42px;
        margin-top: 0;
    }

    .hero-spotlight-primary,
    .hero-spotlight-secondary {
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .name-gradient,
    .scroll-indicator,
    .mouse::before,
    .hero-backdrop::before,
    .hero-backdrop::after {
        animation: none;
    }

    .hero-section *,
    .hero-section *::before,
    .hero-section *::after {
        transition: none !important;
    }

    .hero-spotlight-primary:hover {
        transform: none;
    }
}

