.ss-mobile-tabbar {
  display: none;
}

@media (max-width: 759.98px) {
  :root {
    --ss-mobile-tabbar-height: 80px;
    --ss-mobile-tabbar-content-offset: calc(var(--ss-mobile-tabbar-height) + 12px);
    --ss-mobile-tabbar-capsule-width: 46px;
    --ss-mobile-tabbar-capsule-height: 24px;
    --ss-mini-player-content-reserve: 94px;
  }

  body.ss-mobile-tabbar-enabled {
    padding-bottom: calc(var(--ss-mobile-tabbar-content-offset) + 10px);
  }

  body.ss-mobile-tabbar-enabled.ss-mini-visible {
    padding-bottom: calc(var(--ss-mobile-tabbar-content-offset) + 10px + var(--ss-mini-player-content-reserve));
  }

  body.ss-full-player-open.ss-mobile-tabbar-enabled {
    padding-bottom: 0;
  }

  body.ss-mobile-tabbar-auth-standalone .wrapper {
    min-height: calc(100vh + 72px);
  }

  /*
   * Short Search routes otherwise become exactly non-scrollable in standalone
   * iOS and WebKit collapses the visual viewport to the layout viewport. Keep
   * the route one top safe-area taller; when Mini Player is visible, restore
   * the same reserve that its body padding removes from the percentage base.
   */
  body.search.ss-mobile-tabbar-standalone .wrapper {
    min-height: calc(100% + var(--ss-safe-area-top));
  }

  body.search.ss-mobile-tabbar-standalone.ss-mini-visible .wrapper {
    min-height: calc(100% + var(--ss-safe-area-top) + var(--ss-mini-player-content-reserve));
  }

  @supports (min-height: 100dvh) {
    body.ss-mobile-tabbar-auth-standalone .wrapper {
      min-height: calc(100dvh + 72px);
    }
  }

  .ss-mobile-tabbar {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9998;
    display: block;
    padding: 0;
    pointer-events: none;
  }

  body.ss-mobile-tabbar-standalone .ss-mobile-tabbar {
    bottom: calc(var(--ss-safe-area-bottom) * -1);
  }

  .ss-mobile-tabbar__surface {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(1px, 0.5vw, 4px);
    min-height: var(--ss-mobile-tabbar-height);
    padding: 7px calc(6px + var(--ss-safe-area-right)) 0 calc(6px + var(--ss-safe-area-left));
    background: var(--ss-mobile-tabbar-surface, var(--ss-chrome-surface, #1a1a1a));
    box-shadow: none;
    direction: rtl;
    overflow: hidden;
    pointer-events: auto;
  }

  body.ss-mobile-tabbar-standalone .ss-mobile-tabbar__surface {
    min-height: calc(var(--ss-mobile-tabbar-height) + var(--ss-safe-area-bottom));
    padding-bottom: var(--ss-safe-area-bottom);
  }

  .ss-mobile-tabbar__surface::before {
    content: none;
  }

  .ss-mobile-tabbar__indicator {
    position: absolute;
    top: 7px;
    left: 0;
    z-index: 0;
    width: 0;
    height: var(--ss-mobile-tabbar-capsule-height);
    border-radius: 16px;
    clip-path: path("M14 0H42C50 0 56 6 56 14V20C56 28 50 34 42 34H14C6 34 0 28 0 20V14C0 6 6 0 14 0Z");
    background: transparent;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.34s ease,
      opacity 0.22s ease;
    pointer-events: none;
  }

  .ss-mobile-tabbar__item {
    position: relative;
    z-index: 1;
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
    min-height: 62px;
    padding: 0;
    color: #999999;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s ease, transform 0.28s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .ss-mobile-tabbar__item:hover,
  .ss-mobile-tabbar__item:focus-visible {
    color: #cbcbcb;
    text-decoration: none;
    outline: 0;
  }

  .ss-mobile-tabbar__item:active {
    transform: translateY(1px);
  }

  .ss-mobile-tabbar__item.is-active {
    color: #ffffff;
  }

  .ss-mobile-tabbar__icon-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ss-mobile-tabbar-capsule-width);
    height: var(--ss-mobile-tabbar-capsule-height);
    border-radius: 16px;
    clip-path: path("M14 0H42C50 0 56 6 56 14V20C56 28 50 34 42 34H14C6 34 0 28 0 20V14C0 6 6 0 14 0Z");
    transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ss-mobile-tabbar__item.is-active .ss-mobile-tabbar__icon-shell {
    transform: translateY(0);
  }

  .ss-mobile-tabbar__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
  }

  .ss-mobile-tabbar__icon i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition:
      opacity 0.34s ease,
      color 0.32s ease,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ss-mobile-tabbar__icon-light {
    opacity: 1;
    color: #999999;
    transform: scale(1);
  }

  .ss-mobile-tabbar__icon-solid {
    opacity: 0;
    color: #ffc015;
    transform: scale(0.72);
  }

  .ss-mobile-tabbar__item.is-active .ss-mobile-tabbar__icon-light {
    opacity: 0;
    transform: scale(0.62);
  }

  .ss-mobile-tabbar__item.is-active .ss-mobile-tabbar__icon-solid {
    opacity: 1;
    transform: scale(1);
  }

  .ss-mobile-tabbar__label {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: inherit;
    transition:
      color 0.3s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ss-mobile-tabbar__item.is-active .ss-mobile-tabbar__label {
    transform: translateY(0);
  }

  #ss-mini-player {
    right: 8px;
    left: 8px;
    bottom: calc(var(--ss-mobile-tabbar-height) + 0px) !important;
  }
}

@media (min-width: 760px) {
  .ss-mobile-tabbar {
    display: none !important;
  }
}
