/* Gallery nav: home link on left, links on right */
#navbar .nav-inner {
    justify-content: space-between;
}

.nav-home {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-home:hover {
    color: var(--text);
}

/* Full-viewport layout — everything visible without scrolling */
.gallery-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
}

.gallery-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: calc(64px + 0.75rem) 2rem 1.25rem;
    gap: 0.6rem;
}

/* ---- Main player — fills remaining space ---- */
.main-player-wrap {
    flex: 1;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.player-placeholder span {
    font-family: 'Orbitron', monospace;
    font-size: 0.62rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: none;
}

/* ---- Player meta bar ---- */
.player-meta {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--accent-border);
    min-height: 2rem;
}

.video-meta-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text);
    text-transform: uppercase;
}

.video-meta-cat {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

/* ---- Thumbnail strip ---- */
.thumb-strip-outer {
    flex-shrink: 0;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-border) transparent;
}

.thumb-strip-outer::-webkit-scrollbar {
    height: 3px;
}

.thumb-strip-outer::-webkit-scrollbar-track {
    background: transparent;
}

.thumb-strip-outer::-webkit-scrollbar-thumb {
    background: var(--accent-border);
    border-radius: 2px;
}

.thumb-strip {
    display: flex;
    gap: 8px;
    width: max-content;
}

.thumb-item {
    width: 192px;
    flex-shrink: 0;
    cursor: pointer;
}

.thumb-preview {
    width: 192px;
    height: 108px;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--accent-border);
    background: #000;
    transition: border-color 0.2s ease;
}

.thumb-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.45);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.thumb-item:hover .thumb-play {
    opacity: 1;
}

.thumb-item:hover .thumb-preview {
    border-color: rgba(75, 122, 158, 0.45);
}

.thumb-item.active .thumb-preview {
    border: 2px solid var(--accent);
}

.thumb-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.35rem 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 192px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.thumb-item:hover .thumb-label,
.thumb-item.active .thumb-label {
    color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .gallery-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .gallery-inner {
        padding: calc(64px + 1rem) 1.25rem 3rem;
    }

    .main-player-wrap {
        flex: none;
        aspect-ratio: 16 / 9;
    }

    .thumb-item {
        width: 148px;
    }

    .thumb-preview {
        width: 148px;
        height: 83px;
    }

    .thumb-label {
        max-width: 148px;
    }
}
