* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000; /* Black background for video player */
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.player-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

video {
    /* 
       Rotated 90 degrees to fit vertical video on a horizontal screen.
       Width and height are swapped to cover the screen perfectly.
    */
    width: 100vh;
    height: 100vw;
    object-fit: cover;
    outline: none;
    transform: rotate(90deg);
}

.overlay-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.5;
}

.overlay-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: scale(1.1);
}

.overlay-btn svg {
    width: 24px;
    height: 24px;
}

/* Hidden state for the button */
.hidden {
    display: none !important;
}

/* Splash Screen */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
}

.text-red {
    color: #E60000;
}

.text-black {
    color: #000000;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #E60000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
