﻿   Cinematic Hub Immersive Media Player (Image 1 Style)
   ========================================================================== */
.cinematic-hub {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 2.5rem auto 4.5rem;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background hero section */
.cinematic-hub .hub-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cinematic-hub .hub-media-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.cinematic-hub .hub-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.cinematic-hub .hub-main-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Fade poster out when video is active */
.cinematic-hub.video-active .hub-main-poster {
    opacity: 0;
}

/* Dark gradient overlay for text legibility, matching Image 1 */
.cinematic-hub .hub-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.55) 45%, rgba(8, 8, 8, 0.1) 100%),
                linear-gradient(180deg, rgba(8, 8, 8, 0.1) 0%, rgba(8, 8, 8, 0.85) 100%);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HUD Overlay containing Left Info and Bottom Shelf */
.cinematic-hub .hub-hud-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem 2.5rem;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Info Panel */
.cinematic-hub .hub-info-panel {
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: auto;
}

.cinematic-hub .hub-section-label {
    display: inline-block;
    font-family: var(--font-ui), monospace;
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.cinematic-hub .hub-kicker {
    display: block;
    font-family: var(--font-ui), monospace;
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.cinematic-hub .hub-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cinematic-hub .hub-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    letter-spacing: 0.08em;
}

.cinematic-hub .hub-desc p {
    margin: 0 0 0.5rem 0;
}

.cinematic-hub .hub-desc p:last-child {
    margin-bottom: 0;
}

/* Bottom Shelf Panel */
.cinematic-hub .hub-shelf-panel {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    pointer-events: auto;
}

.cinematic-hub .hub-shelf-title {
    font-family: var(--font-ui), monospace;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    font-weight: 500;
}

.cinematic-hub .hub-shelf-row {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean visual */
}

.cinematic-hub .hub-shelf-row::-webkit-scrollbar {
    display: none;
}

/* Thumbnail Card */
.cinematic-hub .hub-thumb-card {
    position: relative;
    flex: 0 0 160px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cinematic-hub .hub-thumb-card:hover {
    transform: translateY(-4px);
}

.cinematic-hub .hub-thumb-card .thumb-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cinematic-hub .hub-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) saturate(0.95);
    transition: filter 0.3s ease;
}

.cinematic-hub .hub-thumb-card .thumb-play-indicator {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.cinematic-hub .hub-thumb-card:hover .thumb-img-wrap {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

.cinematic-hub .hub-thumb-card:hover img {
    filter: brightness(0.9) saturate(1.05);
}

.cinematic-hub .hub-thumb-card:hover .thumb-play-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Active State */
.cinematic-hub .hub-thumb-card.active .thumb-img-wrap {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.cinematic-hub .hub-thumb-card.active img {
    filter: brightness(0.95) saturate(1.1);
}

.cinematic-hub .hub-thumb-card.active .thumb-play-indicator {
    opacity: 1;
    transform: scale(1);
    color: var(--accent);
}

.cinematic-hub .hub-thumb-card .thumb-title {
    font-family: var(--font-serif);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cinematic-hub .hub-thumb-card.active .thumb-title {
    color: var(--white);
    font-weight: 500;
}

/* Interactive playback fade out state */
.cinematic-hub.video-playing .hub-hud-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(15px);
}

.cinematic-hub.video-playing .hub-gradient-overlay {
    opacity: 0.15; /* Reduce contrast to let video shine */
}

/* Hover-to-trigger HUD return when playing */
.cinematic-hub.video-playing:hover .hub-hud-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

.cinematic-hub.video-playing:hover .hub-gradient-overlay {
    opacity: 1;
}

/* Interactive controls for video */
.cinematic-hub .hub-controls-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    z-index: 5;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: auto;
}

.cinematic-hub:hover .hub-controls-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-hub .hub-controls-overlay button {
    background: rgba(8, 8, 8, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.cinematic-hub .hub-controls-overlay button:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: scale(1.08);
}

.cinematic-hub .hub-controls-overlay button svg {
    width: 16px;
    height: 16px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .cinematic-hub {
        aspect-ratio: auto;
        min-height: 480px;
    }
    .cinematic-hub .hub-hud-overlay {
        padding: 2rem 2rem 1.5rem;
    }
    .cinematic-hub .hub-info-panel {
        max-width: 80%;
    }
    .cinematic-hub .hub-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .cinematic-hub {
        min-height: 440px;
    }
    .cinematic-hub .hub-info-panel {
        max-width: 100%;
    }
    .cinematic-hub .hub-title {
        font-size: 1.5rem;
    }
    .cinematic-hub .hub-shelf-row {
        gap: 0.8rem;
    }
    .cinematic-hub .hub-thumb-card {
        flex: 0 0 130px;
    }
}

