

.bottom-nav.is-hidden {
  transform: translateY(90px);
  opacity: 0;
}

/* чтобы контент не прятался под меню */
body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* =====================================================
   ITEMS
===================================================== */

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;

  color: var(--nav-text);
  font-weight: 500;

  transition: color 0.2s ease, transform 0.2s ease;
}

/* icon */


.bottom-nav__item.is-active svg {
  transform: translateY(-2px);
  opacity: 1;
}
/* =====================================================
   ACTIVE STATE — MINIMAL
===================================================== */

.bottom-nav__item.is-active {
  color: var(--nav-text-active);
  font-weight: 600;
}

.bottom-nav__item.is-active .icon {
  transform: translateY(-2px);
  opacity: 1;
}

/* =====================================================
   HIDE ON FULLSCREEN VIDEO
===================================================== */

body.video-playing .bottom-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

:root {
--nav-bg: rgba(255,255,255,0.85);
--nav-text: #8f95a3;
--nav-text-active: #5c5166;
--nav-shadow: 0 4px 18px rgba(0,0,0,0.05);

}

[data-theme="dark"] {

  --nav-bg: rgba(28,29,31,0.85);
--nav-text: #9ca3af;
--nav-text-active: #c4b5fd;
--nav-shadow: 0 4px 18px rgba(0,0,0,0.6);

}


.bottom-nav__item.is-active svg {
  opacity: 1;
  transform: translateY(-2px);
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));

  height: 64px;

  background: var(--nav-bg);
  border-radius: 20px;
  box-shadow: var(--nav-shadow);
  touch-action: manipulation;
  z-index: 9999;
  max-width: 960px;
  margin: 0 auto;

  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    opacity 0.25s ease;

  will-change: transform;
}


.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;

  margin-bottom: 4px;

  opacity: 0.75;

  transition: transform .2s ease, opacity .2s ease;
}

.bottom-nav__item.is-active {
  color: var(--nav-text-active);
  font-weight: 600;
}

.bottom-nav__item.is-active {
  color: var(--nav-text-active);
}

.bottom-nav__item.is-active svg {
  opacity: 1;
  transform: none;
}

body.admin .bottom-nav {
  display: none;
}

.bottom-nav {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.bottom-nav__item {
  touch-action: manipulation;
}


