@media (min-width: 600px) {
    .app-container {
        flex-direction: row;
    }

    body {
        background-color: var(--md-sys-color-surface-container-low);
    }

    .main-content {
        border-radius: var(--radius-xl);
        background-color: var(--md-sys-color-surface);
        margin: 16px;
        padding-bottom: 0;
        overflow: hidden;
        position: relative;
    }

    .preset-explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .preset-feed-view {
        position: absolute;
        z-index: 100;
        inset: 0;
        height: 100%;
        border-radius: inherit;
    }

    .nav-bar {
        position: static;
        width: 80px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 48px;
        gap: 12px;
        background-color: transparent;
        border: none;
    }

    .nav-item {
        width: 100%;
        max-width: 80px;
        padding: 4px 0;
        height: auto;
        flex: none;
    }

    .nav-label {
        display: block;
        margin-top: 4px;
        font-size: 12px;
    }

    


@media (min-width: 1024px) {
    .nav-bar {
        width: 280px;
        align-items: center;
        padding: 24px 12px;
        gap: 4px;
    }

    .nav-item {
        flex-direction: row;
        width: calc(100% - 24px);
        max-width: 100%;
        height: 56px;
        padding: 0 16px;
        gap: 12px;
        border-radius: var(--radius-full);
        margin: 0 12px;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-icon-wrapper {
        width: 24px;
        height: 24px;
        background-color: transparent !important;
        border-radius: 0;
        color: inherit !important;
        margin: 0;
    }

    .nav-item.active {
        background-color: var(--md-sys-color-secondary-container);
        color: var(--md-sys-color-on-secondary-container);
    }

    .nav-item.active .nav-icon-wrapper {
        background-color: transparent;
    }

    .nav-item.active .material-symbols-rounded {
        color: inherit;
    }

    .nav-label {
        margin-top: 0;
        font-size: 14px;
    }

    .preset-explore-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .main-content {
        margin: 32px 32px 32px 0;
        border-radius: var(--radius-xl);
    }
}

    .phone-mockup {
        background: var(--md-sys-color-surface);
        padding: 20px;
        height: 100%;
    }

    .phone-bezel {
        width: 380px;
        height: min(800px, 90vh);
        border: 12px solid #1a1a1a;
        border-radius: 54px;
        box-shadow: 0 0 0 2px #333, 0 20px 50px rgba(0,0,0,0.3);
        overflow: hidden;
        background: #000;
    }

    .phone-screen {
        border-radius: 16px;
    }

    .phone-notch {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 28px;
        background: #1a1a1a;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phone-speaker {
        width: 40px;
        height: 4px;
        background: #333;
        border-radius: 2px;
    }

    .phone-screen .preset-feed.tiktok-feed,
    .phone-screen .tiktok-slide {
        height: 100% !important;
    }

    /* Resource Popup Desktop Override */
    #resource-detail-popup {
        align-items: center;
    }

    #resource-detail-popup .res-popup-sheet {
        border-radius: 28px;
        width: 92%;
        max-width: 480px;
        max-height: 88vh;
        transform: translateY(40px) scale(0.96);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
        transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    }

    #resource-detail-popup.show .res-popup-sheet {
        transform: translateY(0) scale(1);
    }

    #resource-detail-popup .res-popup-handle {
        display: none;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline-variant);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}
