/* TUDAO V107 — exact supplied footer PNG 2048x331.
   No crop, no zoom, no stretch. Full 5 icons stay visible. */

:root {
    --ng-footer-art-ratio: 0.16162109375; /* 331 / 2048 */
    --ng-footer-height: min(84px, 16.162109375vw) !important;
    --ng-footer-safe-bottom: env(safe-area-inset-bottom, 0px) !important;
}

body {
    padding-bottom: calc(var(--ng-footer-height) + var(--ng-footer-safe-bottom)) !important;
}

.ng-bottom-nav,
.td-home-page .ng-bottom-nav {
    width: 100% !important;
    height: calc(var(--ng-footer-height) + var(--ng-footer-safe-bottom)) !important;
    min-height: 0 !important;
    padding: 0 0 var(--ng-footer-safe-bottom) !important;
    margin: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

.ng-bottom-nav::before,
.ng-bottom-nav::after,
.td-home-page .ng-bottom-nav::before,
.td-home-page .ng-bottom-nav::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ng-bottom-nav__inner,
.td-home-page .ng-bottom-nav__inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: min(100vw, 520px) !important;
    max-width: 520px !important;
    height: var(--ng-footer-height) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.ng-bottom-nav__art {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.ng-bottom-nav__item,
.td-home-page .ng-bottom-nav__item {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    text-decoration: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* PNG already contains all icons and labels. Keep HTML only as click targets. */
.ng-bottom-nav__bubble,
.ng-bottom-nav__label,
.td-home-page .ng-bottom-nav__bubble,
.td-home-page .ng-bottom-nav__label,
.ng-bottom-nav__item.is-active .ng-bottom-nav__bubble,
.ng-bottom-nav__item.is-active .ng-bottom-nav__label,
.ng-bottom-nav__item.is-brand-active .ng-bottom-nav__bubble,
.ng-bottom-nav__item.is-brand-active .ng-bottom-nav__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ng-bottom-nav__item::before,
.ng-bottom-nav__item::after,
.ng-bottom-nav__bubble::before,
.ng-bottom-nav__bubble::after {
    content: none !important;
    display: none !important;
}

.ng-bottom-nav__item:focus-visible {
    outline: 2px solid rgba(239,194,94,.88) !important;
    outline-offset: -2px !important;
}

.ng-bottom-nav__item:active {
    background: rgba(255,210,105,.045) !important;
}
