/* 医学嗓音采样 AI 修复 */

.vsr-root {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 24px;
}

.vsr-hero {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
    color: #fff;
}

.vsr-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.vsr-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    flex-wrap: wrap;
}

.vsr-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vsr-hero-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vsr-hero-sub {
    margin: 0;
    opacity: 0.92;
    font-size: 15px;
}

.vsr-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 20px;
    align-items: start;
}

.vsr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vsr-card {
    background: var(--surface-1, #fff);
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
}

.vsr-upload-zone {
    border: 2px dashed rgba(13, 148, 136, 0.35);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.vsr-upload-zone:hover {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.04);
}

.vsr-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-size: 14px;
}

.vsr-upload-inner i {
    font-size: 22px;
}

.vsr-upload-hint {
    font-size: 12px;
    opacity: 0.75;
}

.vsr-upload-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.06);
    font-size: 13px;
}

.vsr-upload-size,
.vsr-upload-meta {
    color: #64748b;
    font-size: 12px;
}

.vsr-main {
    min-width: 0;
}

.vsr-range-readout {
    font-size: 13px;
    color: #0f766e;
    font-weight: 600;
}

.vsr-range-slider {
    margin: 8px 4px 16px;
}

.vsr-preview-audio {
    width: 100%;
    margin-top: 12px;
}

.vsr-timeline {
    position: relative;
    height: 48px;
    margin: 4px 0 12px;
    user-select: none;
    touch-action: none;
    cursor: default;
}

.vsr-timeline-track {
    position: relative;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.vsr-timeline-sel {
    position: absolute;
    top: 4px;
    bottom: 4px;
    min-width: 8px;
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.28);
    border: 2px solid #0f766e;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
    cursor: grab;
}

.vsr-timeline-sel:active {
    cursor: grabbing;
}

.vsr-timeline-body {
    flex: 1;
    min-width: 4px;
}

.vsr-timeline-handle {
    width: 10px;
    flex-shrink: 0;
    cursor: ew-resize;
    background: rgba(15, 118, 110, 0.35);
    position: relative;
}

.vsr-timeline-handle--L {
    border-radius: 6px 0 0 6px;
}

.vsr-timeline-handle--R {
    border-radius: 0 6px 6px 0;
}

.vsr-timeline-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 18px;
    background: #0f766e;
    border-radius: 1px;
    box-shadow: 2px 0 0 #0f766e;
}

@media (max-width: 960px) {
    .vsr-layout {
        grid-template-columns: 1fr;
    }
}
