/* ============================================================
   VOID BLEEDS | SYSTEM DESIGN TOKENS
   ============================================================ */
:root {
    --cyan: #00ffff;
    --cyan-dim: rgba(0, 255, 255, 0.2); 
    --bg-black: #050505;
    --text-white: #ffffff;
    --text-gray: #888888;
    --glass: rgba(5, 5, 5, 0.9);

    /* PLYR VARIABLES */
    --plyr-color-main: var(--cyan);
    --plyr-video-control-color: #ffffff;
    --plyr-video-control-background-hover: transparent;
    --plyr-range-track-height: 2px;
    --plyr-range-thumb-height: 12px;
    --plyr-range-thumb-background: #ffffff;
    --plyr-control-icon-size: 18px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-black);
    background-image: radial-gradient(var(--cyan-dim) 0.8px, transparent 0);
    background-size: 25px 25px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   1. MATURITY GATE
   ============================================================ */
#maturity-gate {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
}

.gate-box {
    border: 1px solid var(--cyan);
    padding: 40px; text-align: center;
    background: rgba(0, 15, 15, 0.98);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.1);
    width: 90%; max-width: 450px;
}

.glitch-title { letter-spacing: 5px; color: var(--cyan); font-size: 1.5rem; text-transform: uppercase; }
.gate-advisory { margin: 20px 0; line-height: 1.6; color: var(--text-gray); font-size: 0.9rem; }
.terminal-btn {
    background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
    padding: 14px 30px; cursor: pointer; text-transform: uppercase;
    font-weight: 700; letter-spacing: 2px; transition: 0.3s;
}
.terminal-btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 30px var(--cyan); }

/* ============================================================
   2. MAIN INTERFACE LAYOUT
   ============================================================ */
.void-interface {
    opacity: 0; pointer-events: none;
    transition: opacity 1s ease;
    width: 100%; max-width: 1240px;
    display: flex; flex-direction: column;
    padding: 20px;
}

.player-section { width: 100%; margin-top: 10px; }
.video-bracket-container { position: relative; width: 100%; padding: 12px; }

.video-wrapper {
    width: 100%; aspect-ratio: 21 / 9;
    background: #000;
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative; overflow: hidden;
}

.corner { position: absolute; width: 20px; height: 20px; border-color: var(--cyan); border-style: solid; pointer-events: none; z-index: 5; }
.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ============================================================
   3. PLYR CUSTOM SKIN
   ============================================================ */
.plyr, .plyr__video-wrapper { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.plyr video { object-fit: contain; }

.plyr__control--overlaid {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
    border-radius: 50%;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plyr__control--overlaid:hover {
    background: var(--cyan-dim) !important;
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--cyan-dim);
}

.plyr__progress__container { padding-left: 15px; padding-right: 15px; }
.plyr--full-ui input[type=range] { color: var(--cyan); }
.plyr__range--seek::-webkit-slider-thumb { box-shadow: 0 0 10px var(--cyan) !important; transform: scale(0.9); }

.plyr__controls {
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent) !important;
    padding-bottom: 10px !important;
}

.plyr__control:hover {
    background: transparent !important;
    color: var(--cyan) !important;
    filter: drop-shadow(0 0 5px var(--cyan));
}

.plyr__menu__container {
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid var(--cyan-dim);
    color: #eee !important;
}

/* ============================================================
   4. METADATA SECTION
   ============================================================ */
.metadata-block { margin-top: 25px; padding: 0 10px; }
.video-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; }
.channel-row { display: flex; gap: 20px; align-items: flex-start; }
.description { line-height: 1.5; font-size: 0.9rem; color: var(--text-gray); }

/* ============================================================
   5. UPCOMING ARCHIVE (Shifted Left)
   ============================================================ */
.upcoming-archive {
    margin-top: 50px; 
    width: 100%;
    padding-top: 30px; 
    padding-bottom: 50px;
    margin-left: -25px; /* Pulls the entire block 25px to the left */
}

.cyan-label {
    font-size: 0.7rem; color: var(--text-gray); letter-spacing: 3px;
    margin-bottom: 25px; display: block; opacity: 0.8;
    padding-left: 25px; /* Keeps the label aligned with the original left edge */
}

.archive-list-container {
    position: relative;
    border-left: 1px solid var(--cyan-dim);
    padding-left: 15px; /* Reduced from 25px to bring image closer to line */
}

.chapter-row {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 18px 0;
    position: relative;
    cursor: default;
}

.chapter-thumb {
    width: 165px; 
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border: 1px solid var(--cyan-dim); /* Thinner 1px border */
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s;
    overflow: hidden;
}

.chapter-row:hover .chapter-thumb { border-color: var(--cyan); }
.chapter-thumb img { width: 100%; height: 100%; object-fit: cover; }

.chapter-details { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.status-line {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: var(--text-gray); letter-spacing: 0.5px;
}
.status-tag { color: var(--cyan); font-weight: 600; }
.chapter-num { 
    color: var(--cyan); 
    font-weight: 600; 
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5); 
}

.chapter-title { 
    font-size: 1.05rem; 
    color: var(--text-white); 
    font-weight: 600; 
    margin-top: 6px; 
    margin-bottom: 2px; /* Description is now nearer */
}

.chapter-desc { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
    line-height: 1.4; 
    display: block;
    margin-top: 0;
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .upcoming-archive { margin-left: 0; } /* Reset shift for small screens */
    .void-interface { padding: 10px 0; }
    .video-wrapper { aspect-ratio: 16 / 9; }
    .chapter-row { gap: 15px; padding: 12px 0; }
    .chapter-thumb { width: 130px; }
}
