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

body {
    background: #0A0A0F;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #131318;
    border-bottom: 1px solid rgba(42, 42, 53, 0.5);
    flex-shrink: 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 24px;
    max-height: 24px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

#status {
    display: flex;
    align-items: center;
    gap: 8px;
}

#status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #71717A;
    transition: background 0.3s, box-shadow 0.3s;
}

#status-dot.live {
    background: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

#status-dot.waiting {
    background: #60A5FA;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
    animation: pulse 2s infinite;
}

#status-dot.error {
    background: #FB7185;
    box-shadow: 0 0 8px rgba(251, 113, 133, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#status-text {
    font-size: 11px;
    font-weight: 600;
    color: #A1A1AA;
    font-family: 'SF Mono', 'Menlo', monospace;
    letter-spacing: 0.5px;
}

#video-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0F;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

#remote-video.active {
    display: block;
}

#overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#overlay.hidden {
    display: none;
}

#overlay-icon {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

#overlay-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

#overlay-sub {
    font-size: 12px;
    color: #71717A;
}

/* Fullscreen button area */
#video-container:hover #fullscreen-hint {
    opacity: 1;
}

#fullscreen-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 6px 12px;
    background: rgba(19, 19, 24, 0.8);
    border: 1px solid rgba(42, 42, 53, 0.5);
    border-radius: 6px;
    font-size: 11px;
    color: #A1A1AA;
    cursor: pointer;
}

#fullscreen-hint:hover {
    background: rgba(37, 37, 48, 0.9);
    color: #D4A843;
}

/* Mobile */
@media (max-width: 768px) {
    #status-bar {
        padding: 6px 12px;
    }

    .logo-img {
        height: 18px;
        max-height: 18px;
    }

    #status-text {
        font-size: 9px;
    }
}
