/* Fullscreen Video Player Styles */
.video-player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.video-player-container.active {
    display: block;
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Custom Controls Overlay */
.player-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    padding: 3rem 4rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.video-player-container.show-controls .player-controls-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Header overlay (Exit button + Title) */
.player-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.video-player-container.show-controls .player-header-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.player-back-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.player-back-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.player-video-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Progress Section */
.player-progress-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    min-width: 60px;
}

.player-progress-bar-wrapper {
    flex: 1;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.player-progress-bar-wrapper.nav-focused {
    box-shadow: 0 0 15px var(--accent-glow);
    background-color: rgba(255, 255, 255, 0.3);
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    border-radius: 6px;
    transition: width 0.1s linear;
}

/* Controls Buttons Bar */
.player-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.player-control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid transparent;
}

.player-control-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.player-control-btn.play-pause-btn {
    width: 90px;
    height: 90px;
    background-color: var(--accent);
}

.player-control-btn.play-pause-btn svg {
    width: 42px;
    height: 42px;
}

.player-control-btn.nav-focused {
    background-color: #fff;
    color: var(--bg-primary);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.player-control-btn.play-pause-btn.nav-focused {
    background-color: #fff;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Large Center HUD indicators (e.g. Pause/Play/Scrub alert) */
.player-hud-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.player-hud-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.player-hud-indicator svg {
    width: 60px;
    height: 60px;
    fill: currentColor;
}
