* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #e0f2fe;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
}

.card {
    background: #1e293b;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #e0f2fe;
}

.file-input-group {
    margin-bottom: 25px;
}

.file-label {
    display: block;
}

.label-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* Controls Row */
.controls-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.controls-row .half-width {
    flex: 1;
    min-width: 0;
}

/* Vocoder Controls */
.vocoder-controls {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6d 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #3b82f6;
    position: relative;
}

/* Vocal Swap Controls */
.vocal-swap-controls {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6d 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #10b981;
    position: relative;
}

/* Compact Effects Box - 3 Knobs in a Row */
.vocal-swap-controls.compact-effects {
    max-width: 280px;
    padding: 15px 20px;
}

.compact-effects .controls-title {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.knobs-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.knob-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-align: center;
}

.knob-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 28px;
    height: 80px;
    background: linear-gradient(to top, #1e293b 0%, #334155 100%);
    border-radius: 14px;
    outline: none;
    cursor: pointer;
    border: 2px solid #475569;
}

.knob-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    border: 2px solid #34d399;
}

.knob-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #34d399;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.knob-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.knob-slider::-moz-range-track {
    background: transparent;
}

.knob-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 8px;
}

.vocoder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.audition-btn-corner {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.audition-btn-corner:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.audition-btn-corner:active {
    transform: translateY(0);
}

.audition-btn-corner:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.controls-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #93c5fd;
    text-align: left;
}

.slider-group {
    margin-bottom: 25px;
}

.slider-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0f2fe;
}

.slider-label strong {
    color: #60a5fa;
}

.slider-hint {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #1e40af 0%, #3b82f6 100%);
    outline: none;
    -webkit-appearance: none;
    margin-top: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: #93c5fd;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: none;
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    background: #93c5fd;
    transform: scale(1.1);
}

/* Quality Mode Selector */
.quality-mode-selector {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    border: 2px solid #334155;
}

.mode-label {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0f2fe;
    margin-bottom: 15px;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 15px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: #60a5fa;
    background: #0f172a;
    transform: translateY(-2px);
}

.mode-btn.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.mode-icon {
    font-size: 2rem;
}

.mode-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0f2fe;
}

.mode-btn.active .mode-text {
    color: #6ee7b7;
}

.mode-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.mode-btn.active .mode-desc {
    color: #a7f3d0;
}

/* Script Reading Section */
.script-reading-section {
    background: linear-gradient(135deg, #1e293b 0%, #2d3748 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #8b5cf6;
}

.script-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 15px;
}

.script-instructions {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.script-text-box {
    background: #0f172a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #4c1d95;
}

.script-text-box h4 {
    color: #a78bfa;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.script-text {
    color: #e0f2fe;
    line-height: 1.8;
    font-size: 1.05rem;
    font-family: Georgia, serif;
    margin-bottom: 15px;
}

.script-duration {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

.recording-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.recording-option {
    flex: 1;
    min-width: 280px;
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #475569;
}

.recording-option h4 {
    color: #c4b5fd;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.recording-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .recording-divider {
        width: 100%;
        padding: 10px 0;
    }
}

.record-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.record-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.record-btn.stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.record-btn.stop:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.recording-status {
    color: #f87171;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    min-height: 24px;
}

.recording-status.active {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.info-banner {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 2px solid #0ea5e9;
}

.info-banner p {
    margin: 8px 0;
    color: #e0f2fe;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-banner strong {
    color: #7dd3fc;
}

.file-drop-zone {
    border: 3px dashed #475569;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0f172a;
}

.file-drop-zone:hover {
    border-color: #3b82f6;
    background: #1e293b;
}

.file-drop-zone.drag-over {
    border-color: #10b981;
    background: #1e3a2e;
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.drop-text {
    display: block;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

.file-name {
    display: block;
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
}

.file-name.selected {
    color: #10b981;
    font-weight: 600;
    font-style: normal;
}

input[type="file"] {
    display: none;
}

.options-section {
    margin: 35px 0;
    padding: 25px;
    background: #0f172a;
    border-radius: 15px;
}

.options-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e0f2fe;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #1e293b;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label span {
    color: #cbd5e1;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.button-group.three-buttons {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.button-group.three-buttons .submit-btn {
    padding: 20px 10px;
    font-size: 1rem;
}

.timing-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.timing-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.submit-btn {
    width: 100%;
    padding: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.submit-btn.performance-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.submit-btn.performance-btn:hover {
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.submit-btn.audition-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    font-size: 1.1rem;
}

.submit-btn.audition-btn:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}

/* Audition Section */
.audition-section {
    margin: 25px 0;
    padding: 25px;
}

.audition-status {
    margin-bottom: 20px;
}

.status-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 10px;
}

.audition-progress-bar {
    width: 100%;
    height: 20px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}

.audition-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    transition: width 0.3s ease;
}

.audition-player {
    margin-top: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.player-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.player-btn:active {
    transform: translateY(0);
}

.player-time {
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 600;
    margin-left: auto;
}

.waveform-placeholder {
    width: 100%;
    height: 80px;
    background: #0f172a;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #1e293b;
}

.playback-progress {
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
    transition: width 0.1s linear;
}

.progress-container {
    margin: 25px 0;
}

.progress-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #10b981;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #0f172a;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-percentage {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b82f6;
}

.logs-container {
    margin-top: 30px;
}

.logs-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.logs-box {
    background: #0f172a;
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    border: 1px solid #334155;
}

.log-entry {
    margin-bottom: 5px;
}

.results-container {
    margin: 25px 0;
}

.results-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e0f2fe;
}

.download-links {
    display: grid;
    gap: 15px;
}

.download-link {
    display: block;
    padding: 18px 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.reset-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.artist-profile-select {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.artist-profile-select:hover {
    border-color: #3b82f6;
}

.artist-profile-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.save-profile-container {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 15px;
    border: 2px solid #475569;
}

.save-profile-container p {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 1rem;
}

.save-profile-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.artist-name-input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.artist-name-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.artist-name-input::placeholder {
    color: #64748b;
}

/* Profile Button Group */
.profile-button-group {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-manager-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.profile-manager-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.selected-profile-indicator {
    color: #10b981;
    font-size: 1.05rem;
    font-weight: 600;
}

.selected-profile-indicator strong {
    color: #34d399;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #475569;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #475569;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: #f87171;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.profile-actions {
    margin-bottom: 30px;
}

.create-profile-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.create-profile-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-item:hover {
    border-color: #6366f1;
    background: #1e293b;
    transform: translateX(5px);
}

.profile-item.selected {
    border-color: #10b981;
    background: #1e293b;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.profile-meta {
    font-size: 0.9rem;
    color: #94a3b8;
}

.profile-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

.profile-select-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-select-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Profile Creation Section */
.profile-creation-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #475569;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.label-hint {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 5px;
}

.field-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.form-input {
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 2px solid #334155;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.upload-zone {
    background: #0f172a;
    border: 2px dashed #334155;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #6366f1;
    background: #1e293b;
}

.upload-zone.has-file {
    border-style: solid;
    border-color: #10b981;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.upload-text {
    display: block;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.upload-filename {
    display: block;
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-btn {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #475569;
    color: white;
}

.cancel-btn:hover {
    background: #64748b;
}

.save-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.save-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    display: block;
}

.save-profile-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.save-profile-message {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #0f172a;
    border-radius: 10px;
    border: 1px solid #334155;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    color: #cbd5e1;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label span {
    color: #e2e8f0;
}

.file-drop-zone.disabled {
    border-color: #1e293b;
    background: #0a0f1a;
    opacity: 0.5;
    cursor: not-allowed;
}

.file-drop-zone.disabled:hover {
    border-color: #1e293b;
    background: #0a0f1a;
}

.file-drop-zone.disabled .drop-text {
    color: #475569;
}

.file-drop-zone.optional {
    border-color: #334155;
    border-style: dashed;
    opacity: 0.8;
}

.file-drop-zone.optional:hover {
    border-color: #7dd3fc;
    opacity: 1;
}

/* Main Content Flex Layout */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 1;
    min-width: 0;
}

.lyrics-panel {
    width: 350px;
    max-width: 350px;
    min-width: 300px;
    flex-shrink: 0;
}

.lyrics-panel .card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.lyrics-panel textarea {
    flex: 1;
    min-height: 300px;
}

/* Keep lyrics panel on right side at all times - removed responsive stacking */

/* Multi-Voice Timeline Editor */
.multi-voice-section {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #334155;
}

.timeline-editor {
    margin-top: 20px;
}

.timeline-segments {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.segment-item {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.segment-item:hover {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.segment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

.remove-segment-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-segment-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.segment-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.time-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.time-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e0f2fe;
    font-size: 1rem;
    width: 80px;
    text-align: center;
}

.time-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.voice-select-group {
    flex: 1;
    min-width: 250px;
}

.voice-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.voice-select {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0f172a;
    color: #e0f2fe;
    font-size: 1rem;
    cursor: pointer;
}

.voice-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.timeline-actions {
    margin: 20px 0;
    text-align: center;
}

.add-segment-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-segment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.timeline-preview {
    margin-top: 30px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    border: 1px solid #334155;
}

.timeline-bar {
    position: relative;
    height: 60px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-track {
    display: flex;
    height: 100%;
}

.timeline-segment {
    position: relative;
    height: 100%;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-segment:hover {
    filter: brightness(1.2);
}
