/* General Styles */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
}


/* Loading Screen */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #000;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    text-align: center;
}

#loading-content {
    width: 80%;
    max-width: 400px;
}

#loading-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid yellow;
    animation: typing 2.5s steps(40, end) forwards;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

#progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffdb00, #ffd700);
    width: 0%;
    transition: width 0.5s ease-out;
    position: relative;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    animation: move-shine 1.5s infinite;
}

@keyframes move-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Player Wrapper */

#player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Video Player */

#video-player {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}