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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    padding: 40px 60px;
    width: 100%;
    max-width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Upload Card Styles */
.upload-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    min-width: 0; /* Allow grid item to shrink */
    overflow: hidden; /* Prevent content overflow */
}

.upload-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.card-icon {
    font-size: 24px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* Prevent overflow */
    overflow: hidden; /* Clip any overflowing content */
}

/* File Upload Button */
.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.file-upload-btn.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.file-upload-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.file-upload-btn svg {
    flex-shrink: 0;
}

/* File Size Hint */
.file-size-hint {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: -8px 0 0 0;
    font-style: italic;
}

/* File Info Display */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    min-width: 0; /* Allow flex item to shrink below content size */
    width: 100%; /* Force it to stay within parent */
    max-width: 100%; /* Prevent overflow */
}

.file-info-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
    min-width: 0; /* Allow flex item to shrink below content size */
    max-width: 100%; /* Prevent overflow */
}

/* Replace Button */
.replace-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.replace-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.replace-btn svg {
    flex-shrink: 0;
}

/* Pagalnew Input Group */
.pagalnew-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pagalnew-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
    background: white;
}

.pagalnew-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pagalnew-input::placeholder {
    color: #aaa;
}

.pagalnew-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagalnew-input:disabled::placeholder {
    color: #999;
    font-style: italic;
}

/* Primary Button */
.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.primary-btn svg {
    flex-shrink: 0;
}

.download-status {
    font-size: 12px;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    display: none;
}

.download-status.loading {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.download-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.download-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(133, 100, 4, 0.3);
    border-radius: 50%;
    border-top-color: #856404;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
}

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

/* Preview Section */
.preview-section {
    display: none;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.preview-section.active {
    display: block;
}

/* Video Container - Instagram Story Style */
.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000;
}

#video-player {
    width: 100%;
    height: auto;
    display: block;
    max-height: 700px;
    object-fit: contain;
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

.fullscreen-btn svg {
    width: 22px;
    height: 22px;
    stroke: white;
    flex-shrink: 0;
}

.fullscreen-icon,
.exit-fullscreen-icon {
    pointer-events: none;
}

/* Fullscreen mode */
.video-container:fullscreen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container:fullscreen #video-player {
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
}

.video-container:-webkit-full-screen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container:-webkit-full-screen #video-player {
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
}

/* Circular Play Button */
/* Circular Play Button - Centered on Video */
.circular-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.circular-play-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.circular-play-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
}

.circular-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Hide play button when playing (optional - can be toggled via JS) */
.circular-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}

/* Show on hover when playing */
.video-container:hover .circular-play-btn.playing {
    opacity: 0.8;
    pointer-events: auto;
}

.circular-play-btn svg {
    width: 36px;
    height: 36px;
    transition: opacity 0.2s ease;
}

.circular-play-btn .play-icon {
    margin-left: 4px; /* Offset to center visually */
}

/* Waveform Section */
.waveform-section {
    background: #f9f9f9;
    padding: 20px;
    padding-top: 50px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.waveform-section label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
    text-align: center;
}

/* Waveform Header */
.waveform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.waveform-info {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.volume-control svg {
    color: #667eea;
    flex-shrink: 0;
}

.volume-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    touch-action: none; /* Prevent default touch actions */
    -webkit-tap-highlight-color: transparent;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; /* Increased for better touch target */
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Better visibility */
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 20px; /* Increased for better touch target */
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Better visibility */
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.volume-value {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    text-align: right;
}

/* Audio Timeline */
.audio-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 0 5px;
}

.audio-timeline span {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.timeline-start {
    text-align: left;
}

.timeline-end {
    text-align: right;
}

/* Waveform */
.waveform-container {
    width: 100%;
    position: relative;
}

.waveform-inner {
    width: 100%;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    user-select: none;
    touch-action: none; /* Prevent default touch actions for better control */
    -webkit-tap-highlight-color: transparent;
}

.waveform-inner:hover {
    box-shadow: inset 0 2px 8px rgba(102, 126, 234, 0.2);
}

#waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
    min-width: 300px;
    min-height: 80px;
    background: transparent;
    touch-action: none; /* Prevent default touch actions */
}

.playback-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right,
        rgba(255, 107, 107, 0.5),
        rgba(255, 159, 64, 0.5),
        rgba(255, 206, 86, 0.5),
        rgba(75, 192, 192, 0.5)
    );
    pointer-events: none;
    z-index: 10;
    transition: width 0.1s linear;
    border-right: 3px solid #ff6b6b;
    box-shadow: 2px 0 10px rgba(255, 107, 107, 0.6);
}

/* Timestamp Labels */
.timestamp-label {
    position: absolute;
    top: -45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.5);
    white-space: nowrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
    opacity: 1;
}

.timestamp-label::after {
    content: '';
    position: absolute;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #764ba2;
}

.timestamp-start {
    transform: translateX(0);
}

.timestamp-start::after {
    left: 12px;
}

.timestamp-end {
    transform: translateX(-100%);
}

.timestamp-end::after {
    right: 12px;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    /* iOS touch handling optimization */
    touch-action: manipulation;  /* Only allow pan/zoom, prevent double-tap */
    -webkit-tap-highlight-color: transparent;  /* Remove iOS tap highlight */
    -webkit-user-select: none;  /* Prevent text selection on iOS */
    user-select: none;
}

#preview-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#preview-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#export-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

#export-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Export Progress Modal */
.export-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.export-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

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

.export-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.export-modal-content h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.progress-text {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.progress-bar-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-percent {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
}

.export-status {
    color: #888;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

/* Cancel Export Button */
.cancel-export-btn {
    margin: 20px auto 0;
    padding: 12px 24px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.cancel-export-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

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

.cancel-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 30px 40px;
    }

    .upload-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-container {
        max-width: 500px;
    }

    #video-player {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .upload-section {
        gap: 15px;
        margin-bottom: 30px;
    }

    .upload-card {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 14px;
    }

    .card-icon {
        font-size: 18px;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .file-upload-btn,
    .primary-btn {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }

    .video-container {
        max-width: 100%;
        margin: 0 auto 20px;
    }

    #video-player {
        max-height: 400px;
        width: 100%;
    }

    .circular-play-btn {
        width: 60px;
        height: 60px;
    }

    .circular-play-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Export Modal Responsive */
    .export-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .export-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .export-modal-content h2 {
        font-size: 22px;
    }

    .progress-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .progress-percent {
        font-size: 28px;
    }

    .export-status {
        font-size: 12px;
    }

    .fullscreen-btn {
        width: 35px;
        height: 35px;
        bottom: 8px;
        right: 8px;
    }

    .fullscreen-btn svg {
        width: 18px;
        height: 18px;
    }

    .waveform-container {
        margin: 15px 0;
    }

    .waveform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .volume-control {
        width: 100%;
    }

    .volume-slider {
        width: 100%;
        height: 8px; /* Slightly taller for easier touch */
    }

    .volume-slider::-webkit-slider-thumb {
        width: 24px; /* Larger touch target on tablets */
        height: 24px;
    }

    .volume-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .timestamp-label {
        font-size: 10px;
        padding: 3px 8px;
    }

    .selected-range {
        font-size: 12px;
        padding: 8px 12px;
    }

    .export-section {
        padding: 15px;
    }

    .progress-container {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .upload-section {
        gap: 12px;
        margin-bottom: 20px;
    }

    .upload-card {
        padding: 12px;
    }

    .card-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .card-header h3 {
        font-size: 13px;
    }

    .card-icon {
        font-size: 16px;
    }

    .file-upload-btn,
    .primary-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }

    .file-info-name {
        width: 100%; /* Take full width in column layout */
        word-break: break-word; /* Break long filenames */
        white-space: normal; /* Allow wrapping on mobile */
        max-width: 100%;
    }

    .replace-btn {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 6px 12px;
    }

    #video-player {
        max-height: 300px;
    }

    .circular-play-btn {
        width: 50px;
        height: 50px;
    }

    .circular-play-btn svg {
        width: 20px;
        height: 20px;
    }

    .fullscreen-btn {
        width: 30px;
        height: 30px;
    }

    .waveform-header h3 {
        font-size: 14px;
    }

    .volume-label {
        font-size: 11px;
    }

    .volume-slider {
        width: 100%;
        height: 10px; /* Even taller for easier touch on small phones */
    }

    .volume-slider::-webkit-slider-thumb {
        width: 28px; /* Largest touch target for phones */
        height: 28px;
    }

    .volume-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .waveform-inner {
        height: 100px; /* Taller waveform for easier touch */
    }

    .timestamp-label {
        font-size: 9px;
        padding: 2px 6px;
    }

    .selected-range {
        font-size: 11px;
        padding: 6px 10px;
    }

    .export-section h3 {
        font-size: 14px;
    }

    .export-section {
        padding: 12px;
    }

    .progress-text {
        font-size: 12px;
    }
}
