/**
 * Shared Cool Wall podium + piston tier bar for RevScore Rankings hub.
 * Scoped to .rankings-hub where needed.
 */
.rankings-hub .coolwall-podium-empty-msg {
  margin: 0 auto 1rem;
  max-width: 28rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(139, 150, 168, 0.95);
  line-height: 1.45;
}

.rankings-hub .coolwall-tier-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rankings-hub .coolwall-tier-bar::-webkit-scrollbar {
  height: 4px;
}

.rankings-hub .coolwall-tier-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.rankings-hub .coolwall-tier-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.42rem 0.72rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(190, 200, 218, 0.82);
  background: rgba(14, 17, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

.rankings-hub .coolwall-tier-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 28, 36, 0.85);
}

.rankings-hub .coolwall-tier-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rankings-hub .coolwall-tier-tab.coolwall-tier-tab--all.is-active {
  color: #eaf1ff;
  background: linear-gradient(165deg, rgba(55, 78, 118, 0.55) 0%, rgba(28, 38, 58, 0.85) 100%);
  border-color: rgba(110, 176, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(110, 176, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab.revscore-tier--platinum.is-active {
  color: #f0f7ff;
  border-color: rgba(200, 230, 255, 0.48);
  background: linear-gradient(165deg, rgba(42, 58, 82, 0.82) 0%, rgba(14, 18, 26, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(200, 230, 255, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 40px rgba(200, 230, 255, 0.14);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab.revscore-tier--gold.is-active {
  color: #fff6e8;
  border-color: rgba(255, 200, 120, 0.5);
  background: linear-gradient(165deg, rgba(72, 58, 36, 0.82) 0%, rgba(18, 14, 10, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 200, 120, 0.15),
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(255, 190, 100, 0.12);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab.revscore-tier--silver.is-active {
  color: #f2f4f8;
  border-color: rgba(200, 210, 228, 0.45);
  background: linear-gradient(165deg, rgba(48, 52, 62, 0.82) 0%, rgba(16, 17, 22, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(200, 210, 228, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(210, 220, 235, 0.1);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab.revscore-tier--bronze.is-active {
  color: #fff0e6;
  border-color: rgba(210, 150, 95, 0.48);
  background: linear-gradient(165deg, rgba(62, 48, 34, 0.82) 0%, rgba(20, 14, 10, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(210, 150, 95, 0.16),
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(205, 150, 95, 0.12);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab.revscore-tier--dark-bronze.is-active {
  color: #f2e8e0;
  border-color: rgba(150, 110, 78, 0.48);
  background: linear-gradient(165deg, rgba(48, 38, 30, 0.85) 0%, rgba(14, 11, 9, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(140, 100, 72, 0.18),
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(120, 85, 55, 0.14);
  transform: translateY(-1px);
}

.rankings-hub .coolwall-tier-tab-piston {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.rankings-hub .coolwall-tier-tab .coolwall-tier-tab-piston .card-revscore-piston-img {
  width: 14px;
  height: 14px;
}

.rankings-hub .coolwall-podium {
  margin: 0 auto;
  max-width: 56rem;
}

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

.rankings-hub .coolwall-podium-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 56rem;
}

.rankings-hub .coolwall-podium-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
  max-width: 13rem;
}

/* Step podium: #1 center tallest; #2 / #3 shorter, same baseline (flex-end) */
.rankings-hub .coolwall-podium-slot--r1 {
  flex: 1.18 1 0;
  max-width: 14rem;
  z-index: 3;
}

.rankings-hub .coolwall-podium-slot--r2 {
  flex: 0.95 1 0;
  max-width: 11.5rem;
  z-index: 1;
}

.rankings-hub .coolwall-podium-slot--r3 {
  flex: 0.92 1 0;
  max-width: 11.25rem;
  z-index: 1;
}

.rankings-hub .coolwall-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(22, 28, 38, 0.96) 0%, rgba(12, 15, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.2s ease;
}

.rankings-hub .coolwall-podium-slot--r1 .coolwall-podium-card {
  min-height: 14rem;
  box-shadow:
    var(--shadow),
    0 18px 48px rgba(0, 0, 0, 0.4);
}

.rankings-hub .coolwall-podium-slot--r2 .coolwall-podium-card,
.rankings-hub .coolwall-podium-slot--r3 .coolwall-podium-card {
  min-height: 10.75rem;
}

.rankings-hub .coolwall-podium-card.revscore-tier--platinum {
  border-color: rgba(200, 230, 255, 0.22);
}

.rankings-hub .coolwall-podium-card.revscore-tier--gold {
  border-color: rgba(255, 200, 120, 0.22);
}

.rankings-hub .coolwall-podium-card.revscore-tier--silver {
  border-color: rgba(200, 210, 228, 0.2);
}

.rankings-hub .coolwall-podium-card.revscore-tier--bronze {
  border-color: rgba(210, 150, 95, 0.24);
}

.rankings-hub .coolwall-podium-card.revscore-tier--dark-bronze {
  border-color: rgba(140, 100, 72, 0.26);
}

.rankings-hub .coolwall-podium-rank-wrap {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

.rankings-hub .coolwall-podium-rank {
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: rgba(245, 248, 255, 0.95);
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.rankings-hub .coolwall-podium-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.rankings-hub .coolwall-podium-media .car-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rankings-hub .coolwall-podium-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0.5rem 4rem 0.65rem 0.65rem;
  text-align: left;
}

.rankings-hub .coolwall-podium-body-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: left;
}

.rankings-hub .coolwall-podium-body .card-revscore-line {
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.rankings-hub .coolwall-podium-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text);
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rankings-hub .coolwall-podium-votes {
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(139, 150, 168, 0.95);
  text-align: left;
}

.rankings-hub .coolwall-podium-rank-badge {
  position: absolute;
  bottom: 0.55rem;
  right: 0.5rem;
  width: clamp(44px, 12vw, 56px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rankings-hub .coolwall-podium-row--single {
  max-width: 22rem;
}

.rankings-hub .coolwall-podium-row--single .coolwall-podium-slot {
  max-width: none;
}

.rankings-hub .coolwall-podium-row--pair {
  max-width: 44rem;
}

.rankings-hub .coolwall-hub .card-revscore-line.revscore-tier--platinum .card-revscore-text,
.rankings-hub .coolwall-podium-body .card-revscore-line.revscore-tier--platinum .card-revscore-text {
  color: rgba(220, 235, 255, 0.98);
}

.rankings-hub .coolwall-hub .card-revscore-line.revscore-tier--gold .card-revscore-text,
.rankings-hub .coolwall-podium-body .card-revscore-line.revscore-tier--gold .card-revscore-text {
  color: rgba(255, 228, 190, 0.98);
}

.rankings-hub .coolwall-hub .card-revscore-line.revscore-tier--silver .card-revscore-text,
.rankings-hub .coolwall-podium-body .card-revscore-line.revscore-tier--silver .card-revscore-text {
  color: rgba(220, 226, 238, 0.98);
}

.rankings-hub .coolwall-hub .card-revscore-line.revscore-tier--bronze .card-revscore-text,
.rankings-hub .coolwall-podium-body .card-revscore-line.revscore-tier--bronze .card-revscore-text {
  color: rgba(255, 220, 195, 0.96);
}

.rankings-hub .coolwall-hub .card-revscore-line.revscore-tier--dark-bronze .card-revscore-text,
.rankings-hub .coolwall-podium-body .card-revscore-line.revscore-tier--dark-bronze .card-revscore-text {
  color: rgba(230, 205, 185, 0.96);
}

@media (max-width: 720px) {
  .rankings-hub .coolwall-podium-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 22rem;
  }

  .rankings-hub .coolwall-podium-slot,
  .rankings-hub .coolwall-podium-slot--r1,
  .rankings-hub .coolwall-podium-slot--r2,
  .rankings-hub .coolwall-podium-slot--r3 {
    transform: none !important;
    max-width: none;
  }

  .rankings-hub .coolwall-podium-slot--r1 .coolwall-podium-card,
  .rankings-hub .coolwall-podium-slot--r2 .coolwall-podium-card,
  .rankings-hub .coolwall-podium-slot--r3 .coolwall-podium-card {
    min-height: 0;
  }

  .rankings-hub .coolwall-podium-slot--mobile-order-1 {
    order: 1;
  }
  .rankings-hub .coolwall-podium-slot--mobile-order-2 {
    order: 2;
  }
  .rankings-hub .coolwall-podium-slot--mobile-order-3 {
    order: 3;
  }
}
