/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --secondary-color: #fb923c;
    --accent-color: #f97316;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --background: #f8fafc;
    --background-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --surface: #ffffff;
    --surface-light: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(245, 158, 11, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(251, 146, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: headerAnimation 20s linear infinite;
    opacity: 0.3;
}

@keyframes headerAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-link.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-link.active svg {
    stroke: var(--primary-color);
}

.nav-link:active {
    transform: translateY(0);
}

.subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 400;
}


/* Main Content */
main {
    flex: 1;
    padding: 4rem 0 2rem 0;
    display: flex;
    justify-content: center;
    min-height: calc(600px * 1.1); /* Ad height + 10% */
    position: relative;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    min-height: 100%;
}

.section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow), 0 0 20px rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-color);
}


.hidden {
    display: none !important;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 146, 60, 0.05));
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 146, 60, 0.1));
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

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

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Video Container */
.video-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 20px rgba(245, 158, 11, 0.15);
}

#video-canvas {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.2));
}

/* Playback Controls */
.playback-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

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

.time-display {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 100px;
}

.timeline {
    flex: 1;
    min-width: 200px;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.2);
}

.timeline::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Editor Controls */
.editor-controls {
    margin-top: 2rem;
    background: var(--surface-light);
    border-radius: 8px;
    overflow: hidden;
}

.control-tabs {
    display: flex;
    gap: 0;
    background: var(--background);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fb923c, #f97316);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover::after {
    transform: scaleX(1);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* Control Groups */
.control-group {
    margin-bottom: 2rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px currentColor);
}

/* Icon colors for different tabs - all orange theme */
[data-tab="basic"] .icon {
    color: #fb923c;
}

[data-tab="trim"] .icon {
    color: #f59e0b;
}

[data-tab="subtitles"] .icon {
    color: #f97316;
}

[data-tab="transform"] .icon {
    color: #ea580c;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #d1d5db 0%, #d1d5db 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0.5rem 0;
    border: 1px solid #9ca3af;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    width: 100%;
}

/* Presets */
.speed-presets,
.crop-presets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Trim Controls */
.trim-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trim-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trim-input-group label {
    flex: 1;
    margin: 0;
}

.trim-input-group input {
    flex: 2;
    padding: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Subtitles */
#subtitle-text {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.subtitle-style {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.style-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.style-group label {
    font-size: 0.9rem;
    margin: 0;
}

.style-group select,
.style-group input {
    padding: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.style-group input[type="color"] {
    height: 40px;
    cursor: pointer;
}

.style-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Subtitle Position Control */
.subtitle-position-control {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.position-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Subtitle Timing */
.subtitle-timing {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.subtitle-timing h4 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.timing-controls {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.timing-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
}

.timing-input-group label {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

.timing-input-group input {
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
}

.subtitle-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.subtitle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.subtitle-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.subtitle-item.active {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.subtitle-info {
    flex: 1;
}

.subtitle-info-text {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.subtitle-info-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.subtitle-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Canvas Subtitle Dragging */
.video-container {
    position: relative;
    cursor: default;
}

.video-container.dragging {
    cursor: move;
}

/* Mirror Controls */
.mirror-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mirror-controls .btn {
    flex: 1;
    min-width: 150px;
}

/* Export Section */
.export-section {
    margin-top: 2rem;
}

.export-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reset Section */
.reset-section {
    margin-top: 1rem;
    text-align: center;
}

/* Footer */
footer {
    background: var(--surface);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Download Popup */
.download-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.download-popup {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

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

.popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    color: var(--success);
}

.popup-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.download-popup h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.download-popup p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.file-size {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.popup-buttons .btn-primary,
.popup-buttons .btn-secondary {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.popup-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar .ad-container {
        flex: 1;
        min-width: 300px;
    }
    
    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        text-align: center;
        width: 100%;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }

    .header-nav {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .nav-link svg {
        width: 16px;
        height: 16px;
    }

    .subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .section {
        padding: 1.5rem;
    }

    .playback-controls {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
    }

    .time-display {
        font-size: 0.8rem;
        min-width: 90px;
    }

    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .trim-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .middle-banner {
        max-width: 100%;
    }

    .subtitle-style {
        grid-template-columns: 1fr;
    }

    .mirror-controls {
        flex-direction: column;
    }

    .mirror-controls .btn {
        width: 100%;
    }

    .speed-presets,
    .crop-presets {
        justify-content: stretch;
    }

    .preset-btn {
        flex: 1;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-icon,
    .preset-btn,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .timeline {
        height: 8px;
    }

    .timeline::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .timeline::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}
