* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eaf0f8;
  color: #172554;
  font: 15px/1.5 "Microsoft YaHei",system-ui,sans-serif;
}
a {
  color: #2563eb;
  text-decoration: none;
}
button,input,select {
  font: inherit;
}
button {
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}
input,select {
  border: 1px solid #d0dcf0;
  background: white;
  border-radius: 9px;
  color: #172554;
  padding: 10px 12px;
}
.shell {
  display: flex;
  max-width: 1500px;
  min-height: 95vh;
  margin: 24px auto;
  background: #eaf0f8;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px #17316718;
}
.sidebar {
  width: 214px;
  flex-shrink: 0;
  background: #14275c;
  color: white;
  padding: 24px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
  color: white;
}
.brand b,.brand small,.topbar small {
  display: block;
}
.brand small,.topbar small {
  font-size: 12px;
  color: #bbcaf1;
}
.brand-icon,.heading-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  color: white;
  background: linear-gradient(135deg,#02bcd2,#2666e9);
  font-size: 24px;
  flex: none;
}
.sidebar-nav {
  display: grid;
  gap: 7px;
}
.nav-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  color: #d6e3ff;
  font-weight: 700;
  border-radius: 11px;
}
.nav-link span {
  font-size: 19px;
}
.nav-link.active,.nav-link:hover {
  background: linear-gradient(105deg,#168bf2,#2f5de8);
  color: white;
}
.workspace {
  flex: 1;
  min-width: 0;
}
.topbar {
  min-height: 76px;
  background: linear-gradient(100deg,#193b83,#332c7a);
  color: #fff;
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-actions span {
  font-size: 13px;
  color: #bdf8e4;
}
.logout {
  background: #ffffff20;
  padding: 8px 14px;
}
main {
  padding: 27px 24px 50px;
}
.page-heading {
  display: flex;
  gap: 15px;
  align-items: center;
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.heading-icon {
  background: #2660e9;
}
h1,h2,p {
  margin: 0;
}
h1 {
  font-size: 24px;
}
h2 {
  font-size: 17px;
}
.page-heading p,.surface>p {
  font-size: 13px;
  color: #7890b3;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c7191;
  font-size: 13px;
}
.filter {
  padding: 7px;
  background: #f8faff;
  border: 1px solid #dde8f8;
  border-radius: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  padding: 18px;
  border-radius: 15px;
  color: white;
  min-height: 114px;
  position: relative;
  overflow: hidden;
}
.stat:after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -54px;
  width: 100px;
  height: 100px;
  background: #ffffff12;
  border-radius: 50%;
}
.stat span,.stat small {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.stat .stat-icon {
  display: grid;
  place-items: center;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff27;
  font-size: 16px;
}
.stat b {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  margin: 7px 0;
}
.color-0 {
  background: linear-gradient(120deg,#03b681,#16b8aa);
}
.color-1 {
  background: linear-gradient(120deg,#3180f2,#3364e8);
}
.color-2 {
  background: linear-gradient(120deg,#ff9700,#ff7932);
}
.color-3 {
  background: linear-gradient(120deg,#00a7c6,#078ed0);
}
.color-4 {
  background: linear-gradient(120deg,#8545ef,#722cd7);
}
.surface {
  background: white;
  border: 1px solid #dce6f4;
  border-radius: 16px;
  padding: 19px;
  margin-top: 17px;
  box-shadow: 0 5px 18px #1d376408;
}
.surface>p {
  margin: 3px 0 13px;
}
.registration {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.shortcuts a {
  background: #f1f5fb;
  border-radius: 10px;
  padding: 14px;
  color: #172554;
  display: flex;
  gap: 10px;
  align-items: center;
}
.shortcuts strong {
  color: #2563eb;
  font-size: 20px;
}
.shortcuts .shortcut-arrow {
  color: #7691b9;
  font-size: 12px;
  margin-left: auto;
}
.shortcuts a:hover, .shortcuts a:focus-visible {
  background: #e9f0ff;
  color: #174fbd;
}
.search {
  margin-bottom: 16px;
}
.empty {
  text-align: center;
  color: #637896;
}
.detail-link, .back-link {
  display: inline-block;
  color: #2563eb;
  font-weight: 700;
}
.back-link { margin-bottom: 2px; }
.player-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.player-summary div {
  padding: 14px;
  background: #f1f5fb;
  border-radius: 10px;
}
.player-summary span, .player-summary b { display: block; }
.player-summary span, .player-times { color: #637896; font-size: 13px; }
.player-summary b { font-size: 23px; margin-top: 4px; }
.player-times { margin: 0 0 12px; }
.stars { color: #eaa42d; letter-spacing: 2px; }
.star-label { color: #637896; font-size: 13px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #088fc6;
  outline-offset: 3px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th,td {
  padding: 12px;
  border-bottom: 1px solid #e8edf5;
}
th {
  font-size: 13px;
  color: #7585a3;
}
.column-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 3px;
  color: #3e597f;
}
.column-sort:hover {
  text-decoration: underline;
}
th[aria-sort] .column-sort {
  color: #1d4ed8;
}
.pager {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}
.login-body {
  min-height: 100vh;
  padding: max(24px, 9vh) 16px 24px;
  background: radial-gradient(circle at 84% -10%, #c7d9ff 0, transparent 28%), #eef3fa;
}
.login-card {
  width: min(440px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  padding: clamp(20px, 5vw, 34px);
  box-shadow: 0 28px 80px #17255424;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #172554;
  font-weight: 700;
  font-size: 19px;
}
.login-brand .brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 10px 28px #06b6d440;
}
.login-copy {
  margin: 30px 0 22px;
}
.login-brand small {
  display: block;
  color: #637896;
  font-weight: 500;
  font-size: 13px;
}
.login-card h1 {
  font-size: 29px;
}
.login-card p {
  color: #7185a4;
  margin: 5px 0 24px;
}
.login-card form {
  display: grid;
  gap: 17px;
}
.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.login-card input {
  width: 100%;
}
.login-card button {
  min-height: 44px;
  background: linear-gradient(135deg,#0fbf8f,#05a97d);
  color: white;
}
.login-card .error {
  color: #d72b42;
  margin: 0;
  font-size: 13px;
}
@media(max-width:900px) {
  .shell {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  .sidebar {
    width: 180px;
  }
  .stats {
    grid-template-columns: repeat(2,1fr);
  }
  .shortcuts {
    grid-template-columns: repeat(2,1fr);
  }
}
@media(max-width:600px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    padding: 12px;
  }
  .brand {
    padding-bottom: 10px;
  }
  .sidebar-nav {
    display: flex;
    overflow: auto;
  }
  .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .topbar {
    padding: 14px;
  }
  .top-actions span {
    display: none;
  }
  main {
    padding: 20px 14px;
  }
  .registration {
    grid-template-columns: 1fr;
  }
  .page-header .filter {
    width: 100%;
  }
  .stat .stat-icon {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
  .shortcuts {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    min-height: 90px;
    padding: 12px;
  }
  .stat b {
    font-size: 26px;
  }
}
