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

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the screen */
    background-color: #1a1a1a;
}

#local-video {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background-color: #333;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Make local video draggable or at least not block important areas on mobile? 
   For simplicity, keep top-right. On mobile maybe smaller. */
@media (max-width: 600px) {
    #local-video {
        width: 90px;
        height: 120px;
        top: 15px;
        right: 15px;
    }
}

#controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
    width: 100%;
    justify-content: center;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.control-btn:active {
    background-color: rgba(255, 255, 255, 0.4);
}

.control-btn.active {
    background-color: #ff4444; /* Red for muted state */
    border-color: #ff4444;
}

#status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through if video is behind */
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
}

#status-overlay.hidden {
    display: none;
}

#wechat-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mask-content {
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}
