.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  box-sizing:border-box;
  width:100vw;
  max-width:100vw;
  height:calc(72px + env(safe-area-inset-bottom,0px));
  padding:5px max(6px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(6px,env(safe-area-inset-left,0px));
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:4px;
  background:var(--rg-red,#b8001f);
  box-shadow:0 -5px 18px rgba(80,0,15,.16)
}

.bottom-nav__item{
  position:relative;
  min-width:0;
  min-height:62px;
  border:0;
  border-radius:18px;
  background:transparent;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:7px 3px 6px;
  font:inherit;
  font-size:11px;
  font-weight:500;
  line-height:1;
  opacity:.88;
  cursor:pointer;
  text-decoration:none;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .18s ease,opacity .18s ease,transform .12s ease
}

/* Los iconos antiguos quedan ocultos: usamos un único estilo lineal en las 4 opciones. */
.bottom-nav__item img,
.bottom-nav__item svg,
.bottom-nav__glyph{
  display:none!important
}

.bottom-nav__item::before{
  content:"";
  display:block;
  width:29px;
  height:29px;
  flex:0 0 29px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain
}

/* Partidos */
.bottom-nav__item:nth-child(1)::before{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:50%;
  background-color:transparent;
  background-image:url("../../icons/matches-final-ball.png");
  background-size:contain;
  box-shadow:none
}

/* Competiciones */
.bottom-nav__item:nth-child(2)::before{
  width:36px;
  height:36px;
  flex-basis:36px;
  background-image:url("../../icons/competitions-final-trophy.png");
  background-size:contain
}

/* Buscar */
.bottom-nav__item:nth-child(3)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 4.5 4.5'/%3E%3C/svg%3E")
}

/* Favoritos */
.bottom-nav__item:nth-child(4)::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z'/%3E%3C/svg%3E")
}

.bottom-nav__item>span:last-child{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center
}

.bottom-nav__item.is-active{
  background:rgba(255,255,255,.13);
  opacity:1;
  font-weight:800;
  box-shadow:0 5px 14px rgba(80,0,15,.13)
}

.bottom-nav__item.is-active::after{
  content:"";
  position:absolute;
  top:-5px;
  left:50%;
  width:34px;
  height:3px;
  border-radius:99px;
  background:#fff;
  transform:translateX(-50%)
}

.bottom-nav__item:active{
  background:rgba(255,255,255,.18);
  transform:scale(.98)
}

.bottom-nav__item:focus-visible{
  outline:2px solid rgba(255,255,255,.9);
  outline-offset:-2px
}

@media(max-width:390px){
  .bottom-nav{
    height:calc(68px + env(safe-area-inset-bottom,0px));
    padding-left:max(3px,env(safe-area-inset-left,0px));
    padding-right:max(3px,env(safe-area-inset-right,0px));
    gap:2px
  }
  .bottom-nav__item{
    min-height:58px;
    border-radius:16px;
    gap:4px;
    padding-left:1px;
    padding-right:1px;
    font-size:10px;
    letter-spacing:-.1px
  }
  .bottom-nav__item::before{
    width:27px;
    height:27px;
    flex-basis:27px
  }
  .bottom-nav__item>span:last-child{
    overflow:visible;
    text-overflow:clip
  }
}
