@import url("styles/modal-shell.380993e677ef.css");
@import url("styles/platform-tints.cada70d276d4.css");

        html { scroll-behavior: auto; overflow-x: hidden; }
        body { overflow: hidden; background: transparent; }

        .loader {
            position: fixed;
            inset: 0;
            background: #000;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.25s ease, visibility 0.25s ease;
            overflow: hidden;
        }

        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .loader-numbers {
            font-family: 'DrukTextWideCyr', sans-serif;
            font-size: clamp(2.5rem, 10vw, 6rem);
            font-weight: 900;
            display: flex;
            gap: 0.5rem;
            line-height: 1;
            color: white;
        }

        .loader-numbers span {
            opacity: 0;
            transform: translateY(40px);
            animation: revealNumber 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .loader-numbers span:nth-child(1) { animation-delay: 0.08s; }
        .loader-numbers span:nth-child(2) { animation-delay: 0.18s; }
        .loader-numbers span:nth-child(3) { animation-delay: 0.28s; }
        .loader-numbers span:nth-child(4) { animation-delay: 0.38s; }

        @keyframes revealNumber {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .loader-text {
            font-family: 'Affect', sans-serif;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            opacity: 0;
            animation: fadeIn 0.45s ease forwards 0.55s;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        .video-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
        /* Затемнение и вертикальный градиент живут в маске самого видео (0.4 *
        0.3 сверху и 0.4 * 0.1 снизу — как раньше оверлей 0.7→0.9 поверх opacity
        0.4), поэтому потеря отдельного слоя оверлея больше не осветляет фон. */
        .bg-video {
            width: 100%; height: 100%; object-fit: cover; opacity: 0.4;
            -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
        }
        .video-overlay { position: absolute; inset: 0; background: none; }

        /* ── Раскладка как на странице текстов песен ─────────────── */
        .multilink-content {
            grid-template-columns: 350px minmax(0, 1fr);
            row-gap: 0;
            column-gap: 3rem;
        }
        .multilink-content .lyrics-left-col { grid-column: 1; grid-row: 1; }
        .multilink-content .lyrics-main { grid-column: 2; grid-row: 1; }
        .multilink-content .multilink-metrics { grid-column: 1 / -1; grid-row: 2; justify-self: center; }

        /* Симметричный отступ резервирует место под иконку копирования:
           название остаётся по центру, а иконка не выходит за карточку. */
        .multilink-page .lyrics-title { padding: 0 1.4em; }

        /* ── Копирование названия и артиста по клику ─────────────── */
        .release-copy {
            position: relative;
            display: inline-block;
            padding: 0;
            margin: 0;
            border: none;
            background: none;
            color: inherit;
            font: inherit;
            letter-spacing: inherit;
            line-height: inherit;
            text-align: inherit;
            cursor: pointer;
            transition: opacity 0.2s ease;
        }
        .release-copy:hover { opacity: 0.88; }
        .release-copy:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.4);
            outline-offset: 4px;
            border-radius: 6px;
        }
        .release-copy-icon {
            position: absolute;
            top: 50%;
            left: var(--release-copy-icon-left, 100%);
            display: inline-flex;
            margin-left: 0.45em;
            color: rgba(255, 255, 255, 0.32);
            transform: translateY(-50%);
            transition: color 0.2s ease;
        }
        .release-copy-icon svg { width: 0.72em; height: 0.72em; }
        .release-copy:hover .release-copy-icon,
        .release-copy:focus-visible .release-copy-icon { color: rgba(255, 255, 255, 0.75); }
        .release-copy-icon--done { display: none; }
        .release-copy.is-copied .release-copy-icon--copy { display: none; }
        .release-copy.is-copied .release-copy-icon--done { display: inline-flex; color: #86d986; }
        .release-copy::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 0.55rem);
            left: 50%;
            z-index: 12;
            width: max-content;
            max-width: min(220px, calc(100vw - 2rem));
            padding: 0.45rem 0.6rem;
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(15, 15, 17, 0.94);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            font-family: 'Affect', sans-serif;
            font-size: 0.72rem;
            line-height: 1.2;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transform: translateX(-50%) translateY(0.25rem);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .release-copy:hover::after,
        .release-copy:focus-visible::after {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ── Метаданные релиза ───────────────────────────────────── */
        .lyrics-page .multilink-meta { padding: 1.5rem; }

        /* ── Список площадок — строки в стиле трек-листа ─────────── */
        .platform-link-item { width: 100%; }
        .platform-link-icon { min-width: 3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .platform-links-grid .platform-icon { width: 28px; height: 28px; }
        .platform-link-icon svg { width: 24px; height: 24px; }
        .multilink-content .platform-links-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .multilink-cover-placeholder { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.06); }
        .cover-download {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            z-index: 3;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.4rem;
            height: 2.4rem;
            color: #fff;
            background: rgba(10, 10, 10, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 50%;
            text-decoration: none;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
            transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, color 0.25s ease;
        }
        .cover-download svg { width: 18px; height: 18px; }
        .cover-download::after {
            content: attr(data-tooltip);
            position: absolute;
            top: calc(100% + 0.55rem);
            right: 0;
            z-index: 2;
            width: max-content;
            max-width: min(220px, 60vw);
            padding: 0.48rem 0.64rem;
            color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(15, 15, 17, 0.94);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            font-family: 'Affect', sans-serif;
            font-size: 0.72rem;
            line-height: 1.2;
            text-align: left;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-0.25rem);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .cover-download:hover,
        .cover-download:focus-visible {
            color: #0a0a0a;
            background: #c8c8c8;
            outline: none;
        }
        .cover-download:hover::after,
        .cover-download:focus-visible::after {
            opacity: 1;
            transform: translateY(0);
        }
        .btn-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
        .platform-icon { width: 20px; height: 20px; object-fit: contain; display: block; }
        .btn-text { line-height: 1.2; }

        .share-fab {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.65rem;
            width: 100%;
            margin: 0;
            padding: 0.9rem 1.2rem;
            border: none;
            border-radius: 50px;
            background: #c8c8c8;
            color: #0a0a0a;
            font-family: 'Affect', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(255,255,255,0.12);
            transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }
        .share-fab:hover,
        .share-fab:focus-visible {
            background: #d8d8d8;
            box-shadow: 0 6px 28px rgba(255,255,255,0.18);
            transform: translateY(-1px);
            outline: none;
        }
        .share-fab:active {
            transform: translateY(0);
            box-shadow: 0 2px 12px rgba(255,255,255,0.1);
        }
        .share-fab-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .multilink-metrics {
            position: relative;
            z-index: 11;
            display: flex;
            align-items: center;
            justify-content: center;
            width: fit-content;
            margin: 0.9rem auto 0;
            gap: 0.35rem;
        }
        .multilink-metric {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.42rem;
            padding: 0.34rem 0.66rem;
            color: rgba(255,255,255,0.52);
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 999px;
            background: rgba(255,255,255,0.035);
            font-family: 'Affect', sans-serif;
            font-size: 0.76rem;
            line-height: 1;
            cursor: help;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }
        .multilink-metric svg {
            width: 0.98rem;
            height: 0.98rem;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .multilink-metric::after {
            position: absolute;
            bottom: calc(100% + 0.55rem);
            left: 50%;
            width: max-content;
            max-width: min(220px, calc(100vw - 2rem));
            padding: 0.48rem 0.64rem;
            color: rgba(255,255,255,0.9);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            background: rgba(15,15,17,0.94);
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
            content: attr(data-tooltip);
            font-size: 0.72rem;
            line-height: 1.2;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 0.25rem);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .multilink-metric:hover,
        .multilink-metric:focus-visible {
            color: rgba(255,255,255,0.88);
            border-color: rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.07);
            outline: none;
        }
        .multilink-metric:hover::after,
        .multilink-metric:focus-visible::after {
            opacity: 1;
            transform: translate(-50%, 0);
        }
        .share-sheet {
            position: fixed;
            inset: 0;
            z-index: 40;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            visibility: hidden;
            pointer-events: none;
            transition: visibility 0s ease 0.25s;
        }
        @media (max-width: 768px) {
            .share-sheet {
                align-items: flex-end;
            }
        }
        .share-sheet.is-open {
            visibility: visible;
            pointer-events: auto;
            transition: visibility 0s ease 0s;
        }
        .share-sheet-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.58);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .share-sheet.is-open .share-sheet-backdrop {
            opacity: 1;
        }
        .share-sheet-panel {
            position: relative;
            width: min(100%, 560px);
            border-radius: 24px;
            padding: 1rem;
            background: rgba(11,11,11,0.94);
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 24px 60px rgba(0,0,0,0.45);
            opacity: 0;
            transform: scale(0.96);
            transition: transform 0.25s ease, opacity 0.25s ease;
        }
        .share-sheet.is-open .share-sheet-panel {
            opacity: 1;
            transform: scale(1);
        }
        @media (max-width: 768px) {
            .share-sheet-panel {
                opacity: 0;
                transform: translateY(18px);
            }
            .share-sheet.is-open .share-sheet-panel {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .share-sheet-handle {
            width: 56px;
            height: 5px;
            margin: 0 auto 0.9rem;
            border-radius: 999px;
            background: rgba(255,255,255,0.16);
        }
        .share-sheet-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .share-sheet-title {
            margin: 0;
            color: #fff;
            font-family: 'DrukTextWideCyr', sans-serif;
            font-size: clamp(1rem, 4vw, 1.2rem);
            line-height: 1.1;
        }
        .share-sheet-copy {
            margin: 0.35rem 0 0;
            color: rgba(255,255,255,0.58);
            font-family: 'Affect', sans-serif;
            font-size: 0.82rem;
            line-height: 1.35;
        }
        .share-sheet-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04);
            color: #fff;
            cursor: pointer;
            flex-shrink: 0;
        }
        .share-sheet-close:hover,
        .share-sheet-close:focus-visible {
            background: rgba(255,255,255,0.08);
            outline: none;
        }
        .share-template-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }
        .share-template-btn {
            text-align: left;
            padding: 0.95rem;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.08);
            background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
            color: #fff;
            cursor: pointer;
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }
        .share-template-btn:hover,
        .share-template-btn:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(255,255,255,0.16);
            background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
            outline: none;
        }
        .share-template-label {
            display: block;
            margin-bottom: 0.3rem;
            font-family: 'DrukTextWideCyr', sans-serif;
            font-size: 0.82rem;
            line-height: 1.15;
        }
        .share-template-meta {
            display: block;
            color: rgba(255,255,255,0.56);
            font-family: 'Affect', sans-serif;
            font-size: 0.76rem;
            line-height: 1.35;
        }
        .share-sheet-status {
            min-height: 1.2rem;
            margin: 0.9rem 0 0;
            color: rgba(255,255,255,0.56);
            font-family: 'Affect', sans-serif;
            font-size: 0.75rem;
            line-height: 1.4;
        }

        /* Preview modal (каркас — styles/modal-shell.css) */
        .preview-modal-panel {
            width: min(100%, 480px);
        }
        .preview-modal-image-wrap {
            width: 100%;
            border-radius: 14px;
            overflow: hidden;
            background: rgba(255,255,255,0.04);
            line-height: 0;
        }
        .preview-modal-image-wrap img {
            width: 100%;
            height: auto;
            display: block;
            max-height: 55vh;
            object-fit: contain;
        }
        .preview-modal-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.65rem;
        }
        .preview-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.82rem 1rem;
            border-radius: 50px;
            font-family: 'Affect', sans-serif;
            font-size: 0.88rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            border: none;
        }
        .preview-action-btn:active { transform: scale(0.97); }
        .preview-action-btn--download {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            color: rgba(255,255,255,0.8);
        }
        .preview-action-btn--download:hover {
            background: rgba(255,255,255,0.13);
            color: #fff;
        }
        .preview-action-btn--share {
            background: #c8c8c8;
            color: #0a0a0a;
            box-shadow: 0 4px 16px rgba(255,255,255,0.1);
        }
        .preview-action-btn--share:hover {
            background: #d8d8d8;
            box-shadow: 0 6px 22px rgba(255,255,255,0.15);
        }
        .preview-action-btn--copy {
            grid-column: 1 / -1;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.09);
            color: rgba(255,255,255,0.55);
        }
        .preview-action-btn--copy:hover {
            background: rgba(255,255,255,0.09);
            color: rgba(255,255,255,0.8);
        }
        .preview-action-btn--copy.copied {
            border-color: rgba(100,220,100,0.35);
            color: rgba(110,225,110,0.85);
        }
        @media (max-width: 380px) {
            .preview-modal-actions { grid-template-columns: 1fr; }
            .preview-action-btn--copy { grid-column: 1; }
        }


        @media (max-width: 480px) {
            .share-template-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Мобильная укладка: обложка с шерингом → площадки → метаданные → видео.
           Левая колонка расщепляется (display: contents), чтобы блок
           «Слушать» шёл первым после обложки, а «О релизе» и «Видео» — ниже.
           Отступ счётчиков фиксированный, без привязки к высоте окна, чтобы
           низ страницы выглядел одинаково на всех мобильных экранах. */
        @media (max-width: 768px) {
            .multilink-content {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
            }
            .multilink-content .lyrics-left-col { display: contents; }
            .multilink-content .multilink-sidebar { order: 1; }
            .multilink-content .lyrics-main { order: 2; }
            .multilink-content .multilink-meta { order: 3; }
            .multilink-content .multilink-video { order: 4; }
            .multilink-content .multilink-metrics { order: 5; margin-top: 1.5rem; }
            .platform-link-icon { min-width: 2.5rem; }
            .platform-links-grid .platform-icon { width: 24px; height: 24px; }
            .platform-link-icon svg { width: 20px; height: 20px; }
            .multilink-content .platform-links-grid { grid-template-columns: 1fr; }
        }

