.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 14px;
    gap: 14px;
}

.app-header {
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--border-width) solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-solid);
    flex-shrink: 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.room-info {
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.room-info .highlight {
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.participant-count {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-soft);
}

.workspace-grid {
    display: flex;
    flex: 1;
    gap: 14px;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 14px;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.17);
    border-radius: 999px;
}

.right-sidebar {
    width: 350px;
}

.center-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    flex: 1;
    padding: 14px;
    overflow-y: auto;
}

.video-grid::-webkit-scrollbar {
    width: 8px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-solid);
    aspect-ratio: 16 / 9;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-active .left-sidebar,
.focus-active .right-sidebar,
.focus-active .app-header {
    display: none !important;
}

.focus-active .workspace-grid {
    gap: 0;
}

.focus-active .center-stage {
    border-radius: 0;
    border: none;
}

.focus-active .pill-timer {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

@media (max-width: 1100px) {
    .app-container {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .workspace-grid {
        flex-direction: column;
        overflow: visible;
    }

    .sidebar,
    .right-sidebar {
        width: 100%;
        overflow: visible;
    }

    .center-stage {
        min-height: 380px;
    }
}
