.layout {
    position: relative;
    display: grid;
    grid-template-areas:
        'window-bar'
        'main-content'
        'player';
    grid-template-rows: 0 calc(100vh - 90px) 90px;
    grid-template-rows: 0 calc(100dvh - 90px) 90px;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--theme-colors-background);
}

.windows,
.macos {
    grid-template-rows: 30px calc(100vh - 120px) 90px;
    grid-template-rows: 30px calc(100dvh - 120px) 90px;
}

.drawer-button {
    position: absolute;
    bottom: calc(90px + 0.75rem);
    left: 0.75rem;
    z-index: 100;
    background: color-mix(in srgb, var(--theme-colors-background) 90%, transparent);
    border: 1px solid var(--theme-colors-border);
    backdrop-filter: blur(10px);
}

@media (height < 192px) {
    .drawer-button {
        display: none;
    }
}

.main-content {
    position: relative;
    grid-area: main-content;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.full-screen-player-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    overflow: hidden;
}
