:root{
  --bg:#050505;
  --bg2:#0b0b0b;
  --card:#0f0f0f;
  --text:#fff;
  --muted:rgba(255,255,255,.65);
  --line:rgba(255,255,255,.10);
  --red:#e10600;
  --redGlow: rgba(225,6,0,.22);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(225,6,0,.22), transparent 60%),
    radial-gradient(1000px 700px at 50% 30%, rgba(255,255,255,.05), transparent 55%),
    var(--bg);
}

.header{
  text-align:center;
  padding:70px 18px 34px;
  border-bottom:1px solid var(--line);
}
.kicker{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(225,6,0,.35);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.82);
  font-weight:700;
  letter-spacing:.8px;
  font-size:12px;
  text-transform:uppercase;
}
.header h1{
  margin:14px 0 6px;
  color:var(--red);
  font-size:46px;
  letter-spacing:1px;
  text-shadow:0 0 18px var(--redGlow);
}
.header h1 span{ color:#fff; text-shadow:none; }
.header p{ margin:0; color:var(--muted); }

.chips{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(15,15,15,.85);
  color:rgba(255,255,255,.80);
  font-size:13px;
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px 16px 46px;
}

.panel{
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  padding:18px;
  margin-bottom:18px;
}
.panelHead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(255,255,255,.06);
  padding-bottom:14px;
  margin-bottom:14px;
}
.panelHead h2{ margin:0; font-size:18px; }
.panelHead p{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.legend{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  color:rgba(255,255,255,.75);
  font-size:12px;
}
.dot{
  width:9px; height:9px; border-radius:50%;
  display:inline-block; margin-right:6px;
  box-shadow:0 0 14px rgba(255,255,255,.06);
}
.dot.world{ background:#ffffff; opacity:.75; }
.dot.europe{ background:#cfcfcf; opacity:.60; }
.dot.italy{ background:#9f9f9f; opacity:.55; }
.dot.endu{ background: var(--red); opacity:.85; }

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width:820px){
  .grid{ grid-template-columns:1fr; }
}

.seriesCard{
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  padding:16px;
  position:relative;
}
.seriesTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.seriesName{
  font-weight:800;
  font-size:16px;
}
.seriesMeta{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}
.pills{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.82);
  font-size:12px;
}

.badge{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(225,6,0,.35);
  background:rgba(225,6,0,.10);
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.drivers{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width:980px){
  .drivers{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:640px){
  .drivers{ grid-template-columns: 1fr; }
}

.driver{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:rgba(0,0,0,.22);
  cursor:pointer;
  transition: transform .18s ease, border-color .2s ease;
}
.driver:hover{
  transform: scale(1.01);
  border-color: rgba(225,6,0,.45);
}
.driverTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.nick{
  font-weight:800;
  font-size:16px;
}
.role{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}
.tags{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.82);
  font-size:12px;
}
.tag.open{
  border-color: rgba(255,176,32,.55);
  color: rgba(255,225,170,.95);
}

.footer{
  text-align:center;
  padding:28px 10px 40px;
  color:rgba(255,255,255,.35);
  font-size:12px;
}

/* MODAL */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.70);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
.overlay.show{ display:flex; }

.modal{
  width:min(560px, 92vw);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--bg2);
  border:1px solid rgba(225,6,0,.55);
  border-radius:16px;
  padding:22px 22px 18px;
  position:relative;
}
.x{
  position:absolute;
  top:10px;
  right:12px;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.25);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}
.x:hover{ border-color: rgba(225,6,0,.45); }

.modal h2{
  margin:0 0 10px;
  color:var(--red);
  text-shadow:0 0 14px var(--redGlow);
  font-size:22px;
}
.modal .row{
  color:rgba(255,255,255,.82);
  font-size:14px;
  margin:8px 0;
}
.modal .row span{ color:var(--muted); }
.modal .hint{
  margin-top:14px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.78);
  font-size:13px;
}
