@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --coal-980: #161109;
  --coal-950: #1c1610;
  --coal-900: #271e13;
  --coal-800: #6b5524;
  --coal-700: #97782e;
  --surface: #ffffff;
  --surface-2: #faf7f0;
  --surface-warm: #f5efe2;
  --line: rgba(216, 203, 176, 0.85);
  --line-dark: rgba(227, 170, 60, 0.24);
  --ink: #231c10;
  --muted: #7a7060;
  --muted-on-dark: rgba(255, 255, 255, 0.74);
  --brass: #e3aa3c;
  --brass-2: #c98f23;
  --ember: #d96b3a;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --shadow-deep: 0 34px 100px rgba(22, 17, 9, 0.34);
  --shadow-card: 0 20px 56px rgba(22, 17, 9, 0.16);
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(151, 120, 46, 0.22), transparent 420px),
    linear-gradient(180deg, #161109 0, #1c1610 46%, #120d07 100%);
  color: #fff;
}

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

a:hover {
  color: var(--brass);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

#content {
  width: min(1450px, calc(100% - 48px));
  margin: 0 auto;
}

.scoreboard-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 10px max(22px, calc((100vw - 1320px) / 2));
  background: rgba(28, 22, 16, 0.95);
  border-bottom: 1px solid rgba(227, 170, 60, 0.14);
  backdrop-filter: blur(18px);
}

.identity-link,
.footer-identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mast-name {
  min-width: 0;
  overflow: hidden;
  font-size: 24px;
  /* line-height 1 klippte nederkanten på i/g i wordmarket - ge descenders plats. */
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mast-name strong {
  color: var(--brass);
  font: inherit;
}

.header-action,
.soft-action,
.reset-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.soft-action,
.reset-filter {
  border: 1px solid rgba(107, 85, 36, 0.24);
  color: #fff;
  background: var(--coal-800);
  box-shadow: 0 12px 28px rgba(22, 17, 9, 0.10);
}

.soft-action:hover,
.reset-filter:hover {
  color: #fff;
  background: var(--coal-700);
}

.header-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-search-action {
  gap: 9px;
}

.header-search-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.floodlight-mast,
.page-intro {
  margin: 0 calc(50% - 50vw) 24px;
  border-bottom: 1px solid rgba(227, 170, 60, 0.18);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 225, 175, 0.42), transparent 420px),
    radial-gradient(circle at 82% 24%, rgba(227, 170, 60, 0.18), transparent 480px),
    linear-gradient(180deg, rgba(28, 22, 16, 0.26) 0%, rgba(28, 22, 16, 0.16) 38%, rgba(28, 22, 16, 0.48) 100%),
    linear-gradient(90deg, rgba(28, 22, 16, 0.34) 0%, rgba(28, 22, 16, 0.02) 50%, rgba(28, 22, 16, 0.38) 100%),
    url("/images/skytte-plan-arena.webp") center 62% / cover no-repeat;
  box-shadow: 0 24px 80px rgba(22, 17, 9, 0.26);
  overflow: hidden;
}

.mast-copy {
  width: min(1450px, calc(100% - 48px));
  display: grid;
  grid-template-areas:
    "title"
    "text"
    "data";
  gap: 18px;
  margin: 0 auto;
  padding: 54px 0 54px;
  text-align: center;
}

.subpage-mast-copy {
  grid-template-areas:
    "flags"
    "title"
    "text";
  padding: 50px 0;
}

.crumb-trail {
  grid-area: flags;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.crumb-trail a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
}

.crumb-trail a:hover {
  color: #fff;
  border-bottom-color: var(--brass);
}

.crumb-trail .crumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.crumb-trail [aria-current='page'] {
  color: #fff;
}

.section-cta-row {
  margin-top: 16px;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coal-900) 0%, var(--coal-980) 100%);
  border: 1px solid rgba(227, 170, 60, 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.section-cta::after {
  content: '→';
  color: var(--brass);
}

.section-cta:hover {
  color: #fff;
  border-color: var(--brass);
  background: linear-gradient(135deg, var(--coal-800) 0%, var(--coal-950) 100%);
}

.league-mast,
.player-mast {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 225, 175, 0.16), transparent 420px),
    radial-gradient(circle at 82% 24%, rgba(227, 170, 60, 0.12), transparent 480px),
    linear-gradient(180deg, rgba(22, 17, 9, 0.72) 0%, rgba(22, 17, 9, 0.58) 42%, rgba(22, 17, 9, 0.84) 100%),
    url("/images/skytte-plan-arena.webp") center 62% / cover no-repeat;
}

.league-mast {
  box-shadow: inset 0 -3px 0 rgba(227, 170, 60, 0.62), 0 24px 80px rgba(22, 17, 9, 0.26);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  grid-area: title;
  max-width: 1060px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.3vw, 88px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-transform: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.floodlight-mast h1,
.floodlight-mast .mast-text {
  margin-left: auto;
  margin-right: auto;
}

h1 span {
  display: block;
}

h1 em {
  color: inherit;
  font-style: normal;
}

h2 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted-on-dark);
  line-height: 1.62;
}

.mast-text {
  grid-area: text;
  max-width: 820px;
  margin-top: -2px;
}

.mast-text p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-stats div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.goal-index-panel,
.ranking-card,
.fact-card,
.quick-lanes,
.stat-lanes,
.position-board,
.question-block,
.panel-card,
.info-page {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--shadow-card);
}

.teams-feature,
.profile-feature {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--shadow-card);
}

.goal-index-panel {
  position: relative;
  z-index: 2;
  margin: 0 0 30px;
  padding: 30px;
  color: var(--ink);
}

.goal-index-panel.hero {
  grid-area: data;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.965), rgba(255, 255, 255, 0.925));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 62px rgba(22, 17, 9, 0.24);
}

.goal-index-panel.hero .data-heading-row {
  justify-content: space-between;
  margin-bottom: 14px;
  text-align: left;
}

.goal-index-summary {
  margin: 0 0 14px;
  color: var(--coal-800);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.55;
  text-align: left;
}

.goal-index-panel.compact {
  margin-bottom: 30px;
}

.goal-index-panel.bare {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.data-heading-row,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.data-heading-row p,
.section-heading p {
  margin-bottom: 0;
}

.goal-index-panel h2,
.ranking-card h2,
.quick-lanes h2,
.stat-lanes h2,
.position-board h2,
.question-block h2,
.panel-card h2 {
  color: var(--ink);
}

.goal-index-panel p,
.ranking-card p,
.quick-lanes p,
.stat-lanes p,
.position-board p,
.panel-card p,
.info-page p {
  color: var(--muted);
}

.sift-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(126px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.sift-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sift-row span {
  display: none;
}

.sift-row select,
.sift-row input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  outline: none;
}

.sift-row select:focus,
.sift-row input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(227, 170, 60, 0.28);
}

.reset-filter {
  min-height: 46px;
  color: #fff;
  background: var(--coal-800);
  cursor: pointer;
}

.player-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.goal-index-panel.limit-visible .player-table-wrap {
  max-height: 600px;
  overflow-y: auto;
}

.goal-index-panel.hero.limit-visible .player-table-wrap {
  max-height: 286px;
}

.scorer-grid {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: var(--ink);
}

.goal-index-panel.compact .scorer-grid {
  min-width: 760px;
}

.ranking-card .scorer-grid {
  min-width: 820px;
}

.goal-index-panel.hero .scorer-grid {
  min-width: 860px;
  table-layout: auto;
}

.goal-index-panel.hero .col-player { width: 28%; }
.goal-index-panel.hero .col-team { width: 20%; }
.goal-index-panel.hero .col-position { width: 15%; }
.goal-index-panel.hero .col-goals { width: 7%; }
.goal-index-panel.hero .col-number { width: 7%; }
.goal-index-panel.hero .col-age { width: 8%; }
.goal-index-panel.hero .col-nationality { width: 15%; }

.scorer-grid th {
  padding: 16px 18px 13px;
  color: var(--coal-800);
  background: #f7eed8;
  font-size: 11px;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: none;
}

.scorer-grid .col-player,
.scorer-grid .col-team,
.scorer-grid .col-position,
.scorer-grid .col-nationality {
  text-align: left;
}

.scorer-grid .col-number,
.scorer-grid .col-age,
.scorer-grid .col-goals {
  text-align: right;
}

.scorer-grid td {
  padding: 15px 18px;
  border-top: 1px solid rgba(216, 203, 176, 0.68);
  color: var(--ink);
  font-weight: 700;
}

.scorer-grid tbody tr:nth-child(even) td {
  background: var(--surface-2);
}

.goal-index-panel.hero .scorer-grid th,
.goal-index-panel.hero .scorer-grid td {
  padding: 10px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.goal-index-panel.hero .player-cell span,
.goal-index-panel.hero .team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-index-panel.hero .player-badge,
.goal-index-panel.hero .team-logo-frame.compact {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.goal-index-panel.hero .data-note {
  display: none;
}

.scorer-grid tbody tr:hover {
  background: #faf3e1;
}

.scorer-grid tbody tr[data-goto],
.home-scorer-table tbody tr[data-goto] {
  cursor: pointer;
}

.home-scorer-table tbody tr[data-goto]:hover td {
  background: #faf3e1;
}

.scorer-grid tbody tr.row-focus td {
  background: #f3e6c4;
  box-shadow: inset 4px 0 0 var(--coal-700);
}

.player-cell,
.team-cell,
.position-grid a,
.position-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 10px;
  font-weight: 950;
  text-align: left;
}

.link-button,
.text-nav-button,
.position-grid button,
.marksman-card,
.related-marksman-card,
.scorer-row {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.link-button,
.text-nav-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.text-nav-button {
  color: var(--coal-800);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.player-cell span,
.team-cell span {
  min-width: 0;
}

.team-cell {
  color: var(--coal-800);
}

.player-badge,
.rank-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--coal-900);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(227, 170, 60, 0.18);
}

.player-badge svg {
  display: block;
  color: var(--surface-warm);
}

.rank-pill {
  color: #fff;
  background: var(--coal-800);
}

.data-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.data-prose p {
  max-width: 84ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.data-prose p:last-child {
  margin-bottom: 0;
}

.data-prose h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.data-prose .player-table-wrap {
  margin-top: 16px;
}

.data-prose .mini-table {
  max-width: 640px;
  min-width: 0;
}

.data-prose .mini-table td,
.data-prose .mini-table th {
  white-space: nowrap;
}

.data-prose .data-note {
  max-width: 84ch;
}

@media (max-width: 760px) {
  .data-prose .mini-table {
    width: 100%;
    table-layout: auto;
  }

  .data-prose .mini-table td,
  .data-prose .mini-table th {
    white-space: normal;
  }
}

.scorer-context {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.section-stack {
  display: grid;
  gap: 34px;
  margin: 34px 0;
}

.panel-card,
.quick-lanes,
.stat-lanes,
.position-board,
.question-block,
.ranking-card,
.info-page {
  padding: 30px;
}

.club-tile-grid,
.position-grid,
.info-grid,
.marksman-card-grid,
.related-profile-grid,
.stat-card-grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.club-tile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.club-tile-grid.scorer-teams {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.position-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.info-grid,
.marksman-card-grid.three,
.stat-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marksman-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marksman-card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.club-tile,
.position-grid article,
.info-grid article,
.marksman-card,
.related-marksman-card,
.stat-card-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.club-tile {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 240, 0.98)),
    linear-gradient(90deg, color-mix(in srgb, var(--team-primary, #6b5524) 14%, transparent), transparent 48%);
}

.club-tile:hover,
.marksman-card:hover,
.related-marksman-card:hover {
  border-color: rgba(151, 120, 46, 0.42);
  color: var(--ink);
  transform: translateY(-1px);
}

.club-tile strong,
.marksman-card strong,
.related-marksman-card strong {
  display: block;
  color: var(--ink);
}

.club-tile strong {
  font-size: 13px;
  line-height: 1.1;
}

.club-tile small,
.marksman-card small,
.related-marksman-card small {
  display: block;
  margin-top: 3px;
  color: var(--coal-800);
  font-weight: 800;
}

.club-tile small {
  font-size: 12px;
  line-height: 1.1;
}

.empty-state {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px dashed rgba(151, 120, 46, 0.34);
  border-radius: 14px;
  color: var(--coal-800);
  background: #faf3e1;
  font-weight: 800;
}

.team-logo-frame {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  justify-self: center;
  border: 1px solid rgba(216, 203, 176, 0.88);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px rgba(250, 247, 240, 0.7), 0 14px 32px rgba(22, 17, 9, 0.12);
}

.team-logo-frame.compact {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.team-logo-frame img {
  display: block;
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.team-logo-frame span {
  color: var(--coal-900);
  font-size: 12px;
  font-weight: 1000;
}

.scorer-feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: 22px;
  align-items: stretch;
}

.scorer-list,
.home-scorer-table {
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.home-scorer-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}

.home-scorer-table th {
  padding: 12px 14px 9px;
  color: var(--coal-800);
  background: #f7eed8;
  font-size: 11px;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: none;
}

.home-scorer-table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(216, 203, 176, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.home-scorer-table .player-cell {
  gap: 7px;
}

.home-scorer-table td:nth-child(4),
.home-scorer-table td:nth-child(5),
.home-scorer-table td:nth-child(6) {
  text-align: center;
}

.home-scorer-table strong {
  color: var(--ink);
}

.scorer-row {
  display: grid;
  grid-template-columns: 42px 1fr minmax(96px, 150px) 54px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid rgba(35, 28, 16, 0.12);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.scorer-row:first-child {
  border-top: 0;
}

.scorer-row span:first-child {
  font-weight: 1000;
}

.scorer-row strong {
  min-width: 0;
}

.scorer-row small {
  color: var(--muted);
}

.scorer-row b {
  color: var(--coal-900);
  text-align: right;
}

.scorer-row.selected {
  background: #f7eed8;
  box-shadow: inset 4px 0 0 var(--brass-2);
}

.scorer-gap {
  padding: 2px 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
  letter-spacing: 4px;
}

.marksman-card,
.related-marksman-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px 14px;
  min-height: 122px;
  padding: 16px;
  text-align: left;
}

.marksman-card::after {
  content: "›";
  grid-column: 3;
  grid-row: 1;
  color: var(--coal-800);
  font-size: 20px;
  line-height: 1;
}

.profile-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-main small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

.profile-main .team-logo-frame.compact {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.profile-meta {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.profile-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(216, 203, 176, 0.76);
  border-radius: 999px;
  color: var(--coal-800);
  background: #faf7f0;
  font-size: 11px;
  font-weight: 900;
}

.marksman-card.horizontal {
  min-height: 170px;
}

.related-marksman-card {
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-height: 150px;
}

.profile-silhouette {
  position: relative;
  display: inline-grid;
  place-items: end center;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  height: 62px;
  color: var(--brass);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 29%, #ece3cf 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 95%, #ece3cf 0 44%, transparent 45%),
    #faf3e1;
}

.profile-silhouette.small {
  width: 78px;
  height: 82px;
}

.profile-silhouette span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: -7px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: var(--coal-900);
  color: #fff;
  font-weight: 800;
}

.profile-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(216, 203, 176, 0.68);
}

.profile-stats b {
  color: var(--coal-800);
  font-size: 13px;
  line-height: 1;
}

.profile-stats small {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.page-intro {
  min-height: 320px;
  display: grid;
  align-items: end;
  padding: 74px max(26px, calc((100vw - 1320px) / 2)) 48px;
}

.page-intro h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.intro-lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 750;
}

.intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.intro-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.intro-stats strong {
  color: #fff;
}

.team-intro .team-logo-frame {
  width: 116px;
  height: 116px;
  margin-bottom: 22px;
  border-radius: 26px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--brass);
  font-weight: 800;
}

.fact-card {
  margin: 0 0 30px;
  padding: 30px;
  background: var(--surface);
  color: var(--ink);
}

.fact-card h2 {
  color: var(--ink);
}

.fact-intro {
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.fact-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 38px;
  margin: 0;
}

.fact-card dl > div {
  display: grid;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  min-width: 0;
  padding: 15px 0;
  border-top: 1px solid rgba(216, 203, 176, 0.72);
}

.fact-card dt {
  color: var(--muted);
  font-weight: 800;
}

.fact-card dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.league-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.league-tile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 240, 0.98)),
    linear-gradient(90deg, rgba(227, 170, 60, 0.14), transparent 48%);
  text-align: left;
}

.league-tile:hover {
  border-color: rgba(151, 120, 46, 0.42);
  color: var(--ink);
  transform: translateY(-1px);
}

.league-tile strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.league-tile small {
  display: block;
  margin-top: 3px;
  color: var(--coal-800);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.league-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(216, 203, 176, 0.88);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 2px rgba(227, 170, 60, 0.32), 0 14px 32px rgba(22, 17, 9, 0.12);
}

.league-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Skytteliga-tabbar i heron: alla sex ligor server-renderas (SEO),
   inline-JS:et i index.astro växlar synlighet via .tabs-on/.is-active. */
.league-tabs {
  grid-area: data;
  width: min(1180px, 100%);
  display: grid;
  gap: 26px;
  margin: 6px auto 0;
  padding: 22px;
  text-align: left;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.965), rgba(255, 255, 255, 0.925));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 62px rgba(22, 17, 9, 0.24);
}

.league-tabs.tabs-on {
  gap: 18px;
}

.league-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(107, 85, 36, 0.28);
  border-radius: 999px;
  color: var(--coal-900);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.league-tab-logo {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 17, 9, 0.1);
  object-fit: contain;
}

.league-tab:hover {
  background: #f7eed8;
}

.league-tab.is-active {
  border-color: var(--brass-2);
  color: #fff;
  background: var(--coal-900);
}

.league-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.league-tabs.tabs-on .league-panel:not(.is-active) {
  display: none;
}

.league-panel-heading h2 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 32px);
}

.league-panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.league-tabs .scorer-grid {
  min-width: 640px;
}

.league-panel-table {
  max-height: 520px;
  overflow-y: auto;
}

.league-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--coal-800);
  font-weight: 900;
}

.league-more-link::after {
  content: "›";
  font-size: 17px;
  line-height: 1;
}

.league-more-link:hover {
  color: var(--brass-2);
}

/* Sektionsbild i samma kort som innehållet: copy på ena sidan, bild på den
   andra. .flip lägger bilden till vänster. */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  padding: 0;
  overflow: hidden;
}

.media-split > .split-copy {
  min-width: 0;
  padding: 30px;
}

.media-split > .split-media {
  position: relative;
  margin: 0;
  min-height: 100%;
  background: var(--coal-950);
}

.media-split > .split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-split.flip {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.media-split.flip > .split-copy {
  order: 2;
}

.stat-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.stat-callouts > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.stat-callouts strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.stat-callouts span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.edge-cards article {
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--coal-900), var(--coal-980));
}

.edge-cards .edge-label {
  display: block;
  color: var(--brass);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.edge-cards .edge-value {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.edge-cards .edge-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted-on-dark);
  font-size: 13.5px;
  line-height: 1.5;
}

.media-split .scorer-grid.mini-table {
  min-width: 520px;
  table-layout: auto;
}

.media-split .mini-table .player-cell {
  flex-wrap: nowrap;
}

.media-split .mini-table .player-cell span {
  white-space: nowrap;
}

/* Tätstrid-visualisering på ligasidor: topp 5 med målstaplar mot ledarens facit. */
.race-board {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.race-row {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) minmax(70px, 200px) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.race-row.clickable {
  cursor: pointer;
  transition: border-color 120ms ease;
}

.race-row.clickable:hover {
  border-color: var(--brass);
}

.race-name {
  display: grid;
  min-width: 0;
}

.race-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 203, 176, 0.55);
  overflow: hidden;
}

.race-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass), var(--ember));
}

.race-goals {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

/* Målfördelning per lag: horisontella staplar mot målrikaste laget. */
.team-bars {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.team-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.team-bar-row .team-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-bar-row .team-cell span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(216, 203, 176, 0.45);
  overflow: hidden;
}

.team-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass-2), var(--brass));
}

.team-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-width: 92px;
}

.team-bar-meta b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.team-bar-meta small {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .race-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .race-bar {
    grid-column: 1 / -1;
  }

  .team-bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-bar {
    grid-column: 1 / -1;
  }
}

.gap-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 118px;
}

.gap-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(216, 203, 176, 0.55);
  overflow: hidden;
}

.gap-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass), var(--ember));
}

.gap-num {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.position-board,
.quick-lanes,
.stat-lanes,
.question-block,
.ranking-card,
.info-page {
  margin: 30px 0;
}

.position-grid article,
.info-grid article {
  padding: 20px;
}

.position-grid article > a,
.position-grid article > button {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(216, 203, 176, 0.72);
  color: var(--ink);
  background: transparent;
}

.position-grid article > p {
  margin-bottom: 0;
}

.stat-card-grid article {
  min-height: 132px;
  padding: 24px;
}

.stat-card-grid span,
.stat-card-grid h3 {
  display: block;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.stat-card-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--coal-800);
  font-size: 54px;
  line-height: 1;
}

.question-block {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 54px clamp(22px, 5vw, 76px);
  border: 1px solid rgba(216, 203, 176, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 247, 240, 0.97));
  box-shadow: 0 22px 70px rgba(22, 17, 9, 0.13);
}

.question-block h2 {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid rgba(216, 203, 176, 0.86);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(22, 17, 9, 0.05);
  overflow: hidden;
}

.faq-list details[open] {
  background: #ffffff;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 58px 20px 22px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--coal-800);
  background: #f7eed8;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0 22px 24px;
  padding: 22px 36px 2px 0;
  color: var(--muted);
  border-top: 1px solid rgba(216, 203, 176, 0.56);
  line-height: 1.72;
}

.info-page {
  min-height: 52vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  overflow: hidden;
}

.info-page h1,
.info-page h2 {
  color: var(--ink);
}

.info-page h1 {
  max-width: 100%;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.info-copy {
  min-width: 0;
}

.info-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--coal-800);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.45;
}

.info-visual {
  position: relative;
  min-height: 300px;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--coal-950);
  box-shadow: 0 20px 56px rgba(22, 17, 9, 0.16);
}

.info-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.03), rgba(28, 22, 16, 0.26));
  pointer-events: none;
}

.info-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  object-fit: cover;
}

.info-grid {
  grid-column: 1 / -1;
}

.info-grid article p {
  margin-bottom: 0;
}

/* Upplyft footer (samma koncept som golden-sajten) i mässing/espresso. */
.site-footer {
  margin-top: 56px;
  color: #fff;
  background: #120d07;
}

.footer-light {
  color: var(--ink);
  border-top: 1px solid rgba(227, 170, 60, 0.30);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
  box-shadow: 0 -18px 56px rgba(22, 17, 9, 0.30);
}

.footer-panel {
  width: min(1320px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.65fr);
  gap: clamp(34px, 6vw, 88px);
  margin: 0 auto;
  padding: 54px 0 46px;
}

.footer-brand p {
  max-width: 440px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.footer-identity .mast-name {
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.footer-light .footer-identity {
  color: var(--coal-950);
}

.footer-light .mast-name strong {
  color: var(--brass-2);
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-stats span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--coal-800);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-links .footer-title {
  display: block;
  margin-bottom: 4px;
  color: var(--coal-800);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(35, 28, 16, 0.74);
  font-size: 15px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--brass-2);
}

.footer-league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.footer-fineprint {
  width: min(1320px, calc(100% - 44px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .mast-copy {
    min-height: 0;
    padding-block: 54px 36px;
  }

  .floodlight-mast {
    min-height: 0;
  }

  .sift-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reset-filter {
    width: 100%;
  }

  .club-tile-grid,
  .club-tile-grid.scorer-teams,
  .marksman-card-grid,
  .marksman-card-grid.five,
  .position-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scorer-feature-body,
  .info-page,
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .media-split,
  .media-split.flip {
    grid-template-columns: 1fr;
  }

  .media-split > .split-media {
    order: 2;
    min-height: 220px;
    max-height: 260px;
  }

  .media-split.flip > .split-copy {
    order: 0;
  }

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

@media (max-width: 760px) {
  #content,
  .mast-copy,
  .footer-panel,
  .footer-fineprint {
    width: min(100% - 24px, 720px);
  }

  .scoreboard-bar {
    min-height: 66px;
    padding-inline: 12px;
  }

  .identity-mark-image {
    width: 40px;
    height: 40px;
  }

  .mast-name {
    max-width: 190px;
    font-size: 17px;
  }

  .header-action {
    min-height: 40px;
    padding: 9px 16px;
  }

  .floodlight-mast,
  .page-intro {
    margin-bottom: 20px;
  }

  .mast-copy {
    padding-block: 30px 18px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .mast-text p {
    font-size: 16px;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stats div {
    min-height: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.26);
    padding: 0 10px;
  }

  .goal-index-panel.hero .sift-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-index-panel.hero .search-label,
  .goal-index-panel.hero .reset-filter {
    grid-column: 1 / -1;
  }

  .goal-index-panel.hero .sift-row label:nth-of-type(4),
  .goal-index-panel.hero .sift-row label:nth-of-type(5),
  .goal-index-panel.hero .sift-row label:nth-of-type(6),
  .goal-index-panel.hero .sift-row label:nth-of-type(7) {
    display: none;
  }

  .goal-index-panel.hero.limit-visible .player-table-wrap {
    max-height: 300px;
  }

  .goal-index-panel,
  .goal-index-panel.hero,
  .panel-card,
  .quick-lanes,
  .stat-lanes,
  .position-board,
  .question-block,
  .ranking-card,
  .info-page {
    padding: 16px;
    border-radius: 22px;
  }

  .data-heading-row,
  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .search-label {
    grid-column: 1 / -1;
  }

  .scorer-grid {
    min-width: 0;
    table-layout: fixed;
  }

  .goal-index-panel.hero .scorer-grid {
    min-width: 0;
    table-layout: fixed;
  }

  .scorer-grid:not(.ranking) .col-age,
  .scorer-grid:not(.ranking) .col-nationality,
  .scorer-grid:not(.ranking) .col-number,
  .goal-index-panel:not(.compact) .scorer-grid:not(.ranking) .col-position {
    display: none;
  }

  .goal-index-panel.compact .scorer-grid:not(.ranking) .col-position {
    display: table-cell;
  }

  .ranking-card .scorer-grid {
    min-width: 0;
    table-layout: fixed;
  }

  .scorer-grid.ranking th:nth-child(3),
  .scorer-grid.ranking th:nth-child(4),
  .scorer-grid.ranking th:nth-child(6),
  .scorer-grid.ranking td:nth-child(3),
  .scorer-grid.ranking td:nth-child(4),
  .scorer-grid.ranking td:nth-child(6) {
    display: none;
  }

  .scorer-grid.ranking th:nth-child(1),
  .scorer-grid.ranking td:nth-child(1) {
    width: 54px;
  }

  .scorer-grid.ranking th:nth-child(5),
  .scorer-grid.ranking td:nth-child(5) {
    display: table-cell;
    width: 62px;
    text-align: right;
  }

  /* Ligasidans tabell har fyra kolumner (#, spelare, lag, mål):
     göm lag-kolumnen men behåll målen synliga på mobil. */
  .scorer-grid.ranking.league-table th:nth-child(4),
  .scorer-grid.ranking.league-table td:nth-child(4) {
    display: table-cell;
    width: 62px;
    text-align: right;
  }

  .scorer-grid:not(.ranking) .col-goals {
    width: 56px;
    text-align: right;
  }

  .goal-index-panel:not(.compact) .scorer-grid:not(.ranking) .col-player {
    width: 43%;
  }

  .goal-index-panel:not(.compact) .scorer-grid:not(.ranking) .col-team {
    width: 43%;
  }

  .goal-index-panel:not(.compact) .scorer-grid:not(.ranking) .col-goals {
    width: 14%;
  }

  .goal-index-panel.compact .scorer-grid:not(.ranking) .col-player {
    width: 64%;
  }

  .goal-index-panel.compact .scorer-grid:not(.ranking) .col-position {
    width: 22%;
  }

  .goal-index-panel.compact .scorer-grid:not(.ranking) .col-goals {
    width: 14%;
  }

  .scorer-grid th,
  .scorer-grid td {
    padding: 12px 9px;
    font-size: 13px;
  }

  .player-cell,
  .team-cell {
    gap: 8px;
  }

  .player-badge,
  .rank-pill {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .goal-index-panel.hero .player-badge,
  .goal-index-panel.hero .team-logo-frame.compact {
    width: 28px;
    height: 28px;
  }

  .club-tile-grid,
  .club-tile-grid.scorer-teams,
  .marksman-card-grid,
  .marksman-card-grid.five,
  .marksman-card-grid.three,
  .position-grid,
  .info-grid,
  .related-profile-grid,
  .stat-card-grid {
    grid-template-columns: 1fr;
  }

  .league-tabs {
    gap: 20px;
    padding: 14px;
    border-radius: 16px;
  }

  .league-tabs .scorer-grid {
    min-width: 0;
  }

  .league-panel-table {
    max-height: 430px;
  }

  .club-tile {
    grid-template-columns: 52px 1fr;
    min-height: 82px;
  }

  .team-logo-frame {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .scorer-row {
    grid-template-columns: 34px 1fr 44px;
    padding-inline: 12px;
  }

  .scorer-row small {
    display: none;
  }

  .info-visual,
  .info-visual img {
    min-height: 190px;
  }

  .page-intro {
    min-height: 230px;
    padding-block: 40px 28px;
  }

  .page-intro h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .fact-card dl {
    grid-template-columns: 1fr;
  }

  .league-tile-grid {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    gap: 26px;
  }

  .footer-fineprint {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  #content,
  .mast-copy,
  .footer-panel,
  .footer-fineprint {
    width: min(100% - 16px, 390px);
  }

  .mast-name {
    max-width: 156px;
    font-size: 15px;
  }

  .sift-row {
    grid-template-columns: 1fr;
  }

  .hero-stats strong {
    font-size: 13px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .club-tile {
    padding: 10px;
  }

  .marksman-card {
    min-height: 190px;
  }
}
