/* =========================================================
   ANALIZADOS BOX + ANALIZADO CARD
   ========================================================= */

/* ---------------------------------------------------------
   1) CONTENEDOR GENERAL
   --------------------------------------------------------- */
.az-box{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 84px;
  overflow: visible;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at top right, rgba(6,190,132,.08), transparent 34%),
    linear-gradient(180deg, rgba(43,47,51,.96) 0%, rgba(31,35,39,.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 18px rgba(0,0,0,.35);

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  padding: 10px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   2) HEADER
   --------------------------------------------------------- */
.az-header{
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.az-header-main{
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.az-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #effff6;
  white-space: nowrap;
}

.az-total{
  font-size: 12px;
  font-weight: 800;
  color: rgba(239,255,246,.88);
  white-space: nowrap;
}

.az-stats{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.az-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 3px 8px;
  min-height: 22px;
  border-radius: 999px;
  box-sizing: border-box;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #effff6;
}

.az-pill-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}

.az-pill--follow{
  border-color: rgba(6,190,132,.28);
  background: rgba(6,190,132,.10);
}
.az-pill--follow .az-pill-dot{
  background: #06be84;
}

.az-pill--maybe{
  border-color: rgba(229,197,88,.28);
  background: rgba(229,197,88,.10);
}
.az-pill--maybe .az-pill-dot{
  background: #e5c558;
}

.az-pill--no{
  border-color: rgba(239,91,91,.28);
  background: rgba(239,91,91,.10);
}
.az-pill--no .az-pill-dot{
  background: #ef5b5b;
}

/* ---------------------------------------------------------
   3) WRAP / SCROLL
   --------------------------------------------------------- */
.az-wrap{
  position: relative;
  flex: 1 1 auto;
  min-height: 64px;
  padding: 6px 10px 8px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 12px;

  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.06);
}

.az-wrap::-webkit-scrollbar{
  width: 8px;
}
.az-wrap::-webkit-scrollbar-track{
  background: transparent;
}
.az-wrap::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

/* ---------------------------------------------------------
   4) FONDO EMPTY STATE
   --------------------------------------------------------- */
.az-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url('/assets/imagenes/lf_player.png');
  background-repeat: no-repeat;
  background-position: center 62%;
  background-size: 112% auto;

  filter: grayscale(100%) contrast(.95) saturate(.9) brightness(.95);
  opacity: .38;
  mix-blend-mode: soft-light;

  mask-image: radial-gradient(135% 125% at 50% 50%, rgba(0,0,0,1) 54%, rgba(0,0,0,.85) 72%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(135% 125% at 50% 50%, rgba(0,0,0,1) 54%, rgba(0,0,0,.85) 72%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.az-bg.is-hidden{
  display: none;
}

.az-empty{
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
  text-align: center;
  pointer-events: none;
}

.az-empty.is-hidden{
  display: none;
}

.az-empty-text{
  font-size: 12px;
  font-weight: 700;
  color: #effff6;
  opacity: .92;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

/* ---------------------------------------------------------
   5) GRID
   --------------------------------------------------------- */
.az-list{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   6) TARJETA ANALIZADO
   --------------------------------------------------------- */
.az-card{
  --az-h: 42px;
  --az-avatar: 34px;
  --az-chip-h: 20px;
  --az-chip-radius: 10px;
  --az-radius: 12px;
  --az-pad-y: 4px;
  --az-pad-x: 8px;

  position: relative;
  width: 100%;
  min-height: var(--az-h);
  padding: var(--az-pad-y) var(--az-pad-x);
  border-radius: var(--az-radius);
  box-sizing: border-box;
  overflow: visible;
  text-align: left;
  cursor: pointer;

  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.04), transparent 35%),
    linear-gradient(180deg, rgba(21,26,28,.98) 0%, rgba(15,19,22,.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 8px 16px rgba(0,0,0,.24);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.az-card:hover,
.az-card:focus-visible{
  transform: translateY(-1px);
  border-color: rgba(90,255,170,.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 10px 20px rgba(0,0,0,.28),
    0 0 0 1px rgba(90,255,170,.08);
  outline: none;
}

.az-card.is-highlight{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(255,165,0,.42),
    0 0 14px rgba(255,165,0,.22),
    0 10px 20px rgba(0,0,0,.26);
}

/* estados */
.az-card.status-follow{
  border-color: #06be84;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(6,190,132,.55),
    0 0 18px rgba(6,190,132,.24),
    0 10px 22px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at top right, rgba(46,204,113,.16), transparent 38%),
    linear-gradient(180deg, rgba(18,28,24,.98) 0%, rgba(14,20,18,.98) 100%);
}

.az-card.status-maybe{
  border-color: #e5c558;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(229,197,88,.52),
    0 0 18px rgba(229,197,88,.22),
    0 10px 22px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at top right, rgba(255,193,7,.14), transparent 38%),
    linear-gradient(180deg, rgba(28,25,18,.98) 0%, rgba(20,18,14,.98) 100%);
}

.az-card.status-no{
  border-color: #ef5b5b;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(239,91,91,.50),
    0 0 18px rgba(239,91,91,.20),
    0 10px 22px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at top right, rgba(255,92,92,.13), transparent 38%),
    linear-gradient(180deg, rgba(30,19,20,.98) 0%, rgba(20,15,16,.98) 100%);
}

/* ---------------------------------------------------------
   7) WATERMARK
   --------------------------------------------------------- */
.az-wm{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.az-wm-img{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateX(6px);
  opacity: .20;
  filter: grayscale(.85) contrast(1.05) brightness(1.02) drop-shadow(0 0 6px rgba(0,0,0,.25));
  user-select: none;
}

/* ---------------------------------------------------------
   8) LAYOUT INTERNO
   --------------------------------------------------------- */
.az-inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.az-left{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.az-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.az-right-row{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  padding-left: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   9) AVATAR
   --------------------------------------------------------- */
.az-avatar-wrap{
  position: relative;
  width: var(--az-avatar);
  height: var(--az-avatar);
  flex: 0 0 auto;
  overflow: visible;
}

.az-avatar-img,
.az-avatar-fallback{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.az-avatar-img{
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 10px rgba(0,0,0,.24);
  background: #0b1214;
}

.az-avatar-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #effff6;
  background: linear-gradient(135deg,#013d2f 0%,#04664b 100%);
  border: 1.5px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
  font-size: 12px;
}

/* badges avatar */
.az-avatar-badge{
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.az-avatar-badge--flag{
  right: -6px;
  bottom: -4px;
}

.az-avatar-badge--dorsal{
  top: -8px;
  left: -16px;
}

.az-flag-img{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #06be84;
  background: #023e2f;
}

.az-dorsal{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  color: #effff6;

  background: #025740;
  border: 2px solid #06be84;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ---------------------------------------------------------
   10) TÍTULO
   --------------------------------------------------------- */
.az-title-wrap{
  min-width: 0;
  flex: 1 1 auto;
}

.az-card-title{
  font-size: 12px;
  line-height: 1.15;
  color: #fff;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  max-height: 2.3em;
}

.az-card-title strong{
  font-weight: 800;
  color: #fff;
}

/* ---------------------------------------------------------
   11) CHIPS DERECHA
   --------------------------------------------------------- */
.az-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--az-chip-h);
  padding: 2px 6px;
  border-radius: var(--az-chip-radius);

  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-sizing: border-box;
}

.az-chip-img{
  height: 16px;
  display: block;
}

.az-chip--double{
  gap: 6px;
}

.az-chip-text{
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.az-chip-dot{
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}

.az-chip-dot.follow{ background: #06be84; }
.az-chip-dot.maybe{  background: #e5c558; }
.az-chip-dot.no{     background: #ef5b5b; }

/* ---------------------------------------------------------
   12) BADGE EDAD
   --------------------------------------------------------- */
.az-age{
  position: absolute;
  bottom: -6px;
  right: -6px;
  z-index: 4;
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 2px 6px;
  border-radius: 10px;
  background: #025740;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);

  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  color: #effff6;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   13) RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 640px){
  .az-header{
    flex-direction: column;
    align-items: flex-start;
  }

  .az-stats{
    justify-content: flex-start;
  }

  .az-inner{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .az-right{
    justify-content: flex-start;
  }

  .az-right-row{
    padding-left: 42px;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce){
  .az-card{
    transition: none;
  }
}