.page-driver-profile .content {
  padding-left: 0;
  padding-right: 72px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 220px),
    repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, var(--cyan) 7%, transparent) 31px 32px),
    var(--bg, #0c1116);
}
.dp-page { max-width: 1320px; }
.dp-root {
  position: relative;
  color: var(--text);
}
.dp-boot {
  padding: 40px 16px;
  color: var(--muted);
  font-weight: 700;
}
.dp-empty { color: var(--muted); font-size: 13px; font-weight: 700; }
.dp-kicker,
.dp-kicker-row span,
.dp-sub {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
}
.dp-kicker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
}
.dp-kicker-row a,
.dp-more {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}
.dp-kicker-row a:hover,
.dp-more:hover { color: var(--cyan); }
.dp-hero, .dp-main, .dp-side, .dp-lasts, .dp-upcoming, .dp-equip, .dp-tracks {
  scroll-margin-top: 8px;
}

.dp-hudbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
  border-bottom: 0;
  background: color-mix(in srgb, #000 35%, var(--panel));
}
.dp-hudbar i {
  display: block;
  width: 18px;
  height: 1px;
  background: color-mix(in srgb, var(--cyan) 55%, transparent);
}
.dp-hudbar em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .4px;
}

.dp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1.15fr) minmax(220px, 0.9fr) minmax(120px, 0.65fr);
  min-height: 268px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line));
  background:
    linear-gradient(105deg, #0a1016 0%, color-mix(in srgb, var(--cyan) 10%, #121a22) 38%, var(--panel) 100%);
}
.dp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(-18deg, transparent 0 10px, color-mix(in srgb, #000 18%, transparent) 10px 11px);
  opacity: .35;
  z-index: 1;
}
.dp-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan) 55%, transparent);
  z-index: 3;
}
.dp-hero-num {
  position: absolute;
  right: 8%;
  top: 8px;
  z-index: 1;
  font-size: clamp(88px, 14vw, 168px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -8px;
  color: color-mix(in srgb, var(--cyan) 16%, transparent);
  pointer-events: none;
  user-select: none;
}
.dp-hero-mark {
  position: absolute;
  right: 18%;
  top: 28px;
  width: 160px;
  height: 160px;
  opacity: .12;
  z-index: 1;
  pointer-events: none;
}
.dp-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dp-hero-photo {
  position: relative;
  z-index: 2;
  min-height: 268px;
  background: #070b0f;
}
.dp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.dp-hero-id {
  position: relative;
  z-index: 2;
  padding: 36px 8px 28px 4px;
  align-self: center;
}
.dp-hero-id h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: .5px;
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.dp-team {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
}
.dp-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.dp-quote {
  margin: 12px 0 0;
  max-width: 36ch;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}
.dp-hero-meta {
  position: relative;
  z-index: 2;
  padding: 28px 12px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.dp-elo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  width: max-content;
  padding-left: 10px;
  border-left: 3px solid var(--cyan);
}
.dp-elo b { font-size: 32px; color: var(--cyan); line-height: 1; }
.dp-elo span { font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--muted); }
.dp-hero-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dp-hero-quick b { display: block; font-size: 18px; }
.dp-hero-quick span { font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dp-hero-stand { display: flex; flex-direction: column; gap: 6px; }
.dp-stand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}
.dp-stand b { color: var(--cyan); font-weight: 900; }
.dp-stand em { color: var(--muted); font-style: normal; font-weight: 700; }
.dp-hero-cars {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 0 0;
}
.dp-hero-cars img {
  height: 58px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.45));
}

.dp-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-top: 0;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
}
.dp-nav a {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.dp-nav a:hover,
.dp-nav a:focus { color: var(--text); border-bottom-color: var(--cyan); color: var(--cyan); }

.dp-board {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.68fr);
  gap: 36px 40px;
  padding: 4px 2px 36px;
}
.dp-main { min-width: 0; }
.dp-side {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--cyan) 18%, var(--line));
}

.dp-rings {
  display: grid;
  grid-template-columns: 1.15fr repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 6px 8px;
  margin-bottom: 32px;
}
.dp-ring {
  position: relative;
  text-align: center;
}
.dp-ring-svg { width: 100%; max-width: 118px; height: auto; display: block; margin: 0 auto; }
.dp-ring.is-lg .dp-ring-svg { max-width: 168px; }
.dp-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
  stroke-linecap: round;
}
.dp-ring-arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
}
.dp-ring.is-lg .dp-ring-arc { stroke: var(--cyan); }
.dp-ring-read { margin-top: -6px; }
.dp-ring-read b {
  display: block;
  font-size: 15px;
  font-weight: 900;
}
.dp-ring.is-lg .dp-ring-read b { font-size: 28px; color: var(--cyan); }
.dp-ring-read span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
}

.dp-drive {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--cyan) 22%, var(--line));
}
.dp-radar { width: 100%; max-width: 300px; height: auto; }
.dp-radar-grid { fill: none; stroke: var(--line); stroke-width: .8; }
.dp-radar-axis { stroke: color-mix(in srgb, var(--cyan) 28%, var(--line)); stroke-width: .7; }
.dp-radar-fill {
  fill: color-mix(in srgb, var(--cyan) 22%, transparent);
  stroke: var(--cyan);
  stroke-width: 1.6;
}
.dp-radar-lab {
  fill: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.dp-bar {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 1.4fr) 54px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
}
.dp-bar i {
  display: block;
  height: 5px;
  background: var(--line);
  overflow: hidden;
}
.dp-bar i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), color-mix(in srgb, var(--cyan) 40%, var(--red)));
}
.dp-bar em { font-style: normal; color: var(--muted); text-align: right; }

.dp-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 10px;
  margin-bottom: 26px;
}
.dp-kpi b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.dp-kpi span { font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dp-medals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.dp-medals div {
  padding: 10px 6px 8px;
  text-align: center;
  border-top: 2px solid var(--line);
}
.dp-medals b { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.dp-medals span { font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dp-medals .is-gold { border-top-color: #e8c547; }
.dp-medals .is-gold b { color: #e8c547; }
.dp-medals .is-silver { border-top-color: #c5cdd8; }
.dp-medals .is-bronze { border-top-color: #d08a5a; }
.dp-pal-sum { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.dp-pal { list-style: none; margin: 0 0 10px; padding: 0; }
.dp-pal li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.dp-pal a { display: flex; justify-content: space-between; gap: 8px; color: inherit; text-decoration: none; }
.dp-pal em { font-style: normal; color: var(--muted); }

.dp-lasts { grid-column: 1 / -1; }
.dp-lasts ul { list-style: none; margin: 0; padding: 0; }
.dp-race {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.4fr) minmax(110px, 0.7fr) 36px 48px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.dp-race-name { font-size: 13px; font-weight: 800; }
.dp-race-name i { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.dp-race em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.dp-grid { font-size: 11px; font-weight: 800; color: var(--muted); text-align: right; }
.dp-flag {
  width: 22px;
  height: 14px;
  background: var(--panel2, #1a222b) center/cover no-repeat;
  border-radius: 1px;
}
.dp-pos {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .3px;
}
.dp-pos.is-p1 { color: #e8c547; }
.dp-pos.is-p2 { color: #c5cdd8; }
.dp-pos.is-p3 { color: #d08a5a; }
.dp-pos.is-dnf { color: var(--red); }
.dp-pos.is-other { color: var(--text); }

.dp-upcoming { grid-column: 1 / -1; }
.dp-nexts {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.dp-next {
  flex: 0 0 240px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 10px 0 10px 10px;
  border-left: 2px solid var(--cyan);
}
.dp-next .dp-flag { grid-row: 1 / 3; align-self: center; }
.dp-next b { display: block; font-size: 12px; }
.dp-next span, .dp-next em { font-size: 11px; color: var(--muted); font-style: normal; }
.dp-cal {
  grid-column: 3;
  grid-row: 1 / 3;
  border: 0;
  background: transparent;
  color: var(--cyan);
  padding: 0 6px;
}

.dp-equip,
.dp-tracks { grid-column: 1 / -1; }
.dp-equip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}
.dp-equip-team {
  display: flex;
  gap: 14px;
}
.dp-equip-team > img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.dp-teams { list-style: none; margin: 8px 0 0; padding: 0; }
.dp-teams li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 800;
}
.dp-teams img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dp-teams i { font-style: normal; color: var(--cyan); font-size: 9px; }
.dp-equip-cars {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.dp-equip-cars img {
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.dp-circs {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  min-height: 104px;
  overflow-x: auto;
  padding-top: 8px;
}
.dp-circ {
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 104px;
  cursor: pointer;
}
.dp-circ i {
  display: block;
  width: 8px;
  min-height: 4px;
  margin-bottom: 6px;
  background: var(--cyan);
}
.dp-circ b { font-size: 9px; letter-spacing: .3px; }
.dp-circ span { font-size: 10px; color: var(--muted); font-weight: 800; }
.dp-circ em { display: block; font-style: normal; color: #e8c547; font-size: 9px; }

html[data-theme="day"] .page-driver-profile .content {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 180px),
    var(--bg, #eef2f5);
}
html[data-theme="day"] .dp-hero {
  background: linear-gradient(105deg, #c5d4dc 0%, var(--panel) 48%, var(--panel) 100%);
}
html[data-theme="day"] .dp-hero-id h1 { color: var(--text); text-shadow: none; }
html[data-theme="day"] .dp-hero-num { color: color-mix(in srgb, var(--cyan) 22%, transparent); }
html[data-theme="day"] .dp-hudbar { background: var(--panel); }

@media (max-width: 1100px) {
  .dp-hero { grid-template-columns: 180px 1fr; }
  .dp-hero-meta, .dp-hero-cars { grid-column: 1 / -1; padding: 0 16px 16px 16px; }
  .dp-hero-cars { flex-direction: row; justify-content: flex-start; }
  .dp-hero-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dp-board { grid-template-columns: 1fr; gap: 28px; }
  .dp-side { border-left: 0; padding-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .dp-lasts, .dp-upcoming, .dp-equip, .dp-tracks { grid-column: 1; }
  .dp-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .page-driver-profile .content { padding-right: 16px; }
  .dp-hero { grid-template-columns: 1fr; min-height: 0; }
  .dp-hero-photo { min-height: 220px; }
  .dp-hero-photo img { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .dp-hero-id { padding: 16px; }
  .dp-hero-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-rings { grid-template-columns: 1fr 1fr; }
  .dp-kpis { grid-template-columns: 1fr 1fr; }
  .dp-drive, .dp-equip-grid { grid-template-columns: 1fr; }
  .dp-race { grid-template-columns: 22px minmax(0, 1fr) 48px; }
  .dp-race em, .dp-grid { display: none; }
  .dp-nav a { padding: 10px 10px; }
  .dp-hero-num { font-size: 96px; right: 8px; }
}
