* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #fff;
    min-height: 100vh;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 2vw;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3vh;
    padding: 3vw;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 1vh;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.9;
}

.mixer-container {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    flex-grow: 1;
}

.tracks-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 3vw;
    backdrop-filter: blur(10px);
    flex-grow: 1;
}

.track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2vw;
    margin-bottom: 2vh;
    position: relative;
}

.track-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2vh;
}

.track-title {
    font-weight: bold;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 0.5vh;
}

.track-duration {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    opacity: 0.8;
}

.track-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2vw;
}

.control-group {
    margin-bottom: 2vh;
}

.control-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5vh;
}

.slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fdbb2d;
    cursor: pointer;
}

.waveform {
    height: 15vw;
    max-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 2vh 0;
    overflow: hidden;
    position: relative;
}

.waveform-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

.wave {
    flex: 1;
    height: 40%;
    background: rgba(253, 187, 45, 0.3);
    margin: 0 1px;
    border-radius: 1px;
}

.playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ff0000;
    left: 0;
}

.trim-markers {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

.trim-start, .trim-end {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #00ff00;
    cursor: ew-resize;
}

.split-marker {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #ff00ff;
    cursor: pointer;
}

.transport {
    display: flex;
    gap: 2vw;
    margin-top: 3vh;
    flex-wrap: wrap;
}

button {
    padding: 2vw 4vw;
    border: none;
    border-radius: 8px;
    background: #fdbb2d;
    color: #1a2a6c;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

button:hover {
    background: #ffcc44;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:disabled {
    background: #777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.play-btn-highlight {
    background: #ffcc44 !important;
    box-shadow: 0 0 10px rgba(255, 204, 68, 0.8);
    transform: scale(1.05);
}

.playback-controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 3vw;
    backdrop-filter: blur(10px);
}

.master-controls {
    margin-bottom: 3vh;
}

.master-volume {
    margin-top: 2vh;
}

.duration-control {
    margin: 2vh 0;
}

.time-display {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    text-align: center;
    margin: 1vh 0;
    font-variant-numeric: tabular-nums;
}

.export-section {
    margin-top: 3vh;
    padding-top: 2vh;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    margin-top: 2vh;
}

.export-btn {
    background: #1a2a6c;
    color: white;
    padding: 2vw;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.upload-btn {
    background: #1a2a6c;
    color: white;
    display: inline-block;
    padding: 2vw 4vw;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1vh;
    text-align: center;
}

#file-input {
    display: none;
}

.track-actions {
    position: absolute;
    top: 2vw;
    right: 2vw;
    display: flex;
    gap: 2vw;
}

.track-btn {
    padding: 1vw 2vw;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    background: rgba(0, 0, 0, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #2c3e50;
    padding: 4vw;
    border-radius: 15px;
    width: 90vw;
    max-width: 400px;
    text-align: center;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 2vh;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 2vh 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #fdbb2d;
    width: 0%;
    transition: width 0.3s ease;
}

.merge-track-list {
    max-height: 30vh;
    overflow-y: auto;
    margin: 2vh 0;
    text-align: left;
}

.merge-track-item {
    display: flex;
    align-items: center;
    padding: 2vw;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1vh;
    border-radius: 5px;
}

.merge-track-item input[type="checkbox"] {
    margin-right: 2vw;
}

.merge-name-input {
    width: 100%;
    padding: 2vw;
    margin: 1vh 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.help-btn {
    display: none;
    background: #1a2a6c;
    color: white;
    padding: 2vw 4vw;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1vh;
    text-align: center;
}

.demo-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 2vw;
    border-radius: 10px;
    margin-top: 2vh;
}

/* Desktop-specific styles (restored to your latest CSS) */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .mixer-container {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }

    .track-controls {
        grid-template-columns: 1fr 1fr;
    }

    .export-options {
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
    }

    h1 {
        font-size: 2.8rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .track-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .track-duration {
        font-size: 0.9rem;
    }

    .time-display {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    .modal-content {
        width: 400px;
        padding: 30px;
    }

    header {
        margin-bottom: 30px;
        padding: 20px;
    }

    .tracks-container {
        padding: 20px;
    }

    .track {
        padding: 15px;
        margin-bottom: 15px;
    }

    .playback-controls {
        padding: 20px;
    }

    button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .track-actions {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .track-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .export-btn {
        padding: 15px;
        font-size: 1.1rem;
    }

    .upload-btn {
        padding: 12px 20px;
    }

    .help-btn {
        padding: 12px 20px;
    }

    .waveform {
        height: 80px;
        margin: 15px 0;
    }

    .transport {
        gap: 10px;
        margin-top: 20px;
    }

    .master-controls {
        margin-bottom: 30px;
    }

    .master-volume {
        margin-top: 15px;
    }

    .duration-control {
        margin: 20px 0;
    }

    .export-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .modal-buttons {
        gap: 15px;
        margin-top: 20px;
    }

    .progress-bar {
        margin: 15px 0;
    }

    .merge-track-list {
        margin: 15px 0;
        max-height: 200px;
    }

    .merge-track-item {
        padding: 10px;
        margin-bottom: 5px;
    }

    .merge-name-input {
        padding: 10px;
        margin: 10px 0;
    }

    .demo-text {
        padding: 15px;
        margin-top: 20px;
    }
}

/* Mobile-specific styles (from the previous artifact you liked) */
@media (max-width: 768px) {
    body {
        padding: 3vw;
    }

    .container {
        padding: 3vw;
    }

    .mixer-container {
        grid-template-columns: 1fr;
    }

    header {
        padding: 4vw;
    }

    .tracks-container {
        padding: 4vw;
    }

    .track {
        padding: 3vw;
    }

    .playback-controls {
        padding: 4vw;
    }

    button {
        padding: 3vw 5vw;
    }

    .track-actions {
        top: 3vw;
        right: 3vw;
    }

    .waveform {
        height: 20vw;
    }

    h1 {
        font-size: 2.2rem;
    }

    .track-controls {
        grid-template-columns: 1fr;
    }

    .export-options {
        flex-direction: column;
    }

    .demo-text {
        display: none;
    }

    .help-btn {
        display: inline-block;
    }
}