/**
 * RevScore Rankings hub — grid + list layouts, primary/secondary filters, results.
 * Card tier accents align with revscore-ui.css / rankings podium tier bar.
 */
:root {
  --bg: #0a0c0f;
  --surface: #12161c;
  --surface-elevated: #181e27;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #f0f3f7;
  --muted: #8b96a8;
  --accent: #6eb0ff;
  --radius: 18px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.3), 0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.rankings-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(ellipse 140% 70% at 50% -25%, #142032 0%, var(--bg) 50%), var(--bg);
}

.rankings-page * {
  box-sizing: border-box;
}

.rankings-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.rankings-nav {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.rankings-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 550;
}

.rankings-nav a:hover {
  text-decoration: underline;
}

.rankings-hero {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 38rem;
}

.rankings-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rankings-hero p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(180, 192, 210, 0.92);
}

.rankings-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.rankings-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.rankings-toolbar-label {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 162, 182, 0.85);
  margin: 0;
}

.rankings-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rankings-seg-btn {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 190, 208, 0.85);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.rankings-seg-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.rankings-seg-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rankings-seg-btn.is-active {
  color: #eaf1ff;
  background: linear-gradient(165deg, rgba(55, 78, 118, 0.55) 0%, rgba(28, 38, 58, 0.85) 100%);
  box-shadow: 0 0 0 1px rgba(110, 176, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rankings-year-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.rankings-year-wrap label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 172, 192, 0.9);
}

.rankings-year-wrap select {
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 20, 0.92);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(180, 190, 208, 0.8) 50%),
    linear-gradient(135deg, rgba(180, 190, 208, 0.8) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.rankings-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 15, 20, 0.45);
}

@media (max-width: 720px) {
  .rankings-filters {
    grid-template-columns: 1fr;
  }
}

.rankings-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.rankings-filter-field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 162, 182, 0.88);
}

.rankings-filter-field select {
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--text);
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 28, 0.95);
  cursor: pointer;
  width: 100%;
}

.rankings-layout-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.rankings-count {
  font-size: 0.82rem;
  color: rgba(160, 174, 194, 0.92);
}

.rankings-layout-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.4);
}

.rankings-layout-btn {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 650;
  color: rgba(170, 182, 200, 0.9);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.rankings-layout-btn.is-active {
  color: #eaf1ff;
  background: rgba(110, 176, 255, 0.18);
}

.rankings-layout-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.rankings-status {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.75rem;
}

.rankings-status.error {
  color: #ff8a8a;
}

.rankings-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(139, 150, 168, 0.95);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto;
}

.rankings-empty a {
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
}

.rankings-empty a:hover {
  text-decoration: underline;
}

/* —— Grouped sections —— */
.rankings-group {
  margin-bottom: 2rem;
}

.rankings-group-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(230, 236, 246, 0.96);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* —— Grid (cards) —— */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  width: 100%;
  margin: 0;
}

@media (max-width: 980px) {
  .rankings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rankings-grid {
    grid-template-columns: 1fr;
  }
}

.rankings-grid a.card {
  text-decoration: none;
  color: inherit;
  outline: none;
  width: 100%;
}

.rankings-grid a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.rankings-grid .card {
  background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
  position: relative;
}

.rankings-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.rankings-grid .card:hover .card-media img {
  transform: scale(1.05);
}

.rankings-card-rank {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(18, 14, 10, 0.95);
  background: linear-gradient(180deg, rgba(255, 230, 190, 0.98) 0%, rgba(214, 162, 92, 0.99) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.rankings-grid .card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
}

.rankings-grid .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 15, 0.85) 100%);
  pointer-events: none;
}

.rankings-grid .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rankings-grid .card-pp-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 650;
  padding: 0.26rem 0.48rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(168, 178, 196, 0.9);
  background: rgba(10, 12, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
}

.rankings-grid .card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  max-width: min(58%, calc(100% - 5.25rem));
  text-align: right;
}

.rankings-grid .card-body {
  padding: 0.65rem 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  flex: 1;
}

.rankings-grid .model {
  margin: 0.18rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}

.rankings-grid .badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 650;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rankings-grid .badge--legend {
  background: rgba(232, 137, 58, 0.18);
  color: #ffd4a8;
  border-color: rgba(232, 137, 58, 0.4);
}

.rankings-grid .badge--brand {
  background: rgba(154, 163, 184, 0.14);
  color: #d8dce6;
  border-color: rgba(154, 163, 184, 0.38);
}

.rankings-grid .badge--german {
  background: rgba(212, 168, 74, 0.18);
  color: #f0dfa0;
  border-color: rgba(212, 168, 74, 0.42);
}

.rankings-grid .badge--jdm {
  background: rgba(255, 92, 92, 0.16);
  color: #ffb4b4;
  border-color: rgba(255, 100, 100, 0.35);
}

.rankings-grid .badge--suv {
  background: rgba(134, 168, 140, 0.16);
  color: #d4ead8;
  border-color: rgba(134, 168, 140, 0.38);
}

.rankings-grid .badge--offroad {
  background: rgba(196, 165, 116, 0.18);
  color: #f0e4c8;
  border-color: rgba(196, 165, 116, 0.4);
}

.rankings-grid .tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 650;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rankings-grid .tag-supercar {
  background: rgba(37, 99, 235, 0.2);
  color: #b8d4ff;
  border-color: rgba(59, 130, 246, 0.45);
}

.rankings-grid .tag-hypercar {
  background: rgba(96, 165, 250, 0.2);
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.45);
}

.rankings-grid .tag-electric {
  background: rgba(45, 212, 191, 0.16);
  color: #b6fff4;
  border-color: rgba(45, 212, 191, 0.4);
}

.rankings-grid .card-rating-year-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.rankings-grid .card-year {
  font-size: 0.78rem;
  color: rgba(180, 192, 210, 0.88);
  flex-shrink: 0;
}

/* Tier borders on cards */
.rankings-grid .card.revscore-tier--platinum {
  border-color: rgba(200, 230, 255, 0.14);
}
.rankings-grid .card.revscore-tier--gold {
  border-color: rgba(255, 200, 120, 0.14);
}
.rankings-grid .card.revscore-tier--silver {
  border-color: rgba(200, 210, 228, 0.12);
}
.rankings-grid .card.revscore-tier--bronze {
  border-color: rgba(210, 150, 95, 0.14);
}
.rankings-grid .card.revscore-tier--dark-bronze {
  border-color: rgba(140, 100, 72, 0.16);
}

.rankings-card-eur {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: rgba(240, 236, 228, 0.95);
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

/* —— List —— */
.rankings-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rankings-list-row {
  display: grid;
  grid-template-columns: 2.25rem 4.5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--surface) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.rankings-list-row:hover {
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.rankings-list-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rankings-list-rank {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 214, 160, 0.95);
  text-align: center;
}

.rankings-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #0a0c10;
  display: block;
}

.rankings-list-main {
  min-width: 0;
}

.rankings-list-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(240, 244, 250, 0.98);
}

.rankings-list-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: rgba(150, 164, 186, 0.9);
}

.rankings-list-score {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(220, 228, 240, 0.95);
  white-space: nowrap;
}

.rankings-list-score .card-revscore-line {
  margin: 0;
}

.rankings-featured-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.42rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 176, 255, 0.35);
  background: rgba(110, 176, 255, 0.09);
  color: rgba(208, 226, 250, 0.95);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rankings-featured-row,
.rankings-featured-card {
  border-color: rgba(110, 176, 255, 0.2) !important;
}

.rankings-revscore-meta {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(139, 150, 168, 0.95);
  white-space: normal;
}

.rankings-low-data-pill {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 190, 140, 0.95);
  border: 1px solid rgba(200, 170, 120, 0.35);
  border-radius: 4px;
  padding: 0.08rem 0.38rem;
  vertical-align: middle;
}

@media (max-width: 520px) {
  .rankings-list-row {
    grid-template-columns: 2rem 3.75rem 1fr;
    grid-template-rows: auto auto;
  }
  .rankings-list-score {
    grid-column: 2 / -1;
    justify-self: end;
  }
}

/* —— Unified rankings hub (full-width filter bar + piston row) —— */
.rankings-hub .rankings-hero--minimal {
  margin-bottom: 1.75rem;
}

.rankings-hub .rankings-hero--minimal h1 {
  margin: 0;
}

/* Single full-width card: line 1 = filters, line 2 = piston tiers */
.rankings-hub-filter-card {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(20, 26, 34, 0.94) 0%, rgba(10, 12, 17, 0.82) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.rankings-hub-filter-card__line--filters {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  align-items: center;
  align-content: center;
  padding: 0.65rem 0.85rem 0.6rem;
  box-sizing: border-box;
  min-height: 2.5rem;
}

.rankings-hub-filter-card__line--tiers {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.4rem 0.75rem 0.55rem;
  box-sizing: border-box;
}

.rankings-hub-filter-card .coolwall-tier-bar {
  margin: 0;
  padding: 0.12rem 0;
  width: 100%;
}

.rankings-filter-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

/* Keeps segment + expanding control on one row; stable height across columns */
.rankings-filter-slot__inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 2.35rem;
}

.rankings-filter-slot--time {
  justify-content: flex-start;
}

.rankings-filter-slot--price {
  justify-content: flex-start;
}

.rankings-filter-slot--dropdown {
  min-width: 0;
}

.rankings-filter-slot--dropdown .rankings-hub-filter-trigger {
  width: 100%;
  max-width: none;
  min-width: 0;
}

@media (max-width: 960px) {
  .rankings-hub-filter-card__line--filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rankings-filter-slot--time,
  .rankings-filter-slot--price {
    grid-column: span 1;
  }

  .rankings-filter-slot--dropdown {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .rankings-hub-filter-card__line--filters {
    grid-template-columns: 1fr;
  }

  .rankings-filter-slot--time,
  .rankings-filter-slot--price,
  .rankings-filter-slot--dropdown {
    grid-column: span 1;
  }
}

.rankings-seg--compact .rankings-seg-btn {
  padding: 0.38rem 0.65rem;
  font-size: 0.68rem;
}

.rankings-year-inline {
  display: flex;
  align-items: center;
  gap: 0;
}

/**
 * Inline expand/collapse for year + price (JS toggles .rankings-expand-inline--expanded).
 * Uses max-width + opacity instead of [hidden] so the grid row height stays even and motion is smooth.
 */
.rankings-expand-inline {
  flex: 0 1 auto;
  align-self: center;
  min-width: 0;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition:
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    margin 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
}

.rankings-expand-inline--expanded {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  margin-left: 0.4rem;
  transition:
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease 0.05s,
    visibility 0s,
    margin 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rankings-year-inline.rankings-expand-inline--expanded {
  max-width: 8rem;
}

.rankings-expand-inline--range.rankings-expand-inline--expanded {
  max-width: 15.75rem;
}

@media (max-width: 640px) {
  .rankings-filter-slot--time .rankings-filter-slot__inline,
  .rankings-filter-slot--price .rankings-filter-slot__inline {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.45rem;
  }

  .rankings-filter-slot--price .rankings-expand-inline--range.rankings-expand-inline--expanded {
    margin-left: 0;
  }

  .rankings-expand-inline--range.rankings-expand-inline--expanded {
    max-width: 100%;
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .rankings-year-inline.rankings-expand-inline--expanded {
    max-width: 100%;
    margin-left: 0;
  }

  .rankings-hub-select-native {
    max-width: none;
    width: 100%;
    min-width: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rankings-expand-inline {
    transition: none;
  }

  .rankings-expand-inline--expanded {
    transition: none;
  }
}

.rankings-hub-select-native {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.32rem 1.75rem 0.32rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 20, 0.92);
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(180, 190, 208, 0.8) 50%),
    linear-gradient(135deg, rgba(180, 190, 208, 0.8) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  max-width: 7.5rem;
}

.rankings-hub-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rankings-hub-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rankings-filter-dropdown {
  position: relative;
  min-width: 0;
}

.rankings-hub-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  min-width: 9.5rem;
  max-width: 14rem;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 650;
  color: rgba(220, 228, 240, 0.95);
  background: rgba(8, 10, 14, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.rankings-hub-filter-trigger:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(14, 18, 24, 0.65);
}

.rankings-hub-filter-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rankings-hub-filter-trigger__text {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rankings-hub-filter-trigger__chev {
  flex-shrink: 0;
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.rankings-filter-dropdown.is-open .rankings-hub-filter-trigger__chev {
  transform: rotate(-180deg);
}

.rankings-filter-dropdown__list {
  position: absolute;
  z-index: 40;
  left: 0;
  top: calc(100% + 5px);
  min-width: 100%;
  max-width: min(18rem, calc(100vw - 2.5rem));
  max-height: min(50vh, 16rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 18, 26, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.rankings-filter-dropdown.is-open .rankings-filter-dropdown__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rankings-filter-dropdown__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 550;
  text-align: left;
  color: rgba(210, 218, 232, 0.95);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rankings-filter-dropdown__option:hover,
.rankings-filter-dropdown__option:focus-visible {
  background: rgba(110, 176, 255, 0.12);
  outline: none;
}

.rankings-filter-dropdown__option[aria-selected="true"] {
  background: rgba(110, 176, 255, 0.16);
  color: #f0f6ff;
}

.rankings-price-range-inline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.rankings-price-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  flex: 0 0 auto;
}

.rankings-price-range-inline input[type="number"] {
  box-sizing: border-box;
  width: 6.25rem;
  min-width: 0;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.34rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 20, 0.92);
}

.rankings-price-range-inline input[type="number"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.rankings-hub .rankings-hub-section--tiers {
  margin: 0;
}

.rankings-hub .rankings-hub-section--podium {
  padding-top: 1.25rem;
  margin-bottom: 0;
}

.rankings-hub .rankings-hub-divider {
  border: none;
  height: 1px;
  margin: 1.75rem auto 1.5rem;
  max-width: 1120px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.09) 20%,
    rgba(255, 255, 255, 0.09) 80%,
    transparent 100%
  );
}

.rankings-hub .rankings-hub-divider[hidden] {
  display: none !important;
}

.rankings-hub .rankings-results {
  margin-top: 0;
}

.rankings-hub .rankings-layout-bar.rankings-hub-section--toolbar {
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-bottom: 0.45rem;
}

.rankings-hub .rankings-status {
  min-height: 0;
  margin-bottom: 0.35rem;
}

.rankings-hub .rankings-status:empty {
  display: none;
  margin: 0;
}

.rankings-hub .rankings-list {
  gap: 0.55rem;
}

.rankings-hub .rankings-list-row {
  grid-template-columns: 2.5rem 5.25rem minmax(0, 1fr) minmax(5.5rem, auto);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
}

.rankings-hub .rankings-list-main {
  padding-right: 0.35rem;
}

.rankings-hub .rankings-list-score {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.rankings-hub .rankings-list-score .card-revscore-line {
  justify-content: flex-end;
}

.rankings-hub .rankings-list-rest-empty {
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(139, 150, 168, 0.95);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 20, 0.35);
}

@media (max-width: 520px) {
  .rankings-hub-filter-card__line--filters {
    padding: 0.55rem 0.65rem 0.5rem;
    gap: 0.5rem 0.65rem;
  }

  .rankings-hub-filter-card__line--tiers {
    padding: 0.35rem 0.55rem 0.5rem;
  }

  .rankings-hub-filter-trigger {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .rankings-hub .rankings-list-row {
    grid-template-columns: 2rem 4rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.65rem;
    padding: 0.55rem 0.75rem;
  }

  .rankings-hub .rankings-list-rank {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .rankings-hub .rankings-list-thumb {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .rankings-hub .rankings-list-main {
    grid-column: 3;
    grid-row: 1;
  }

  .rankings-hub .rankings-list-score {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

.trending-now {
  margin: 0 0 1.25rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.6);
}

.trending-now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.trending-now-head h2 {
  margin: 0;
  font-size: 1rem;
}

.trending-now-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.trending-now-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.45);
}

.trending-now-rank {
  min-width: 2.2rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd79f;
}

.trending-now-name {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
}

.trending-now-meta {
  margin: 0.12rem 0 0;
  font-size: 0.73rem;
  color: rgba(175, 186, 204, 0.92);
}

.trending-now-empty {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(175, 186, 204, 0.9);
}

@media (max-width: 760px) {
  .trending-now-items {
    grid-template-columns: 1fr;
  }
}
