:root {
    --pon-cyan: #34C5F3;
    --pon-pink: #FF91AF;
    --pon-magenta: #E83F86;
    --pon-yellow: #F7E92A;
    --pon-lime: #8AFF33;
    --pon-orange: #FF6D00;
    --pon-black: #1A0524;
    --pon-white: #FFFDF5;
}

body {
    align-items: center;
    background-color: var(--pon-pink);
    display: flex;
    font-family: 'DotGothic16', sans-serif;
    height: 100%;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

#bg-video {
    filter: saturate(150%) contrast(130%) brightness(90%);
    height: 100%;
    left: 0;
    object-fit: fill;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
}

.monitor-container {
    height: 60vh;
    margin-top: 50px;
    position: relative;
}

.monitor-frame {
    filter: sepia(100%) hue-rotate(280deg) saturate(400%) contrast(1.4) brightness(0.9);
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    width: 100%;
    z-index: 2;
}

.monitor-screen {
    backdrop-filter: blur(8px);
    background-image:
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%),
        radial-gradient(circle at center, transparent 75%, rgba(0, 0, 0, 0.7) 100%);
    background-size: 100% 4px, 100% 100%;
    border-radius: 5% / 10%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    height: 67%;
    left: 10%;
    overflow: hidden;
    position: absolute;
    top: 11%;
    width: 80%;
    z-index: 1;
}

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

.track-list {
    border-right: 2px dashed var(--pon-magenta);
    flex: 1;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--pon-magenta) transparent;
}

.track-list::-webkit-scrollbar {
    width: 4px;
}

.track-list::-webkit-scrollbar-track {
    background: transparent;
}

.track-list::-webkit-scrollbar-thumb {
    background-color: var(--pon-magenta);
}

.track-list-title {
    color: var(--pon-lime);
    font-size: 1.7rem;
    margin-bottom: 15px;
    margin-top: 0;
    text-shadow: 2px 2px 0px var(--pon-magenta);
}

.track-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track {
    align-items: center;
    color: var(--pon-black);
    cursor: pointer;
    display: flex;
    font-size: 1.2rem;
    padding: 8px 5px;
    transition: all 0.2s;
}

.track .num {
    color: var(--pon-magenta);
    margin-right: 10px;
    font-weight: bold;
}

.track:hover,
.track.active {
    background: var(--pon-lime);
    box-shadow: 3px 3px 0px var(--pon-cyan);
    color: var(--pon-black);
}

.track:hover .num,
.track.active .num {
    color: var(--pon-black);
}

.preview {
    border: 3px double var(--pon-yellow);
    flex: 1.2;
    overflow: hidden;
    position: relative;
}

#preview-link {
    cursor: default;
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

#preview-link.enabled {
    cursor: crosshair;
}

#preview-img {
    filter: grayscale(100%);
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: all 0.5s ease;
    width: 100%;
}

.preview.is-active #preview-img {
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.9;
}

#viewfinder-ui {
    color: var(--pon-white);
    font-size: 1.2rem;
    font-weight: bold;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

#viewfinder-ui::before {
    animation: blink 1.5s infinite;
    content: "STANDBY...";
    left: 15px;
    position: absolute;
    text-shadow: 1px 1px 0 var(--pon-black);
    top: 15px;
}

.preview.is-active #viewfinder-ui::before {
    animation: blink 1.5s infinite;
    color: var(--pon-magenta);
    content: "● READY";
    text-shadow: 1px 1px 0 var(--pon-black);
}

.preview.is-active #viewfinder-ui::after {
    bottom: 15px;
    content: "[ CONFIRM TRACK ]";
    position: absolute;
    right: 15px;
    text-shadow: 1px 1px 0 var(--pon-black);
}

.preview.is-active:hover #preview-img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

.preview.is-active:hover #viewfinder-ui {
    color: var(--pon-lime);
    text-shadow: 2px 2px 0px var(--pon-black);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .monitor-container {
        height: 80vh;
        width: 95vw;
    }

    .monitor-screen {
        border-radius: 10px;
        height: 68%;
        left: 10%;
        top: 10%;
        width: 80%;
    }

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

    .preview {
        flex: 1.5;
        order: 1;
    }

    .track-list {
        border-right: none;
        border-top: 2px dashed var(--pon-magenta);
        flex: 1;
        order: 2;
        padding-right: 0;
        padding-top: 10px;
        width: 100%;
    }

    .track-list-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .track {
        font-size: 0.9rem;
        justify-content: center;
        padding: 5px 0;
    }

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