:root{
  --bg:#050710;
  --card:#101422;
  --text:#f4ecff;
  --muted:#a6a0bf;
  --accent:#8A027F;
  --accent-soft:#b23bb0;
  --accent-alt:#00b3ff;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  background:radial-gradient(circle at top,#1a1033 0,#050710 55%);
  color:var(--text);
}
a{color:var(--accent-alt);text-decoration:none;}
a:hover{text-decoration:underline;}
header{
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid #241632;
  background:linear-gradient(90deg,#050710 0,#15172a 40%,#050710 100%);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  width:40px;
  height:40px;
  border-radius:10px;
  background:radial-gradient(circle at 30% 20%,#ffb3ff 0,#8A027F 40%,#2a0936 100%);
}
.brand-text{
  display:flex;
  flex-direction:column;
}
.brand-title{font-size:18px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
.brand-sub{font-size:11px;color:var(--muted);}
.navbar{
  display:flex;
  gap:10px;
  font-size:12px;
}
.navbar a{padding:4px 8px;border-radius:999px;border:1px solid transparent;}
.navbar a.active{border-color:var(--accent-soft);background:rgba(138,2,127,.2);}
main{
  max-width:1200px;
  margin:0 auto;
  padding:16px 12px 26px;
}
.card{
  background:var(--card);
  border-radius:16px;
  border:1px solid #251634;
  padding:14px 16px;
  margin-bottom:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
h1{font-size:20px;margin:0 0 8px;}
h2{font-size:17px;margin:0 0 8px;}
h3{font-size:15px;margin:0 0 6px;}
.meta{font-size:11px;color:var(--muted);margin-top:2px;}
.podium{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.podium-col{
  flex:1 1 100px;
  text-align:center;
  background:#080c18;
  border-radius:14px;
  border:1px solid #2b1c3e;
  padding:8px 4px;
}
.p1{transform:translateY(-4px);background:linear-gradient(180deg,#ffd700,#b8860b);color:#1b1200;}
.podium-pos{font-size:11px;text-transform:uppercase;}
.podium-name{font-weight:600;margin-top:4px;}
.podium-points{font-size:11px;margin-top:2px;}
.standings-wrapper{
  width:100%;
  overflow-x:auto;
}
.standings-table{
  width:100%;
  min-width:600px;
  border-collapse:collapse;
  font-size:13px;
}
.standings-table th,
.standings-table td{
  border:1px solid #241632;
  padding:4px 6px;
  text-align:center;
}
.standings-table th{
  background:#0c0f20;
  font-weight:500;
  white-space:nowrap;
}
.standings-table td:first-child,
.standings-table th:first-child{text-align:left;}
.champ-select{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:12px;
  margin-bottom:8px;
}
.champ-select select{
  background:#050814;
  color:var(--text);
  border-radius:999px;
  border:1px solid #313552;
  padding:4px 8px;
  font-size:12px;
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:10px;
}
.calendar-item{
  background:#080c18;
  border-radius:12px;
  border:1px solid #2b1c3e;
  padding:8px 10px;
}
.calendar-title{font-size:13px;font-weight:600;}
.calendar-date{font-size:12px;color:var(--muted);}
.form-row{
  margin-bottom:8px;
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:12px;
}
input[type=text],input[type=number],input[type=password],select,textarea{
  background:#050814;
  border-radius:8px;
  border:1px solid #313552;
  color:var(--text);
  padding:6px 8px;
  font-size:13px;
}
textarea{min-height:80px;resize:vertical;}
button{
  border:none;
  border-radius:999px;
  padding:7px 12px;
  font-size:13px;
  cursor:pointer;
}
.btn-primary{background:var(--accent);color:#ffeefe;}
.btn-secondary{background:#151c30;color:var(--text);border:1px solid #313552;}
.btn-danger{background:#ff4b6a;color:#2b0610;}
.notice{font-size:12px;padding:6px 8px;border-radius:8px;margin-bottom:8px;}
.notice-ok{background:#133825;border:1px solid #2f855a;color:#c6f6d5;}
.small{font-size:11px;color:var(--muted);}
.pilot-header{
  display:flex;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.pilot-photo{
  width:120px;
  height:120px;
  border-radius:14px;
  background:#050814;
  border:1px solid #313552;
  overflow:hidden;
}
.pilot-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.pilot-bio{font-size:13px;}
@media (max-width:700px){
  header{flex-direction:column;align-items:flex-start;}
  .navbar{width:100%;justify-content:flex-start;flex-wrap:wrap;}
}
