/* ============================================
   CINEVERSE WATCH TOGETHER STYLES (v2 - Stack Layout)
   ============================================ */

.watch-request-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 20, 0.98));
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-primary);
    padding: 20px;
    border-radius: 20px;
    z-index: 11000;
    box-shadow: 0 15px 40px rgba(255, 60, 172, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.watch-request-toast.active {
    transform: translateX(0);
}

.watch-party-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 10500;
    display: none;
    flex-direction: column;
}

.watch-party-overlay.active {
    display: flex;
}

.watch-party-header {
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.watch-party-main {
    flex: 1;
    display: flex;
    flex-direction: column; /* Movie Top, Chat Bottom */
    overflow: hidden;
}

.watch-party-player-container {
    flex: 2; /* Takes more space */
    position: relative;
    background: #000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-party-sidebar {
    flex: 1; /* Chat area at bottom */
    width: 100%;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 40%; /* Prevent chat from taking over */
}

@media (min-width: 1024px) {
    .watch-party-sidebar {
        max-height: 30%; /* Even shorter on desktop */
    }
}

.watch-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.watch-chat-input-area {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.watch-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.watch-chat-input:focus {
    border-color: var(--accent-primary);
}

.sync-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sync-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.watch-party-player-container:hover .sync-controls {
    opacity: 1;
}

.sync-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.sync-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}
