/* Watch and Quiz View Styles */

.watch-and-quiz-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.video-screen-container,
.quiz-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Error and Loading Containers */
.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    background-color: #000;
    color: #fff;
}

.error-container h2 {
    color: #E50914;
    margin-bottom: 1rem;
}

.error-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #000;
    color: #fff;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #E50914;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
}

/* Button Styles */
.back-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.back-button:hover,
.back-button:focus {
    background-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* For TV Focus */
.back-button:focus {
    outline: 2px solid white;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.5);
}