.bdlh-app {
  --bdlh-navy: #01133b;
  --bdlh-red: #d71935;
  --bdlh-green: #168b57;
  --bdlh-ink: #172033;
  --bdlh-muted: #667085;
  --bdlh-line: #dce2ea;
  --bdlh-soft: #f2f5f9;
  --bdlh-white: #fff;
  position: relative;
  overflow: hidden;
  color: var(--bdlh-ink);
  background: var(--bdlh-white);
  border: 1px solid var(--bdlh-line);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(1, 19, 59, .1);
  font-family: inherit;
}

.bdlh-app *, .bdlh-app *::before, .bdlh-app *::after { box-sizing: border-box; }
.bdlh-app button, .bdlh-app input, .bdlh-app select { font: inherit; }
.bdlh-screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.bdlh-hero {
  padding: 30px clamp(22px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(215, 25, 53, .28), transparent 27%),
    linear-gradient(135deg, #01133b 0%, #06245b 100%);
}

.bdlh-kicker {
  margin: 0 0 5px;
  color: #ef7083;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.bdlh-hero h2 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 900; }
.bdlh-hero > p:last-child { max-width: 680px; margin: 10px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; }

.bdlh-tabs {
  display: flex;
  gap: 6px;
  padding: 12px clamp(14px, 3vw, 30px);
  overflow-x: auto;
  border-bottom: 1px solid var(--bdlh-line);
  background: #fff;
  scrollbar-width: thin;
}

.bdlh-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--bdlh-navy);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.bdlh-tab:hover, .bdlh-tab:focus-visible { background: var(--bdlh-soft); }
.bdlh-tab.is-active { color: #fff; background: var(--bdlh-red); }

.bdlh-panel { display: none; padding: clamp(22px, 4vw, 46px); }
.bdlh-panel.is-active { display: block; }

.bdlh-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.bdlh-section-heading span { color: var(--bdlh-red); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.bdlh-section-heading h3 { margin: 3px 0 0; color: var(--bdlh-navy); font-size: clamp(23px, 3vw, 32px); line-height: 1.1; font-weight: 900; }
.bdlh-section-heading p { max-width: 460px; margin: 0; color: var(--bdlh-muted); font-size: 14px; }

.bdlh-search { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; max-width: 720px; }
.bdlh-search input { min-width: 0; flex: 1 1 auto; }
.bdlh-search input,
.bdlh-selector input[type="search"],
.bdlh-filters input,
.bdlh-filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--bdlh-ink);
  border: 1px solid #cbd3df;
  border-radius: 10px;
  background: #fff;
  outline: none;
}

.bdlh-search input:focus,
.bdlh-selector input[type="search"]:focus,
.bdlh-filters input:focus,
.bdlh-filters select:focus {
  border-color: var(--bdlh-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 53, .12);
}

.bdlh-search button, .bdlh-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 21px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--bdlh-red);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.bdlh-primary { min-width: 124px; }

.bdlh-search button {
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.bdlh-search button:hover, .bdlh-primary:hover { filter: brightness(.92); transform: translateY(-1px); }
.bdlh-search button:focus-visible, .bdlh-primary:focus-visible, .bdlh-modal__close:focus-visible { outline: 3px solid rgba(215, 25, 53, .28); outline-offset: 2px; }

.bdlh-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bdlh-player-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px;
  text-align: left;
  color: var(--bdlh-ink);
  border: 1px solid var(--bdlh-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(1, 19, 59, .05);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.bdlh-player-card:hover { transform: translateY(-2px); border-color: rgba(215, 25, 53, .45); box-shadow: 0 8px 20px rgba(1, 19, 59, .1); }
.bdlh-avatar {
  display: inline-grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--bdlh-navy);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
}

.bdlh-player-card strong { display: block; color: var(--bdlh-navy); font-size: 16px; }
.bdlh-player-card small { display: block; margin-top: 3px; color: var(--bdlh-muted); font-size: 12px; }
.bdlh-player-card__arrow { margin-left: auto; color: var(--bdlh-red); font-size: 23px; line-height: 1; }

.bdlh-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bdlh-selector { position: relative; }
.bdlh-selector > label, .bdlh-filters label { color: var(--bdlh-navy); font-size: 12px; font-weight: 800; }
.bdlh-selector input[type="search"] { display: block; margin-top: 6px; font-size: 15px; }
.bdlh-selector.is-selected input[type="search"] { border-color: var(--bdlh-green); background: rgba(22, 139, 87, .05); }

.bdlh-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--bdlh-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(1, 19, 59, .16);
}

.bdlh-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  text-align: left;
  color: var(--bdlh-ink);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.bdlh-suggestion:hover, .bdlh-suggestion:focus-visible { background: var(--bdlh-soft); }
.bdlh-suggestion .bdlh-avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 11px; }
.bdlh-suggestion strong { display: block; font-size: 14px; }
.bdlh-suggestion small { color: var(--bdlh-muted); font-size: 11px; }

.bdlh-filters {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(135px, 1fr) 110px 110px auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bdlh-soft);
}

.bdlh-compare-form[data-bdlh-form="matchup"] .bdlh-filters {
  grid-template-columns: minmax(180px, 1.35fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(124px, auto);
}

.bdlh-filters label > input, .bdlh-filters label > select { display: block; margin-top: 6px; }
.bdlh-comparison { margin-top: 24px; }

.bdlh-status, .bdlh-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  color: var(--bdlh-muted);
  border: 1px dashed #cbd3df;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  font-size: 14px;
}

.bdlh-status.is-error { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.bdlh-loader { display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; border: 2px solid #cbd3df; border-top-color: var(--bdlh-red); border-radius: 50%; animation: bdlh-spin .8s linear infinite; }
@keyframes bdlh-spin { to { transform: rotate(360deg); } }

.bdlh-compare-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.bdlh-compare-head[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.bdlh-compare-person { padding: 17px; color: #fff; border-radius: 14px; background: var(--bdlh-navy); text-align: center; }
.bdlh-compare-person .bdlh-avatar { margin: 0 auto 8px; color: var(--bdlh-navy); background: #fff; }
.bdlh-compare-person strong { display: block; font-size: 17px; }
.bdlh-compare-person small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .7); }

.bdlh-compare-grid {
  overflow: hidden;
  border: 1px solid var(--bdlh-line);
  border-radius: 14px;
  background: #fff;
}

.bdlh-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  min-height: 58px;
  border-bottom: 1px solid var(--bdlh-line);
}

.bdlh-compare-row:nth-child(even) { background: #f8fafc; }
.bdlh-compare-row:last-child { border-bottom: 0; }

.bdlh-compare-value,
.bdlh-compare-label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-variant-numeric: tabular-nums;
}

.bdlh-compare-value {
  color: var(--bdlh-navy);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 900;
}

.bdlh-compare-value.is-left { justify-content: flex-end; text-align: right; }
.bdlh-compare-value.is-right { justify-content: flex-start; text-align: left; }
.bdlh-compare-value.is-leader { color: #087243; background: #e0f5e9; }

.bdlh-compare-label {
  justify-content: center;
  color: var(--bdlh-navy);
  border-right: 1px solid var(--bdlh-line);
  border-left: 1px solid var(--bdlh-line);
  background: rgba(242, 245, 249, .92);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.bdlh-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--bdlh-line); border-radius: 14px; }
.bdlh-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.bdlh-table th, .bdlh-table td { padding: 12px 14px; border-bottom: 1px solid var(--bdlh-line); text-align: center; white-space: nowrap; word-break: normal; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.bdlh-table th { color: #fff; background: var(--bdlh-navy); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.bdlh-table td { color: var(--bdlh-ink); font-size: 14px; }
.bdlh-table td.is-leader {
  color: #08633c;
  background: #dff3e9;
  box-shadow: inset 0 -3px 0 var(--bdlh-green);
  font-weight: 900;
}
.bdlh-table td:first-child, .bdlh-table th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; }
.bdlh-table td:first-child { color: var(--bdlh-navy); background: #f8fafc; font-weight: 800; }
.bdlh-table tr:last-child td { border-bottom: 0; }
.bdlh-table tfoot td { color: var(--bdlh-navy); border-top: 2px solid #b7c2d2; background: #eef3f8; font-weight: 900; }
.bdlh-table tfoot td:first-child { background: #dfe7f0; }
.bdlh-table tfoot tr + tr td { border-top-width: 1px; }

.bdlh-matchup-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  color: #fff;
  border-radius: 16px 16px 0 0;
  background: var(--bdlh-navy);
}

.bdlh-matchup-person { text-align: center; }
.bdlh-matchup-person .bdlh-avatar { margin: 0 auto 7px; color: var(--bdlh-navy); background: #fff; }
.bdlh-matchup-person strong { display: block; }
.bdlh-versus { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; font-size: 12px; font-weight: 900; }
.bdlh-matchup-grid { display: grid; grid-template-columns: repeat(5, minmax(80px, 1fr)); border: 1px solid var(--bdlh-line); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; }
.bdlh-matchup-stat { padding: 15px 10px; border-right: 1px solid var(--bdlh-line); border-bottom: 1px solid var(--bdlh-line); text-align: center; }
.bdlh-matchup-stat:nth-child(5n) { border-right: 0; }
.bdlh-matchup-stat strong { display: block; color: var(--bdlh-navy); font-size: 22px; font-variant-numeric: tabular-nums; }
.bdlh-matchup-stat span { color: var(--bdlh-muted); font-size: 11px; font-weight: 800; }

.bdlh-modal[hidden] { display: none; }
.bdlh-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 20px; }
.bdlh-modal__backdrop { position: absolute; inset: 0; background: rgba(1, 19, 59, .72); backdrop-filter: blur(4px); }
.bdlh-modal__dialog { position: relative; width: min(1060px, 100%); max-height: min(820px, calc(100vh - 40px)); padding: clamp(22px, 4vw, 40px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.bdlh-modal__close { position: sticky; z-index: 2; top: 0; float: right; display: grid; width: 42px; height: 42px; place-items: center; margin: -9px -9px 0 10px; color: #fff; border: 0; border-radius: 50%; background: var(--bdlh-red); font-size: 29px; line-height: 1; cursor: pointer; }
.bdlh-profile { clear: both; }
.bdlh-profile__top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.bdlh-profile__top .bdlh-avatar { width: 66px; height: 66px; flex-basis: 66px; font-size: 20px; }
.bdlh-profile__top h3 { margin: 0; color: var(--bdlh-navy); font-size: clamp(25px, 4vw, 37px); }
.bdlh-profile__top p { margin: 4px 0 0; color: var(--bdlh-muted); }
.bdlh-profile h4 { margin: 25px 0 10px; color: var(--bdlh-navy); font-size: 18px; }
.bdlh-empty-group { margin: 0; color: var(--bdlh-muted); font-size: 14px; }
body.bdlh-modal-open { overflow: hidden; }

@media (max-width: 780px) {
  .bdlh-app { border-radius: 16px; }
  .bdlh-hero { padding: 24px 20px; }
  .bdlh-panel { padding: 24px 16px; }
  .bdlh-section-heading { display: block; }
  .bdlh-section-heading p { margin-top: 8px; }
  .bdlh-picks { grid-template-columns: 1fr; gap: 12px; }
  .bdlh-filters { grid-template-columns: 1fr 1fr; }
  .bdlh-compare-form[data-bdlh-form="matchup"] .bdlh-filters { grid-template-columns: 1fr 1fr; }
  .bdlh-filters label:first-child { grid-column: auto; }
  .bdlh-primary { grid-column: 1 / -1; }
  .bdlh-compare-head[data-columns="2"] { grid-template-columns: 1fr 1fr; }
  .bdlh-matchup-grid { grid-template-columns: repeat(3, 1fr); }
  .bdlh-matchup-stat:nth-child(5n) { border-right: 1px solid var(--bdlh-line); }
  .bdlh-matchup-stat:nth-child(3n) { border-right: 0; }
  .bdlh-modal { padding: 10px; }
  .bdlh-modal__dialog { max-height: calc(100vh - 20px); padding: 20px 14px; border-radius: 15px; }
}

@media (max-width: 520px) {
  .bdlh-search { display: flex; }
  .bdlh-search button { min-width: 86px; padding-right: 15px; padding-left: 15px; }
  .bdlh-results { grid-template-columns: 1fr; }
  .bdlh-filters { grid-template-columns: 1fr; }
  .bdlh-compare-form[data-bdlh-form="matchup"] .bdlh-filters { grid-template-columns: 1fr; }
  .bdlh-primary { grid-column: auto; }
  .bdlh-compare-person { padding: 13px 8px; }
  .bdlh-compare-person strong { font-size: 14px; }
  .bdlh-compare-row { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); min-height: 52px; }
  .bdlh-compare-value, .bdlh-compare-label { padding: 10px 8px; }
  .bdlh-compare-value { font-size: 17px; }
  .bdlh-compare-label { font-size: 10px; }
  .bdlh-matchup-summary { grid-template-columns: 1fr 42px 1fr; gap: 7px; padding: 18px 8px; }
  .bdlh-matchup-person strong { font-size: 13px; }
  .bdlh-matchup-grid { grid-template-columns: repeat(2, 1fr); }
  .bdlh-matchup-stat:nth-child(3n) { border-right: 1px solid var(--bdlh-line); }
  .bdlh-matchup-stat:nth-child(2n) { border-right: 0; }
  .bdlh-profile__top { align-items: flex-start; }
}
