/* HandballNet 5.0 DataLab — responsive, accessible, data-first interface. */

#hbn-pro .hbn5-lab,
.hbn5-shortcode {
  --hbn5-accent: #075fc7;
  --hbn5-accent-strong: #064493;
  --hbn5-ink: var(--hbn-text, #142033);
  --hbn5-muted: var(--hbn-muted, #69778d);
  --hbn5-line: var(--hbn-line, #dce3ed);
  --hbn5-surface: var(--hbn-surface, #fff);
  --hbn5-soft: var(--hbn-surface-2, #f7f9fc);
  --hbn5-good: #07855b;
  --hbn5-live: #d82143;
  color: var(--hbn5-ink);
}

#hbn-pro .hbn5-lab *,
.hbn5-shortcode * { box-sizing: border-box; }

.hbn5-lab { display: grid; gap: 14px; min-width: 0; }
.hbn5-view { display: grid; gap: 16px; min-width: 0; }

.hbn5-hero {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--hbn5-accent) 20%, var(--hbn5-line));
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 2%, rgba(238, 185, 39, .22), transparent 31%),
    linear-gradient(135deg, color-mix(in srgb, var(--hbn5-accent) 10%, var(--hbn5-surface)), var(--hbn5-surface));
}

.hbn5-hero > div { min-width: 0; }
.hbn5-hero span,
.hbn5-story span,
.hbn5-spotlight span,
.hbn5-record > span,
.hbn5-player-intro span,
.hbn5-player-profile header span,
.hbn5-following-intro > span,
.hbn5-methodology article > span,
.hbn5-match-story > span,
.hbn5-rich-facts header > span {
  color: var(--hbn5-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hbn5-hero h1 {
  max-width: 850px;
  margin: 7px 0 8px;
  color: var(--hbn5-ink);
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.hbn5-hero p { max-width: 820px; margin: 0; color: var(--hbn5-muted); font-size: 14px; line-height: 1.65; }
.hbn5-hero > a,
.hbn5-games > header a {
  flex: none;
  color: var(--hbn5-accent);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.hbn5-hero > a { padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--hbn5-accent) 26%, var(--hbn5-line)); border-radius: 999px; background: var(--hbn5-surface); }
.hbn5-hero > a:hover,
.hbn5-games > header a:hover { text-decoration: underline; }

.hbn5-lab-nav {
  display: flex;
  gap: 5px;
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--hbn5-line);
  border-radius: 14px;
  background: var(--hbn5-surface);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hbn5-lab-nav::-webkit-scrollbar { display: none; }
.hbn5-lab-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--hbn5-muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.hbn5-lab-nav a:hover { color: var(--hbn5-accent); background: var(--hbn5-soft); }
.hbn5-lab-nav a[aria-current="page"] { color: #fff; background: var(--hbn5-accent); }

.hbn5-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hbn5-summary > div,
.hbn5-player-metrics > div {
  display: grid;
  min-width: 0;
  min-height: 106px;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--hbn5-line);
  border-radius: 16px;
  background: var(--hbn5-surface);
}
.hbn5-summary span,
.hbn5-player-metrics span { color: var(--hbn5-muted); font-size: 11px; font-weight: 750; }
.hbn5-summary b,
.hbn5-player-metrics b { overflow-wrap: anywhere; color: var(--hbn5-ink); font-size: clamp(23px, 3vw, 31px); line-height: 1.05; letter-spacing: -.035em; }
.hbn5-summary small,
.hbn5-player-metrics small { color: var(--hbn5-muted); font-size: 10px; line-height: 1.35; }

.hbn5-story,
.hbn5-match-story {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--hbn5-accent);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--hbn5-accent) 6%, var(--hbn5-surface));
}
.hbn5-story p,
.hbn5-match-story p { margin: 6px 0 0; color: var(--hbn5-ink); font-size: 14px; line-height: 1.68; }
.hbn5-match-story small { display: block; margin-top: 8px; color: var(--hbn5-muted); font-size: 10px; line-height: 1.5; }

.hbn5-spotlight {
  overflow: hidden;
  padding: clamp(18px, 3vw, 27px);
  border-radius: 18px;
  background: linear-gradient(135deg, #082c5b, #075fc7);
  color: #fff;
}
.hbn5-spotlight span { color: #bddaff; }
.hbn5-spotlight h2 { margin: 7px 0; color: #fff; font-size: clamp(20px, 3vw, 29px); line-height: 1.12; }
.hbn5-spotlight p { max-width: 900px; margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.65; }

.hbn5-games,
.hbn5-player-list,
.hbn5-player-profile,
.hbn5-following,
.hbn5-methodology {
  overflow: hidden;
  border: 1px solid var(--hbn5-line);
  border-radius: 18px;
  background: var(--hbn5-surface);
}
.hbn5-games > header,
.hbn5-player-list > header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--hbn5-line);
}
.hbn5-games h2,
.hbn5-player-list h2 { margin: 0; color: var(--hbn5-ink); font-size: 16px; }
.hbn5-player-list > header span { color: var(--hbn5-muted); font-size: 11px; font-weight: 750; }
.hbn5-games > div { display: grid; }
.hbn5-game {
  display: grid;
  grid-template-columns: minmax(115px, .65fr) minmax(220px, 2fr) 78px 72px;
  gap: 11px;
  min-height: 58px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hbn5-line);
  color: var(--hbn5-ink);
  text-decoration: none;
}
.hbn5-game:last-child { border-bottom: 0; }
.hbn5-game:hover { background: color-mix(in srgb, var(--hbn5-accent) 5%, var(--hbn5-surface)); }
.hbn5-game small { overflow: hidden; color: var(--hbn5-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hbn5-game b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hbn5-game span { color: var(--hbn5-muted); font-size: 10px; font-weight: 900; text-align: right; }
.hbn5-game span.is-live { color: var(--hbn5-live); }
.hbn5-game strong { color: var(--hbn5-accent); font-size: 17px; text-align: right; }

.hbn5-method-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--hbn5-accent) 18%, var(--hbn5-line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--hbn5-accent) 5%, var(--hbn5-surface));
}
.hbn5-method-note b { flex: none; color: var(--hbn5-accent); font-size: 12px; }
.hbn5-method-note span { color: var(--hbn5-muted); font-size: 11px; line-height: 1.55; }

.hbn5-ranking {
  overflow: hidden;
  border: 1px solid var(--hbn5-line);
  border-radius: 18px;
  background: var(--hbn5-surface);
}
.hbn5-ranking-head,
.hbn5-ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(190px, 2fr) 74px 78px 90px 92px;
  gap: 10px;
  align-items: center;
  padding: 10px 15px;
}
.hbn5-ranking-head { min-height: 42px; border-bottom: 1px solid var(--hbn5-line); background: var(--hbn5-soft); color: var(--hbn5-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.hbn5-ranking-row { min-height: 62px; border-bottom: 1px solid var(--hbn5-line); color: var(--hbn5-ink); font-size: 12px; text-decoration: none; }
.hbn5-ranking-row:last-child { border-bottom: 0; }
.hbn5-ranking-row:hover { background: color-mix(in srgb, var(--hbn5-accent) 4%, var(--hbn5-surface)); }
.hbn5-ranking-row > strong { color: var(--hbn5-muted); font-size: 15px; }
.hbn5-team-cell { display: flex; min-width: 0; gap: 10px; align-items: center; }
.hbn5-team-cell img,
.hbn5-team-cell i { width: 34px; height: 34px; flex: none; object-fit: contain; border-radius: 9px; background: var(--hbn5-soft); }
.hbn5-team-cell i { display: grid; place-items: center; color: var(--hbn5-accent); font-size: 11px; font-style: normal; font-weight: 900; }
.hbn5-team-cell b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbn5-ranking-row > em { position: relative; display: grid; width: 54px; height: 34px; place-items: center; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--hbn5-accent) 9%, var(--hbn5-soft)); color: var(--hbn5-accent); font-style: normal; }
.hbn5-ranking-row > em::before { position: absolute; inset: auto 0 0; height: 3px; width: calc(var(--score, 0) * 1%); background: var(--hbn5-accent); content: ""; }

.hbn5-records { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.hbn5-record {
  display: grid;
  min-height: 180px;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--hbn5-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 8%, rgba(238,185,39,.22), transparent 32%),
    var(--hbn5-surface);
  color: var(--hbn5-ink);
  text-decoration: none;
}
.hbn5-record:hover { border-color: color-mix(in srgb, var(--hbn5-accent) 42%, var(--hbn5-line)); transform: translateY(-1px); }
.hbn5-record strong { color: var(--hbn5-accent); font-size: clamp(32px, 5vw, 48px); line-height: .95; letter-spacing: -.055em; }
.hbn5-record b { overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.hbn5-record small,
.hbn5-coverage { color: var(--hbn5-muted); font-size: 10px; line-height: 1.5; }
.hbn5-coverage { margin: 0; padding: 10px 13px; border-radius: 10px; background: var(--hbn5-soft); }

.hbn5-player-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
  gap: 22px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--hbn5-line);
  border-radius: 18px;
  background: var(--hbn5-surface);
}
.hbn5-player-intro b { display: block; margin-top: 6px; font-size: 22px; }
.hbn5-player-intro p { max-width: 680px; margin: 6px 0 0; color: var(--hbn5-muted); font-size: 12px; line-height: 1.6; }
.hbn5-player-intro form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.hbn5-player-intro label { grid-column: 1 / -1; color: var(--hbn5-muted); font-size: 10px; font-weight: 850; }
.hbn5-player-intro input { min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--hbn5-line); border-radius: 10px; background: var(--hbn5-soft); color: var(--hbn5-ink); }
.hbn5-player-intro button,
.hbn5-player-profile header button,
.hbn5-following-intro button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--hbn5-accent);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.hbn5-player-profile header button.is-followed { background: #fff5d7; color: #725100; box-shadow: inset 0 0 0 1px #e8bb31; }

.hbn5-player-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) minmax(70px, auto);
  gap: 11px;
  min-height: 62px;
  align-items: center;
  padding: 9px 15px;
  border-bottom: 1px solid var(--hbn5-line);
  color: var(--hbn5-ink);
  text-decoration: none;
}
.hbn5-player-row:last-child { border-bottom: 0; }
.hbn5-player-row:hover { background: var(--hbn5-soft); }
.hbn5-player-row > strong { color: var(--hbn5-muted); font-size: 13px; }
.hbn5-player-row > img,
.hbn5-player-row > i { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; background: var(--hbn5-soft); }
.hbn5-player-row > i { display: grid; place-items: center; color: var(--hbn5-accent); font-size: 12px; font-style: normal; font-weight: 900; }
.hbn5-player-row > span { display: grid; min-width: 0; gap: 2px; }
.hbn5-player-row > span b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hbn5-player-row > span small { color: var(--hbn5-muted); font-size: 10px; }
.hbn5-player-row > em { color: var(--hbn5-accent); font-size: 11px; font-style: normal; font-weight: 850; text-align: right; }

.hbn5-player-profile > header {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--hbn5-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--hbn5-accent) 7%, var(--hbn5-surface)), var(--hbn5-surface));
}
.hbn5-player-profile > header > img,
.hbn5-player-profile > header > i { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 19px; background: var(--hbn5-soft); }
.hbn5-player-profile > header > i { display: grid; place-items: center; color: var(--hbn5-accent); font-size: 24px; font-style: normal; font-weight: 900; }
.hbn5-player-profile > header > div { flex: 1; min-width: 0; }
.hbn5-player-profile h2 { margin: 5px 0 3px; font-size: clamp(23px, 4vw, 34px); line-height: 1.05; }
.hbn5-player-profile header p { margin: 0; color: var(--hbn5-muted); font-size: 12px; }
.hbn5-player-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 14px; }
.hbn5-player-metrics > div { min-height: 92px; padding: 13px; }
.hbn5-player-metrics b { font-size: 22px; }
.hbn5-player-profile > .hbn5-coverage { margin: 0 14px 14px; }
.hbn5-player-games { margin: 0 14px 14px; overflow: hidden; border: 1px solid var(--hbn5-line); border-radius: 13px; }
.hbn5-player-games h3 { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--hbn5-line); font-size: 14px; }
.hbn5-player-games > div { display: grid; }
.hbn5-player-games a { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--hbn5-line); color: var(--hbn5-ink); font-size: 11px; text-decoration: none; }
.hbn5-player-games a:last-child { border-bottom: 0; }
.hbn5-player-games time,
.hbn5-player-games span { color: var(--hbn5-muted); }

.hbn5-following { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); }
.hbn5-following-intro { padding: clamp(20px, 4vw, 32px); border-right: 1px solid var(--hbn5-line); background: linear-gradient(145deg, #082c5b, #075fc7); color: #fff; }
.hbn5-following-intro > span { color: #bddaff; }
.hbn5-following-intro h2 { margin: 7px 0; color: #fff; font-size: clamp(24px, 4vw, 34px); }
.hbn5-following-intro p { margin: 0 0 18px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.65; }
.hbn5-following-intro button { background: #fff; color: #0751ad; }
.hbn5-following-intro button.is-enabled { background: #dff8ec; color: #075f40; }
[data-hbn5-following-content] { display: grid; align-content: start; gap: 12px; padding: 18px; }
.hbn5-follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hbn5-follow-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--hbn5-line); border-radius: 13px; background: var(--hbn5-surface); }
.hbn5-follow-card > a { color: var(--hbn5-ink); font-size: 14px; font-weight: 850; text-decoration: none; }
.hbn5-follow-card small { color: var(--hbn5-muted); font-size: 10px; line-height: 1.45; }
.hbn5-follow-games { overflow: hidden; border: 1px solid var(--hbn5-line); border-radius: 13px; }
.hbn5-follow-games h3 { margin: 0; padding: 13px; border-bottom: 1px solid var(--hbn5-line); font-size: 14px; }
.hbn5-skeleton { min-height: 92px; border-radius: 13px; background: linear-gradient(100deg, var(--hbn5-soft) 20%, color-mix(in srgb, var(--hbn5-line) 60%, var(--hbn5-soft)) 38%, var(--hbn5-soft) 55%); background-size: 220% 100%; animation: hbn5-shimmer 1.2s linear infinite; }
@keyframes hbn5-shimmer { to { background-position-x: -220%; } }

.hbn5-methodology { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbn5-methodology article { min-height: 140px; padding: 18px; border-right: 1px solid var(--hbn5-line); border-bottom: 1px solid var(--hbn5-line); }
.hbn5-methodology article:nth-child(2n) { border-right: 0; }
.hbn5-methodology article:nth-last-child(-n+2) { border-bottom: 0; }
.hbn5-methodology p { margin: 8px 0 0; color: var(--hbn5-muted); font-size: 12px; line-height: 1.7; }

.hbn5-rich-facts {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border: 1px solid var(--hbn5-line);
  border-radius: 14px;
  background: var(--hbn5-surface);
}
.hbn5-rich-facts header { display: grid; gap: 3px; }
.hbn5-rich-facts header b { font-size: 13px; }
.hbn5-rich-counts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.hbn5-rich-counts span { padding: 7px 9px; border-radius: 999px; background: var(--hbn5-soft); color: var(--hbn5-muted); font-size: 10px; font-weight: 750; }

.hbn5-fact-pane { display: grid; gap: 14px; }
.hbn5-event-timeline,
.hbn5-match-players,
.hbn5-match-lineups { overflow: hidden; border: 1px solid var(--hbn5-line); border-radius: 14px; background: var(--hbn5-surface); }
.hbn5-event-timeline > h3,
.hbn5-match-players > h3,
.hbn5-match-lineups > h3 { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--hbn5-line); font-size: 14px; }
.hbn5-event-timeline h3 small,
.hbn5-match-players h3 small { margin-left: 5px; color: var(--hbn5-muted); font-size: 10px; font-weight: 650; }
.hbn5-event-timeline > div { display: grid; }
.hbn5-event-timeline article { display: grid; grid-template-columns: 45px minmax(0, 1fr) 52px; gap: 10px; align-items: center; min-height: 52px; padding: 9px 14px; border-bottom: 1px solid var(--hbn5-line); }
.hbn5-event-timeline article:last-child { border-bottom: 0; }
.hbn5-event-timeline time { color: var(--hbn5-accent); font-size: 12px; font-weight: 900; }
.hbn5-event-timeline article > div { display: grid; gap: 2px; }
.hbn5-event-timeline article b { font-size: 12px; }
.hbn5-event-timeline article span { color: var(--hbn5-muted); font-size: 10px; }
.hbn5-event-timeline article strong { text-align: right; font-size: 14px; }
.hbn5-fact-table { min-width: 620px; }
.hbn5-match-players { overflow-x: auto; }
.hbn5-fact-table-head,
.hbn5-fact-table > a { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(54px, .55fr)); gap: 9px; align-items: center; padding: 9px 14px; }
.hbn5-fact-table-head { background: var(--hbn5-soft); color: var(--hbn5-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.hbn5-fact-table > a { min-height: 50px; border-top: 1px solid var(--hbn5-line); color: var(--hbn5-ink); font-size: 11px; text-decoration: none; }
.hbn5-fact-table > a:hover { background: var(--hbn5-soft); }
.hbn5-fact-table > a > span { display: grid; min-width: 0; gap: 2px; }
.hbn5-fact-table > a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbn5-fact-table > a small { color: var(--hbn5-muted); font-size: 9px; }
.hbn5-fact-table > a em { color: var(--hbn5-ink); font-style: normal; text-align: center; }
.hbn5-match-lineups > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbn5-match-lineups article { display: grid; align-content: start; gap: 5px; min-height: 130px; padding: 16px; border-right: 1px solid var(--hbn5-line); }
.hbn5-match-lineups article:last-child { border-right: 0; }
.hbn5-match-lineups article > span { color: var(--hbn5-accent); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.hbn5-match-lineups article > b { font-size: 17px; }
.hbn5-match-lineups article > small,
.hbn5-match-lineups article > p { margin: 0; color: var(--hbn5-muted); font-size: 10px; line-height: 1.6; }

.hbn5-empty { padding: clamp(24px, 5vw, 50px); border: 1px dashed var(--hbn5-line); border-radius: 18px; background: var(--hbn5-surface); text-align: center; }
.hbn5-empty b { font-size: 17px; }
.hbn5-empty p { max-width: 620px; margin: 8px auto 0; color: var(--hbn5-muted); font-size: 12px; line-height: 1.65; }

#hbn-pro[data-theme="dark"] .hbn5-spotlight,
#hbn-pro[data-theme="dark"] .hbn5-following-intro { background: linear-gradient(145deg, #0d315f, #075fc7); }
#hbn-pro[data-theme="dark"] .hbn5-player-profile header button.is-followed { background: #4a3a09; color: #ffe6a0; }

@media (max-width: 980px) {
  .hbn5-records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbn5-player-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hbn5-ranking-head,
  .hbn5-ranking-row { grid-template-columns: 36px minmax(170px, 2fr) 65px 70px 82px; }
  .hbn5-ranking-head > :nth-child(5),
  .hbn5-ranking-row > :nth-child(5) { display: none; }
}

@media (max-width: 767px) {
  .hbn5-hero { display: grid; align-items: start; padding: 20px; }
  .hbn5-hero > a { justify-self: start; }
  .hbn5-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbn5-game { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 12px 14px; }
  .hbn5-game small { grid-column: 1; grid-row: 1; }
  .hbn5-game b { grid-column: 1; grid-row: 2; white-space: normal; }
  .hbn5-game span { grid-column: 2; grid-row: 1; }
  .hbn5-game strong { grid-column: 2; grid-row: 2; }
  .hbn5-method-note { display: grid; }
  .hbn5-ranking { overflow-x: auto; }
  .hbn5-ranking-head,
  .hbn5-ranking-row { min-width: 540px; }
  .hbn5-player-intro { grid-template-columns: 1fr; }
  .hbn5-player-profile > header { align-items: flex-start; flex-wrap: wrap; }
  .hbn5-player-profile > header button { margin-left: 87px; }
  .hbn5-following { grid-template-columns: 1fr; }
  .hbn5-following-intro { border-right: 0; border-bottom: 1px solid var(--hbn5-line); }
  .hbn5-methodology { grid-template-columns: 1fr; }
  .hbn5-methodology article,
  .hbn5-methodology article:nth-child(2n),
  .hbn5-methodology article:nth-last-child(-n+2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--hbn5-line); }
  .hbn5-methodology article:last-child { border-bottom: 0; }
  .hbn5-rich-facts { display: grid; }
  .hbn5-rich-counts { justify-content: flex-start; }
  .hbn5-match-lineups > div { grid-template-columns: 1fr; }
  .hbn5-match-lineups article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--hbn5-line); }
  .hbn5-match-lineups article:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  #hbn-pro .hbn5-lab { gap: 10px; }
  .hbn5-hero { border-radius: 16px; }
  .hbn5-hero p { font-size: 12px; }
  .hbn5-lab-nav { margin-inline: -1px; }
  .hbn5-summary { gap: 7px; }
  .hbn5-summary > div { min-height: 90px; padding: 12px; }
  .hbn5-summary b { font-size: 24px; }
  .hbn5-records { grid-template-columns: 1fr; }
  .hbn5-record { min-height: 145px; }
  .hbn5-player-row { grid-template-columns: 26px 38px minmax(0, 1fr); padding: 9px 11px; }
  .hbn5-player-row > img,
  .hbn5-player-row > i { width: 36px; height: 36px; }
  .hbn5-player-row > em { display: none; }
  .hbn5-player-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px; }
  .hbn5-player-profile > header > img,
  .hbn5-player-profile > header > i { width: 58px; height: 58px; border-radius: 15px; }
  .hbn5-player-profile > header button { width: 100%; margin-left: 0; }
  .hbn5-player-games a { grid-template-columns: 1fr auto; }
  .hbn5-player-games a span { display: none; }
  .hbn5-follow-grid { grid-template-columns: 1fr; }
  [data-hbn5-following-content] { padding: 12px; }
}

@media (max-width: 359px) {
  .hbn5-summary { grid-template-columns: 1fr; }
  .hbn5-player-metrics { grid-template-columns: 1fr; }
  .hbn5-player-intro form { grid-template-columns: 1fr; }
  .hbn5-player-intro form label { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hbn5-skeleton { animation: none; }
  .hbn5-record { transition: none; }
}
