#hbn-pro,
#hbn-pro * {
  box-sizing: border-box;
}

#hbn-pro {
  --hbn-blue: #1769e0;
  --hbn-blue-dark: #0b4dad;
  --hbn-live: #e0283f;
  --hbn-green: #0c9b63;
  --hbn-gold: #f6b81a;
  --hbn-bg: #f2f5f9;
  --hbn-surface: #ffffff;
  --hbn-surface-2: #f7f9fc;
  --hbn-text: #142033;
  --hbn-muted: #69778d;
  --hbn-line: #dce3ed;
  --hbn-shadow: 0 12px 35px rgba(28, 45, 74, 0.09);
  width: min(1500px, calc(100vw - 30px));
  min-height: 760px;
  margin: 24px auto 50px;
  overflow: hidden;
  border: 1px solid var(--hbn-line);
  border-radius: 20px;
  background: var(--hbn-bg);
  color: var(--hbn-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: var(--hbn-shadow);
  isolation: isolate;
}

#hbn-pro[data-theme="dark"] {
  --hbn-bg: #0e1420;
  --hbn-surface: #151e2d;
  --hbn-surface-2: #1a2536;
  --hbn-text: #f3f6fb;
  --hbn-muted: #a5b2c5;
  --hbn-line: #2a384c;
  --hbn-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

#hbn-pro button,
#hbn-pro input,
#hbn-pro select {
  font: inherit;
}

#hbn-pro button {
  color: inherit;
}

#hbn-pro button:focus-visible,
#hbn-pro input:focus-visible,
#hbn-pro select:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.24);
  outline-offset: 2px;
}

.hbn2-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: center;
  min-height: 80px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface);
}

.hbn2-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hbn2-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1b75ef, #094aa9);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23, 105, 224, 0.25);
}

.hbn2-brand strong,
.hbn2-brand small {
  display: block;
}

.hbn2-brand strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.hbn2-brand small {
  margin-top: 2px;
  color: var(--hbn-muted);
  font-size: 11px;
  font-weight: 650;
}

.hbn2-search-open {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  cursor: pointer;
  text-align: left;
}

.hbn2-search-open span:first-child {
  color: var(--hbn-blue);
  font-size: 23px;
  line-height: 1;
}

.hbn2-search-open span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-search-open kbd {
  padding: 3px 6px;
  border: 1px solid var(--hbn-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--hbn-surface);
  color: var(--hbn-muted);
  font-size: 10px;
}

.hbn2-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.hbn2-connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 3px;
  color: var(--hbn-green);
  font-size: 12px;
  font-weight: 800;
}

.hbn2-connection i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(12, 155, 99, 0.13);
}

.hbn2-icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--hbn-line);
  border-radius: 11px;
  background: var(--hbn-surface-2);
  cursor: pointer;
  font-weight: 850;
}

.hbn2-icon-btn:hover {
  border-color: var(--hbn-blue);
  color: var(--hbn-blue);
}

.hbn2-main-nav {
  display: flex;
  min-height: 52px;
  align-items: stretch;
  gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface);
}

.hbn2-main-nav button {
  position: relative;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: var(--hbn-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hbn2-main-nav button::after {
  position: absolute;
  right: 17px;
  bottom: -1px;
  left: 17px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hbn-blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.18s ease;
}

.hbn2-main-nav button:hover,
.hbn2-main-nav button.is-active {
  color: var(--hbn-blue);
}

.hbn2-main-nav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hbn2-main-nav button span {
  min-width: 18px;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 10px;
  background: var(--hbn-surface-2);
  font-size: 10px;
}

.hbn2-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--hbn-live);
  box-shadow: 0 0 0 3px rgba(224, 40, 63, 0.13);
}

.hbn2-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
  padding: 16px;
}

.hbn2-left,
.hbn2-right {
  display: grid;
  gap: 13px;
  position: sticky;
  top: 15px;
}

.hbn2-panel {
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--hbn-line);
  border-radius: 14px;
  background: var(--hbn-surface);
}

.hbn2-panel h3 {
  margin: 0 0 10px;
  color: var(--hbn-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hbn2-panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.hbn2-panel-title button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hbn-blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.hbn2-side-link,
.hbn2-league-link {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--hbn-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.hbn2-side-link:hover,
.hbn2-side-link.is-active,
.hbn2-league-link:hover {
  background: rgba(23, 105, 224, 0.09);
  color: var(--hbn-blue);
}

.hbn2-league-link i {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 7px;
  background: var(--hbn-surface-2);
  font-style: normal;
  font-size: 11px;
}

.hbn2-mini-skeleton {
  width: 100%;
  height: 33px;
  margin: 5px 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hbn-surface-2), var(--hbn-line), var(--hbn-surface-2));
  background-size: 250% 100%;
  animation: hbn2-shimmer 1.4s infinite;
}

.hbn2-archive-box div {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 900;
}

.hbn2-archive-box small,
.hbn2-explain,
.hbn2-panel p {
  margin: 0;
  color: var(--hbn-muted);
  font-size: 11px;
  line-height: 1.55;
}

.hbn2-main {
  min-width: 0;
}

.hbn2-toolbar,
.hbn2-breadcrumb,
.hbn2-content {
  border: 1px solid var(--hbn-line);
  background: var(--hbn-surface);
}

.hbn2-toolbar {
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 14px;
}

.hbn2-date-row {
  display: grid;
  grid-template-columns: 40px repeat(3, minmax(86px, 1fr)) 40px 56px;
  align-items: stretch;
  min-height: 58px;
  border-bottom: 1px solid var(--hbn-line);
}

.hbn2-date-arrow,
.hbn2-date-button,
.hbn2-calendar {
  border: 0;
  border-right: 1px solid var(--hbn-line);
  background: transparent;
  cursor: pointer;
}

.hbn2-date-arrow {
  color: var(--hbn-muted);
  font-size: 24px;
}

.hbn2-date-button {
  position: relative;
  display: grid;
  place-content: center;
  gap: 2px;
  min-width: 0;
}

.hbn2-date-button small {
  color: var(--hbn-muted);
  font-size: 10px;
  font-weight: 700;
}

.hbn2-date-button b {
  font-size: 12px;
}

.hbn2-date-button.is-active {
  background: rgba(23, 105, 224, 0.07);
  color: var(--hbn-blue);
}

.hbn2-date-button.is-active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hbn-blue);
  content: "";
}

.hbn2-calendar {
  position: relative;
  display: grid;
  place-items: center;
}

.hbn2-calendar input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.hbn2-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: none;
}

.hbn2-filters button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.hbn2-filters button:hover,
.hbn2-filters button.is-active {
  border-color: rgba(23, 105, 224, 0.22);
  background: rgba(23, 105, 224, 0.1);
  color: var(--hbn-blue);
}

.hbn2-content {
  min-height: 470px;
  overflow: hidden;
  border-radius: 14px;
}

.hbn2-breadcrumb {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  color: var(--hbn-muted);
  font-size: 12px;
}

.hbn2-loading,
.hbn2-empty-state {
  display: grid;
  min-height: 380px;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.hbn2-loading i {
  width: 34px;
  height: 34px;
  margin-bottom: 13px;
  border: 3px solid var(--hbn-line);
  border-top-color: var(--hbn-blue);
  border-radius: 50%;
  animation: hbn2-spin 0.8s linear infinite;
}

.hbn2-loading b,
.hbn2-empty-state b {
  font-size: 15px;
}

.hbn2-loading small,
.hbn2-empty-state p {
  max-width: 440px;
  margin: 6px auto 0;
  color: var(--hbn-muted);
  font-size: 12px;
  line-height: 1.55;
}

.hbn2-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 16px;
  background: var(--hbn-surface-2);
  font-size: 22px;
}

.hbn2-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hbn-line);
}

.hbn2-day-summary h1,
.hbn2-day-summary h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hbn2-day-summary p {
  margin: 3px 0 0;
  color: var(--hbn-muted);
  font-size: 11px;
}

.hbn2-day-summary span {
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  font-size: 10px;
  font-weight: 800;
}

.hbn2-league-group + .hbn2-league-group {
  border-top: 6px solid var(--hbn-bg);
}

.hbn2-league-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface-2);
}

.hbn2-league-head > button:first-child {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.hbn2-flag {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--hbn-surface);
  font-size: 14px;
}

.hbn2-league-head strong,
.hbn2-league-head small {
  display: block;
}

.hbn2-league-head strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-league-head small {
  margin-top: 2px;
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.hbn2-star {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a5adba;
  cursor: pointer;
  font-size: 16px;
}

.hbn2-star:hover,
.hbn2-star.is-saved {
  background: rgba(246, 184, 26, 0.12);
  color: var(--hbn-gold);
}

.hbn2-match {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 64px 38px;
  width: 100%;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 13px;
  border: 0;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface);
  color: var(--hbn-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, transform 0.16s;
}

.hbn2-match:last-child {
  border-bottom: 0;
}

.hbn2-match:hover,
.hbn2-match:focus-visible {
  z-index: 1;
  background: rgba(23, 105, 224, 0.055);
  box-shadow: inset 3px 0 0 var(--hbn-blue);
  outline: 0;
}

.hbn2-match-status {
  display: grid;
  gap: 2px;
  color: var(--hbn-muted);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.hbn2-match-status b {
  color: var(--hbn-text);
  font-size: 12px;
}

.hbn2-match.is-live .hbn2-match-status,
.hbn2-match.is-live .hbn2-match-status b {
  color: var(--hbn-live);
}

.hbn2-team-pair {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hbn2-team-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hbn2-team-line img,
.hbn2-team-logo {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.hbn2-team-line .hbn2-logo-fallback {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  font-size: 10px;
}

.hbn2-team-line span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-score-pair {
  display: grid;
  gap: 5px;
  text-align: center;
}

.hbn2-score-pair b {
  font-size: 14px;
  line-height: 23px;
}

.hbn2-match.is-finished .hbn2-score-pair b {
  font-weight: 900;
}

.hbn2-match.is-inactive .hbn2-match-status,
.hbn2-match.is-inactive .hbn2-match-status b {
  color: var(--hbn-warn);
}

.hbn2-chevron {
  color: var(--hbn-muted);
  font-size: 22px;
  text-align: center;
}

.hbn2-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hbn-line);
  font-size: 11px;
}

.hbn2-status-row span {
  color: var(--hbn-muted);
}

.hbn2-status-row b {
  text-align: right;
}

.hbn2-explain {
  padding-top: 10px;
}

.hbn2-favorite-list {
  display: grid;
  gap: 6px;
}

.hbn2-favorite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: var(--hbn-surface-2);
  font-size: 10px;
  font-weight: 750;
}

.hbn2-favorite-item button {
  border: 0;
  background: transparent;
  color: var(--hbn-live);
  cursor: pointer;
}

.hbn2-tip {
  display: flex;
  gap: 10px;
}

.hbn2-tip > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 105, 224, 0.1);
  color: var(--hbn-blue);
  font-weight: 900;
}

.hbn2-tip b {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.hbn2-mobile-nav {
  display: none;
}

.hbn2-modal[hidden] {
  display: none !important;
}

.hbn2-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 9vh 18px 30px;
}

.hbn2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.7);
  backdrop-filter: blur(3px);
}

.hbn2-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: 82vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--hbn-line);
  border-radius: 18px;
  background: var(--hbn-surface);
  color: var(--hbn-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hbn2-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.hbn2-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.hbn2-modal-head button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--hbn-line);
  border-radius: 10px;
  background: var(--hbn-surface-2);
  cursor: pointer;
  font-size: 20px;
}

.hbn2-search-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 2px solid var(--hbn-blue);
  border-radius: 12px;
  background: var(--hbn-surface-2);
}

.hbn2-search-input input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hbn-text);
}

#hbn2-search-results {
  min-height: 120px;
  padding-top: 12px;
}

.hbn2-search-section h3 {
  margin: 12px 0 7px;
  color: var(--hbn-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hbn2-search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.hbn2-search-result:hover {
  background: var(--hbn-surface-2);
}

.hbn2-search-result i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 105, 224, 0.1);
  color: var(--hbn-blue);
  font-style: normal;
}

.hbn2-empty-note {
  margin: 20px 0;
  color: var(--hbn-muted);
  font-size: 12px;
  text-align: center;
}

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

.hbn2-help-grid article {
  padding: 13px;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
  background: var(--hbn-surface-2);
}

.hbn2-help-grid b {
  font-size: 12px;
}

.hbn2-help-grid p {
  margin: 5px 0 0;
  color: var(--hbn-muted);
  font-size: 11px;
  line-height: 1.5;
}

.hbn2-info-box {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(23, 105, 224, 0.25);
  border-radius: 12px;
  background: rgba(23, 105, 224, 0.07);
  color: var(--hbn-muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Match centre */
.hbn2-detail-head {
  padding: 18px;
  background: linear-gradient(135deg, rgba(23, 105, 224, 0.1), transparent 65%);
  border-bottom: 1px solid var(--hbn-line);
}

.hbn2-detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.hbn2-back {
  padding: 7px 10px;
  border: 1px solid var(--hbn-line);
  border-radius: 9px;
  background: var(--hbn-surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.hbn2-detail-topline span {
  color: var(--hbn-muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.hbn2-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.hbn2-detail-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.hbn2-detail-team img,
.hbn2-logo-fallback {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  object-fit: contain;
  border-radius: 16px;
  background: var(--hbn-surface);
}

.hbn2-detail-team b {
  overflow: hidden;
  max-width: 100%;
  font-size: 15px;
  text-overflow: ellipsis;
}

.hbn2-detail-score {
  text-align: center;
}

.hbn2-detail-score strong {
  display: block;
  font-size: clamp(28px, 5vw, 45px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hbn2-detail-score span {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--hbn-surface);
  color: var(--hbn-muted);
  font-size: 10px;
  font-weight: 850;
}

.hbn2-detail-score span.is-live {
  background: rgba(224, 40, 63, 0.1);
  color: var(--hbn-live);
}

.hbn2-detail-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 10px;
  border-bottom: 1px solid var(--hbn-line);
  scrollbar-width: none;
}

.hbn2-detail-tabs button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--hbn-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.hbn2-detail-tabs button:hover,
.hbn2-detail-tabs button.is-active {
  background: var(--hbn-blue);
  color: #fff;
}

.hbn2-detail-pane {
  min-height: 260px;
  padding: 16px;
}

.hbn2-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13px;
}

.hbn2-section-title small {
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 700;
}

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

.hbn2-data-card,
.hbn2-stat-row {
  padding: 13px;
  border: 1px solid var(--hbn-line);
  border-radius: 11px;
  background: var(--hbn-surface-2);
}

.hbn2-data-card span,
.hbn2-stat-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hbn2-data-card b,
.hbn2-stat-row b {
  font-size: 13px;
}

.hbn2-period-table,
.hbn2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.hbn2-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hbn-line);
  border-radius: 11px;
}

.hbn2-period-table th,
.hbn2-period-table td,
.hbn2-table th,
.hbn2-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hbn-line);
  text-align: left;
  white-space: nowrap;
}

.hbn2-table th {
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hbn2-table tr:last-child td,
.hbn2-period-table tr:last-child td {
  border-bottom: 0;
}

.hbn2-table tr.is-highlight td {
  background: rgba(23, 105, 224, 0.08);
  font-weight: 800;
}

.hbn2-form-block {
  display: grid;
  gap: 9px;
}

.hbn2-form-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) repeat(5, 38px);
  align-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--hbn-line);
  border-radius: 11px;
}

.hbn2-form-row > b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-form-chip {
  display: grid;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--hbn-surface-2);
  font-size: 9px;
  font-weight: 900;
}

.hbn2-form-chip.is-win {
  background: rgba(12, 155, 99, 0.12);
  color: var(--hbn-green);
}

.hbn2-form-chip.is-loss {
  background: rgba(224, 40, 63, 0.1);
  color: var(--hbn-live);
}

.hbn2-form-chip.is-draw {
  background: rgba(246, 184, 26, 0.14);
  color: #a66b00;
}

.hbn2-h2h-card {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-bottom: 1px solid var(--hbn-line);
  font-size: 10px;
}

.hbn2-h2h-card:last-child {
  border-bottom: 0;
}

.hbn2-h2h-card span {
  color: var(--hbn-muted);
}

.hbn2-h2h-card b {
  font-size: 12px;
}

.hbn2-coverage-note {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  font-size: 10px;
  line-height: 1.5;
}

.hbn2-coverage-note i {
  color: var(--hbn-blue);
  font-style: normal;
  font-weight: 900;
}

/* League and team profiles */
.hbn2-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-bottom: 1px solid var(--hbn-line);
  background: linear-gradient(135deg, rgba(23, 105, 224, 0.1), transparent);
}

.hbn2-profile-logo {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  object-fit: contain;
  border-radius: 16px;
  background: var(--hbn-surface);
  font-size: 23px;
}

.hbn2-profile-head h2 {
  margin: 0;
  font-size: 20px;
}

.hbn2-profile-head p {
  margin: 3px 0 0;
  color: var(--hbn-muted);
  font-size: 11px;
}

.hbn2-profile-tabs {
  padding: 10px 14px 18px;
}

.hbn2-profile-nav {
  padding-inline: 14px;
  background: var(--hbn-surface);
}

.hbn2-overview-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hbn2-result-balance,
.hbn2-venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.hbn2-venue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.hbn2-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 11px;
  color: var(--hbn-muted);
  font-size: 10px;
}

.hbn2-list-heading b {
  color: var(--hbn-text);
  font-size: 12px;
}

.hbn2-split-tables {
  display: grid;
  gap: 20px;
}

.hbn2-split-tables section + section {
  padding-top: 18px;
  border-top: 1px solid var(--hbn-line);
}

.hbn2-derived-table td:nth-child(2) {
  min-width: 150px;
}

.hbn2-record-form {
  display: inline-flex;
  gap: 3px;
}

.hbn2-record-form i,
.hbn2-team-form-strip > i,
.hbn2-venue-record i {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--hbn-surface-2);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.hbn2-record-form .is-win,
.hbn2-team-form-strip .is-win,
.hbn2-venue-record .is-win {
  background: rgba(12, 155, 99, 0.12);
  color: var(--hbn-green);
}

.hbn2-record-form .is-draw,
.hbn2-team-form-strip .is-draw,
.hbn2-venue-record .is-draw {
  background: rgba(246, 184, 26, 0.14);
  color: #a66b00;
}

.hbn2-record-form .is-loss,
.hbn2-team-form-strip .is-loss,
.hbn2-venue-record .is-loss {
  background: rgba(224, 40, 63, 0.1);
  color: var(--hbn-live);
}

.hbn2-team-form-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
  background: var(--hbn-surface-2);
}

.hbn2-team-form-strip > div {
  min-width: 145px;
  margin-right: auto;
}

.hbn2-team-form-strip span,
.hbn2-team-form-strip b {
  display: block;
}

.hbn2-team-form-strip span {
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hbn2-team-form-strip b {
  margin-top: 3px;
  font-size: 12px;
}

.hbn2-venue-record {
  padding: 14px;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
  background: var(--hbn-surface-2);
}

.hbn2-venue-record > span,
.hbn2-venue-record > b {
  display: block;
}

.hbn2-venue-record > span {
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hbn2-venue-record > b {
  margin: 4px 0 10px;
  font-size: 17px;
}

.hbn2-venue-record > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hbn2-archive-intro {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 105, 224, 0.22);
  border-radius: 12px;
  background: rgba(23, 105, 224, 0.06);
}

.hbn2-archive-intro b {
  font-size: 13px;
}

.hbn2-archive-intro p {
  margin: 4px 0 0;
  color: var(--hbn-muted);
  font-size: 10px;
  line-height: 1.5;
}

button.hbn2-data-card {
  color: var(--hbn-text);
  cursor: pointer;
  text-align: left;
}

button.hbn2-data-card:hover,
button.hbn2-data-card.is-current {
  border-color: var(--hbn-blue);
  background: rgba(23, 105, 224, 0.08);
}

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

.hbn2-directory-country {
  overflow: hidden;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
}

.hbn2-directory-country h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface-2);
  font-size: 11px;
}

.hbn2-directory-country button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--hbn-line);
  background: var(--hbn-surface);
  cursor: pointer;
  text-align: left;
}

.hbn2-directory-country button:last-child {
  border-bottom: 0;
}

.hbn2-directory-country button:hover {
  background: rgba(23, 105, 224, 0.07);
}

.hbn2-directory-country button span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-directory-country button small {
  color: var(--hbn-muted);
  font-size: 9px;
}

.hbn2-directory-country button b {
  color: var(--hbn-muted);
  font-size: 17px;
}

.hbn2-league-mini-list .hbn2-match {
  border: 1px solid var(--hbn-line);
  border-radius: 10px;
  margin-bottom: 7px;
}

.hbn2-season-select {
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid var(--hbn-line);
  border-radius: 9px;
  background: var(--hbn-surface);
  color: var(--hbn-text);
  font-size: 11px;
}

@keyframes hbn2-spin {
  to { transform: rotate(360deg); }
}

@keyframes hbn2-shimmer {
  to { background-position: -250% 0; }
}

.hbn2-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hbn2-source-row > small {
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 800;
}

.hbn2-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--hbn-line);
  border-radius: 999px;
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
  font-size: 9px;
  font-weight: 900;
}

.hbn2-source-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hbn-green);
}

.hbn2-source-badge.is-calculated {
  border-color: rgba(23, 105, 224, 0.26);
  background: rgba(23, 105, 224, 0.08);
  color: var(--hbn-blue);
}

.hbn2-source-badge.is-calculated i {
  background: var(--hbn-blue);
}

.hbn2-calendar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(23, 105, 224, 0.3);
  border-radius: 9px;
  background: rgba(23, 105, 224, 0.08);
  color: var(--hbn-blue) !important;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}

.hbn2-calendar-action:hover,
.hbn2-calendar-action:focus {
  border-color: var(--hbn-blue);
  background: var(--hbn-blue);
  color: #fff !important;
}

.hbn2-coverage-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--hbn-line);
  border-radius: 13px;
  background: var(--hbn-surface-2);
}

.hbn2-coverage-panel h3,
.hbn2-coverage-panel p {
  margin: 0;
}

.hbn2-coverage-panel h3 {
  font-size: 13px;
}

.hbn2-coverage-panel p {
  margin-top: 5px;
  color: var(--hbn-muted);
  font-size: 9px;
  line-height: 1.5;
}

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

.hbn2-coverage-grid > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 1px 7px;
  align-items: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--hbn-surface);
}

.hbn2-coverage-grid i {
  grid-row: 1 / 3;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(12, 155, 99, 0.12);
  color: var(--hbn-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.hbn2-coverage-grid .is-missing i {
  background: var(--hbn-surface-2);
  color: var(--hbn-muted);
}

.hbn2-coverage-grid b,
.hbn2-coverage-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbn2-coverage-grid b {
  font-size: 9px;
}

.hbn2-coverage-grid small {
  color: var(--hbn-muted);
  font-size: 8px;
}

.hbn2-team-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.hbn2-team-compare > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--hbn-line);
  border-radius: 12px;
  background: var(--hbn-surface-2);
}

.hbn2-team-compare > div:last-child {
  text-align: right;
}

.hbn2-team-compare > i {
  display: grid;
  place-items: center;
  color: var(--hbn-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.hbn2-team-compare b {
  font-size: 11px;
}

.hbn2-team-compare span {
  color: var(--hbn-blue);
  font-size: 12px;
  font-weight: 900;
}

.hbn2-team-compare small {
  color: var(--hbn-muted);
  font-size: 9px;
}

@media (max-width: 1180px) {
  .hbn2-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .hbn2-right {
    display: none;
  }
}

@media (max-width: 900px) {
  #hbn-pro {
    width: min(100%, calc(100vw - 18px));
    margin-top: 12px;
    border-radius: 16px;
  }

  .hbn2-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 68px;
    padding: 11px 14px;
  }

  .hbn2-search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hbn2-head-actions .hbn2-connection {
    display: none;
  }

  .hbn2-layout {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hbn2-left {
    display: none;
  }
}

@media (max-width: 680px) {
  .hbn2-coverage-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hbn2-coverage-grid {
    grid-template-columns: 1fr;
  }

  .hbn2-team-compare {
    grid-template-columns: 1fr;
  }

  .hbn2-team-compare > div:last-child {
    text-align: left;
  }

  .hbn2-team-compare > i {
    height: 20px;
  }

  .hbn2-detail-topline {
    flex-wrap: wrap;
  }

  .hbn2-detail-topline > span {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .hbn2-profile-head {
    flex-wrap: wrap;
  }

  .hbn2-profile-head .hbn2-calendar-action {
    width: 100%;
    margin-left: 0;
  }

  #hbn-pro {
    width: 100%;
    margin: 0 0 28px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hbn2-brand small,
  .hbn2-search-open kbd,
  .hbn2-main-nav {
    display: none;
  }

  .hbn2-head {
    position: sticky;
    z-index: 20;
    top: 0;
  }

  .hbn2-search-open {
    min-height: 42px;
  }

  .hbn2-layout {
    padding: 8px 7px calc(76px + env(safe-area-inset-bottom));
  }

  .hbn2-toolbar {
    margin-bottom: 8px;
  }

  .hbn2-date-row {
    grid-template-columns: 34px repeat(3, minmax(70px, 1fr)) 34px 44px;
    min-height: 54px;
  }

  .hbn2-date-button b {
    font-size: 10px;
  }

  .hbn2-filters {
    padding: 8px;
  }

  .hbn2-match {
    grid-template-columns: 52px minmax(0, 1fr) 45px 23px;
    gap: 7px;
    min-height: 64px;
    padding: 7px 5px 7px 8px;
  }

  .hbn2-team-line {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
  }

  .hbn2-team-line img {
    width: 19px;
    height: 19px;
  }

  .hbn2-team-line span,
  .hbn2-match-status b {
    font-size: 11px;
  }

  .hbn2-match-status,
  .hbn2-league-head small {
    font-size: 8px;
  }

  .hbn2-score-pair b {
    font-size: 12px;
    line-height: 19px;
  }

  .hbn2-mobile-nav {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 4px 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--hbn-line);
    background: var(--hbn-surface);
    box-shadow: 0 -8px 25px rgba(11, 24, 43, 0.11);
  }

  .hbn2-mobile-nav button {
    display: grid;
    place-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--hbn-muted);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
  }

  .hbn2-mobile-nav span {
    font-size: 16px;
  }

  .hbn2-mobile-nav button.is-active {
    color: var(--hbn-blue);
  }

  .hbn2-scoreboard {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    gap: 8px;
  }

  .hbn2-detail-team img,
  .hbn2-logo-fallback {
    width: 46px;
    height: 46px;
  }

  .hbn2-detail-team b {
    font-size: 12px;
  }

  .hbn2-overview-grid,
  .hbn2-stat-grid,
  .hbn2-help-grid,
  .hbn2-directory-grid {
    grid-template-columns: 1fr;
  }

  .hbn2-result-balance,
  .hbn2-venue-grid {
    grid-template-columns: 1fr;
  }

  .hbn2-profile-tabs {
    padding: 9px 8px 16px;
  }

  .hbn2-team-form-strip {
    flex-wrap: wrap;
  }

  .hbn2-team-form-strip > div {
    width: 100%;
    min-width: 0;
    margin: 0 0 5px;
  }

  .hbn2-profile-nav {
    padding-inline: 8px;
  }

  .hbn2-detail-pane {
    padding: 11px;
  }

  .hbn2-form-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .hbn2-form-row > b {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hbn2-date-row {
    grid-template-columns: 30px repeat(3, minmax(55px, 1fr)) 30px 39px;
  }

  .hbn2-date-button small {
    font-size: 8px;
  }

  .hbn2-day-summary {
    padding: 13px;
  }

  .hbn2-day-summary h1,
  .hbn2-day-summary h2 {
    font-size: 16px;
  }

  .hbn2-match {
    grid-template-columns: 46px minmax(0, 1fr) 38px 18px;
  }

  .hbn2-chevron {
    font-size: 17px;
  }

  .hbn2-detail-head {
    padding: 13px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hbn-pro *,
  #hbn-pro *::before,
  #hbn-pro *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

