/* Top Forumposter User – Night */

table:has(> tbody > tr > td.body_mc .tfp) {
  width: 100%;
  table-layout: fixed;
}

.tfp,
.tfp * {
  box-sizing: border-box;
}

.tfp {
  width: 100%;
  max-width: min(920px, 100%);
  min-width: 0;
  margin: 0 auto 8px;
  text-align: left;
  color: var(--text);
}

.tfp-head {
  margin: 0 0 16px;
}

.tfp-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tfp-head h1,
.body_mc .tfp-head h1 {
  margin: 0 0 8px;
  text-align: left;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.tfp-lead {
  margin: 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tfp-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 14px;
}

.tfp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tfp-table th,
.tfp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(44, 53, 68, 0.7);
  vertical-align: middle;
  text-align: left;
}

.tfp-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tfp-table tr:last-child td {
  border-bottom: 0;
}

.tfp-table tbody tr:hover td {
  background: rgba(62, 207, 255, 0.04);
}

.tfp-table a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.tfp-table a:hover {
  color: var(--accent);
}

.tfp-col-rank {
  width: 4.5rem;
  text-align: center !important;
}

.tfp-col-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.tfp-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: rgba(62, 207, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tfp-table tbody tr:nth-child(1) .tfp-place {
  background: rgba(212, 175, 55, 0.18);
  color: #e6c35c;
}

.tfp-table tbody tr:nth-child(2) .tfp-place {
  background: rgba(180, 190, 205, 0.16);
  color: #c5ced9;
}

.tfp-table tbody tr:nth-child(3) .tfp-place {
  background: rgba(184, 115, 51, 0.18);
  color: #d4a06a;
}

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

.tfp-medal {
  flex: 0 0 auto;
  border: 0;
}

.tfp-rank {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tfp-rank-name {
  font-size: 0.95rem;
  font-weight: 650;
}

.tfp-rank-bar {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

@media (max-width: 640px) {
  .tfp-table th,
  .tfp-table td {
    padding: 10px 12px;
  }
}
