:root {
    --bg: #0a0a0a;
    --card: #151515;
    --text: #f0f0f0;
    --accent: #278faf;
    --accent-light: #f5ebe6;
    --accent-dark: #ffffff;
    --border: #2a2a2a;
    --success: #2ecc71;
    --warning: #12e493;
    --error: #e74c3c;
    --info: #3498db;
    --surface: #1e1e1e;
    --surface-light: #252525;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 4px 16px rgba(255, 107, 53, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Header & Typography */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 3px;
}

h1 {
    color: var(--accent);
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Status Messages */
#status {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    padding: 18px;
    text-align: center;
    border-radius: var(--radius-md);
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

#status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Drop Zone */
.drop-zone {
    border: 3px dashed var(--border);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    display: block;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.drop-zone.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.drop-zone i {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--accent);
    display: block;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.drop-zone p {
    color: #888;
    font-size: 1rem;
}

#file-input {
    display: none;
}

/* Audio Info */
.audio-info {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
}

/* Player & Visualizer */
.player-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

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

.player-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.player-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.player-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.time-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--text);
    min-width: 140px;
}

.player-progress {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    min-width: 200px;
    position: relative;
}

.player-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.player-progress-filled::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

/* Waveform Visualizer */
.waveform-container {
    background: var(--surface);
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 20px;
    position: relative;
}

.waveform-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.waveform-placeholder i {
    margin-right: 10px;
    color: var(--accent);
}

/* Timeline Controls */
.timeline-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.timeline-btn {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.timeline-btn:hover {
    border-color: var(--accent);
    background: var(--surface-light);
    transform: translateY(-2px);
}

.timeline-btn i {
    color: var(--accent);
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.time-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-input label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 600;
}

.time-input input {
    padding: 16px;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    transition: var(--transition);
}

.time-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-top: 2px solid var(--border);
    padding-top: 30px;
    margin-top: 30px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.control-group label {
    width: 140px;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Custom Slider */
input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--surface);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
}

.control-value {
    min-width: 70px;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
    padding: 8px 16px;
    background: var(--surface-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

select {
    padding: 14px;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    flex: 1;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

button:disabled::before {
    display: none;
}

/* Download Area */
.download-area {
    margin-top: 30px;
    padding: 30px;
    border: 2px solid var(--success);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    border-radius: var(--radius-lg);
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

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

.download-area h3 {
    color: var(--success);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.download-area p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.download-button {
    background: linear-gradient(135deg, var(--success), #27ae60);
    padding: 20px 40px;
    font-size: 1.2rem;
    max-width: 300px;
    margin: 0 auto;
}

.download-button:hover {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

/* Progress & Loading */
.progress-container {
    background: var(--surface);
    border-radius: var(--radius-md);
    margin: 25px 0;
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--surface);
    padding: 25px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-light);
}

.feature-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .control-group label {
        width: 100%;
    }
    
    .timeline-controls {
        grid-template-columns: 1fr;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .audio-info {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-progress {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}
/* Add this to your style.css file - UPDATE THE SLIDER SECTION */

/* Speed control with visual indicator */
.speed-control {
    position: relative;
}

.speed-presets {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.speed-preset {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text);
}

.speed-preset:hover {
    border-color: var(--accent);
    background: var(--surface-light);
}

.speed-preset.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border-color: var(--accent);
}

.speed-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-info i {
    color: var(--accent);
}

/* Add pitch-preserve option */
.pitch-control {
    margin-top: 15px;
    padding: 15px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.pitch-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.pitch-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pitch-toggle label {
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
/* =========================================
   11. FOOTER SHARE BUTTONS
   ========================================= */

.footer-content {
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.footer-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0; /* Add margin for spacing on mobile */
}

.share-label {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #4b5563; /* Dark gray border */
    color: #d1d5db; /* Light gray icon */
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Hover Effects */
.share-btn.facebook:hover {
    background-color: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn.whatsapp:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn.telegram:hover {
    background-color: #2AABEE;
    color: white;
    border-color: #2AABEE;
}

.share-btn.copy-link:hover {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Make sure Font Awesome solid and brands are loaded for these icons */