/* ============================================================
   Fish Audio TTS — премиальный редизайн (scoped к странице)
   Акцент: фиолетово-фуксиевый градиент по макету.
   Загружается только на text-to-speech.php.
   ============================================================ */

:root {
    --ft-grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --ft-grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(217, 70, 239, 0.18));
    --ft-card-bg: linear-gradient(180deg, rgba(28, 19, 52, 0.72), rgba(17, 11, 34, 0.72));
    --ft-card-border: rgba(178, 142, 255, 0.16);
    --ft-input-bg: rgba(13, 8, 28, 0.62);
    --ft-text: #f5f1ff;
    --ft-muted: rgba(245, 241, 255, 0.55);
    --ft-faint: rgba(245, 241, 255, 0.38);
}

.ft-shell { max-width: 1440px; }

/* ================= Hero ================= */
.ft-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 26px 28px;
    margin-bottom: 20px;
    background:
        radial-gradient(circle at 88% 15%, rgba(217, 70, 239, 0.42), transparent 42%),
        radial-gradient(circle at 65% 90%, rgba(139, 92, 246, 0.30), transparent 45%),
        linear-gradient(120deg, #4c1d95 0%, #6d28d9 45%, #86198f 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(109, 40, 217, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ft-hero h1 { margin: 0 0 8px; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.15; }
.ft-hero-sub { margin: 0 0 14px; color: rgba(250, 245, 255, 0.85); font-size: 0.92rem; max-width: 560px; }
.ft-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(20, 8, 40, 0.30);
    color: rgba(250, 245, 255, 0.88);
    font-size: 0.78rem; font-weight: 500;
}
.ft-pill .icon-svg { width: 13px; height: 13px; }
.ft-hero-deco {
    position: absolute; right: 26px; top: 50%;
    transform: translateY(-50%);
    width: 108px; height: 108px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    filter: drop-shadow(0 10px 26px rgba(217, 70, 239, 0.55));
}
.ft-hero-deco .icon-svg { width: 100%; height: 100%; stroke-width: 1.6; }

/* ================= Layout: форма + панель заказов ================= */
.ft-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 348px;
    gap: 18px;
    align-items: start;
}
.ft-main { min-width: 0; }

.ft-card {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ft-card:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    color: var(--ft-text);
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.form-label .ft-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 7px;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.72rem; font-weight: 800;
    margin-right: 8px;
    vertical-align: 1px;
}

/* ================= Гостевой баннер ================= */
.guest-cta-banner {
    text-align: center;
    padding: 1.6rem;
    margin-bottom: 16px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 18px;
}
.guest-cta-banner h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.4rem; }
.guest-cta-banner p { color: var(--ft-muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ================= Панель выбора голоса ================= */
.voice-panel {
    background: rgba(13, 8, 28, 0.42);
    border: 1px solid rgba(178, 142, 255, 0.14);
    border-radius: 16px;
    padding: 14px;
}
.voice-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.voice-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(10, 6, 22, 0.65);
    border: 1px solid rgba(178, 142, 255, 0.14);
    border-radius: 12px;
}
.voice-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    border: none; background: transparent;
    border-radius: 9px;
    color: var(--ft-muted);
    font-size: 0.84rem; font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.voice-tab .icon-svg { width: 15px; height: 15px; }
.voice-tab:hover { color: #fff; }
.voice-tab.active {
    background: var(--ft-grad);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.voice-tab .tab-count {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}
.voice-search { position: relative; flex: 1; min-width: 170px; }
.voice-search .icon-svg {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: var(--ft-faint);
    pointer-events: none;
}
.voice-search input {
    width: 100%;
    padding: 12px 38px 12px 40px;
    background: var(--ft-input-bg);
    border: 1px solid rgba(139, 92, 246, 0.55);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.voice-search input:focus {
    outline: none;
    border-color: rgba(217, 70, 239, 0.75);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.16);
}
.voice-search input::placeholder { color: var(--ft-faint); }
.voice-search .clear-btn {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; line-height: 1;
}
.voice-search .clear-btn.visible { display: flex; }

/* Поиск отдельной строкой на всю ширину блока + фильтр по языку */
.voice-search-row { margin-bottom: 10px; }
.voice-search-row .voice-search { width: 100%; min-width: 0; }
.voice-search-row .voice-search input { font-size: 1rem; padding: 13px 40px 13px 42px; }
.voice-lang-row {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin-bottom: 12px;
}
.voice-lang-row .tag-cloud-label { margin-right: 2px; }

.clone-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.clone-btn .icon-svg { width: 16px; height: 16px; }
.clone-btn:hover {
    border-color: rgba(217, 70, 239, 0.75);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}
.clone-btn-mobile { display: none; }

/* Выбранный голос */
.selected-voice-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    margin-bottom: 12px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(139, 92, 246, 0.55);
    border-radius: 12px;
}
.selected-voice-chip .chip-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--ft-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.45);
}
.selected-voice-chip .chip-avatar .icon-svg { width: 17px; height: 17px; }
.selected-voice-chip .chip-name { color: #fff; font-weight: 600; font-size: 0.92rem; }
.selected-voice-chip .chip-sub { color: var(--ft-muted); font-size: 0.75rem; }

/* Сетка голосов */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.voice-card {
    position: relative;
    padding: 12px;
    background: rgba(24, 15, 46, 0.55);
    border: 1px solid rgba(178, 142, 255, 0.16);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    content-visibility: auto;
    contain-intrinsic-size: 108px;
    animation: ftCardIn 0.3s ease both;
}
@keyframes ftCardIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.voice-card:hover { border-color: rgba(217, 70, 239, 0.45); transform: translateY(-2px); }
.voice-card.active {
    background: var(--ft-grad-soft);
    border-color: rgba(217, 70, 239, 0.75);
    box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.25), 0 10px 26px rgba(139, 92, 246, 0.22);
}
.voice-card.active::after {
    content: '';
    position: absolute; top: 10px; right: 10px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #e879f9;
    box-shadow: 0 0 8px rgba(232, 121, 249, 0.9);
}
.vc-row { display: flex; align-items: center; gap: 10px; }
.vc-main { min-width: 0; flex: 1; }
.voice-card .voice-name {
    color: #fff; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 2px;
    padding-right: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.voice-card .voice-desc {
    color: var(--ft-muted); font-size: 0.75rem; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-wf { margin-top: 8px; height: 14px; }
.voice-meta { display: flex; gap: 5px; margin-top: 9px; align-items: center; flex-wrap: wrap; }
.voice-tag {
    font-size: 0.66rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
}
.voice-tag.own-tag { background: rgba(139, 92, 246, 0.24); color: #d8b4fe; }
.voice-tag.tag-chip { cursor: pointer; transition: background 0.15s, color 0.15s; }
.voice-tag.tag-chip:hover { background: rgba(217, 70, 239, 0.25); color: #f0abfc; }
.voice-stats { display: flex; gap: 10px; margin-top: 8px; }
.voice-stat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; color: var(--ft-faint);
}
.voice-stat svg { width: 12px; height: 12px; }
.voice-sort {
    background: var(--ft-input-bg);
    border: 1px solid rgba(178, 142, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}
.voice-sort:focus { outline: none; border-color: rgba(217, 70, 239, 0.55); }
.voice-sort option { background: #17102e; color: #e5e1f5; }

/* Псевдо-волноформа: прогресс воспроизведения + перемотка */
.wf {
    display: flex; align-items: center; gap: 2px;
    flex: 1; min-width: 0; height: 18px;
    overflow: hidden;
    opacity: 0.55;
    cursor: pointer;
}
.wf span {
    /* Бары растягиваются на всю ширину дорожки — иначе они жмутся влево,
       а перемотка считается по полной ширине блока и "уезжает" левее клика */
    flex: 1; min-width: 2px;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.42);
    transition: background 0.15s ease;
}
.wf.wf-playing { opacity: 0.95; }
.wf span.wf-done {
    background: var(--ft-grad);
    opacity: 1;
}

/* Облако тегов */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tag-cloud-label { font-size: 0.74rem; color: var(--ft-faint); margin-right: 2px; }
.cloud-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(178, 142, 255, 0.22);
    background: rgba(24, 15, 46, 0.5);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    white-space: nowrap;
}
.cloud-tag .icon-svg { width: 13px; height: 13px; flex-shrink: 0; }
.cloud-tag:hover { border-color: rgba(217, 70, 239, 0.55); color: #fff; }
.cloud-tag.active {
    background: var(--ft-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}

/* Подсказки тегов под поиском */
.tag-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    z-index: 40;
    background: linear-gradient(160deg, rgba(30, 20, 55, 0.98), rgba(18, 12, 38, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 5px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.tag-suggest.open { display: block; }
.tag-suggest button {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    border: none; background: transparent;
    border-radius: 8px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    cursor: pointer;
    text-align: left;
}
.tag-suggest button:hover { background: rgba(139, 92, 246, 0.18); color: #fff; }
.tag-suggest button .suggest-hint { margin-left: auto; font-size: 0.68rem; color: var(--ft-faint); }

/* Иконки-кнопки на карточках голосов */
.voice-icon-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
    padding: 0;
}
.voice-icon-btn .icon-svg { width: 14px; height: 14px; }
.voice-icon-btn:hover { background: rgba(139, 92, 246, 0.35); color: #fff; transform: scale(1.07); }
.voice-icon-btn.play-btn {
    width: 38px; height: 38px;
    background: var(--ft-grad);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}
.voice-icon-btn.play-btn:hover { box-shadow: 0 6px 18px rgba(217, 70, 239, 0.55); }
.voice-icon-btn.play-btn.playing { background: linear-gradient(135deg, #d946ef, #8b5cf6); }
.voice-icon-btn.fav-btn {
    border-color: rgba(244, 114, 182, 0.4);
    background: rgba(244, 114, 182, 0.1);
    color: rgba(244, 114, 182, 0.75);
}
.voice-icon-btn.fav-btn:hover { background: rgba(244, 114, 182, 0.25); }
.voice-icon-btn.fav-btn.faved {
    background: rgba(244, 114, 182, 0.3);
    color: #f472b6;
    border-color: rgba(244, 114, 182, 0.7);
}
.voice-icon-btn.fav-btn.faved .icon-svg { fill: currentColor; }
.voice-icon-btn.fav-btn.pop { animation: ftFavPop 0.35s ease; }
@keyframes ftFavPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.voice-icon-btn.del-btn {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: rgba(248, 113, 113, 0.8);
}
.voice-icon-btn.del-btn:hover { background: rgba(248, 113, 113, 0.25); }

.voice-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ft-muted);
    font-size: 0.9rem;
}
.voice-empty .icon-svg { width: 34px; height: 34px; opacity: 0.4; margin-bottom: 8px; }

.voice-skeleton {
    height: 100px;
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.08) 30%, rgba(139, 92, 246, 0.18) 50%, rgba(139, 92, 246, 0.08) 70%);
    background-size: 200% 100%;
    animation: ftSkeleton 1.2s linear infinite;
}
@keyframes ftSkeleton { to { background-position: -200% 0; } }

.load-more-btn {
    grid-column: 1 / -1;
    padding: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.load-more-btn:hover { background: rgba(139, 92, 246, 0.22); color: #fff; }

/* ================= Текст / спикеры ================= */
.tts-textarea {
    width: 100%;
    min-height: 150px;
    background: var(--ft-input-bg);
    border: 1px solid rgba(178, 142, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    padding: 13px 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tts-textarea:focus {
    outline: none;
    border-color: rgba(217, 70, 239, 0.6);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}
.tts-textarea::placeholder { color: var(--ft-faint); }
.tts-counter {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ft-muted);
    flex-wrap: wrap;
    gap: 4px;
}
.tts-counter .cost-line { color: #e9b3ff; font-weight: 600; }
.tts-counter .over-limit { color: #f87171; font-weight: 700; }

.emotion-hint {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--ft-muted);
    margin-top: 8px;
}
.emotion-hint code {
    color: #e9b3ff;
    background: rgba(217, 70, 239, 0.12);
    padding: 1px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.emotion-hint code:hover { background: rgba(217, 70, 239, 0.28); }

/* Диалог спикеров */
.add-speaker-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.add-speaker-btn:hover { background: rgba(139, 92, 246, 0.22); color: #fff; border-color: rgba(217, 70, 239, 0.7); }
.add-speaker-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.spk-block {
    background: rgba(13, 8, 28, 0.45);
    border: 1px solid rgba(178, 142, 255, 0.16);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.spk-block.spk-active { border-color: rgba(217, 70, 239, 0.55); box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.15); }
.spk-block-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.spk-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.75rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.4);
}
.spk-voice-chip {
    flex: 1;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spk-voice-chip:hover { background: rgba(139, 92, 246, 0.24); border-color: rgba(217, 70, 239, 0.55); }
.spk-voice-chip.active { background: rgba(217, 70, 239, 0.22); border-color: rgba(217, 70, 239, 0.75); color: #fff; }
.spk-voice-chip.unset { color: var(--ft-faint); font-style: italic; border-style: dashed; background: transparent; }
.spk-remove-btn {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
    color: rgba(248, 113, 113, 0.75);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s;
}
.spk-remove-btn:hover { background: rgba(248, 113, 113, 0.22); color: #fca5a5; }
.spk-textarea {
    width: 100%;
    background: var(--ft-input-bg);
    border: 1px solid rgba(178, 142, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    padding: 10px 12px;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
}
.spk-textarea:focus { outline: none; border-color: rgba(217, 70, 239, 0.55); box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1); }
.spk-textarea::placeholder { color: var(--ft-faint); }

/* ================= Настройки ================= */
.ft-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ft-set-col { min-width: 0; }

.option-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.option-btn {
    padding: 9px 15px;
    background: var(--ft-input-bg);
    border: 1px solid rgba(178, 142, 255, 0.22);
    border-radius: 11px;
    color: var(--ft-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
}
.option-btn:hover { border-color: rgba(217, 70, 239, 0.5); color: #fff; }
.option-btn.active {
    background: var(--ft-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.option-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.duration-slider-wrap { display: flex; align-items: center; gap: 12px; }
.duration-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(139, 92, 246, 0.22);
    border-radius: 3px;
    outline: none;
}
.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    background: var(--ft-grad);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}
.duration-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    background: var(--ft-grad);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.duration-value {
    min-width: 56px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(178, 142, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.tts-switches { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; min-height: 40px; }
.tts-switch {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.tts-switch input { display: none; }
.tts-switch .switch-track {
    width: 40px; height: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(178, 142, 255, 0.2);
    position: relative;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.tts-switch .switch-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s, background 0.2s;
}
.tts-switch input:checked + .switch-track {
    background: var(--ft-grad);
    border-color: transparent;
}
.tts-switch input:checked + .switch-track::after {
    transform: translateX(18px);
    background: #fff;
}

/* ================= Кнопка генерации ================= */
.ft-generate {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: var(--ft-grad);
    background-size: 160% 160%;
    color: #fff;
    font-size: 1.08rem; font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ft-generate:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: 0 18px 44px rgba(217, 70, 239, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ft-generate:disabled { opacity: 0.75; cursor: wait; transform: none; }
.ft-generate .icon-svg { width: 20px; height: 20px; }
.ft-generate .price-badge {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.85rem; font-weight: 600;
}
.ft-balance-line {
    text-align: center;
    margin-top: 9px;
    font-size: 0.8rem;
    color: var(--ft-faint);
}

/* Фичи под кнопкой */
.ft-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.ft-feat {
    background: rgba(24, 15, 46, 0.5);
    border: 1px solid rgba(178, 142, 255, 0.14);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}
.ft-feat .ft-feat-icon {
    width: 34px; height: 34px;
    margin: 0 auto 7px;
    border-radius: 10px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: #d8b4fe;
}
.ft-feat .ft-feat-icon .icon-svg { width: 17px; height: 17px; }
.ft-feat b { display: block; color: #fff; font-size: 0.8rem; margin-bottom: 2px; }
.ft-feat span { color: var(--ft-faint); font-size: 0.68rem; line-height: 1.3; display: block; }

/* ================= Правая панель «Мои озвучки» ================= */
.ft-panel {
    background: var(--ft-card-bg);
    border: 1px solid var(--ft-card-border);
    border-radius: 18px;
    padding: 16px;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ft-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ft-panel-title {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; font-weight: 700; font-size: 0.98rem;
}
.ft-panel-title .icon-svg { width: 17px; height: 17px; color: #d8b4fe; }
.ft-panel-count {
    min-width: 24px; height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.72rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.ft-latest {
    background: var(--ft-grad-soft);
    border: 1px solid rgba(217, 70, 239, 0.4);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}
.ft-latest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ft-latest-title { color: #fff; font-weight: 600; font-size: 0.85rem; line-height: 1.3; }
.ft-latest-sub { color: var(--ft-muted); font-size: 0.72rem; margin: 3px 0 10px; }
.ft-latest-actions { margin-top: 10px; }

.ft-orders-head { color: var(--ft-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; }
.ft-orders { display: flex; flex-direction: column; gap: 8px; }

.ft-order {
    background: rgba(24, 15, 46, 0.5);
    border: 1px solid rgba(178, 142, 255, 0.13);
    border-radius: 13px;
    padding: 11px 12px;
    transition: border-color 0.18s;
    animation: ftCardIn 0.3s ease both;
}
.ft-order:hover { border-color: rgba(217, 70, 239, 0.4); }
.ft-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ft-order-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem; font-weight: 600; line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ft-order-sub { color: var(--ft-faint); font-size: 0.7rem; margin: 4px 0 9px; }
.ft-order-err { color: #fca5a5; font-size: 0.76rem; margin-top: 6px; line-height: 1.4; }

.ft-badge {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.68rem; font-weight: 600;
}
.ft-badge.completed { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.ft-badge.failed { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.ft-badge.processing { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.ft-badge.dialogue { background: rgba(139, 92, 246, 0.24); color: #d8b4fe; }

/* Мини-плеер заказа */
.ft-player { display: flex; align-items: center; gap: 9px; }
.ft-player audio { display: none; }
.ft-play {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--ft-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transition: transform 0.15s ease, box-shadow 0.18s ease;
    padding: 0;
}
.ft-play:hover { transform: scale(1.07); box-shadow: 0 6px 16px rgba(217, 70, 239, 0.5); }
.ft-play .icon-svg { width: 14px; height: 14px; }
.ft-dur { color: var(--ft-muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ft-icon-btn {
    width: 30px; height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(178, 142, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ft-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
}
.ft-icon-btn:hover { background: rgba(139, 92, 246, 0.22); color: #fff; }
.ft-icon-btn .icon-svg { width: 13px; height: 13px; }
.ft-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    padding: 9px;
    border-radius: 11px;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}
.ft-dl:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(217, 70, 239, 0.45); color: #fff; }
.ft-dl .icon-svg { width: 15px; height: 15px; }
.ft-retry {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
    color: #d8b4fe;
    font-size: 0.76rem; font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.ft-retry:hover { background: rgba(139, 92, 246, 0.28); color: #fff; }
.ft-retry .icon-svg { width: 12px; height: 12px; }

.ft-orders-empty {
    text-align: center;
    padding: 1.4rem 0.8rem;
    color: var(--ft-faint);
    font-size: 0.82rem;
    border: 1px dashed rgba(178, 142, 255, 0.2);
    border-radius: 12px;
}
.ft-all-link {
    display: block;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(178, 142, 255, 0.22);
    background: rgba(139, 92, 246, 0.08);
    color: #d8b4fe;
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}
.ft-all-link:hover { background: rgba(139, 92, 246, 0.2); color: #fff; }
.ft-panel-guest { text-align: center; padding: 0.6rem 0.4rem; }
.ft-panel-guest p { color: var(--ft-muted); font-size: 0.85rem; margin-bottom: 12px; }

/* ================= Результат / утилиты ================= */
.tts-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ftSpin 0.8s linear infinite;
    vertical-align: -4px;
    margin-right: 8px;
}
@keyframes ftSpin { to { transform: rotate(360deg); } }

.tts-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(24, 15, 46, 0.96);
    border: 1px solid rgba(217, 70, 239, 0.55);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.tts-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= Модалка клонирования ================= */
.clone-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 5, 20, 0.78);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.clone-overlay.open { display: flex; }
.clone-modal {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, rgba(30, 20, 55, 0.98), rgba(18, 12, 38, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 18px;
    padding: 22px;
    animation: ftModalIn 0.25s ease both;
}
@keyframes ftModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.clone-modal h3 {
    color: #fff; font-size: 1.15rem;
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 4px;
}
.clone-modal h3 .icon-svg { width: 20px; height: 20px; color: #c4b5fd; }
.clone-modal .clone-sub { color: var(--ft-muted); font-size: 0.82rem; margin-bottom: 16px; }
.clone-input {
    width: 100%;
    padding: 10px 13px;
    background: var(--ft-input-bg);
    border: 1px solid rgba(178, 142, 255, 0.25);
    border-radius: 11px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}
.clone-input:focus { outline: none; border-color: rgba(217, 70, 239, 0.6); }
.clone-drop {
    border: 2px dashed rgba(139, 92, 246, 0.42);
    border-radius: 13px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    color: var(--ft-muted);
    font-size: 0.85rem;
}
.clone-drop:hover, .clone-drop.dragover { border-color: rgba(217, 70, 239, 0.65); background: rgba(217, 70, 239, 0.06); }
.clone-drop .icon-svg { width: 26px; height: 26px; color: #d8b4fe; margin-bottom: 6px; }
.clone-drop.has-file { border-style: solid; border-color: rgba(34, 197, 94, 0.55); color: #86efac; }
.clone-hint { font-size: 0.75rem; color: var(--ft-faint); margin-top: 6px; line-height: 1.45; }
.modal-close-btn {
    position: absolute;
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-close-btn:hover { background: rgba(255, 255, 255, 0.18); }
.modal-close-btn .icon-svg { width: 16px; height: 16px; }

/* ================= Пикер голоса (модалка) ================= */
.vp-open-btn {
    display: none;
    align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 11px 15px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vp-open-btn .icon-svg { width: 16px; height: 16px; }
.vp-open-btn:hover { border-color: rgba(217, 70, 239, 0.75); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35); }

.selected-voice-chip { cursor: pointer; }
.selected-voice-chip:hover { border-color: rgba(217, 70, 239, 0.8); }

.vp-modal { max-width: 520px; display: flex; flex-direction: column; }
.vp-modal .voice-toolbar { margin-bottom: 0; }
.vp-tag-cloud {
    margin: 8px 0 10px;
    max-height: 62px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.vp-modal .voice-lang-row { margin-top: 8px; }
.vp-list {
    overflow-y: auto;
    max-height: 50vh;
    display: flex; flex-direction: column; gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.vp-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(178, 142, 255, 0.14);
    border-radius: 12px;
    background: rgba(24, 15, 46, 0.5);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.vp-row:hover { border-color: rgba(217, 70, 239, 0.55); background: rgba(139, 92, 246, 0.14); }
.vp-row .vp-main { min-width: 0; flex: 1; }
.vp-name { color: #fff; font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sub { color: var(--ft-faint); font-size: 0.72rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-meta { display: flex; gap: 8px; margin-top: 5px; align-items: center; flex-wrap: wrap; }
.vp-row.vp-current { border-color: rgba(217, 70, 239, 0.75); background: var(--ft-grad-soft); }

/* Сворачиваемые настройки */
.ft-settings-card > summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
}
.ft-settings-card > summary::-webkit-details-marker { display: none; }
.ft-settings-card > summary::after {
    content: '▾';
    color: var(--ft-muted);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.ft-settings-card:not([open]) > summary::after { transform: rotate(-90deg); }
.ft-settings-card > summary .form-label { margin-bottom: 0; }
.ft-settings-card[open] > summary { margin-bottom: 0.6rem; }

/* ================= Адаптив ================= */
@media (max-width: 1100px) {
    .ft-layout { grid-template-columns: minmax(0, 1fr); }
    .ft-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .ft-orders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ft-orders-empty { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .ft-hero { padding: 16px 18px; border-radius: 16px; margin-bottom: 14px; }
    .ft-hero h1 { font-size: 1.3rem; margin-bottom: 5px; }
    .ft-hero-sub { font-size: 0.82rem; margin-bottom: 10px; }
    .ft-pill { font-size: 0.7rem; padding: 4px 10px; }
    .ft-hero-deco { width: 62px; height: 62px; right: 14px; }
    .ft-settings { grid-template-columns: 1fr; }
    .ft-orders { grid-template-columns: 1fr; }

    /* Приоритетный порядок: голос → текст → кнопка → настройки; грид голосов скрыт (выбор через пикер) */
    #ttsForm { display: flex; flex-direction: column; }
    .ft-voice-step { order: 1; }
    .ft-text-step { order: 2; }
    #ttsForm > .ft-generate { order: 3; }
    .ft-balance-line { display: none; }
    #settingsCard { order: 5; }
    #ttsError { order: 6; }

    /* Поиск и фильтр языка в форме на мобильном не нужны — они есть в пикере голоса */
    #ttsForm .voice-toolbar, #ttsForm .tag-cloud, #ttsForm .voice-grid,
    #ttsForm .voice-search-row, #ttsForm .voice-lang-row { display: none !important; }
    .vp-open-btn { display: inline-flex; }
    .clone-btn-mobile { display: inline-flex; width: 100%; justify-content: center; margin: 8px 0 12px; }
    .ft-feats { display: none; }
    /* На мобильном убираем «блок в блоке»: внутренняя рамка панели голоса лишняя */
    .voice-panel { background: transparent; border: none; padding: 0; border-radius: 0; }
    .selected-voice-chip { margin-bottom: 0; }
}
@media (max-width: 576px) {
    .ft-hero { padding: 14px 16px; }
    .ft-hero h1 { font-size: 1.15rem; }
    .ft-hero-sub { font-size: 0.78rem; }
    .voice-grid { grid-template-columns: minmax(0, 1fr); max-height: 400px; }
    .voice-card { animation: none; }
    .vc-wf { display: none; }
    .option-btn { padding: 8px 11px; font-size: 0.8rem; }
    .voice-toolbar { flex-direction: column; align-items: stretch; }
    .voice-tabs { justify-content: space-between; }
    .voice-tab { flex: 1; justify-content: center; padding: 8px 6px; font-size: 0.78rem; }
    .clone-btn { justify-content: center; }
    .ft-generate { padding: 15px; font-size: 1rem; }
    .ft-hero-deco { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .voice-card, .clone-modal, .ft-order { animation: none; }
    .voice-skeleton { animation: none; }
    .voice-card:hover, .clone-btn:hover, .ft-generate:hover { transform: none; }
}

/* ============================================================
   SEO-страница голоса (/voice/<slug>/) — voice.php
   ============================================================ */
.vseo-shell { max-width: 960px; }
.vseo-crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ft-faint); margin-bottom: 14px; flex-wrap: wrap; }
.vseo-crumbs a { color: rgba(196, 181, 253, 0.75); text-decoration: none; }
.vseo-crumbs a:hover { color: #e9d5ff; }
.vseo-crumbs b { color: var(--ft-muted); font-weight: 600; }
.vseo-hero { margin-bottom: 28px; }
.vseo-cta-main { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 13px 26px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.vseo-cta-main .icon-svg { width: 17px; height: 17px; }
.vseo-section { margin-bottom: 28px; }
.vseo-h2 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0 0 14px; }
.vseo-h2 .icon-svg { width: 20px; height: 20px; color: #c4b5fd; }
.vseo-h3 { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.vseo-h3 .icon-svg { width: 18px; height: 18px; color: #c4b5fd; }
.vseo-muted { color: var(--ft-muted); font-size: 0.9rem; line-height: 1.6; }
.vseo-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vseo-sample { margin-bottom: 0; }
.vseo-sample-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(232, 121, 249, 0.85); margin-bottom: 10px; }
.vseo-sample .ft-player { display: flex; align-items: center; gap: 10px; }
.vseo-sample-text { margin: 10px 0 0; font-size: 0.8rem; color: var(--ft-faint); line-height: 1.5; }
.vseo-variants { display: flex; flex-direction: column; gap: 10px; }
.vseo-variant { display: flex; align-items: center; gap: 14px; margin-bottom: 0; padding: 14px 16px; }
.vseo-variant-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vseo-variant-main .ft-player { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.vseo-variant-desc { font-size: 0.85rem; color: #fff; }
.vseo-variant-stats { display: inline-flex; gap: 12px; margin-left: 10px; font-size: 0.72rem; color: var(--ft-faint); align-items: center; }
.vseo-variant-stats .icon-svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.vseo-variant-cta { flex-shrink: 0; text-decoration: none; }
.vseo-steps { margin-bottom: 16px; }
.vseo-cta-mid { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.vseo-cta-mid .icon-svg { width: 16px; height: 16px; }
.vseo-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vseo-two-col .ft-card { margin-bottom: 0; }
.vseo-link { color: #e9b3ff; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.vseo-link:hover { color: #f5d0fe; text-decoration: underline; }
.vseo-faq { display: flex; flex-direction: column; gap: 10px; }
.vseo-faq-item { margin-bottom: 0; padding: 14px 16px; }
.vseo-faq-item summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 0.92rem; list-style: none; position: relative; padding-right: 26px; }
.vseo-faq-item summary::-webkit-details-marker { display: none; }
.vseo-faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: rgba(196, 181, 253, 0.7); transition: transform 0.2s; }
.vseo-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.vseo-faq-item p { margin: 10px 0 0; color: var(--ft-muted); font-size: 0.87rem; line-height: 1.6; }
.vseo-final { margin-bottom: 8px; }
@media (max-width: 720px) {
    .vseo-two-col { grid-template-columns: 1fr; }
    .vseo-variant { flex-direction: column; align-items: stretch; }
    .vseo-variant-cta { text-align: center; }
    .vseo-cta-main { width: 100%; justify-content: center; }
}

/* ============================================================
   Каталог голосов (/voices) — voices.php
   ============================================================ */
.vcat-shell { max-width: 1080px; }
.vcat-hero { margin-bottom: 20px; }
.vcat-filters { margin-bottom: 14px; padding: 14px 16px; }
.vcat-filters .voice-search-row { margin-bottom: 10px; }
.vcat-filters .voice-lang-row { margin-bottom: 10px; }
.vcat-count { color: var(--ft-faint); font-size: 0.8rem; margin: 0 2px 10px; }
.vcat-grid { margin-bottom: 22px; }
a.vcat-card { text-decoration: none; display: block; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.vcat-card:hover { transform: translateY(-2px); border-color: rgba(217, 70, 239, 0.45); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.18); }
.vcat-play-empty { opacity: 0.45; cursor: default; pointer-events: none; display: inline-flex; align-items: center; justify-content: center; }
.vcat-badge { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.vcat-badge .icon-svg { width: 14px; height: 14px; }
.vcat-variants-tag { background: rgba(139, 92, 246, 0.18); color: #d8b4fe; }
.vcat-empty { padding: 40px 0; }
.vcat-seo { margin-bottom: 8px; }
.cloud-tag.active { background: rgba(217, 70, 239, 0.28); border-color: rgba(217, 70, 239, 0.6); color: #fff; }

/* ============================================================
   CTA-модалка на SEO-странице голоса (voice.php)
   ============================================================ */
.vseo-modal { position: fixed; inset: 0; z-index: 110000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vseo-modal-overlay { position: absolute; inset: 0; background: rgba(10, 6, 20, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vseo-modal-card {
    position: relative; width: 100%; max-width: 480px; padding: 30px 28px 26px;
    background: linear-gradient(160deg, rgba(38, 26, 62, 0.97), rgba(20, 14, 36, 0.98));
    border: 1px solid rgba(196, 181, 253, 0.22); border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.12);
    animation: vseoModalIn 0.22s ease-out;
    max-height: calc(100vh - 32px); overflow-y: auto;
}
@keyframes vseoModalIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.vseo-modal-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.15s;
}
.vseo-modal-close:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.06); }
.vseo-modal-close .icon-svg { width: 15px; height: 15px; }
.vseo-modal-wf { justify-content: center; margin-bottom: 16px; opacity: 0.8; }
.vseo-modal-card h2 { color: #fff; font-size: 1.4rem; font-weight: 800; text-align: center; margin: 0 0 20px; line-height: 1.25; }
.vseo-modal-feats { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vseo-modal-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--ft-muted); font-size: 0.9rem; line-height: 1.45; }
.vseo-modal-feats li b { color: #fff; font-weight: 700; }
.vseo-modal-feats li > .icon-svg { width: 19px; height: 19px; flex-shrink: 0; color: #c4b5fd; margin-top: 1px; }
.vseo-modal-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 18px; padding: 14px 20px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.vseo-modal-cta .icon-svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
    .vseo-modal { align-items: flex-end; padding: 0; }
    .vseo-modal-card { max-width: none; border-radius: 20px 20px 0 0; padding: 24px 18px 22px; max-height: 88vh; }
    .vseo-modal-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
    .vseo-modal-feats { gap: 10px; }
    .vseo-modal-feats li { font-size: 0.85rem; }
}

/* Пагинация каталога */
.vcat-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 2px 0 22px; }
.vcat-pager .cloud-tag { text-decoration: none; min-width: 38px; text-align: center; }
.vcat-pager-dots { color: var(--ft-faint); align-self: center; padding: 0 2px; }

/* Ползунок громкости на SEO-страницах голосов */
.vseo-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.vseo-head-row .vseo-h2 { margin: 0; }
.vseo-volume { display: inline-flex; align-items: center; gap: 8px; color: var(--ft-faint); }
.vseo-volume .icon-svg { width: 16px; height: 16px; }
.vseo-volume input[type="range"] { width: 110px; accent-color: #a855f7; cursor: pointer; }
.vseo-volume-val { font-size: 0.78rem; min-width: 36px; text-align: right; }
.vseo-volume-standalone { margin-bottom: 12px; }
/* Фикс размера иконки в финальной CTA (btn без vseo-класса) */
.vseo-final .btn .icon-svg { width: 17px; height: 17px; }
