
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}
body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    flex-grow: 1;
    width: 100vw;
    height: calc(100vh - 80px);
    background-color: #000000;
}

#btn-info-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: rgba(17, 17, 17, 0);
    border: 1px solid #333333;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 50; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#btn-info-toggle:hover {
    background: #ffffff19;
    color: #ffffff75;
}

.quadrant-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: #111;
    transition: filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quadrant-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; 
}

.matrix-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    filter: grayscale(100%) brightness(20%);
    transition: filter 0.25s ease;
}

.quadrant-wrapper.active .matrix-img {
    filter: grayscale(0%) brightness(100%);
}

.click-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.info-overlay-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: left;
    box-sizing: border-box;
    padding: 30px;
    
    opacity: 0;
    visibility: hidden;
    z-index: 1; 
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}
.info-overlay-panel.visible-info {
    opacity: 1;
    visibility: visible;
    z-index: 15; 
}

#info-panel-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100px; 
    background-color: rgba(0, 0, 0, 0.85); 
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 30px;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
}
#info-panel-header.visible-info {
    opacity: 1;
    visibility: visible;
}
.info-main-header h1 {
    font-size: 20px;
    letter-spacing: 2px;
}
.info-main-header h2 {
    font-size: 14px;
    color: #888;
    margin: 4px 0 2px 0;
}
.info-main-header .info-link {
    font-size: 12px;
    margin-top: 0;
}
#wrap-track1 .info-overlay-panel,
#wrap-track2 .info-overlay-panel {
    top: 100px; 
    height: calc(100% - 100px);
}

.info-content-box {
    text-align: left;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.6;
}
.info-content-box p {
    margin: 8px 0;
}
.info-content-box strong {
    color: #aaa;
}
.info-link {
    display: inline-block;
    margin-top: 12px;
    color: #ff3b30;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #ff3b30;
    transition: color 0.2s;
    pointer-events: auto;
}
.info-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
@media (max-width: 600px) {
    .info-content-box { font-size: 11px; line-height: 1.4; }
    .info-overlay-panel { padding: 10px; }
}

.progress-timeline {
    width: 100%;
    height: 6px;
    background-color: #333;
    cursor: pointer;
    position: relative;
    z-index: 15;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #ff3b30; 
    transition: width 0.1s linear;
}

.control-bar {
    height: 80px;
    width: 100vw;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    border-top: 1px solid #111111;
    z-index: 20;
    box-sizing: border-box;
}

.control-section {
    flex: 1; 
    display: flex;
    align-items: center;
}
.left-group {
    justify-content: flex-start;
    gap: 10px;
}
.center-group {
    justify-content: center;
}
.right-group {
    justify-content: flex-end;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.volume-popup-panel {
    display: flex;
    align-items: center;
}
#volume-slider {
    cursor: pointer;
    accent-color: #fff; 
}

@media (max-width: 500px) {
    .volume-container {
        flex-direction: column-reverse; 
        gap: 10px;
        padding: 10px;
    }
    .volume-popup-panel {
        position: absolute;
        bottom: 55px; 
        left: 50%;
        transform: translateX(-50%);
        background-color: #1a1a1a;
        border: 1px solid #333;
        padding: 12px 8px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        height: 110px;
        justify-content: center;
        
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
        z-index: 100;
    }
    #volume-slider {
        writing-mode: vertical-lr;
        direction: rtl; 
        width: 15px;
        height: 100px;
    }
    .volume-container:hover .volume-popup-panel {
        opacity: 1;
        visibility: visible;
    }
    .volume-popup-panel input[type="range"] {
        writing-mode: vertical-lr;
        direction: rtl; 
        width: 15px;
        height: 100px;
    }
}

.btn {
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn:active {
    background: #222222;
    transform: scale(0.95);
}

.btn-side {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
}

.btn-main {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-color: #555555;
}

.btn-mute {
    width: 36px;
    height: 36px;
    font-size: 1.0rem;
}

