:root {
    --voice-ink: #f7f4ff;
    --voice-muted: #aaa1ba;
    --voice-surface: #17131f;
    --voice-surface-2: #211a2d;
    --voice-border: rgba(255,255,255,.11);
    --voice-purple: #9b5cff;
    --voice-pink: #ec5faf;
    --voice-cyan: #67d8e8;
}

.voice-shell {
    min-height: 100vh;
    color: var(--voice-ink);
    background:
        radial-gradient(circle at 15% 0%, rgba(142,74,255,.17), transparent 32rem),
        radial-gradient(circle at 95% 20%, rgba(236,95,175,.10), transparent 28rem),
        #0d0a12;
    padding: 0 max(22px, calc((100vw - 1320px) / 2)) 120px;
}

.voice-brand-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--voice-border);
}

.voice-wordmark {
    color: #fff;
    font: 800 1.15rem/1 "Outfit", sans-serif;
    letter-spacing: .18em;
    white-space: nowrap;
}

.voice-wordmark span { color: var(--voice-purple); letter-spacing: -.02em; margin-right: 7px; }
.voice-product-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); overflow-x: auto; }
.voice-product-nav a { color: var(--voice-muted); font-size: .88rem; white-space: nowrap; transition: color .2s; }
.voice-product-nav a:hover { color: #fff; }

.voice-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    gap: 50px;
    align-items: center;
}

.voice-eyebrow, .voice-page-heading > span, .voice-section-heading span, .voice-actor-hero > div > span,
.voice-full-player .voice-player-info > span, .voice-transcript > div > span, .voice-recorder > div > span {
    color: var(--voice-cyan);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .7rem;
    font-weight: 800;
}

.voice-hero h1 {
    margin: 18px 0 22px;
    max-width: 760px;
    font-size: clamp(3.3rem, 7vw, 7rem);
    line-height: .91;
    letter-spacing: -.065em;
    font-weight: 800;
}

.voice-hero h1 em { color: var(--voice-purple); font-style: normal; }
.voice-hero p { color: var(--voice-muted); max-width: 620px; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; }
.voice-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.voice-hero-actions > a:not(.voice-primary-button) { color: var(--voice-ink); border-bottom: 1px solid var(--voice-muted); padding-bottom: 5px; }

.voice-primary-button, .voice-secondary-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 800;
}
.voice-primary-button { color: white; background: linear-gradient(135deg, var(--voice-purple), var(--voice-pink)); box-shadow: 0 10px 30px rgba(155,92,255,.22); }
.voice-secondary-button { color: var(--voice-ink); background: var(--voice-surface-2); border: 1px solid var(--voice-border); }

.voice-wave-visual {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, .55vw, 10px);
    filter: drop-shadow(0 0 28px rgba(155,92,255,.3));
}
.voice-wave-visual i { width: 8px; min-width: 3px; height: 20%; border-radius: 10px; background: linear-gradient(180deg, var(--voice-cyan), var(--voice-purple), var(--voice-pink)); animation: voiceWave 1.7s ease-in-out infinite alternate; }
.voice-wave-visual i:nth-child(3n) { height: 70%; animation-delay: -.7s; }
.voice-wave-visual i:nth-child(4n) { height: 35%; animation-delay: -.3s; }
.voice-wave-visual i:nth-child(5n) { height: 95%; animation-delay: -1s; }
@keyframes voiceWave { to { transform: scaleY(.45); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .voice-wave-visual i { animation: none; } }

.voice-section { margin: 70px 0; }
.voice-section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; gap: 20px; }
.voice-section-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; }
.voice-section-heading > a { color: var(--voice-muted); }
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.voice-recording-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--voice-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(33,26,45,.93), rgba(19,15,26,.92));
    transition: transform .2s, border-color .2s;
}
.voice-recording-card:hover { transform: translateY(-3px); border-color: rgba(155,92,255,.45); }
.voice-recording-art { min-height: 150px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #a978ff, #241235 72%); display: grid; place-items: center; font-size: 3rem; }
.voice-recording-art img { width: 100%; height: 100%; object-fit: cover; }
.voice-recording-body { min-width: 0; }
.voice-recording-body h3 { margin: 8px 0 3px; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-recording-body > p { color: var(--voice-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-source { display: inline-block; color: #dbcaff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.voice-source--official_human { color: #ffd56b; }
.voice-source--human_community { color: var(--voice-cyan); }
.voice-card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--voice-muted); font-size: .72rem; margin: 11px 0; }
.voice-card-actions { display: flex; align-items: center; gap: 12px; }
.voice-card-actions .voice-primary-button { min-height: 35px; padding: 0 14px; font-size: .78rem; }
.voice-card-actions > a { color: var(--voice-muted); font-size: .72rem; }

.voice-login-callout, .voice-form-card, .voice-recorder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 28px;
    border: 1px solid rgba(155,92,255,.28);
    border-radius: 24px;
    background: linear-gradient(110deg, rgba(155,92,255,.17), rgba(33,26,45,.85));
}
.voice-login-callout p, .voice-empty p { color: var(--voice-muted); margin: 5px 0 0; }
.voice-login-callout > a { color: white; font-weight: 800; }

.voice-empty { grid-column: 1/-1; text-align: center; padding: 70px 25px; border: 1px dashed var(--voice-border); border-radius: 24px; background: rgba(255,255,255,.02); }
.voice-empty > span { font-size: 3rem; color: var(--voice-purple); }
.voice-empty h2, .voice-empty h3 { margin: 12px 0 0; }
.voice-empty a { color: var(--voice-cyan); display: inline-block; margin-top: 15px; }

.voice-page-heading { padding: 70px 0 38px; }
.voice-page-heading h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); letter-spacing: -.055em; margin: 8px 0; }
.voice-page-heading p { color: var(--voice-muted); font-size: 1.05rem; }
.voice-filter { display: grid; grid-template-columns: 2fr 1fr auto; gap: 14px; margin-bottom: 32px; align-items: end; }
.voice-filter label, .voice-form-card label { display: grid; gap: 7px; color: var(--voice-muted); font-size: .78rem; }
.voice-filter input, .voice-filter select, .voice-form-card input, .voice-form-card select {
    min-height: 48px; color: var(--voice-ink); background: var(--voice-surface); border: 1px solid var(--voice-border); border-radius: 12px; padding: 0 14px;
}

.voice-list { display: grid; gap: 10px; }
.voice-list article { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(130px, 280px) auto auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--voice-border); border-radius: 16px; background: var(--voice-surface); }
.voice-list p { color: var(--voice-muted); margin: 3px 0 0; font-size: .8rem; }
.voice-list > article > span, .voice-list a { color: var(--voice-muted); font-size: .82rem; }
.voice-list-progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.voice-list-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--voice-purple), var(--voice-pink)); }

.voice-actor-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.voice-actor-strip a { display: grid; justify-items: center; text-align: center; gap: 6px; color: var(--voice-ink); }
.voice-actor-strip small { color: var(--voice-muted); }
.voice-avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; font: 800 2rem/1 "Outfit"; background: linear-gradient(145deg, var(--voice-purple), #35214e); border: 3px solid rgba(255,255,255,.1); }
.voice-avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice-avatar--large { width: 150px; height: 150px; font-size: 3.5rem; }
.voice-actor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.voice-actor-grid > a { color: var(--voice-ink); display: flex; gap: 20px; padding: 22px; border: 1px solid var(--voice-border); border-radius: 20px; background: var(--voice-surface); }
.voice-actor-grid p, .voice-actor-grid small { color: var(--voice-muted); }
.voice-actor-hero { min-height: 390px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 35px; align-items: center; }
.voice-actor-hero h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); margin: 7px 0 10px; letter-spacing: -.05em; }
.voice-actor-hero p { color: var(--voice-muted); max-width: 680px; }
.voice-actor-actions { display: grid; gap: 10px; }

.voice-studio-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 30px; }
.voice-studio-metrics article { padding: 25px; border: 1px solid var(--voice-border); border-radius: 18px; background: var(--voice-surface); }
.voice-studio-metrics span { color: var(--voice-muted); display: block; font-size: .75rem; }
.voice-studio-metrics strong { font-size: 1.7rem; }
.voice-recorder { display: grid; grid-template-columns: 1fr auto; }
.voice-recorder-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice-recorder-controls button { min-height: 42px; border-radius: 999px; padding: 0 15px; border: 1px solid var(--voice-border); color: white; background: var(--voice-surface-2); }
.voice-recorder audio { width: 100%; grid-column: 1/-1; }
.voice-recorder > p { grid-column: 1/-1; color: var(--voice-muted); }
.voice-form-card { max-width: 700px; margin: 0 auto; display: grid; justify-content: stretch; align-items: stretch; }
.voice-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }

.voice-full-player { min-height: 600px; display: grid; grid-template-columns: minmax(260px, 430px) minmax(0, 1fr); gap: clamp(35px, 6vw, 90px); align-items: center; position: relative; }
.voice-player-cover { aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center; overflow: hidden; font-size: 8rem; background: radial-gradient(circle at 30% 20%, #b47dff, #281137 75%); box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.voice-player-cover img { width: 100%; height: 100%; object-fit: cover; }
.voice-player-info h1 { margin: 12px 0; font-size: clamp(2.7rem, 6vw, 6rem); letter-spacing: -.06em; line-height: .95; }
.voice-player-info p { color: var(--voice-muted); font-size: 1.2rem; }
.voice-full-player > .voice-primary-button { position: absolute; left: calc(min(430px, 34vw) + clamp(35px, 6vw, 90px)); bottom: 90px; }
.voice-transcript { padding: 40px; border-radius: 24px; background: var(--voice-surface); border: 1px solid var(--voice-border); }
.voice-transcript-body { color: #d7d0df; font: 1.1rem/1.9 "Lora", serif; max-width: 820px; margin: 20px auto 0; }

.voice-mini-player {
    position: fixed;
    z-index: 99990;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) auto minmax(240px, 1.1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: var(--voice-ink);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(18,14,25,.94);
    box-shadow: 0 20px 70px rgba(0,0,0,.55);
    backdrop-filter: blur(22px);
}
.voice-mini-player[hidden] { display: none !important; }
.voice-mini-meta { min-width: 0; display: flex; align-items: center; gap: 12px; }
.voice-mini-meta div { min-width: 0; }
.voice-mini-meta strong, .voice-mini-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-mini-meta small { color: var(--voice-muted); }
.voice-mini-pulse { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--voice-cyan), var(--voice-purple)); box-shadow: 0 0 20px rgba(155,92,255,.5); }
.voice-mini-controls { display: flex; align-items: center; gap: 5px; }
.voice-mini-player button, .voice-mini-player select, .voice-mini-player a { color: var(--voice-ink); background: transparent; border: 0; min-width: 42px; min-height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.voice-mini-play { background: white !important; color: #14101b !important; font-size: 1rem; }
.voice-mini-timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; color: var(--voice-muted); font-size: .7rem; }
.voice-mini-timeline input { width: 100%; accent-color: var(--voice-purple); }
.voice-mini-player select { border-radius: 10px; background: var(--voice-surface-2); padding: 0 8px; min-width: 66px; }

body.theme-light .voice-mini-player { background: rgba(255,255,255,.95); color: #17131f; border-color: rgba(0,0,0,.13); }
body.theme-light .voice-mini-player button, body.theme-light .voice-mini-player select, body.theme-light .voice-mini-player a { color: #17131f; }
body.theme-sepia .voice-mini-player { background: rgba(232,223,200,.96); color: #433422; }

@media (max-width: 1050px) {
    .voice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .voice-actor-strip { grid-template-columns: repeat(3, 1fr); }
    .voice-mini-player { grid-template-columns: minmax(140px,1fr) auto minmax(180px,1fr) auto; }
    .voice-mini-player [data-voice-timer], .voice-mini-player [data-voice-expand] { display: none; }
}

@media (max-width: 720px) {
    .voice-shell { padding-inline: 16px; }
    .voice-brand-header { align-items: flex-start; padding: 18px 0; flex-direction: column; }
    .voice-product-nav { width: 100%; padding-bottom: 4px; }
    .voice-hero { min-height: 600px; grid-template-columns: 1fr; padding: 65px 0; }
    .voice-wave-visual { height: 130px; order: -1; }
    .voice-hero h1 { font-size: clamp(3.1rem, 15vw, 5.4rem); }
    .voice-grid, .voice-actor-grid, .voice-studio-metrics { grid-template-columns: 1fr; }
    .voice-recording-card { grid-template-columns: 92px minmax(0,1fr); }
    .voice-recording-art { min-height: 126px; }
    .voice-filter { grid-template-columns: 1fr; }
    .voice-list article { grid-template-columns: 1fr auto; }
    .voice-list-progress { grid-column: 1/-1; order: 3; }
    .voice-actor-strip { grid-template-columns: repeat(2, 1fr); }
    .voice-actor-hero { grid-template-columns: 1fr; padding: 55px 0; justify-items: start; }
    .voice-recorder { grid-template-columns: 1fr; }
    .voice-full-player { grid-template-columns: 1fr; padding: 50px 0 120px; }
    .voice-player-cover { max-width: 340px; width: 88vw; justify-self: center; }
    .voice-full-player > .voice-primary-button { left: 0; bottom: 50px; }
    .voice-transcript { padding: 24px 18px; }
    .voice-mini-player { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; grid-template-columns: minmax(0,1fr) auto; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .voice-mini-controls { grid-column: 2; grid-row: 1; }
    .voice-mini-timeline { grid-column: 1/-1; grid-row: 2; }
    .voice-mini-player [data-voice-speed], .voice-mini-player [data-voice-timer], .voice-mini-player [data-voice-expand], .voice-mini-player [data-voice-close] { display: none; }
}
