/* Main Content Area */
.main-content {
    flex: 1;
    position: relative;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

/* Video Container with proper orientation handling */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Force landscape on mobile devices with CSS transform if needed */
}

/* Improve performance and ensure transforms pivot from center */
video {
    transform-origin: center center;
    will-change: transform, width, height;
}

/* Video Overlay UI */
.video-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
}

/* Top Bar with Settings Toggle */
.top-bar {
    display: flex;
    justify-content: flex-end;
    pointer-events: auto;
}

.settings-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-toggle-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Controls Bar (Bottom) */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: auto;
}

/* Control Buttons */
.ctrl-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 48px;
    height: 48px;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.ctrl-btn.off {
    background: rgba(239, 68, 68, 0.8);
}

.ctrl-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Record/Stream Button */
.btn-record {
    width: 72px;
    height: 72px;
    border: 4px solid white;
    background: transparent;
}

.btn-record:hover {
    background: transparent;
    transform: scale(1.05);
}

.btn-record.off {
    background: transparent;
}

/* Inner circle for record button */
.record-inner {
    width: 56px;
    height: 56px;
    background: var(--error-color);
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-record.recording .record-inner {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Make sure control buttons have clear focus/visibility */
.ctrl-btn:focus {
    outline: 2px solid rgba(99,102,241,0.6);
}
