/* ===== BASE GENERATOR ===== */
.generator-section {
    padding: 3rem 0;
}

.generator-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.generator-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
}

.generator-subtitle {
    color: #94a3b8;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== VOICE DISPLAY ===== */
.current-voice-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    transition: all 0.3s;
}

.current-voice-display:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.voice-display-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.voice-display-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.voice-display-name {
    font-weight: 600;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-display-label {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-favorite-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 0.2rem;
    flex-shrink: 0;
}

.voice-favorite-btn:hover {
    transform: scale(1.2);
}

.voice-favorite-btn.is-favorite {
    color: #fbbf24;
}

.btn-voice-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-voice-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    color: white;
}

.btn-voice-modal svg {
    width: clamp(12px, 2vw, 16px);
    height: clamp(12px, 2vw, 16px);
}

.voice-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 0.8rem;
    color: white;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    transition: all 0.3s;
}

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

.voice-search-input::placeholder {
    color: #475569;
}

/* ===== CONTROL GROUP ===== */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #e2e8f0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.voice-count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

.text-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 0.8rem;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    min-height: 160px;
}

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

.text-input::placeholder {
    color: #475569;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #64748b;
    transition: color 0.3s;
}

.quick-examples {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.example-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.example-tag:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

/* ===== PREVIEW PANEL ===== */
.generator-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
}

.preview-header {
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.2rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-header h3 {
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.preview-status {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    transition: all 0.3s;
    white-space: nowrap;
}

.preview-body {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.audio-player {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.audio-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    color: #64748b;
}

.empty-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: 1rem;
    color: #334155;
}

.empty-state h4 {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.empty-state p {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.loading-state {
    text-align: center;
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* ===== FAVORITES SECTION ===== */
.favorites-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.favorites-header h4 {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.favorites-count {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: #64748b;
}

.favorites-list {
    max-height: 180px;
    overflow-y: auto;
}

.favorites-list::-webkit-scrollbar {
    width: 4px;
}

.favorites-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 2px;
}

.favorites-empty {
    text-align: center;
    color: #64748b;
    padding: 0.5rem 0;
}

.favorites-empty p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.favorites-empty span {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.favorite-item.active {
    background: rgba(59, 130, 246, 0.1);
}

.favorite-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.favorite-item-info {
    flex: 1;
    min-width: 0;
}

.favorite-item-name {
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item-details {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    color: #64748b;
}

.favorite-item-select {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.favorite-item-select:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* ===== VOICE INFO CARD ===== */
.voice-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    transition: all 0.3s;
}

.voice-info-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.voice-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.voice-info-icon {
    width: clamp(40px, 8vw, 48px);
    height: clamp(40px, 8vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: white;
    transition: all 0.3s;
    flex-shrink: 0;
}

.voice-info-header h4 {
    color: white;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    word-break: break-word;
}

.voice-info-header p {
    color: #94a3b8;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    word-break: break-word;
}

.voice-info-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.voice-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== VOICE MODAL ===== */
.voice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.voice-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.voice-modal-content {
    background: #1e293b;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 95%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.voice-modal-header {
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.2rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-modal-header h2 {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: white;
}

.voice-modal-search {
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1.2rem, 2.5vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 0.8rem;
    color: white;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.modal-search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.voice-modal-filters {
    padding: 0.5rem clamp(1.2rem, 2.5vw, 2rem) 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.voice-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    max-height: 400px;
}

.voice-modal-list::-webkit-scrollbar {
    width: 6px;
}

.voice-modal-list::-webkit-scrollbar-track {
    background: transparent;
}

.voice-modal-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.voice-modal-item {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.5rem, 1.5vw, 1rem);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.voice-modal-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.voice-modal-item.active {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.voice-modal-item-icon {
    width: clamp(30px, 6vw, 36px);
    height: clamp(30px, 6vw, 36px);
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: white;
    flex-shrink: 0;
}

.voice-modal-item-info {
    flex: 1;
    min-width: 100px;
}

.voice-modal-item-name {
    font-weight: 600;
    color: white;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    word-break: break-word;
}

.voice-modal-item-details {
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    color: #94a3b8;
}

.voice-modal-item-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.voice-modal-favorite-btn,
.voice-modal-label-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: all 0.3s;
}

.voice-modal-favorite-btn:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.voice-modal-label-btn:hover {
    color: white;
    transform: scale(1.1);
}

.voice-modal-select-btn {
    background: rgba(59, 130, 246, 0.15);
    border: none;
    color: #60a5fa;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.voice-modal-select-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.voice-modal-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

.voice-modal-empty span {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    display: block;
}

.voice-modal-empty p {
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    margin-top: 0.3rem;
}

/* ===== LABEL MODAL ===== */
.label-modal-content {
    max-width: 400px;
}

.label-modal-body {
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.label-modal-body p {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.label-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    border-radius: 0.8rem;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.label-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.label-modal-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.label-modal-actions .btn-primary {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    min-width: 100px;
}

.label-modal-actions .btn-secondary-small {
    flex: 0 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .generator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .generator-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

@media (max-width: 600px) {
    .generator-section {
        padding: 1.5rem 0;
    }
    
    .generator-title {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }
    
    .generator-grid {
        gap: 1.5rem;
    }
    
    .control-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .current-voice-display {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .voice-display-info {
        min-width: 60%;
    }
    
    .voice-modal-item {
        flex-wrap: wrap;
    }
    
    .voice-modal-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        padding-top: 0.3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .voice-modal-content {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .voice-modal-list {
        max-height: none;
    }
    
    .label-modal-content {
        max-width: 95%;
    }
    
    .label-modal-actions {
        flex-direction: column;
    }
    
    .label-modal-actions .btn-primary {
        flex: auto;
    }
    
    .audio-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-download,
    .btn-secondary-small {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .voice-modal-filters {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .voice-modal-item-actions {
        gap: 0.2rem;
    }
    
    .voice-modal-favorite-btn,
    .voice-modal-label-btn {
        font-size: 0.9rem;
        padding: 0.1rem 0.2rem;
    }
    
    .voice-modal-select-btn {
        font-size: 0.6rem;
        padding: 0.1rem 0.5rem;
    }
}
/* ===== RECENT VOICES SECTION ===== */
.recent-voices-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
}

.recent-voices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recent-voices-header h4 {
    color: white;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.recent-count {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: #64748b;
}

.recent-list {
    max-height: 150px;
    overflow-y: auto;
}

.recent-list::-webkit-scrollbar {
    width: 4px;
}

.recent-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 2px;
}

.recent-empty {
    text-align: center;
    color: #64748b;
    padding: 0.5rem 0;
}

.recent-empty p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.recent-empty span {
    font-size: clamp(0.7rem, 1.3vw, 0.8rem);
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recent-item.active {
    background: rgba(59, 130, 246, 0.1);
}

.recent-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.recent-item-info {
    flex: 1;
    min-width: 0;
}

.recent-item-name {
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-item-details {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    color: #64748b;
}

.recent-item-select {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    padding: 0.1rem 0.6rem;
    border-radius: 2rem;
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.recent-item-select:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* ===== PLAY BUTTON IN MODAL ===== */
.voice-modal-play-btn {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-modal-play-btn:hover {
    color: #93bbfc;
    transform: scale(1.15);
}

.voice-modal-play-btn.loading {
    animation: spin 1s linear infinite;
}

.voice-modal-play-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* ===== VOICE MODAL ITEM ACTIONS - Updated ===== */
.voice-modal-item-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.voice-modal-favorite-btn,
.voice-modal-label-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-modal-favorite-btn:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.voice-modal-label-btn:hover {
    color: white;
    transform: scale(1.1);
}

.voice-modal-select-btn {
    background: rgba(59, 130, 246, 0.15);
    border: none;
    color: #60a5fa;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: clamp(0.65rem, 1.3vw, 0.75rem);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.voice-modal-select-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 600px) {
    .voice-modal-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        padding-top: 0.3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 400px) {
    .voice-modal-item-actions {
        gap: 0.2rem;
    }
    
    .voice-modal-favorite-btn,
    .voice-modal-label-btn,
    .voice-modal-play-btn {
        padding: 0.1rem 0.2rem;
    }
    
    .voice-modal-play-btn svg,
    .voice-modal-favorite-btn svg,
    .voice-modal-label-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .voice-modal-select-btn {
        font-size: 0.6rem;
        padding: 0.1rem 0.5rem;
    }
}
/* ===== CUSTOM AUDIO PLAYER ===== */
.custom-audio-player {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    backdrop-filter: blur(10px);
    animation: audioSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#audioContainer.audio-show .custom-audio-player {
    animation: audioSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes audioSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.custom-audio-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-audio-voice {
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-audio-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-play-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.custom-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.custom-play-btn:active {
    transform: scale(0.95);
}

.custom-play-btn.playing {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.custom-play-btn svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.custom-progress-container {
    flex: 1;
    min-width: 0;
}

.custom-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.custom-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}

.custom-progress-bar:hover {
    height: 8px;
}

.custom-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.custom-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: #8b5cf6;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.custom-progress-bar:hover .custom-progress-fill::after {
    opacity: 1;
}

/* ===== RESPONSIVE CUSTOM AUDIO PLAYER ===== */
@media (max-width: 600px) {
    .custom-audio-player {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .custom-audio-body {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .custom-play-btn {
        width: 44px;
        height: 44px;
    }
    
    .custom-play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .custom-progress-container {
        min-width: 100px;
        flex: 1;
    }
    
    .custom-audio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .custom-audio-voice {
        max-width: 100%;
        font-size: 0.8rem;
    }
    
    .custom-time-display {
        font-size: 0.7rem;
    }
    
    .custom-progress-bar {
        height: 5px;
    }
    
    .custom-progress-bar:hover {
        height: 6px;
    }
}

@media (max-width: 400px) {
    .custom-audio-player {
        padding: 0.8rem;
    }
    
    .custom-play-btn {
        width: 38px;
        height: 38px;
    }
    
    .custom-play-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .custom-audio-body {
        gap: 0.5rem;
    }
    
    .custom-audio-title {
        font-size: 0.7rem;
    }
    
    .custom-audio-voice {
        font-size: 0.7rem;
    }
}

/* ===== AUDIO ACTIONS ===== */
.audio-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.audio-actions .btn-download {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.audio-actions .btn-download:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.audio-actions .btn-secondary-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.audio-actions .btn-secondary-small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #64748b;
}

@media (max-width: 400px) {
    .audio-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .audio-actions .btn-download,
    .audio-actions .btn-secondary-small {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}