:root{
    --bg:#121113;
    --panel:#1B1A1D;
    --panel-2:#222124;
    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.14);
    --text:#F5F3F1;
    --text-dim:#A8A5AA;
    --text-mute:#75727A;
    --coral:#E8785F;
    --coral-dim: rgba(232,120,95,0.14);
    --gold:#E3B23C;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Manrope', sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  .wrap{ max-width:920px; margin:0 auto; padding:0 28px; }

  header{
    padding:24px 0;
    display:flex; align-items:center; justify-content:space-between;
    border-bottom:1px solid var(--line);
  }
  .brand{ display:flex; align-items:center; gap:9px; }
  .brand-icon{
    width:26px; height:26px; border-radius:7px; background:var(--coral);
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:14px; color:#1A0F0B;
  }
  .brand-name{ font-weight:800; font-size:17px; letter-spacing:-0.01em; }
  nav{ display:flex; gap:26px; }
  nav a{ color:var(--text-dim); text-decoration:none; font-size:14px; font-weight:600; }
  nav a:hover{ color:var(--text); }

  .hero{ padding:64px 0 48px; text-align:center; }
  .hero h1{
    font-size:40px; font-weight:800; letter-spacing:-0.02em; color:var(--coral);
    margin-bottom:16px;
  }
  .hero p{
    color:var(--text-dim); font-size:15px; max-width:52ch; margin:0 auto 30px;
  }
  .comp-picker{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
  .comp-pill{
    display:flex; align-items:center; gap:8px;
    padding:11px 20px; border-radius:30px; border:1px solid var(--line-strong);
    background:var(--panel); color:var(--text-dim);
    font-weight:700; font-size:14px; cursor:pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .comp-pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--text-mute); }
  .comp-pill.active{ background:var(--coral); color:#1A0F0B; border-color:var(--coral); }
  .comp-pill.active .dot{ background:#1A0F0B; }
  .comp-pill:not(.active):hover{ border-color:var(--text-mute); color:var(--text); }

  .sort-row{
  display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap;
}
.sort-label{ color:var(--text-mute); font-size:13px; margin-right:2px; }
.sort-btn{
  padding:6px 14px; border-radius:20px; border:1px solid var(--line-strong);
  background:transparent; color:var(--text-dim); font-size:13px; font-weight:700;
  cursor:pointer; font-family:inherit;
}
.sort-btn:hover{ border-color:var(--text-mute); color:var(--text); }
.sort-btn.active{ background:var(--coral); color:#1A0F0B; border-color:var(--coral); }

.board-footer{ margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }
.btn-full{
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 20px; border-radius:8px; background:var(--coral-dim); color:var(--coral);
  font-weight:700; font-size:14px; text-decoration:none; margin-bottom:20px;
}
.btn-full:hover{ opacity:0.85; }
.btn-full.hidden{ display:none; }
.columns-explain{
  display:flex; flex-direction:column; gap:8px;
  color:var(--text-mute); font-size:13px; line-height:1.6;
}
.columns-explain b{ color:var(--text-dim); }

.board{ padding:8px 0 60px; }
  .board-head{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
  .board-icon{
    width:40px; height:40px; border-radius:9px; background:var(--coral-dim);
    display:flex; align-items:center; justify-content:center; font-size:18px;
  }
  .board-title{ font-size:19px; font-weight:800; }
  .board-sub{ color:var(--text-mute); font-size:13px; margin-top:1px; }

  table{ width:100%; border-collapse:collapse; }
  thead th{
    text-align:left; font-size:12px; font-weight:700; color:var(--gold);
    text-transform:uppercase; letter-spacing:0.04em;
    padding:0 0 12px; border-bottom:1px solid var(--line-strong);
  }
  thead th.num, tbody td.num{ text-align:right; }
  tbody td{
    padding:14px 0; border-bottom:1px solid var(--line);
    font-size:14px; color:var(--text);
  }
  tbody tr.player-row:last-of-type td{ border-bottom:none; }
  .rank-badge{
    display:inline-flex; align-items:center; justify-content:center;
    width:26px; height:26px; border-radius:7px; font-weight:800; font-size:12px;
    background:var(--panel-2); color:var(--text-dim);
  }
  .rank-badge.rank-gold{ background:var(--gold); color:#241C05; }
  .rank-badge.rank-silver{ background:#B9B4AE; color:#241C05; }
  .rank-badge.rank-bronze{ background:#B08560; color:#241C05; }
  .player-name{ font-weight:700; }
  .best-score{ color:var(--gold); font-weight:800; }
  .worst-score{ color:var(--text-mute); }
  .wins{ font-weight:800; }

  .chev-cell{ text-align:right; width:36px; }
  .chev-btn{
    width:26px; height:26px; border-radius:7px; border:1px solid var(--line-strong);
    background:transparent; color:var(--text-dim); cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    transition: transform .18s, border-color .15s, color .15s;
  }
  .chev-btn:hover{ border-color:var(--text-mute); color:var(--text); }
  .chev-btn svg{ width:13px; height:13px; transition:transform .18s; }
  .chev-btn.open svg{ transform:rotate(180deg); }

  .video-row td{ padding:0; border-bottom:1px solid var(--line); }
  .video-row.closed{ display:none; }
  .video-list{ padding:6px 0 16px 38px; display:flex; flex-direction:column; gap:8px; }
  .video-item{ display:flex; align-items:center; gap:12px; }
  .video-thumb{
    width:64px; height:36px; border-radius:6px; background:var(--panel-2);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    color:var(--text-mute); font-size:13px;
  }
  .video-title{ font-size:13.5px; color:var(--text-dim); }
  .video-empty{ padding:4px 0 16px 38px; font-size:13px; color:var(--text-mute); }

  footer{
    padding:22px 0 40px; border-top:1px solid var(--line);
    display:flex; justify-content:space-between; align-items:center;
    color:var(--text-mute); font-size:12.5px;
  }

  @media (max-width:600px){
    .wrap{ padding:0 18px; }

    header{ padding:18px 0; }
    .brand-name{ font-size:15px; }
    nav{ gap:16px; }
    nav a{ font-size:13px; }

    .hero{ padding:40px 0 32px; }
    .hero h1{ font-size:28px; margin-bottom:12px; }
    .hero p{ font-size:13.5px; margin-bottom:22px; }
    .comp-pill{ padding:9px 14px; font-size:13px; }

    .board-head{ gap:10px; margin-bottom:16px; }
    .board-icon{ width:34px; height:34px; font-size:16px; }
    .board-title{ font-size:16px; }

    thead th, tbody td{ font-size:12.5px; }
    thead th:nth-child(3), tbody td:nth-child(3),
    thead th:nth-child(5), tbody td:nth-child(5){ display:none; }
    .rank-badge{ width:22px; height:22px; font-size:11px; }
    .chev-cell{ width:28px; }

    .video-list{ padding-left:18px; }
    .video-empty{ padding-left:18px; }
    .video-thumb{ width:52px; height:30px; }
    .video-title{ font-size:12.5px; }

    footer{ flex-direction:column; align-items:flex-start; gap:6px; }
  }