
.feature-card-icon.tts-icon {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}
.tts-form-area { margin-top: 4px; }
.tts-settings-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 10px;
}
.tts-setting-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tts-setting-item label {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}
.tts-setting-item select,
.tts-setting-item input[type="range"] {
    width: 100%;
}
.tts-setting-item select {
    padding: 6px 8px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
}
.tts-setting-item input[type="range"] {
    accent-color: #a855f7;
    height: 24px;
}
.tts-setting-item span {
    font-size: 0.78rem;
    color: #9333ea;
    font-weight: 600;
}
.tts-text-wrap {
    position: relative;
    margin-bottom: 12px;
}
.tts-text {
    resize: vertical;
    min-height: 100px;
}
.tts-text-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-gray);
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 10px;
}
.tts-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.tts-actions .feature-card-btn {
    flex: 1;
    justify-content: center;
}
.tts-btn-generate {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}
.tts-btn-generate:hover {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
}
.tts-btn-clear {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}
.tts-result {
    padding: 14px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
}
.tts-player-wrap {
    margin-bottom: 10px;
}
.tts-player-wrap audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
}
.tts-result-actions {
    display: flex;
    gap: 8px;
}
.tts-result-actions .feature-card-btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 8px 12px;
}
.tts-btn-download {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}
.tts-btn-download-wav {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.tts-info {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-gray);
    text-align: center;
}
.tts-history {
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.tts-history-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tts-history-title i {
    color: #a855f7;
}
.tts-history-list {
    max-height: 160px;
    overflow-y: auto;
}
.tts-history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-gray);
    font-size: 0.82rem;
}
.tts-history-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}
.tts-history-item:hover {
    background: rgba(168, 85, 247, 0.12);
}
.tts-history-text {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tts-history-time {
    font-size: 0.72rem;
    color: var(--text-gray);
    flex-shrink: 0;
}
.tts-history-del {
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tts-history-del:hover {
    background: #ef4444;
    color: white;
}

