:root {
    --bg: #0f172a;
    --card: #0b1220;
    --accent: #6ee7b7;
    --panel: #0b1220
}

* {
    box-sizing: border-box
}

body {
    font-family: Inter,system-ui,Segoe UI,Roboto,Arial;
    background: linear-gradient(180deg,#07102a, #0b1220);
    color: #e6eef8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px
}

.mixer-root {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(2,6,23,0.6);
    backdrop-filter: blur(6px);
    position: relative;
}

.mixer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px
}

.mixer-header h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.4px
}

.subtitle {
    margin: 6px 0 0 0;
    color: rgba(230,238,248,0.8)
}

.faders {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: center;
    padding: 16px
}

.fader {
    width: 120px;
    background: linear-gradient(180deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 2%));
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fader .label {
    font-size: 40px;
    color: rgba(230,238,248,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%
}

/* wrapper that contains meter and slider centered */
.fader-body {
    position: relative;
    width: 80px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fader .meter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1
}

.fader .meter > i {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg,#60a5fa,var(--accent));
    height: 0;
    width: 100%;
    transition: height 120ms linear
}

/* Vertical range styling (visual slider rotated) */
.vertical-range {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 5px;
    transform: rotate(-90deg);
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 50%;
    /* tweak --thumb-half to horizontally center the thumb over the meter */
    --thumb-half: 2px;
    transform: translate(calc(-50% - var(--thumb-half)), -50%) rotate(-90deg);
    z-index: 2;
}

.vertical-range::-webkit-slider-runnable-track {
    height: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px
}

.vertical-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(110,231,183,0.14);
    cursor: pointer
}

.vertical-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.mixer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.02)
}

.controls {
    display: flex;
    gap: 8px
}

.controls button {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(110,231,183,0.12);
    padding: 8px 12px;
    border-radius: 8px
}

.note {
    font-size: 13px;
    opacity: 0.8
}

@media (max-width: 780px) {
    .faders {
        gap:10px
    }

    .fader {
        width: 72px
    }

    .vertical-range {
        height: 140px
    }
}

select{
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(110,231,183,0.12);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
select option{
    background: var(--bg);
    color: var(--accent);
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* Place selects at the bottom-right of the mixer container */
.mixer-root select {
    position: absolute;
    right: 18px;
    bottom: 18px;
}

/* container for the select + start-timer button */
.right-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.right-controls button {
    background: var(--accent);
    color: #07202a;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.right-controls select {
    position: static; /* let the container position it */
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(110,231,183,0.12);
    padding: 8px 12px;
    border-radius: 8px;
}

@media (max-width: 780px) {
    /* On small screens make select flow with the content */
    .mixer-root select {
        position: static;
        right: auto;
        top: auto;
        display: block;
        margin-top: 8px;
    }
    .right-controls { position: static; display: flex; margin-top: 8px; }
}