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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    background: #1a1a1a;
}

#qr-container {
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

#qr-code {
    width: 300px;
    height: 300px;
}


#stream-container {
    display: none;
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
}

#stream-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#stream-container.active + #qr-container {
    display: none;
}

#video-canvas {
    width: 100%;
    height: 100%;
}

#enable-audio-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    font-size: 16px;
    background: rgba(21, 101, 192, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
}

#enable-audio-btn:hover {
    background: rgba(25, 118, 210, 0.95);
}

#enable-audio-btn.hidden {
    display: none;
}

#status-bar {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

#stream-controls {
    display: none;
    align-items: center;
    gap: 8px;
}

#stream-controls.visible {
    display: flex;
}

#stream-controls button {
    padding: 8px 16px;
    font-size: 12px;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#stream-controls button:hover {
    background: #1976d2;
}

#disconnect-btn {
    background: #c62828 !important;
}

#disconnect-btn:hover {
    background: #d32f2f !important;
}

#volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 12px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

#volume-control.enabled {
    opacity: 1;
}

#volume-slider {
    width: 80px;
    cursor: pointer;
}

#volume-slider:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    background: #333;
}

#status.connected {
    background: #2e7d32;
}

#status.streaming {
    background: #1565c0;
}

/* Ad container styles */
#ad-container {
    margin-top: 20px;
    max-width: 728px;
    width: 100%;
    min-height: 90px;
}

#stream-container.active ~ #ad-container {
    display: none;
}
