html,
body {
    background: black;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    color: white;
    font-family: 'Trebuchet MS', 'Hiragino Sans GB', sans-serif;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

canvas {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

button,
input {
    font: inherit;
}

button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.leftColumn {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.rightColumn {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.topPanel,
.timelinePanel,
.videoPanel,
.exportVideoPanel {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.fileRow,
.playRow,
.statsRow,
.rangeRow,
.lengthRow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fileRow {
    flex-wrap: wrap;
}

.fileRow input[type="file"],
.videoPanel input[type="file"] {
    flex: 1 1 120px;
    min-width: 0;
    color: white;
}

.fileRow select {
    flex: 1 1 120px;
    min-width: 0;
    color: #111;
    background: white;
}

#uexpInput {
    flex-basis: 100%;
}

.export {
    margin-left: 0;
}

.exportVideo {
    white-space: nowrap;
}

.pauseButton {
    width: 68px;
}

.prev,
.next {
    width: 32px;
    padding-right: 0;
    padding-left: 0;
}

.nowPage {
    width: 56px;
    text-align: center;
}

.panelTitle {
    margin-bottom: 8px;
    color: #9ee7ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.statsRow {
    flex-wrap: wrap;
    gap: 8px 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.rangeRow input {
    width: 70px;
}

.lengthRow input {
    width: 70px;
}

.lengthRow button {
    flex: 1;
}

.buttonGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.videoButtons {
    grid-template-columns: repeat(2, 1fr);
    margin: 8px 0;
}

.statusText {
    min-height: 18px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    line-height: 1.4;
}

#uassetStatus {
    margin-top: 2px;
}

#videoProgress,
#elaVideoProgress {
    width: 100%;
}

.colorPanel {
    position: relative;
    width: 138px;
    height: 92px;
    margin-top: 4px;
}

.red {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 91px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
}

.red::-webkit-slider-runnable-track {
    height: 6px;
    background: #eee;
}

.red::-webkit-slider-container {
    height: 6px;
    overflow: hidden;
}

.red::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 6px;
    border-radius: 0%;
    background-color: #FF0000;
    border: 0px solid transparent;
    margin-top: -5px;
    border-image: linear-gradient(#FF0000, #FF0000) 0 fill / 0 0 0 0 / 8px 0px 8px 2000px;
}

.green {
    position: absolute;
    bottom: 20px;
    left: 0;
    z-index: 10;
    width: 91px;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
}

.green::-webkit-slider-runnable-track {
    height: 6px;
    background: #eee;
}

.green::-webkit-slider-container {
    height: 6px;
    overflow: hidden;
}

.green::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 6px;
    border-radius: 0%;
    background-color: #00FF00;
    border: 0px solid transparent;
    margin-top: -5px;
    border-image: linear-gradient(#00FF00, #00FF00) 0 fill / 0 0 0 0 / 8px 0px 8px 2000px;
}

.blue {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 91px;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
}

.blue::-webkit-slider-runnable-track {
    height: 6px;
    background: #eee;
}

.blue::-webkit-slider-container {
    height: 6px;
    overflow: hidden;
}

.blue::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 6px;
    border-radius: 0%;
    background-color: #0000FF;
    border: 0px solid transparent;
    margin-top: -5px;
    border-image: linear-gradient(#0000FF, #0000FF) 0 fill / 0 0 0 0 / 8px 0px 8px 2000px;
}

.redInput {
    position: absolute;
    bottom: 37px;
    left: 98px;
    width: 28px;
    height: 12px;
}

.greenInput {
    position: absolute;
    bottom: 17px;
    left: 98px;
    width: 28px;
    height: 12px;
}

.blueInput {
    position: absolute;
    bottom: -3px;
    left: 98px;
    width: 28px;
    height: 12px;
}

.showColor {
    position: absolute;
    bottom: 65px;
    left: 98px;
    width: 32px;
    height: 18px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ifieEE {
    position: absolute;
    bottom: 65px;
    left: 0;
    width: 86px;
    height: 14px;
}

@media (max-width: 720px) {
    .container {
        flex-direction: column;
        overflow: auto;
    }

    .leftColumn {
        width: 100%;
        flex: 0 0 auto;
        max-height: none;
        overflow-y: visible;
    }

    .rightColumn {
        width: 100%;
        flex: 0 0 auto;
        max-height: none;
        overflow-y: visible;
    }

    .topPanel,
    .timelinePanel,
    .videoPanel,
    .exportVideoPanel {
        width: 100%;
    }

    .buttonGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .colorPanel {
        width: 138px;
    }
}
