/* ==========================================================
   TOP 10 NO TITLE.PHP - LIMPO, SEM CARD
   Segue o padrão visual de "Títulos relacionados"
   ========================================================== */

.nx-top10-box{
  width:100%;
  max-width:1240px;
  margin:clamp(6px, 2vw, 18px) auto clamp(38px, 5vw, 58px);
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#fff;
  overflow:visible;
}

.nx-top10-box::before,
.nx-top10-box::after{
  display:none !important;
}

.nx-top10-head{
  margin:0 0 14px;
}

.nx-top10-head h2{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-size:clamp(18px, 2vw, 22px);
  line-height:1.2;
  font-weight:800;
  color:#fff;
  letter-spacing:0;
}

.nx-top10-head h2::before{
  content:"";
  display:inline-block;
  width:4px;
  height:24px;
  border-radius:999px;
  background:#ef101f;
  box-shadow:0 0 10px rgba(239,16,31,.7);
  flex:0 0 auto;
}

.nx-top10-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding:0;
  border:0;
  background:transparent;
}

.nx-top10-tab{
  appearance:none;
  -webkit-appearance:none;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.nx-top10-tab:hover{
  color:#fff;
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.16);
}

.nx-top10-tab.is-active{
  color:#fff;
  border-color:rgba(239,16,31,.70);
  background:linear-gradient(180deg, rgba(239,16,31,.95), rgba(174,12,23,.95));
  box-shadow:0 10px 24px rgba(239,16,31,.18);
}

.nx-top10-panel{
  display:none;
}

.nx-top10-panel.is-active{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}

.nx-top10-item{
  display:grid;
  grid-template-columns:34px 48px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:68px;
  padding:10px 0;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:transparent;
  border-radius:0;
  box-shadow:none;
  transition:transform .18s ease;
}

.nx-top10-item:hover{
  transform:translateX(3px);
}

.nx-top10-item:last-child{
  border-bottom:0;
}

.nx-top10-rank{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  min-width:30px;
  height:30px;
  border-radius:50%;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:900;
  letter-spacing:-.03em;
}

.nx-top10-item:nth-child(-n+3) .nx-top10-rank{
  color:#fff;
  background:linear-gradient(180deg, rgba(239,16,31,.95), rgba(174,12,23,.95));
  border-color:rgba(255,255,255,.14);
  box-shadow:0 8px 20px rgba(239,16,31,.18);
}

.nx-top10-poster{
  width:44px;
  height:60px;
  border-radius:8px;
  overflow:hidden;
  display:block;
  background:rgba(255,255,255,.06);
  box-shadow:0 8px 18px rgba(0,0,0,.22);
  flex:none;
}

.nx-top10-poster img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.nx-top10-info{
  display:block;
  min-width:0;
}

.nx-top10-info strong{
  display:block;
  color:#fff;
  font-size:13px;
  font-weight:850;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:6px;
}

.nx-top10-info small{
  display:flex;
  align-items:center;
  gap:7px;
  color:rgba(255,255,255,.68);
  font-size:11px;
  line-height:1;
}

.nx-top10-star{
  color:#ffc64a;
  font-size:11px;
}

.nx-top10-info em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:18px;
  padding:0 6px;
  border-radius:999px;
  font-style:normal;
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
}

.nx-top10-item:hover .nx-top10-info strong{
  color:#ffdf8b;
}

@media (min-width:768px){
  .nx-top10-head{ margin-bottom:16px; }
  .nx-top10-tabs{ gap:10px; margin-bottom:18px; }
  .nx-top10-tab{ min-height:36px; padding:0 18px; font-size:13px; }
  .nx-top10-item{ grid-template-columns:40px 54px minmax(0,1fr); min-height:76px; gap:13px; padding:12px 0; }
  .nx-top10-rank{ width:34px; min-width:34px; height:34px; font-size:13px; }
  .nx-top10-poster{ width:50px; height:70px; border-radius:9px; }
  .nx-top10-info strong{ font-size:14px; }
}

@media (min-width:1100px){
  .nx-top10-panel.is-active{
    grid-template-columns:1fr 1fr;
    column-gap:34px;
  }

  .nx-top10-item:nth-child(5){
    border-bottom:0;
  }
}

@media (max-width:480px){
  .nx-top10-box{
    margin:24px auto 36px;
  }

  .nx-top10-head h2{
    font-size:16px;
  }

  .nx-top10-head h2::before{
    height:21px;
  }

  .nx-top10-tabs{
    gap:7px;
    overflow-x:auto;
    padding-bottom:2px;
    -webkit-overflow-scrolling:touch;
  }

  .nx-top10-tab{
    flex:0 0 auto;
    min-height:32px;
    padding:0 13px;
    font-size:12px;
  }

  .nx-top10-item{
    grid-template-columns:30px 42px minmax(0,1fr);
    min-height:64px;
    gap:8px;
  }

  .nx-top10-rank{
    width:28px;
    min-width:28px;
    height:28px;
    font-size:11px;
  }

  .nx-top10-poster{
    width:40px;
    height:56px;
    border-radius:7px;
  }

  .nx-top10-info strong{
    font-size:12px;
  }
}

/* ==========================================================
   CORREÇÃO MOBILE - TOP 10 CABENDO NA TELA
   Só afeta celular. PC/tablet grande continua igual.
   ========================================================== */
@media (max-width: 767px){
  .nx-top10-box,
  .nx-top10-panel,
  .nx-top10-panel.is-active,
  .nx-top10-item,
  .nx-top10-info,
  .nx-top10-info strong,
  .nx-top10-info small{
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nx-top10-box{
    width: 100% !important;
    overflow: hidden !important;
  }

  .nx-top10-panel.is-active{
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
  }

  .nx-top10-item{
    width: 100% !important;
    grid-template-columns: 30px 42px minmax(0, 1fr) !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .nx-top10-info{
    overflow: hidden !important;
  }

  .nx-top10-info strong{
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nx-top10-info small{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 380px){
  .nx-top10-item{
    grid-template-columns: 28px 38px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .nx-top10-poster{
    width: 38px !important;
    height: 54px !important;
  }

  .nx-top10-info strong{
    font-size: 11px !important;
  }

  .nx-top10-info small{
    font-size: 9px !important;
    gap: 4px !important;
  }
}
