.trcp-ladder-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
}

/* -----------------------------
   HERO
----------------------------- */
.trcp-ladder-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #111;
}

.trcp-ladder-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.78));
}

.trcp-ladder-hero__inner {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: #fff;
}

.trcp-ladder-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.trcp-ladder-subtitle {
  margin-top: 8px;
  opacity: .86;
  max-width: 900px;
}

/* optional meta row under subtitle */
.trcp-ladder-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  opacity: .92;
  font-size: 14px;
}
.trcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

/* -----------------------------
   TABS
----------------------------- */
.trcp-ladder-tabs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.trcp-tab {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .08s ease, background .12s ease, color .12s ease, border-color .12s ease;
}

.trcp-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.16);
}

.trcp-tab.is-active {
  background: #111;
  color: #fff;
  border-color: rgba(0,0,0,.2);
}

.trcp-tab:focus,
.trcp-tab:focus-visible {
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

/* -----------------------------
   CONTENT + CARDS
----------------------------- */
.trcp-ladder-content {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.trcp-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.trcp-muted { opacity: .7; }

.trcp-divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 14px 0;
}

.trcp-quickrules {
  margin: 0;
  padding-left: 18px;
}

.trcp-richtext p { margin: 0 0 10px; }
.trcp-richtext p:last-child { margin-bottom: 0; }

.trcp-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,.06);
}

.trcp-box-error {
  background: #ffe8e8;
  border-color: rgba(255,0,0,.12);
}

/* -----------------------------
   STANDINGS TABLE (frontend)
----------------------------- */
.trcp-standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
}

.trcp-standings-table th,
.trcp-standings-table td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 14px;
}

.trcp-standings-table thead th {
  background: #fafafa;
  font-weight: 700;
}

.trcp-standings-table tbody tr:hover td {
  background: rgba(0,0,0,.02);
}

.trcp-standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.trcp-rank {
  width: 70px;
  white-space: nowrap;
}

.trcp-rating {
  width: 120px;
  white-space: nowrap;
}

/* -----------------------------
   MOBILE TUNING
----------------------------- */
@media (max-width: 640px) {
  .trcp-ladder-title { font-size: 26px; }
  .trcp-ladder-hero__inner { padding: 16px; }
  .trcp-tab { padding: 9px 12px; }
  .trcp-card { padding: 14px; }

  /* make tables scroll nicely */
  .trcp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .trcp-standings-table {
    min-width: 520px;
  }
}

.trcp-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.trcp-standings-table th,
.trcp-standings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: left;
  vertical-align: middle;
}

.trcp-standings-table thead th {
  font-weight: 700;
  opacity: .85;
}

.trcp-flag {
  margin-left: 8px;
  font-size: 16px;
}
.trcp-standings-table a { text-decoration: none; }
.trcp-standings-table a:hover { text-decoration: underline; }
.trcp-flag { margin-left: 8px; }
.trcp-standings-name { text-decoration: none; }
.trcp-standings-name:hover { text-decoration: underline; }
