/* ============================================
   CONTENT — Pilotes, Livrées, Sons, TV Guide, Champions, Calendrier, Comparateur, Stats
============================================ */
/* ══════════════════════════════════════════
   DRIVERS
══════════════════════════════════════════ */
#drivers {
  background: var(--blk);
}
.driver-comp-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}
.drv-picker label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.drv-picker select {
  width: 100%;
  background-color: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--wht);
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23E8001D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.drv-picker select:hover {
  border-color: rgba(232, 0, 29, 0.3);
}
.drv-vs {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-bottom: 0.6rem;
}
.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
#radarChart {
  max-width: 100%;
}
.driver-stats-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
}
.drv-col {
  background: var(--blk);
}
.drv-col-head {
  position: relative;
  padding: 0 0 1.3rem;
  background: var(--dk);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
}
.drv-photo-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.drv-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s;
}
.drv-photo-wrap:hover .drv-photo {
  transform: scale(1.03);
}
.drv-photo-wrap.drv-photo-err,
.drv-avatar {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.drv-photo-wrap.drv-photo-err::after {
  content: attr(data-initials);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.25);
}
.drv-col-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  padding: 0 1.8rem;
}
.drv-col-nat {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.25rem;
  padding: 0 1.8rem;
}
.fav-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  padding: 0;
}
.fav-btn:hover {
  background: rgba(232,0,29,.12);
  border-color: rgba(232,0,29,.35);
}
.fav-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255,255,255,.4);
  stroke-width: 1.8;
  transition: stroke .15s, fill .15s;
}
.fav-btn.active svg {
  fill: #e8001d;
  stroke: #e8001d;
}
.fav-btn:hover svg {
  stroke: #e8001d;
}
.drv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.drv-row-lbl {
  padding: 0.9rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.015);
}
.drv-row-val {
  padding: 0.9rem 1.3rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}
.drv-row-val.best {
  color: var(--grn);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   LIVERIES
══════════════════════════════════════════ */
#liveries {
  background: var(--dk);
}
.liv-filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.liv-f-btn {
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "DM Sans", sans-serif;
}
.liv-f-btn:hover {
  border-color: rgba(232, 0, 29, 0.3);
  color: var(--wht);
}
.liv-f-btn.active {
  border-color: var(--red);
  color: var(--red);
}
.liveries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.liv-card {
  background: var(--dk2);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s;
  position: relative;
}
.liv-card:hover {
  border-color: rgba(232, 0, 29, 0.2);
}
.liv-card.hidden {
  display: none;
}
.liv-era {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.liv-team {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.liv-yr {
  font-size: 0.7rem;
  color: var(--gray);
}

/* ══════════════════════════════════════════
   SOUNDS
══════════════════════════════════════════ */
#sounds {
  background: var(--blk);
}
.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sound-card {
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.sound-card:hover,
.sound-card.playing {
  border-color: var(--red);
  background: rgba(232, 0, 29, 0.04);
}
.sound-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.sound-card.playing::before,
.sound-card:hover::before {
  transform: scaleX(1);
}
.sound-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.7rem;
}
.sound-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.sound-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 25px;
  margin-bottom: 0.8rem;
}
.sound-bar {
  width: 3px;
  background: var(--red);
  opacity: 0.4;
  border-radius: 1px;
}
.sound-card.playing .sound-bar {
  animation: wave-bounce 0.6s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes wave-bounce {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
.sound-specs {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.sound-play-btn {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.2s;
}

/* ══════════════════════════════════════════
   TV GUIDE
══════════════════════════════════════════ */
#tvguide {
  background: var(--dk);
}
.tv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
}
.tv-card {
  background: var(--blk);
  padding: 1.8rem 1.5rem;
}
.tv-disc {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tv-channels {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tv-chan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.tv-chan-name {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}
.tv-chan-type {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}
.tv-chan-type.free {
  background: rgba(0, 200, 100, 0.1);
  color: #00c864;
  border: 1px solid rgba(0, 200, 100, 0.2);
}
.tv-chan-type.pay {
  background: rgba(232, 0, 29, 0.08);
  color: var(--red);
  border: 1px solid rgba(232, 0, 29, 0.2);
}
.tv-chan-type.stream {
  background: rgba(68, 136, 255, 0.08);
  color: #6699ff;
  border: 1px solid rgba(68, 136, 255, 0.2);
}
.tv-price {
  font-size: 0.68rem;
  color: var(--gray);
  margin-top: 0.5rem;
  text-align: right;
}

/* ══════════════════════════════════════════
   CHAMPIONS TREE
══════════════════════════════════════════ */
#champstree {
  background: var(--blk);
}
.tree-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tree-ctrl-btn {
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "DM Sans", sans-serif;
}
.tree-ctrl-btn:hover {
  color: var(--wht);
  border-color: rgba(255, 255, 255, 0.2);
}
.tree-ctrl-btn.active {
  border-color: var(--red);
  color: var(--red);
}
.tree-canvas-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
#treeCanvas {
  display: block;
}
.tree-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.tree-leg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.tree-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ══════════════════════════════════════════
   CALENDAR
══════════════════════════════════════════ */
#calendar {
  background: var(--dk);
}
.cal-filter-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cal-f-btn {
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  font-family: "DM Sans", sans-serif;
}
.cal-f-btn:hover {
  border-color: rgba(232, 0, 29, 0.3);
  color: var(--wht);
}
.cal-f-btn.active {
  border-color: var(--red);
  color: var(--red);
}
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
.cal-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cal-month-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  padding: 0.5rem 0;
  margin-top: 1rem;
}
.cal-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1.2rem;
  transition: border-color 0.2s;
  cursor: default;
}
.cal-event:hover {
  border-color: rgba(232, 0, 29, 0.2);
}
.cal-event.pinned {
  border-left: 2px solid var(--gold);
}
.cal-date {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gray);
  min-width: 55px;
}
.cal-event-body{flex:1;min-width:0}
.cal-event-name {
  font-size: 0.84rem;
  font-weight: 500;
}
.cal-event-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.15rem;
}
.cal-event-actions{display:flex;align-items:center;gap:.6rem}
.cal-disc-badge {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: 600;
}
.cal-disc-badge.f1 {
  background: rgba(232, 0, 29, 0.12);
  color: var(--red);
  border: 1px solid rgba(232, 0, 29, 0.2);
}
.cal-disc-badge.wec {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.cal-disc-badge.wrc {
  background: rgba(0, 180, 90, 0.1);
  color: #00c864;
  border: 1px solid rgba(0, 180, 90, 0.2);
}
.cal-disc-badge.nascar,
.cal-disc-badge.indycar {
  background: rgba(68, 136, 255, 0.1);
  color: #6699ff;
  border: 1px solid rgba(68, 136, 255, 0.2);
}
.cal-disc-badge.motogp {
  background: rgba(255, 120, 0, 0.1);
  color: #ff7800;
  border: 1px solid rgba(255, 120, 0, 0.2);
}
.cal-disc-badge.fe {
  background: rgba(0, 200, 255, 0.1);
  color: #00c8ff;
  border: 1px solid rgba(0, 200, 255, 0.2);
}
.cal-disc-badge.dtm {
  background: rgba(180, 180, 200, 0.12);
  color: #b4b4c8;
  border: 1px solid rgba(180, 180, 200, 0.22);
}
.cal-disc-badge.supergt {
  background: rgba(255, 0, 140, 0.1);
  color: #ff008c;
  border: 1px solid rgba(255, 0, 140, 0.2);
}
.cal-disc-badge.imsa {
  background: rgba(0, 150, 136, 0.1);
  color: #00c8b4;
  border: 1px solid rgba(0, 150, 136, 0.2);
}
.cal-disc-badge.drift {
  background: rgba(160, 0, 255, 0.1);
  color: #a864ff;
  border: 1px solid rgba(160, 0, 255, 0.2);
}
.cal-disc-badge.erc {
  background: rgba(120, 200, 60, 0.1);
  color: #78c83c;
  border: 1px solid rgba(120, 200, 60, 0.2);
}
.cal-disc-badge.w2rc {
  background: rgba(210, 140, 40, 0.12);
  color: #e0a050;
  border: 1px solid rgba(210, 140, 40, 0.22);
}
.cal-disc-badge.extremeh {
  background: rgba(0, 220, 220, 0.1);
  color: #00dcdc;
  border: 1px solid rgba(0, 220, 220, 0.2);
}
.cal-disc-badge.f2 {
  background: rgba(160, 160, 160, 0.14);
  color: #b4b4b4;
  border: 1px solid rgba(160, 160, 160, 0.24);
}
.cal-disc-badge.drag {
  background: rgba(255, 60, 0, 0.12);
  color: #ff5c28;
  border: 1px solid rgba(255, 60, 0, 0.22);
}
.cal-pin {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.15s;
}
.cal-event.pinned .cal-pin {
  opacity: 1;
}
.cal-pin:hover {
  opacity: 1;
  transform: scale(1.2);
}
.cal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cal-side-panel {
  background: var(--dk2);
  border-left: 2px solid var(--red);
  padding: 1.3rem;
}
.cal-side-title {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
}
.cal-side-meta{font-size:.75rem;color:rgba(255,255,255,.48);margin:-.15rem 0 .85rem}
.cal-pinned-item {
  display: flex;
  justify-content: space-between;
  align-items:flex-start;
  gap:.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.cal-pinned-copy{display:flex;flex-direction:column;gap:.2rem}
.cal-pinned-copy span{color:#fff}
.cal-pinned-copy small{color:rgba(255,255,255,.42)}
.cal-pinned-remove{background:none;border:none;color:var(--red);cursor:pointer;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;padding:0}
.cal-empty{font-size:.78rem;color:var(--gray);line-height:1.6}
.cal-side-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.cal-side-actions .btn-g,.cal-side-actions .btn-r{width:auto;margin:0}

/* ══════════════════════════════════════════
   COMPARE
══════════════════════════════════════════ */
#comparer {
  background: var(--dk);
}
.cmp-build {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}
.cmp-pick label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.cmp-pick select {
  width: 100%;
  background-color: var(--blk);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--wht);
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23E8001D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.cmp-pick select:hover {
  border-color: rgba(232, 0, 29, 0.3);
}
.cmp-vs {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.08);
  align-self: center;
  text-align: center;
  margin-top: 1.6rem;
}
.cmp-res {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.cmp-col {
  background: var(--dk);
}
.cmp-col-head {
  padding: 1.4rem 1.8rem;
  background: var(--dk2);
  border-bottom: 2px solid var(--red);
}
.cmp-col-nm {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
.cmp-col-cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.2rem;
}
.cmp-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.cmp-row-l {
  padding: 0.9rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.015);
}
.cmp-row-v {
  padding: 0.9rem 1.3rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}
.cmp-row-v.best {
  color: var(--grn);
  font-weight: 500;
}
.circuit-compare-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1px;
}
.circuit-compare-grid {
  background: rgba(255, 255, 255, 0.05);
}
.circuit-compare-grid .cmp-row {
  grid-template-columns: 130px 1fr 1fr;
}

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
#statistiques {
  background: var(--blk);
}
.stats-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.stat-tab {
  padding: 0.85rem 1.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  white-space: nowrap;
}
.stat-tab:hover {
  color: var(--wht);
}
.stat-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.stat-pane {
  display: none;
}
.stat-pane.active {
  display: block;
}
.rec-table {
  width: 100%;
  border-collapse: collapse;
}
.rec-table th {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.rec-table td {
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
}
.rec-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--wht);
}
.rec-table td:first-child {
  color: var(--wht);
  font-weight: 500;
}
.champ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.champ-card {
  padding: 1.4rem;
  background: var(--dk);
  border-top: 2px solid var(--red);
}
.champ-disc {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.champ-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.champ-country {
  font-size: 0.78rem;
  color: var(--gray);
}
.champ-year {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════
   VIDEOS
══════════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.video-card {
  background: var(--dk);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  /* Empeche une video seule (ex: F1 la plupart du temps, cf. limite du flux
     RSS YouTube) de s'etirer sur toute la largeur du conteneur via
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)). */
  max-width: 560px;
}
.video-card:hover {
  transform: translateY(-5px);
}
.video-card iframe {
  width: 100%;
  height: 200px;
  border: none;
}
.video-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--red);
  margin: 1rem;
  margin-bottom: 0.5rem;
}
.video-card p {
  color: rgba(255,255,255,.7);
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Facade embed YouTube (miniature → iframe au clic) */
.video-facade {
  position: relative;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.video-facade:hover img { opacity: 0.75; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,0,0,0.85);
  border: none;
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  pointer-events: none;
}
.video-facade:hover .video-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: none;
  display: block;
}
#discipline-highlights {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   LEADERBOARD
══════════════════════════════════════════ */
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.content-card {
  background: var(--dk);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}
.content-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.leaderboard-list {
  list-style: none;
  padding: 0;
}
.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.leaderboard-item:last-child {
  border-bottom: none;
}
.leaderboard-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 50px;
}
.leaderboard-name {
  flex: 1;
  text-align: left;
  color: white;
}
.leaderboard-score {
  font-weight: bold;
  color: var(--red);
}
.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  margin-right: 1rem;
}
.leaderboard-badge {
  margin-left: 1rem;
  font-size: 1.5rem;
}
.leaderboard-badge.gold { color: #FFD700; }
.leaderboard-badge.silver { color: #C0C0C0; }
.leaderboard-badge.bronze { color: #CD7F32; }
.leaderboard-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.leaderboard-page-btn {
  background: var(--dk);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.leaderboard-page-btn:hover {
  border-color: var(--red);
  color: white;
}
.leaderboard-page-btn.active {
  background: var(--red);
  color: white;
}

/* CONTENT HUB */
.content-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.content-spotlight-card {
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--red);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}
.content-circuit-map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 0.6rem;
  margin-bottom: -0.25rem;
  background: #fff;
  border-radius: 8px;
}
.content-circuit-map svg {
  width: 100%;
  max-width: 180px;
  height: 90px;
}
.content-circuit-map-image {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 90px;
  object-fit: contain;
}
.content-circuit-map-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.content-circuit-map-path {
  fill: none;
  stroke: #111;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.content-circuit-map-large {
  min-height: 180px;
  padding: 1rem;
  margin-bottom: 0;
}
.content-circuit-map-large svg {
  max-width: 320px;
  height: 160px;
}
.content-circuit-map-large .content-circuit-map-image {
  max-width: 320px;
  height: 160px;
}
.content-spotlight-top {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}
.content-spotlight-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.content-spotlight-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  color: var(--wht);
  line-height: 1.05;
}
.content-spotlight-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.content-spotlight-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.content-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
}
.content-mini-stat {
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.7rem 0.7rem;
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.content-mini-stat strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--wht);
  overflow-wrap: anywhere;
  line-height: 1;
}
.content-mini-stat span {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  overflow-wrap: anywhere;
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}
.content-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  min-width: 0;
  align-items: center;
}
.content-spotlight-actions > * {
  max-width: 100%;
}
.content-fav-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  flex: 0 0 auto;
}
.content-fav-btn:hover {
  color: var(--wht);
}
.content-fav-btn.active {
  color: #ffd700;
  background: transparent;
}
.content-spotlight-actions .content-fav-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.3rem;
}
.content-spotlight-actions .content-fav-btn:hover {
  border-color: rgba(232, 0, 29, 0.35);
  background: rgba(232, 0, 29, 0.08);
}
.content-spotlight-actions .content-fav-btn.active {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}
.content-fav-btn-text {
  width: auto;
  min-width: min(100%, 180px);
  min-height: 52px;
  height: auto;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  flex: 1 1 180px;
}
.content-fav-btn-text:hover {
  border-color: rgba(232, 0, 29, 0.28);
  background: rgba(232, 0, 29, 0.06);
  color: var(--wht);
}
.content-fav-btn-text.active {
  color: var(--wht);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .content-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .content-mini-stats {
    grid-template-columns: 1fr;
  }
}
.content-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  line-height: 1.6;
}
.standings-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.standings-freshness {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.standings-freshness::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.standings-freshness--ok {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}
.standings-freshness--warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}
.standings-freshness--alert {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}
.content-inline-list {
  display: grid;
  gap: 0.8rem;
}
.content-inline-link {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.content-inline-link strong {
  color: var(--wht);
  font-size: 0.8rem;
}
.content-inline-link span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* DETAIL PAGES */
.detail-hero {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.detail-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.detail-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--wht);
}
.detail-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}
.detail-summary {
  max-width: 760px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}
.detail-circuit-track-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}
.detail-circuit-track-copy {
  min-width: 0;
}
@media (max-width: 900px) {
  .detail-circuit-track-hero {
    grid-template-columns: 1fr;
  }
}
.detail-driver-photo-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}
.detail-driver-photo-copy {
  min-width: 0;
}
.detail-driver-photo-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.detail-driver-photo-credit {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.4rem;
}
@media (max-width: 900px) {
  .detail-driver-photo-hero {
    grid-template-columns: 1fr;
  }
  .detail-driver-photo-img {
    width: 100%;
    height: 260px;
  }
}
.detail-team-logo-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}
.detail-team-logo-copy {
  min-width: 0;
}
.detail-team-logo-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  box-sizing: border-box;
}
.detail-team-logo-credit {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.4rem;
}
.detail-team-logo-img.is-car-photo {
  width: 320px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
}
@media (max-width: 900px) {
  .detail-team-logo-hero {
    grid-template-columns: 1fr;
  }
  .detail-team-logo-img.is-car-photo {
    width: 100%;
  }
  .detail-team-logo-img {
    width: 100%;
    height: 260px;
  }
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.detail-share-btn {
  width: auto;
  min-width: 0;
  height: auto;
}
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.detail-stat-card {
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.1rem;
}
.detail-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.4rem;
}
.detail-stat-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--wht);
}
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.detail-block {
  background: var(--dk);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}
.detail-block-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--wht);
  margin-bottom: 0.8rem;
}
.detail-paragraph {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}
.detail-strength-list {
  display: grid;
  gap: 0.8rem;
}
.detail-strength-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  gap: 0.75rem;
  align-items: center;
}
.detail-strength-row span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.62);
}
.detail-strength-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.detail-strength-fill {
  height: 100%;
  background: linear-gradient(90deg, #e8001d 0%, #ffb347 100%);
}
.detail-strength-row strong {
  font-size: 0.75rem;
  color: var(--wht);
}
.detail-note-list {
  display: grid;
  gap: 0.8rem;
}
.detail-note {
  padding-left: 1rem;
  position: relative;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}
.detail-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--red);
}
.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.detail-related-card {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--dk2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 1.1rem;
}
.detail-related-card strong {
  color: var(--wht);
  font-size: 0.82rem;
}
.detail-related-card span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .content-mini-stats,
  .detail-two-col {
    grid-template-columns: 1fr;
  }
  .circuit-compare-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .detail-strength-row {
    grid-template-columns: 1fr;
  }
  .circuit-compare-grid .cmp-row {
    grid-template-columns: 1fr;
  }
}

/* ── LEADERBOARD RESPONSIVE ── */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .content-card {
    padding: 1.2rem;
  }
  .leaderboard-rank {
    min-width: 36px;
    font-size: 1.2rem;
  }
  .leaderboard-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    margin-right: 0.6rem;
  }
  .leaderboard-name {
    font-size: 0.88rem;
  }
  .leaderboard-score {
    font-size: 0.88rem;
  }
  .leaderboard-badge {
    font-size: 1.1rem;
    margin-left: 0.5rem;
  }
  .leaderboard-item {
    padding: 0.7rem 0;
  }
  .leaderboard-page-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

