/* Features page — loaded only on /features */

.player-compare-lead {
  max-width: 40rem;
  margin: 0 auto 1.35rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.player-compare-wrap {
  margin: 0 auto;
  max-width: 48rem;
  border: 1px solid var(--color-border-primary);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-secondary);
  text-align: left;
}

#main .player-compare {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.player-compare-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#main .player-compare th,
#main .player-compare td {
  padding: 0.9rem 1.1rem;
  border: none;
  border-bottom: 1px solid var(--color-border-secondary);
  vertical-align: middle;
}

#main .player-compare thead {
  border-bottom: none;
}

#main .player-compare thead th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.04);
  text-align: left;
}

#main .player-compare thead th:nth-child(2),
#main .player-compare thead th:nth-child(3) {
  text-align: center;
  width: 28%;
}

#main .player-compare thead th:nth-child(2) {
  color: #169c46;
}

#main .player-compare thead th:nth-child(3) {
  color: #c45c12;
}

#main .player-compare tbody tr,
#main table.player-compare tbody tr:nth-child(2n + 1) {
  border: none;
  background: transparent;
}

#main .player-compare tbody th {
  font-size: 1em;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.35;
  text-align: left;
}

#main .player-compare tbody td {
  text-align: center;
}

#main .player-compare tbody tr:last-child th,
#main .player-compare tbody tr:last-child td {
  border-bottom: none;
}

.player-compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 1.5rem;
  line-height: 1;
}

.player-compare-mark--yes {
  color: #22c55e;
  font-size: 1.45rem;
}

.player-compare-mark--no {
  color: #ef4444;
  opacity: 0.55;
  font-size: 1.2rem;
}

.player-compare-note {
  display: inline-block;
  max-width: 16rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-align: center;
}

.player-compare-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.player-compare-foot {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.dark #main .player-compare thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
}

body.dark #main .player-compare thead th:nth-child(2) {
  color: #1ed760;
}

body.dark #main .player-compare thead th:nth-child(3) {
  color: #fb923c;
}

body.dark #main .player-compare tbody th {
  color: var(--color-text-primary);
}

@media screen and (max-width: 736px) {
  #main .player-compare thead {
    display: none;
  }

  #main .player-compare,
  #main .player-compare tbody,
  #main .player-compare tr,
  #main .player-compare th,
  #main .player-compare td {
    display: block;
    width: 100%;
  }

  #main .player-compare tr {
    padding: 0.85rem 0.35rem 0.35rem;
    border-bottom: 1px solid var(--color-border-secondary);
  }

  #main .player-compare tbody tr:last-child {
    border-bottom: none;
  }

  #main .player-compare th,
  #main .player-compare td {
    padding: 0.35rem 1rem;
    border-bottom: none;
    text-align: left;
  }

  #main .player-compare tbody th {
    padding-bottom: 0.55rem;
    font-size: 1rem;
  }

  #main .player-compare td {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }

  #main .player-compare td::before {
    content: attr(data-label);
    flex: 0 0 5.5rem;
    padding-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .player-compare-note {
    max-width: none;
    text-align: left;
  }
}
