/* ==========================================================================
   WATCH PAGE SPECIFIC STYLING
   ========================================================================== */

main {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Clean Breadcrumbs */
.breadcrumbs { margin-bottom: 0 !important; }
.breadcrumbs a { text-decoration: none !important; }
.breadcrumbs a:hover { color: var(--title); }

/* ==========================================================================
   MINIMALIST VIDEO OVERLAY
   ========================================================================== */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 20;
    display: flex;
    transition: opacity 0.3s ease;
}

/* Vertical Stats Overlay (Top Left) */
.overlay-stats {
    position: absolute;
    top: 60px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
}
.overlay-stats .ep-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}
.overlay-stats .material-symbols-outlined { font-size: 1.2rem; opacity: 0.9; }

/* Native-Style Overlay Buttons */
.overlay-btn {
    pointer-events: auto; 
    background: transparent;
    border: none;
    color: #ffffff; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    position: relative;
    opacity: 0.85; /* Matches native YT dimness */
    transition: opacity 0.2s ease;
}

.overlay-btn:hover { 
    opacity: 1; /* Snaps to pure white */
}

/* Instant Custom Tooltips */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(28, 28, 28, 0.95);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    font-family: 'Segoe UI', sans-serif;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Side Navigation Arrows */
.overlay-side { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    padding: 20px; 
}
.overlay-side .material-symbols-outlined { font-size: 3rem; }
.overlay-left { left: 0px; }
.overlay-right { right: 0px; }

/* Tooltips for side arrows (Centered BELOW the button) */
.overlay-side[data-tooltip]::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
}

/* Bottom Center Controls */
.overlay-bottom { 
    position: absolute; 
    /* 10px puts these perfectly in the center gap of the native YouTube controls */
    bottom: 4px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 25px; 
}
.overlay-bottom .material-symbols-outlined { font-size: 1.8rem; }

/* Tooltips for bottom buttons (Centered ABOVE the button) */
.overlay-bottom .overlay-btn[data-tooltip]::after {
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
}

/* ==========================================================================
   MINIMALIST NAVIGATION ROW
   ========================================================================== */
.watch-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

.watch-nav > :first-child { justify-self: start; }
.watch-nav > :last-child { justify-self: end; }

.watch-nav a {
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.watch-nav a:hover { color: var(--title); }