/* Тело /musicgeneration. Шапка — из theme.css, низ — баннер и подвал как на главной. */

[hidden] {
    display: none !important;
}

.hero-landing {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto 8px;
}

.hero-landing__title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 4.2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background-image: linear-gradient(135deg, #18181b 0%, #5b21b6 62%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html[data-theme="dark"] .hero-landing__title {
    background-image: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 45%, #c4b5fd 100%);
}

.hero-landing__lead {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 28px 0 28px;
}

.studio > .music-desk,
.studio > .stage {
    min-width: 0;
}

.stage {
    position: relative;
    order: -1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 28px 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    text-align: center;
    min-width: 0;
}

.stage-halo {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 240px;
    height: 240px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.38), transparent 68%);
    pointer-events: none;
}

.disc {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 196px;
    height: 196px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.disc:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 6px;
}

.disc-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #141822 0 34%, transparent 35%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 8px),
        conic-gradient(from 30deg, #7c3aed, #6366f1, #c4b5fd, #9333ea, #a855f7, #7c3aed);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.32);
}

.disc.is-on .disc-spin {
    animation: disc-spin 14s linear infinite;
}

.disc-face {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(7, 8, 13, 0.45);
}

.disc-face svg {
    width: 28px;
    height: 28px;
}

.disc .icon-pause,
.disc.is-on .icon-play {
    display: none;
}

.disc.is-on .icon-pause {
    display: block;
}

.disc-state {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.stage-title {
    margin: 10px 0 4px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.stage-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}

.wave {
    display: block;
    width: 100%;
    height: 84px;
    margin: 8px 0 0;
}

.seek {
    position: relative;
    display: flex;
    align-items: center;
    height: 28px;
    margin-top: 4px;
}

.seek-fill {
    position: absolute;
    left: 0;
    height: 4px;
    width: 0;
    border-radius: 999px;
    background: #a855f7;
    pointer-events: none;
}

.player-range {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.player-range:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

.player-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.22);
}

.player-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: #a855f7;
}

.player-range::-moz-range-track {
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.22);
}

.player-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #a855f7;
}

.player-times {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.player-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 0;
}

.player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.player-action svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: #a855f7;
}

.player-action:hover {
    border-color: #c4b5fd;
    background: rgba(168, 85, 247, 0.08);
}

.player-action:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

.player-cabinet {
    display: block;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    text-underline-offset: 3px;
}

.music-desk {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    min-width: 0;
    position: relative;
}

.music-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.music-hint {
    margin: -2px 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.prompt-shell {
    margin: 0 0 8px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-elevated);
    overflow: hidden;
    min-height: 360px;
}

.prompt {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    margin: 0;
    padding: 16px 16px 16px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd transparent;
}

.prompt::-webkit-scrollbar {
    width: 12px;
}

.prompt::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.prompt::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: #c4b5fd;
    background-clip: content-box;
}

.prompt:focus-visible {
    outline: none;
}

.prompt-shell:focus-within {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 18px;
    color: var(--muted);
}

.prompt-meta button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 22px;
}

.shot {
    position: relative;
    width: 96px;
    height: 96px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--bg-elevated);
    flex: none;
}

.shot img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.shot-add,
.shot-remove {
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.shot-add {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: 0;
}

.shot-add svg {
    display: block;
    width: 22px;
    height: 22px;
}

.shot-add:disabled {
    opacity: 0.35;
    cursor: default;
}

.shot.is-filled {
    position: relative;
    border-style: solid;
}

.shot-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(7, 8, 13, 0.82);
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    line-height: 0;
}

.shot-remove svg {
    display: block;
    width: 14px;
    height: 14px;
}

.shot-add:focus-visible,
.shot-remove:focus-visible,
.prompt-meta button:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

.music-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.music-go {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
}

.music-cost,
.music-status {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
}

.music-status {
    min-height: 22px;
    margin-top: 10px;
}

.music-status[data-tone="bad"] {
    color: #f87171;
}

.music-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 36px;
    width: 100%;
    max-width: none;
    margin: 8px 0 28px;
    padding: 8px 24px 16px;
}

.music-faq h2 {
    margin: 12px 0 4px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.music-faq p,
.music-more {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.music-more {
    margin-top: 8px;
}

.music-faq a {
    color: inherit;
}

.appx {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 36px 0 8px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #07080d;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.appx__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    min-height: 308px;
    align-items: stretch;
}

.appx__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 26px 8px 26px 28px;
}

.appx__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.appx__star {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
}

.appx__title {
    margin: 0;
    max-width: 22em;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fafafa;
}

.appx__lead {
    margin: 0;
    padding: 0;
    max-width: 36rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(228, 228, 231, 0.9);
}

.appx__lead li {
    margin: 0;
}

.appx__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.appx__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 190px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #9333ea, #a855f7);
    box-shadow: 0 10px 28px rgba(147, 51, 234, 0.32);
}

.appx__cta:hover {
    color: #fff;
    filter: brightness(1.06);
}

.appx__cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.appx__cta--quiet {
    color: #f4f4f5;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.appx__cta--quiet:hover {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.05);
    filter: none;
}

.appx__art {
    position: relative;
    min-width: 0;
    min-height: 308px;
    background:
        radial-gradient(ellipse 80% 80% at 70% 40%, rgba(168, 85, 247, 0.22), transparent 60%),
        #07080d;
}

.fan {
    position: absolute;
    width: 54%;
    height: 78%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.fan--a { left: 0; top: 16%; width: 50%; transform: rotate(-7deg); z-index: 1; }
.fan--c { right: 0; top: 18%; width: 50%; transform: rotate(6deg); z-index: 1; }
.fan--b { left: 23%; top: 7%; width: 54%; height: 86%; z-index: 2; }

.site-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

.site-footer__logo {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e9d5ff;
}

.site-footer__tagline {
    max-width: 280px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

.site-footer__legal {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

.site-footer__legal p {
    margin: 0 0 4px;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__link {
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer__link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.site-footer__credit {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.site-footer__credit a {
    color: #c4b5fd;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 181, 253, 0.35);
}

.appx__cta:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

@keyframes disc-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .disc.is-on .disc-spin {
        animation: none;
    }
}

@media (min-width: 1024px) {
    .music-page.wrap {
        max-width: 1280px;
    }
}

@media (min-width: 1180px) {
    .studio {
        grid-template-columns: 560px 560px;
        width: max-content;
        margin-top: 52px;
        margin-left: auto;
        margin-right: auto;
    }

    .stage {
        order: 0;
    }

    .music-desk > label.music-label {
        position: absolute;
        top: -28px;
        left: 0;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 980px) {
    .studio {
        grid-template-columns: minmax(0, 1fr);
    }

    .stage {
        order: -1;
        max-width: 560px;
        margin: 0 auto;
    }

    .prompt-shell,
    .prompt {
        min-height: 240px;
    }

    .music-faq {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .stage,
    .music-desk {
        max-width: none;
    }

    .appx__grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .appx__art {
        order: -1;
        min-height: 250px;
        height: 250px;
    }

    .appx__copy {
        padding: 20px;
    }

    .music-go {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stage {
        padding: 22px 16px 16px;
    }

    .disc {
        width: 168px;
        height: 168px;
    }

    .shots {
        gap: 10px;
    }

    .shot {
        width: 84px;
        height: 84px;
    }

    .appx__cta {
        flex-basis: 100%;
    }
}

.music-page.wrap {
    padding-bottom: 128px;
}

.music-actions {
    position: fixed;
    z-index: 35;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0;
}

.music-actions .music-go {
    width: auto;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 0 18px;
    animation: music-go-glow 2.8s ease-in-out infinite;
}

.music-actions .music-go:hover {
    transform: translateY(-1px);
}

.music-go__icon {
    width: 20px;
    height: 20px;
    flex: none;
    display: block;
}

.music-actions .music-go:disabled {
    animation: none;
}

.music-actions .music-go:disabled .music-go__icon {
    animation: music-go-spin 0.9s linear infinite;
}

.music-actions .music-cost,
.music-actions .music-status {
    padding: 2px 10px;
    border-radius: 999px;
    background: #1a2030;
    color: #f4f4f5;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .music-actions .music-cost,
html[data-theme="light"] .music-actions .music-status {
    background: #ffffff;
    color: #18181b;
    box-shadow: 0 0 0 1px rgba(24, 24, 27, 0.14);
}

.music-actions .music-status {
    min-height: 0;
    margin: 0;
    max-width: 28rem;
    padding-top: 6px;
    padding-bottom: 6px;
}

.music-actions .music-status[data-tone="bad"] {
    background: #3b1218;
    color: #fecdd3;
    box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.45);
}

html[data-theme="light"] .music-actions .music-status[data-tone="bad"] {
    background: #fff1f2;
    color: #9f1239;
    box-shadow: 0 0 0 1px rgba(190, 18, 60, 0.28);
}

.music-actions .music-status:empty {
    display: none;
}

@keyframes music-go-glow {
    0%, 100% { box-shadow: 0 8px 22px rgba(147, 51, 234, 0.28); }
    50% { box-shadow: 0 10px 28px rgba(168, 85, 247, 0.48); }
}

@keyframes music-go-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .music-actions .music-go,
    .music-actions .music-go:disabled .music-go__icon {
        animation: none;
    }
}

/* Modals opened on the music page, same look as the homepage. */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
    width: min(480px, calc(100vw - 32px));
    max-height: min(88vh, 720px);
    overflow: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.content-modal {
    width: min(640px, calc(100vw - 28px));
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.content-modal__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.content-modal__sub {
    margin: 4px 0 0 !important;
    font-size: 0.82rem !important;
    color: var(--muted) !important;
}

.content-modal__sub[hidden] {
    display: none !important;
}

.content-modal__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 20px;
    font-size: 0.88rem;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.55) rgba(255, 255, 255, 0.05);
}

.content-modal__body::-webkit-scrollbar,
.modal-overlay .modal::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.content-modal__body::-webkit-scrollbar-track,
.modal-overlay .modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 4px 0;
}

.content-modal__body::-webkit-scrollbar-thumb,
.modal-overlay .modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.75), rgba(124, 58, 237, 0.5));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.content-modal__body::-webkit-scrollbar-thumb:hover,
.modal-overlay .modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(192, 132, 252, 0.9), rgba(147, 51, 234, 0.65));
    background-clip: padding-box;
}

.content-modal__close {
    flex-shrink: 0;
    padding: 6px 10px !important;
    min-height: auto !important;
    cursor: pointer;
    z-index: 2;
}

.content-modal__body h4 {
    font-size: 0.95rem;
    color: #e9d5ff;
    margin: 18px 0 8px;
}

.content-modal__body h4:first-child { margin-top: 0; }

.content-modal__body p,
.content-modal__body li {
    color: var(--text);
    margin-bottom: 10px;
}

.content-modal__body ul {
    padding-left: 1.2rem;
    margin-bottom: 12px;
}

.faq-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item__q {
    font-weight: 600;
    color: #e9d5ff;
    margin-bottom: 6px;
}

.feedback-form label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 12px 0 4px;
}

.feedback-form label:first-child { margin-top: 0; }

.feedback-form .input,
.feedback-form textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-form__check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px !important;
    font-size: 0.85rem !important;
    color: var(--text) !important;
    cursor: pointer;
}

.feedback-form__check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.feedback-form__err {
    color: #fca5a5;
    font-size: 0.82rem;
    margin-top: 10px;
}

.guest-captcha-block--feedback {
    margin-top: 14px;
}

#feedbackModal .captcha-shell {
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#feedbackModal .captcha-shell__body {
    width: 100%;
    align-items: center;
}

.guest-captcha-block--survey {
    margin-top: 14px;
}

#surveyModal .captcha-shell {
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#surveyModal .captcha-shell__body {
    width: 100%;
    align-items: center;
}

#surveyModal .modal {
    width: min(100%, 480px);
}

.privacy-updated {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 14px !important;
}

#pricesModal .content-modal {
    width: min(960px, calc(100vw - 32px));
    max-width: min(960px, calc(100vw - 32px));
}
#pricesModal .prices-offer p { margin: 0; }
#pricesModal .prices-offer .prices-modal__intro {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 22px;
}
#pricesModal .packages-grid--tariffs .pkg-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
#pricesModal .pkg-price__period {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
#pricesModal .sub-consent {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 2px 0;
    cursor: pointer;
}
#pricesModal .sub-consent input {
    appearance: none;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    flex-shrink: 0;
    border: 2px solid #3f3f46;
    border-radius: 5px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
#pricesModal .sub-consent input:checked { background: #9333ea; border-color: #9333ea; }
#pricesModal .sub-consent input:checked::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
#pricesModal .sub-consent input:focus-visible { outline: 2px solid #9333ea; outline-offset: 2px; }
#pricesModal .sub-consent span { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); }
#pricesModal .sub-consent a { color: inherit; }
#pricesModal .sub-consent.is-needed input { border-color: #9333ea; box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.28); }
#pricesModal .sub-consent__err {
    margin: 8px 0 0;
    text-align: right;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #6d28d9;
}
[data-theme="dark"] #pricesModal .sub-consent input { background: transparent; border-color: #d4d4d8; }
[data-theme="dark"] #pricesModal .sub-consent__err { color: #e9d5ff; }
#pricesModal .sub-board__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 16px;
    align-items: start;
}
#pricesModal .sub-board__grid--solo { grid-template-columns: minmax(0, 1fr); }
#pricesModal .sub-now, #pricesModal .sub-up { min-width: 0; }
#pricesModal .sub-now { display: flex; flex-direction: column; gap: 12px; }
#pricesModal .sub-kicker {
    font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
}
#pricesModal .sub-planline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
#pricesModal .sub-plan { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
#pricesModal .sub-pill {
    align-self: center; padding: 3px 8px; border-radius: 999px; background: #9333ea; color: #fff;
    font-size: 12px; line-height: 16px; font-weight: 600;
}
#pricesModal .sub-price { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text); }
#pricesModal .sub-price span { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
#pricesModal .sub-stats {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 14px 8px 8px; border: 1px solid var(--border); border-radius: 16px;
    background: color-mix(in srgb, var(--text) 4%, var(--bg-elevated));
}
#pricesModal .sub-meter { display: flex; align-items: center; gap: 12px; min-width: 0; }
#pricesModal .sub-ring { width: 72px; height: 72px; flex-shrink: 0; }
#pricesModal .sub-meter__num { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--text); }
#pricesModal .sub-meter__label, #pricesModal .sub-days__until { font-size: 14px; line-height: 20px; color: var(--muted); }
#pricesModal .sub-days { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#pricesModal .sub-days__mark { width: 36px; height: 36px; color: #6d28d9; }
#pricesModal .sub-days__num { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--text); }
#pricesModal .sub-cancel-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
#pricesModal .sub-cancel-note { font-size: 14px; line-height: 20px; color: var(--muted); }
#pricesModal .sub-cancel {
    height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--text);
    background: var(--bg-elevated); color: var(--text);
    font: 600 14px/20px system-ui, "Segoe UI", sans-serif; cursor: pointer;
}
#pricesModal .sub-up {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 14px;
    border: 1px solid rgba(147, 51, 234, 0.22); border-radius: 16px;
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0) 42%), var(--bg-elevated);
}
#pricesModal .sub-up__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
#pricesModal .sub-bars { display: flex; align-items: flex-end; gap: 5px; height: 20px; }
#pricesModal .sub-bars span { width: 8px; border-radius: 3px; background: #e4e4e7; }
#pricesModal .sub-bars span:nth-child(1) { height: 8px; }
#pricesModal .sub-bars span:nth-child(2) { height: 14px; background: #c4b5fd; }
#pricesModal .sub-bars span:nth-child(3) { height: 20px; background: #9333ea; }
#pricesModal .sub-up__name { font-size: 22px; line-height: 26px; font-weight: 700; color: var(--text); }
#pricesModal .sub-up__chars { font-size: 16px; line-height: 20px; font-weight: 700; color: #6d28d9; }
#pricesModal .sub-up__price { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--text); }
#pricesModal .sub-up__price span { font-size: 14px; font-weight: 600; color: var(--muted); }
#pricesModal .sub-up__note { font-size: 14px; line-height: 20px; color: var(--muted); }
#pricesModal .sub-up .btn { width: 100%; margin-top: 6px; min-height: 40px; }
#pricesModal.is-live .content-modal {
    position: relative;
    width: min(1000px, calc(100vw - 32px));
    max-width: min(1000px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100vh - 32px);
}
#pricesModal.is-live .content-modal__head {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
}
#pricesModal.is-live .content-modal__head > div {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#pricesModal.is-live .content-modal__body {
    flex: none;
    overflow: auto;
    padding: 24px 20px 16px;
}
#pricesModal.is-live .sub-board__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 20px;
}
#pricesModal.is-live .sub-up { margin-top: 34px; }
.sub-modal[hidden] { display: none; }
.sub-modal {
    position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 24px;
}
.sub-modal__backdrop { position: absolute; inset: 0; background: rgba(24, 24, 27, 0.46); }
.sub-modal__dialog {
    position: relative; width: min(440px, 100%); padding: 24px 24px 20px; border-radius: 20px;
    background: var(--bg-elevated); color: var(--text); box-shadow: 0 24px 64px rgba(24, 24, 27, 0.2);
}
.sub-modal__x {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted); font: 600 16px/32px system-ui, "Segoe UI", sans-serif; cursor: pointer;
}
.sub-modal__title { margin: 0 36px 10px 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.sub-modal__lead { margin: 0 0 14px; font-size: 15px; line-height: 22px; }
.sub-modal__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sub-modal__list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.sub-modal__list li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 999px; background: #9333ea;
}
.sub-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.sub-modal__actions .btn, .sub-modal__actions .sub-cancel { min-height: 40px; }
.sub-modal .sub-cancel {
    height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--text);
    background: var(--bg-elevated); color: var(--text); font: 600 14px/20px system-ui, "Segoe UI", sans-serif; cursor: pointer;
}
@media (max-width: 800px) {
    #pricesModal.is-live .sub-up { margin-top: 16px; }
    #pricesModal .sub-board__grid, #pricesModal .sub-stats, #pricesModal .sub-consent {
        display: flex; flex-direction: column; align-items: stretch;
    }
    #pricesModal .sub-consent { align-items: flex-start; }
    #pricesModal .sub-consent__err { text-align: left; }
}

/* Homepage auth form on the music page */
.captcha-inline-alert {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

.captcha-inline-alert[hidden] {
    display: none !important;
}

.captcha-inline-alert.is-ok {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.1);
    color: #a7f3d0;
}

.guest-captcha-block {
    margin-top: 12px;
}

.guest-captcha-block[hidden] {
    display: none !important;
}

.guest-captcha-block--auth {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.guest-captcha-block--editor {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.editor-captcha-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-captcha-strip__label {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--muted);
    text-align: center;
    max-width: 28rem;
}

.editor-captcha-strip__label.is-ok {
    color: #6ee7b7;
}

.captcha-widget-slot,
.editor-captcha-strip__widget {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    container-type: inline-size;
    container-name: captcha-box;
}

.guest-captcha-block--editor .captcha-inline-alert {
    margin-bottom: 8px;
}

.captcha-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
}

.captcha-shell__badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.captcha-shell__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guest-captcha-block__hint {
    font-size: 0.6875rem;
    color: var(--muted);
    margin: 0 0 6px;
    line-height: 1.35;
}

.guest-captcha-block__hint.is-ok {
    color: #6ee7b7;
}

.smart-captcha-host {
    width: 100%;
    max-width: 320px;
    height: 74px;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    line-height: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    isolation: isolate;
}

.smart-captcha-host > div {
    width: 320px !important;
    max-width: 320px !important;
    flex-shrink: 0;
    transform: scale(0.94);
    transform-origin: top center;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.captcha-widget-slot .smart-captcha-host,
.editor-captcha-strip__widget .smart-captcha-host {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
    margin-right: 0;
}

.captcha-widget-slot .smart-captcha-host > div,
.editor-captcha-strip__widget .smart-captcha-host > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.smart-captcha-host iframe {
    display: block;
    border: none;
    border-radius: var(--radius-sm);
}

.guest-captcha-block--editor .smart-captcha-host {
    height: 72px;
}

/* Узкий слот (iPhone SE и т.п.) — масштаб под ширину, без обрезки */
@container captcha-box (max-width: 319px) {
    .captcha-widget-slot .smart-captcha-host,
    .editor-captcha-strip__widget .smart-captcha-host {
        width: 100%;
        max-width: 100%;
        height: calc(74px * 100cqi / 320px);
    }
    .captcha-widget-slot .smart-captcha-host > div,
    .editor-captcha-strip__widget .smart-captcha-host > div {
        transform: scale(calc(100cqi / 320px));
    }
}

#authModal .modal {
    overflow-x: hidden;
    max-width: min(420px, calc(100vw - 32px));
}

#authModal .guest-captcha-block--auth {
    width: 100%;
    overflow: hidden;
}

#authModal .captcha-shell {
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#authModal .captcha-shell__badge {
    display: none;
}

#authModal .captcha-shell__body {
    width: 100%;
    align-items: center;
}

#authModal .guest-captcha-block__hint {
    text-align: center;
    width: 100%;
}

#authModal .captcha-inline-alert {
    text-align: center;
}

@media (max-width: 390px) {
    .editor-captcha-strip__inner {
        padding: 10px 8px 8px;
    }
}

@media (max-width: 480px) {
    #authModal .modal {
        padding: 20px 16px;
    }
}

.auth-welcome-bonus {
    font-size: 0.8125rem;
    color: #a7f3d0;
    margin: 0 0 12px;
    line-height: 1.4;
}
