:root{
  --bg:#07070a;
  --bg-soft:#101117;
  --panel:#11131a;
  --panel-strong:#171922;
  --panel-glass:rgba(17,19,26,0.88);
  --line:rgba(255,255,255,0.10);
  --line-strong:rgba(255,255,255,0.16);
  --text:#f5f7fb;
  --muted:rgba(245,247,251,0.70);
  --muted-strong:rgba(245,247,251,0.84);
  --red:#b50728;
  --red-strong:#db2e2e;
  --red-soft:#55111c;
  --shadow:0 24px 70px rgba(0,0,0,0.45);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:12px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family:"IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 0% 0%, rgba(181,7,40,0.28), transparent 58%),
    radial-gradient(900px 600px at 100% 8%, rgba(219,46,46,0.16), transparent 50%),
    radial-gradient(800px 520px at 50% 100%, rgba(181,7,40,0.11), transparent 60%),
    linear-gradient(180deg, #06070b 0%, #090b10 42%, #06070a 100%);
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
select,
input{
  font:inherit;
}

.container{
  width:min(1440px, calc(100% - 32px));
  margin:0 auto;
  padding:20px 0 30px;
  min-width:0;
}

.header{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-xl);
  border:1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(181,7,40,0.18), rgba(181,7,40,0.02) 34%, rgba(255,255,255,0.03) 80%),
    rgba(10,11,15,0.94);
  box-shadow:var(--shadow);
  padding:26px;
}

.header::before{
  content:"";
  position:absolute;
  inset:-20% auto auto -10%;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(219,46,46,0.24), transparent 68%);
  pointer-events:none;
}

.header::after{
  content:"";
  position:absolute;
  right:-120px;
  top:-100px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.08), transparent 72%);
  pointer-events:none;
}

.header-shell{
  position:relative;
  z-index:1;
  display:block;
  align-items:stretch;
}

.eyebrow,
.page-kicker,
.hero-card-label,
.overview-label,
.leader-label,
.summary-chip-label,
.feature-eyebrow,
.stat-key{
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:11px;
  font-weight:700;
  color:rgba(245,247,251,0.64);
}

.brand{
  display:grid;
  gap:16px;
  align-content:start;
  max-width:980px;
}

.brand-row{
  display:flex;
  gap:20px;
  align-items:flex-start;
}

.logo{
  width:92px;
  height:92px;
  border-radius:24px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.03);
  box-shadow:0 18px 34px rgba(0,0,0,0.35);
}

.logo-link{
  display:inline-flex;
  flex:0 0 auto;
}

.brand-text h1{
  margin:0;
  font-size:clamp(34px, 4vw, 54px);
  line-height:0.95;
  letter-spacing:-0.04em;
}

.subtitle{
  margin:10px 0 0;
  max-width:760px;
  color:var(--muted-strong);
  font-size:16px;
  line-height:1.65;
}

.header-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.header-note{
  margin:0;
  max-width:820px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.hero-card{
  position:relative;
  z-index:1;
  display:grid;
  gap:12px;
  align-content:start;
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(0,0,0,0.26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-card-small{
  max-width:420px;
  justify-self:end;
}

.hero-card-title{
  font-size:24px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.03em;
}

.hero-card-copy{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.hero-card-actions,
.page-intro-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-link,
.video-link,
.pbp-toggle,
.button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background:linear-gradient(180deg, rgba(231,51,62,1), rgba(181,7,40,1));
  color:#fff;
  font-weight:700;
  box-shadow:0 14px 28px rgba(0,0,0,0.28);
  cursor:pointer;
}

.hero-link:hover,
.video-link:hover,
.pbp-toggle:hover,
.button-link:hover{
  transform:translateY(-1px);
}

.hero-link-ghost{
  background:rgba(255,255,255,0.03);
  color:var(--text);
}

.header-summary{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:18px;
}

.summary-chip{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.03);
}

.summary-chip-value{
  margin-top:6px;
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.03em;
}

.tabs{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(8, minmax(0, 1fr));
  gap:10px;
  margin-top:18px;
  min-width:0;
}

.tabs button{
  min-height:52px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:var(--muted-strong);
  font-weight:700;
  cursor:pointer;
  min-width:0;
}

.tabs button:hover{
  border-color:rgba(255,255,255,0.20);
  color:var(--text);
}

.tabs button.active{
  background:linear-gradient(180deg, rgba(231,51,62,0.95), rgba(181,7,40,0.92));
  border-color:rgba(255,255,255,0.12);
  color:#fff;
  box-shadow:0 16px 32px rgba(0,0,0,0.32);
}

.panel{
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius-xl);
  border:1px solid var(--line);
  background:var(--panel-glass);
  box-shadow:var(--shadow);
}

.panel-main{
  display:grid;
  gap:16px;
  min-width:0;
}

.controls{
  position:sticky;
  top:12px;
  z-index:4;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(7,8,12,0.88);
  backdrop-filter:blur(16px);
}

.control{
  display:grid;
  gap:7px;
  min-width:160px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
}

.control label{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
}

.control select,
.control input{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:#0b0c10;
  color:var(--text);
  outline:none;
}

.control input[type="checkbox"]{
  width:22px;
  height:22px;
  min-height:22px;
  padding:0;
}

.control select:focus,
.control input:focus{
  border-color:rgba(219,46,46,0.9);
  box-shadow:0 0 0 3px rgba(181,7,40,0.18);
}

#content{
  display:grid;
  gap:16px;
  min-width:0;
}

.page-intro,
.content-section{
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(9,10,14,0.74);
  min-width:0;
}

.page-intro{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:end;
}

.page-intro-copy,
.page-intro-actions{
  min-width:0;
}

.page-intro h2,
.content-section h3,
.profile-block h3{
  margin:0;
  font-size:clamp(22px, 3vw, 32px);
  line-height:1;
  letter-spacing:-0.04em;
}

.section-head{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.page-description,
.section-copy,
.profile-sub,
.note,
.overview-copy,
.action-copy,
.feature-copy{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.overview-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.overview-card,
.leader-card,
.feature-card,
.action-card{
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(11,12,17,0.92);
}

.overview-card-metric{
  display:grid;
  gap:8px;
}

.overview-value{
  font-size:40px;
  font-weight:800;
  line-height:1;
  letter-spacing:-0.05em;
}

.overview-value-small{
  font-size:24px;
  line-height:1.15;
}

.feature-grid{
  display:grid;
  grid-template-columns:1.35fr 0.95fr;
  gap:14px;
}

.feature-card-score{
  background:
    linear-gradient(135deg, rgba(181,7,40,0.18), rgba(255,255,255,0.02)),
    rgba(10,11,15,0.96);
}

.feature-title,
.leader-name,
.action-title{
  font-size:22px;
  font-weight:750;
  line-height:1.1;
  letter-spacing:-0.04em;
}

.feature-score-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-end;
  margin:16px 0 12px;
}

.feature-score-block{
  display:grid;
  gap:6px;
}

.feature-score-label{
  color:var(--muted);
  font-size:13px;
}

.feature-score-value{
  font-size:56px;
  line-height:0.9;
  letter-spacing:-0.06em;
}

.feature-score-block.is-team .feature-score-value{
  color:#fff;
}

.feature-score-sep{
  padding-bottom:10px;
  color:var(--muted);
  font-size:28px;
  font-weight:700;
}

.feature-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.feature-list-item{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  color:var(--muted-strong);
}

.leader-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:14px;
}

.leader-card{
  display:grid;
  gap:8px;
}

.leader-value{
  color:var(--muted-strong);
  font-size:15px;
  font-weight:600;
}

.action-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.action-card{
  display:grid;
  gap:10px;
  width:100%;
  text-align:left;
  color:var(--text);
  cursor:pointer;
}

.action-card:hover{
  border-color:rgba(255,255,255,0.16);
  transform:translateY(-1px);
}

.cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

.card{
  display:grid;
  justify-items:center;
  gap:8px;
  padding:24px 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 20px 34px rgba(0,0,0,0.25);
  text-align:center;
}

.card .title{
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:12px;
  font-weight:700;
  opacity:0.82;
}

.card .score{
  font-size:68px;
  line-height:0.9;
  letter-spacing:-0.06em;
  font-weight:900;
}

.table-wrap{
  width:100%;
  max-width:100%;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.25);
  -webkit-overflow-scrolling:touch;
}

table{
  width:100%;
  min-width:max-content;
  border-collapse:separate;
  border-spacing:0;
}

thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:14px 12px;
  background:
    linear-gradient(180deg, rgba(181,7,40,0.48), rgba(16,18,25,0.98));
  color:#fff;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.12em;
  white-space:nowrap;
  border-bottom:1px solid rgba(255,255,255,0.12);
}

thead th:first-child{
  left:0;
  z-index:3;
}

thead th.sortable{
  cursor:pointer;
  padding-right:26px;
}

thead th.sortable::after{
  content:"";
  display:inline-block;
  margin-left:6px;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid rgba(255,255,255,0.38);
  transform:translateY(2px);
}

thead th.sortable[data-sort="asc"]::after{
  border-top-color:transparent;
  border-bottom:6px solid rgba(255,255,255,0.95);
}

thead th.sortable[data-sort="desc"]::after{
  border-top-color:rgba(255,255,255,0.95);
}

tbody td{
  padding:11px 12px;
  border-bottom:1px solid rgba(0,0,0,0.08);
  color:#0d0d0f;
  text-align:center;
  font-weight:800;
  white-space:nowrap;
}

tbody td:first-child{
  position:sticky;
  left:0;
  z-index:1;
  font-weight:900;
  box-shadow:10px 0 22px -18px rgba(0,0,0,0.85);
}

tbody tr:hover td{
  filter:brightness(0.97);
}

.stat-link,
.player-link{
  color:#111;
  font-weight:800;
  text-decoration:underline;
}

.video-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.pbp-wrap{
  display:grid;
  gap:12px;
}

.pbp-list{
  display:grid;
  gap:10px;
}

.pbp-item{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
}

.pbp-meta{
  margin-bottom:5px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.12em;
}

.pbp-main{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.pbp-player{
  color:var(--text);
  font-weight:800;
}

.pbp-play{
  color:var(--muted-strong);
}

.footer{
  padding:14px 2px 0;
  text-align:center;
}

.muted{
  color:var(--muted);
  font-size:13px;
}

.profile-header{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(9,10,14,0.74);
}

.profile-avatar{
  width:120px;
  height:120px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  font-size:34px;
  font-weight:800;
  overflow:hidden;
  box-shadow:0 18px 32px rgba(0,0,0,0.28);
}

.profile-photo{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin:0;
}

.profile-block{
  display:grid;
  gap:12px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(9,10,14,0.74);
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(88px, 1fr));
  gap:10px;
}

.stat-pill{
  padding:10px 10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  text-align:center;
}

.stat-val{
  margin-top:4px;
  font-size:18px;
  font-weight:800;
}

@media (max-width: 1200px){
  .tabs{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }

  .overview-grid,
  .leader-grid,
  .action-grid,
  .profile-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .container{
    width:min(100%, calc(100% - 20px));
    padding-top:10px;
    padding-bottom:20px;
  }

  .header,
  .panel{
    border-radius:22px;
    padding:16px;
  }

  .header-shell,
  .page-intro,
  .feature-grid,
  .profile-header{
    grid-template-columns:1fr;
  }

  .hero-card-small{
    justify-self:stretch;
    max-width:none;
  }

  .header-summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .cards{
    grid-template-columns:1fr;
  }

  .card .score{
    font-size:54px;
  }
}

@media (max-width: 720px){
  .overview-grid,
  .leader-grid,
  .action-grid,
  .profile-stats,
  .header-summary{
    grid-template-columns:1fr;
  }

  .container{
    width:min(100%, calc(100% - 12px));
    padding-top:max(8px, env(safe-area-inset-top));
    padding-bottom:max(18px, env(safe-area-inset-bottom));
  }

  .header,
  .panel,
  .page-intro,
  .content-section,
  .profile-header,
  .profile-block{
    padding:14px;
    border-radius:18px;
  }

  .controls{
    position:static;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
  }

  .control{
    width:100%;
    min-width:0;
    padding:9px 10px;
  }

  .brand-row{
    flex-direction:column;
    gap:14px;
  }

  .logo{
    width:72px;
    height:72px;
    border-radius:18px;
  }

  .header-actions{
    width:100%;
  }

  .hero-link,
  .video-link,
  .pbp-toggle,
  .button-link{
    width:100%;
  }

  .tabs{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(136px, 72%);
    grid-template-columns:none;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:4px;
    margin-inline:-2px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .tabs::-webkit-scrollbar{
    display:none;
  }

  .tabs button{
    min-height:48px;
    padding:10px 12px;
    scroll-snap-align:start;
  }

  .page-intro{
    gap:12px;
  }

  .page-description,
  .section-copy,
  .profile-sub,
  .note,
  .overview-copy,
  .action-copy,
  .feature-copy,
  .subtitle,
  .header-note{
    font-size:14px;
    line-height:1.5;
  }

  .overview-card,
  .leader-card,
  .feature-card,
  .action-card,
  .card{
    padding:14px;
  }

  .feature-title,
  .leader-name,
  .action-title{
    font-size:19px;
  }

  .feature-score-value{
    font-size:36px;
  }

  .feature-score-sep{
    padding-bottom:0;
  }

  .card .score{
    font-size:46px;
  }

  .table-wrap{
    border-radius:14px;
  }

  thead th,
  tbody td{
    padding:10px 10px;
  }

  .profile-header{
    gap:14px;
    justify-items:start;
  }

  .profile-avatar{
    width:88px;
    height:88px;
    border-radius:22px;
    font-size:28px;
  }

  .stat-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }
}

@media (max-width: 480px){
  .header{
    padding:12px;
  }

  .brand{
    gap:12px;
  }

  .brand-text h1{
    font-size:clamp(28px, 10vw, 38px);
  }

  .tabs{
    grid-auto-columns:minmax(120px, 78%);
  }

  .summary-chip,
  .overview-card,
  .leader-card,
  .feature-card,
  .action-card,
  .page-intro,
  .content-section,
  .profile-block{
    padding:12px;
  }

  .summary-chip-value{
    font-size:21px;
  }

  .overview-value{
    font-size:32px;
  }

  .feature-score-row{
    gap:10px;
  }

  .feature-score-value{
    font-size:32px;
  }

  .feature-score-label,
  .muted{
    font-size:12px;
  }

  .profile-stats{
    gap:10px;
  }

  .stat-pill{
    padding:8px 8px 10px;
  }

  .stat-val{
    font-size:16px;
  }
}
