.video-player-wrapper {
    position: fixed;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-player-wrapper.hidden {
    display: none;
}

#archive-player {
    width: min(90vw, 800px);
    height: min(50vh, 450px);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.player-controls-overlay {
    width: min(90vw, 800px);
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.player-controls-overlay button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Onest', sans-serif;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 100px;
    touch-action: manipulation;
}

.player-controls-overlay button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.player-controls-overlay button:active {
    transform: translateY(1px);
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.77);
    backdrop-filter: blur(10px);
    color: #bbbbbb;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Courier New', Courier, monospace;
}

.show-player-btn {
    position: fixed;
    bottom: 100px;
    left: 75%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(255, 165, 0, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 165, 0, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 48px;
    min-width: 120px;
    touch-action: manipulation;
    backdrop-filter: blur(10px);
}

.show-player-btn:hover {
    background: rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.show-player-btn:active {
    transform: translateX(-50%) translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.show-player-btn.hidden {
    display: none;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links .divider {
    color: white;
    opacity: 0.5;
    font-size: 0.85rem;
}

body {
    padding-bottom: 200px;
}

@media (max-width: 767px) {
    .video-player-wrapper {
        bottom: 120px;
    }

    #archive-player {
        width: 95vw;
        height: min(40vh, 300px);
    }

    .player-controls-overlay {
        width: 95vw;
        gap: 0.5rem;
        padding: 0.6rem 0.8rem;
    }

    .player-controls-overlay button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-height: 48px;
        min-width: 90px;
    }

    .show-player-btn {
        bottom: 140px;
    }

    .footer-bar {
        padding: 1.25rem 0.75rem;
    }

    .footer-links a,
    .footer-links .divider {
        font-size: 0.75rem;
    }

    body {
        padding-bottom: 480px;
    }
}