.theater-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.theater-overlay.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theater-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.theater-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theater-player {
    width: 80vw;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.theater-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.theater-actions {
    display: flex;
    justify-content: center;
}

.btn-theater-vote {
    padding: 0.75rem 2.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-theater-vote:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-theater-vote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-theater-vote.voted {
    background: var(--success);
}

.theater-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background 0.2s, transform 0.2s;
}

.theater-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.theater-prev {
    left: 1.5rem;
}

.theater-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .theater-player {
        width: 95vw;
    }

    .theater-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .theater-prev {
        left: 0.5rem;
    }

    .theater-next {
        right: 0.5rem;
    }
}
