/* LAIREN Perfil público V7 — enlaces a decklists rivales y filas completas.
 * Solo afecta al perfil de jugador, no al ranking general.
 */
.player-detail-page .player-match-history-table th:nth-child(1){width:11%}
.player-detail-page .player-match-history-table th:nth-child(2){width:25%}
.player-detail-page .player-match-history-table th:nth-child(3){width:11%}
.player-detail-page .player-match-history-table th:nth-child(4){width:20%}
.player-detail-page .player-match-history-table th:nth-child(5){width:25%}
.player-detail-page .player-match-history-table th:nth-child(6){width:8%}
.player-detail-page .player-match-history-table td[data-label="ARQUETIPO"]{
  min-width:0;
}
.player-detail-page .player-match-history-table .player-appearance-deck{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.player-detail-page .player-match-history-table .player-appearance-deck>span{
  flex:1 1 auto;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.player-detail-page .player-match-history-table .player-decklist-view{
  flex:0 0 auto;
  padding:4px 7px!important;
  font-size:10px!important;
}

/* Con scroll interno y filas a la misma altura el borde inferior cae
   entre dos filas, jamás atravesando una. La medida exacta se calcula
   únicamente para las pestañas activas y en pantallas de escritorio. */
@media(min-width:1181px){
  .player-detail-page .player-detail-history
  .player-detail-scroll.player-history-row-aligned{
    flex:0 0 auto!important;
    box-sizing:border-box!important;
    height:var(--player-history-visible-height)!important;
    max-height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    scroll-snap-type:y mandatory;
    scroll-padding-top:var(--player-history-table-head-height,31px);
    overscroll-behavior:contain;
  }
  .player-detail-page .player-detail-history
  .player-detail-scroll.player-history-row-aligned tbody tr{
    scroll-snap-align:start;
  }
  .player-detail-page .player-detail-history
  .player-detail-scroll tbody td{
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .player-detail-page .player-detail-history
  .player-detail-scroll tbody tr{
    height:36px!important;
    min-height:36px!important;
  }
}

/* En teléfono se conserva el formato de ficha de cada enfrentamiento. */
@media(max-width:700px){
  .player-detail-page .player-match-history-table td[data-label="ARQUETIPO"]{
    min-width:0;
    width:100%;
  }
  .player-detail-page .player-match-history-table .player-appearance-deck{
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
  }
  .player-detail-page .player-match-history-table .player-appearance-deck>span{
    flex:0 1 auto;
    white-space:normal;
  }
  .player-detail-page .player-match-history-table .player-decklist-view{
    min-height:27px;
  }
}

/* V8: vista ampliada de las cartas del mazo al pasar el cursor o tocar. */
.player-decklist-dialog{isolation:isolate}
.player-decklist-zone li span{
  cursor:zoom-in;
  text-underline-offset:3px;
  text-decoration:underline dotted rgba(87,216,255,.38);
}
.player-decklist-card-preview[hidden]{display:none!important}
.player-decklist-card-preview{
  position:absolute;
  z-index:99;
  width:230px;
  max-width:calc(100% - 20px);
  pointer-events:none;
  border-radius:10px;
  filter:drop-shadow(0 13px 22px rgba(0,0,0,.76));
}
.player-decklist-card-preview img{
  display:block;width:100%;max-height:315px;
  object-fit:contain;background:#040a13;
  border:1px solid #5db8d7;border-radius:10px;
}
.player-decklist-card-preview>span{
  display:block;
  width:100%;margin-top:5px;padding:5px 8px;
  background:#081c2d;border:1px solid #3b6581;border-radius:5px;
  font-size:11px;font-weight:850;color:#eefaff;
  text-align:center;overflow-wrap:anywhere;
}
@media(max-width:700px){
  .player-decklist-card-preview{width:190px}
  .player-decklist-card-preview img{max-height:265px}
  .player-decklist-zone li span{cursor:pointer}
}
