/* 모바일 폭 하단 메뉴바. 스크롤을 내리면 아래로 사라지고 올리면 다시 올라온다(upc_tabbar.inc.php). */
:root { --upc-tabbar-h: calc(58px + env(safe-area-inset-bottom)); }

.upc-tabbar { display: none; }

@media (max-width: 760px) {
    body.upc-body { padding-bottom: var(--upc-tabbar-h); }

    .upc-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 15;   /* 메뉴를 열면 오른쪽 사이드바(20)가 위로 온다 */
        display: flex;
        height: var(--upc-tabbar-h);
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--upc-line);
        background: var(--upc-card);
        transition: transform .25s ease;
    }
    .upc-tabbar-off .upc-tabbar { transform: translateY(100%); }

    .upc-tabbar a {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--upc-sub);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
    }
    .upc-tabbar a.on { color: var(--upc-accent); }
    .upc-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

    /* 무료음원 재생 바는 메뉴바 위에 띄운다 */
    body:not(.upc-tabbar-off) .iem-player { bottom: calc(var(--upc-tabbar-h) + 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .upc-tabbar { transition: none; }
}
