
.main-content { flex: 1; }
.rankings-wrap {
  max-width: 1300px; margin: 0 auto; padding: 0 32px 64px; box-sizing: border-box;
}
.rankings-hero { padding: 28px 0 20px; border-bottom: 1px solid var(--border); }
.rankings-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.rankings-hero h1 {
  font-size: clamp(1.4rem,3.5vw,2rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px;
}
.rankings-hero p { color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 520px; margin: 0; }
.rankings-controls {
  position: sticky; top: 58px; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--border); padding: 10px 32px; margin: 0 -32px; box-sizing: border-box;
}
.rankings-search { position: relative; display: flex; gap: 8px; max-width: 440px; margin-bottom: 10px; }
.rankings-search input {
  flex: 1; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .88rem; background: var(--surface); color: var(--text);
  outline: none; transition: border-color .15s; font-family: var(--sans);
}
.rankings-search input:focus { border-color: var(--blue); }
.search-btn {
  padding: 8px 16px; background: var(--blue); color: #fff; border: none;
  border-radius: 8px; font-size: .88rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; font-family: var(--sans); transition: opacity .15s;
}
.search-btn:hover { opacity: .88; }
.search-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 56px;
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; overflow: hidden;
}
.sug-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  cursor: pointer; font-size: .85rem; border-bottom: 1px solid var(--border); transition: background .1s;
}
.sug-item:last-child { border-bottom: none; }
.sug-item:hover { background: var(--surface); }
.sug-rank { color: var(--muted2); font-size: .75rem; min-width: 30px; }
.sug-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.sug-name { font-weight: 600; flex: 1; }
.sug-div  { color: var(--muted); font-size: .78rem; }
.rankings-callout {
  display: none; padding: 10px 14px; background: var(--blue-lt);
  border: 1px solid var(--blue-mid); border-radius: 8px;
  font-size: .87rem; line-height: 1.5; margin-bottom: 10px; max-width: 560px;
}
.rankings-callout.visible { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rankings-callout strong { color: var(--blue); }
.callout-share {
  margin-left: auto; padding: 4px 10px; font-size: .78rem; font-weight: 700;
  background: var(--blue); color: #fff; border: none; border-radius: 6px;
  cursor: pointer; font-family: var(--sans); white-space: nowrap;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-tab {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px;
  font-size: .78rem; font-weight: 600; background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all .15s; white-space: nowrap; font-family: var(--sans);
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.rankings-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid var(--border); margin-top: 14px;
}
.rankings-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.rankings-table thead th {
  padding: 10px 12px; text-align: left; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  background: var(--surface2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.rankings-table th.col-team, .rankings-table td.col-team {
  position: sticky; left: 0; z-index: 2; background: inherit;
}
.rankings-table thead th.col-team { background: var(--surface2); z-index: 3; }
.rankings-table tbody tr {
  border-bottom: 1px solid var(--border); background: var(--bg); transition: background .12s;
}
.rankings-table tbody tr:last-child { border-bottom: none; }
.rankings-table tbody tr:hover { background: var(--surface); }
.rankings-table tbody tr.hl { background: var(--blue-lt) !important; box-shadow: inset 3px 0 0 var(--blue); }
.rankings-table td { padding: 9px 12px; vertical-align: middle; white-space: nowrap; }
.col-rank { min-width: 44px; font-weight: 700; color: var(--muted); }
.col-move { min-width: 50px; font-size: .8rem; font-weight: 700; }
.col-move .up { color: var(--green); }
.col-move .dn { color: var(--red); }
.col-move .eq { color: var(--muted2); }
.col-move .new-tag { color: var(--muted2); font-size: .7rem; }
.team-name, .league-link { color: inherit; text-decoration: none; }
.team-name:hover, .league-link:hover { color: var(--blue); text-decoration: underline; }
.col-team { min-width: 170px; }
.team-cell { display: flex; align-items: center; gap: 8px; }
.team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.team-logo-ph { width: 22px; height: 22px; flex-shrink: 0; }
.team-name { font-weight: 600; color: var(--text); }
.col-league { min-width: 160px; }
.flag-wrap { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.col-played { color: var(--muted2); text-align: right; min-width: 52px; }
.mobile-label { display: none; }
.col-metric { font-weight: 700; text-align: right; min-width: 80px; }
.col-metric.top3 { color: var(--green); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-weight: 700; font-size: .78rem;
}
.rank-1 { background: #FFD700; color: #6B5000; }
.rank-2 { background: #C0C0C0; color: #3A3A3A; }
.rank-3 { background: #CD7F32; color: #fff; }
.table-status { text-align: center; padding: 40px 24px; color: var(--muted); font-size: .9rem; }
.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: 16px; margin: 24px 0 8px;
}
.hub-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; display: block;
}
.hub-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(37,99,235,.1); text-decoration: none; }
.hub-card-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: 5px; }
.hub-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.hub-card-desc { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.hub-card-preview { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.hub-preview-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .82rem; }
.hub-preview-rank { font-weight: 700; color: var(--muted2); min-width: 20px; }
.hub-preview-logo { width: 16px; height: 16px; object-fit: contain; }
.hub-preview-team { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-preview-metric { font-weight: 700; color: var(--text); }
@media (max-width: 768px) {
  .rankings-wrap { padding: 0 16px 48px; }
  .rankings-controls { padding: 10px 16px; margin: 0 -16px; }
  .hide-mobile { display: none !important; }
  .mobile-label { display: inline !important; }
  .desktop-label { display: none !important; }
  .rankings-table { font-size: .82rem; }
  .rankings-table td, .rankings-table thead th { padding: 8px 9px; }
  .col-team { min-width: 140px; }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .filter-tab { font-size: .74rem; padding: 5px 10px; }
}
