@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/AlbertSans-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --clay-980: #1a0e0b;
  --clay-950: #221310;
  --clay-900: #2c1a14;
  --clay-800: #8a3f24;
  --clay-700: #b65a33;
  --surface: #ffffff;
  --surface-2: #fbf6f2;
  --surface-warm: #f7ede4;
  --line: rgba(224, 203, 188, 0.85);
  --line-dark: rgba(238, 123, 84, 0.24);
  --ink: #2a1812;
  --muted: #82695d;
  --muted-on-dark: rgba(255, 255, 255, 0.74);
  --sol: #ee7b54;
  --sol-2: #d85f38;
  --sand: #ecc56f;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --shadow-deep: 0 34px 100px rgba(18, 9, 7, 0.34);
  --shadow-card: 0 20px 56px rgba(18, 9, 7, 0.16);
  --font-ui: "Albert Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", 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(182, 90, 51, 0.25), transparent 420px),
    linear-gradient(180deg, #1a0e0b 0, #221310 46%, #120907 100%);
  color: #fff;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

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

.plaza-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(34, 19, 16, 0.95);
  border-bottom: 1px solid rgba(238, 123, 84, 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;
}

.plaza-name {
  min-width: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plaza-name strong {
  color: var(--sol);
  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(138, 63, 36, 0.24);
  color: #fff;
  background: var(--clay-800);
  box-shadow: 0 12px 28px rgba(18, 9, 7, 0.10);
}

.soft-action:hover,
.reset-filter:hover {
  color: #fff;
  background: var(--clay-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;
}

.sol-mast,
.page-intro {
  margin: 0 calc(50% - 50vw) 24px;
  border-bottom: 1px solid rgba(238, 123, 84, 0.18);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 225, 175, 0.42), transparent 420px),
    radial-gradient(circle at 82% 24%, rgba(238, 123, 84, 0.18), transparent 480px),
    linear-gradient(180deg, rgba(34, 19, 16, 0.26) 0%, rgba(34, 19, 16, 0.16) 38%, rgba(34, 19, 16, 0.48) 100%),
    linear-gradient(90deg, rgba(34, 19, 16, 0.34) 0%, rgba(34, 19, 16, 0.02) 50%, rgba(34, 19, 16, 0.38) 100%),
    url("/images/laliga-plan-arena.webp") center 62% / cover no-repeat;
  box-shadow: 0 24px 80px rgba(18, 9, 7, 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:
    "crest"
    "title"
    "text";
  padding: 50px 0;
}

.mast-escudo {
  grid-area: crest;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.team-mast,
.player-mast,
.scorer-mast {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 225, 175, 0.14), transparent 420px),
    radial-gradient(circle at 82% 24%, rgba(238, 123, 84, 0.12), transparent 480px),
    linear-gradient(180deg, rgba(26, 14, 11, 0.74) 0%, rgba(26, 14, 11, 0.6) 42%, rgba(26, 14, 11, 0.85) 100%),
    url("/images/laliga-kvallsmatch.webp") center 58% / cover no-repeat;
}

.team-mast {
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--team-primary, #b65a33) 62%, transparent), 0 24px 80px rgba(18, 9, 7, 0.28);
}

.team-mast .mast-escudo .team-logo-frame {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 5px rgba(251, 246, 242, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 52px color-mix(in srgb, var(--team-primary, #b65a33) 52%, transparent),
    0 18px 44px rgba(18, 9, 7, 0.42);
}

.sol-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 800;
}

a.sol-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.sol-chip .team-logo-frame.compact {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.crumb-trail {
  grid-area: crest;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-on-dark);
}

.crumb-trail a {
  color: var(--muted-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

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

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

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

.stat-callouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

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

.stat-callouts strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.stat-callouts span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.edge-cards > article {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--clay-900) 0%, var(--clay-980) 100%);
  border: 1px solid var(--line-dark);
}

.edge-cards .edge-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
}

.edge-cards .edge-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.edge-cards .edge-meta {
  font-size: 14px;
  color: var(--muted-on-dark);
}

@media (max-width: 720px) {
  .stat-callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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.01em;
  text-transform: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.sol-mast h1,
.sol-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.01em;
}

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;
}

.roster-ledger,
.ranking-card,
.fact-card,
.quick-lanes,
.stat-lanes,
.position-board,
.pregunta-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);
}

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

.roster-ledger.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(18, 9, 7, 0.24);
}

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

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

.roster-ledger.compact {
  margin-bottom: 30px;
}

.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;
}

.roster-ledger h2,
.ranking-card h2,
.quick-lanes h2,
.stat-lanes h2,
.position-board h2,
.pregunta-block h2,
.panel-card h2 {
  color: var(--ink);
}

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

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

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

.tuner-row span {
  display: none;
}

.tuner-row select,
.tuner-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;
}

.tuner-row select:focus,
.tuner-row input:focus {
  border-color: var(--sol);
  box-shadow: 0 0 0 4px rgba(238, 123, 84, 0.28);
}

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

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

.roster-ledger.limit-visible .player-table-wrap {
  max-height: 600px;
  overflow-y: auto;
}

.roster-ledger.hero.limit-visible .player-table-wrap {
  max-height: 286px;
}

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

.roster-ledger.compact .roster-table {
  min-width: 760px;
}

.ranking-card .roster-table {
  min-width: 820px;
}

.roster-ledger.hero .roster-table {
  min-width: 860px;
  table-layout: auto;
}

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

.roster-table th {
  padding: 16px 18px 13px;
  color: var(--clay-800);
  background: #f9e9de;
  font-size: 11px;
  text-align: left;
  letter-spacing: 0.04em;
  text-transform: none;
}

.roster-table .col-player,
.roster-table .col-team,
.roster-table .col-position,
.roster-table .col-nationality {
  text-align: left;
}

.roster-table .col-number,
.roster-table .col-age,
.roster-table .col-goals {
  text-align: right;
}

.roster-table td {
  padding: 15px 18px;
  border-top: 1px solid rgba(224, 203, 188, 0.68);
  color: var(--ink);
  font-weight: 700;
}

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

.roster-ledger.hero .roster-table th,
.roster-ledger.hero .roster-table td {
  padding: 10px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.roster-ledger.hero .player-cell span,
.roster-ledger.hero .team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.roster-ledger.hero .data-note {
  display: none;
}

.roster-table tbody tr:hover {
  background: #fbf0e7;
}

.roster-table tbody tr.row-focus td {
  background: #f6e0d1;
  box-shadow: inset 4px 0 0 var(--clay-700);
}

.roster-table tr[data-open-href] {
  cursor: pointer;
}

.plantilla-card .player-table-wrap {
  margin-top: 8px;
}

.roster-table.plantilla-table {
  min-width: 760px;
}

.roster-table.plantilla-table .col-player { width: 40%; }
.roster-table.plantilla-table .col-goals,
.roster-table.plantilla-table .col-number,
.roster-table.plantilla-table .col-age { width: 13%; }
.roster-table.plantilla-table .col-nationality { width: 21%; }

.plantilla-section + .plantilla-section {
  margin-top: 30px;
}

.plantilla-section .section-heading {
  margin-bottom: 4px;
}

.plantilla-count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 27px;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--clay-800);
  background: #f9e9de;
  font-size: 13px;
  font-weight: 800;
  vertical-align: 4px;
}

.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,
.perfil-card,
.related-perfil-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(--clay-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(--clay-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(--clay-900);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(238, 123, 84, 0.18);
}

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

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

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

.copy-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.copy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.fact-analysis {
  max-width: 78ch;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(224, 203, 188, 0.72);
}

.fact-analysis h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.fact-analysis p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.fact-analysis p:last-child {
  margin-bottom: 0;
}

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

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

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

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

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

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

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

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

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

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

.club-plaque,
.position-grid article,
.info-grid article,
.perfil-card,
.related-perfil-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-plaque {
  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(251, 246, 242, 0.98)),
    linear-gradient(90deg, color-mix(in srgb, var(--team-primary, #8a3f24) 14%, transparent), transparent 48%);
}

.club-plaque:hover,
.perfil-card:hover,
.related-perfil-card:hover {
  border-color: rgba(182, 90, 51, 0.42);
  color: var(--ink);
  transform: translateY(-1px);
}

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

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

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

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

.empty-state {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px dashed rgba(182, 90, 51, 0.34);
  border-radius: 14px;
  color: var(--clay-800);
  background: #fbf0e7;
  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(224, 203, 188, 0.88);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 5px rgba(251, 246, 242, 0.7), 0 14px 32px rgba(18, 9, 7, 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(--clay-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(--clay-800);
  background: #f9e9de;
  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(224, 203, 188, 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(42, 24, 18, 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(--clay-900);
  text-align: right;
}

.scorer-row.selected {
  background: #f9e9de;
  box-shadow: inset 4px 0 0 var(--clay-700);
}

.scorer-row.selected span:first-child,
.scorer-row.selected strong {
  color: var(--clay-800);
}

.scorer-gap {
  padding: 2px 14px;
  border-top: 1px solid rgba(42, 24, 18, 0.12);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: left;
}

.section-photo {
  position: relative;
  min-height: 280px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--clay-950);
  box-shadow: 0 18px 46px rgba(18, 9, 7, 0.16);
}

.section-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  opacity: 0.88;
}

.photo-action {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
}

.perfil-card,
.related-perfil-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;
}

.perfil-card::after {
  content: "›";
  grid-column: 3;
  grid-row: 1;
  color: var(--clay-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(224, 203, 188, 0.76);
  border-radius: 999px;
  color: var(--clay-800);
  background: #fbf6f2;
  font-size: 11px;
  font-weight: 900;
}

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

.related-perfil-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(--sol);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 29%, #efdccf 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 95%, #efdccf 0 44%, transparent 45%),
    #fbf0e7;
}

.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(--sol);
  border-radius: 50%;
  background: var(--clay-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(224, 203, 188, 0.68);
}

.profile-stats b {
  color: var(--clay-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.01em;
}

.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;
}

.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;
}

.perfil-description {
  max-width: 78ch;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.66;
}

.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(224, 203, 188, 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;
}

.position-board,
.quick-lanes,
.stat-lanes,
.pregunta-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(224, 203, 188, 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(--clay-800);
  font-size: 54px;
  line-height: 1;
}

.pregunta-block {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 54px clamp(22px, 5vw, 76px);
  border: 1px solid rgba(224, 203, 188, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 246, 242, 0.97));
  box-shadow: 0 22px 70px rgba(18, 9, 7, 0.13);
}

.pregunta-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(224, 203, 188, 0.86);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(18, 9, 7, 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(--clay-800);
  background: #f9e9de;
  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(224, 203, 188, 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(--clay-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(--clay-950);
  box-shadow: 0 20px 56px rgba(18, 9, 7, 0.16);
}

.info-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 19, 16, 0.03), rgba(34, 19, 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;
}

.plaza-footer {
  margin-top: 56px;
  color: #fff;
  background: #1a0e0b;
}

.footer-light {
  color: var(--ink);
  border-top: 1px solid rgba(238, 123, 84, 0.30);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
  box-shadow: 0 -18px 56px rgba(18, 9, 7, 0.24);
}

.footer-panel {
  width: min(1320px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.05fr) minmax(0, 0.7fr);
  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 .plaza-name {
  max-width: none;
  overflow: visible;
  white-space: normal;
}

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

.footer-light .plaza-name strong {
  color: var(--sol-2);
}

.footer-side {
  display: grid;
  align-content: start;
  gap: 30px;
}

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

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

.footer-links a {
  color: rgba(42, 24, 18, 0.74);
  font-size: 15px;
  font-weight: 800;
}

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

.footer-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
}

.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;
  }

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

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

  .reset-filter {
    width: 100%;
  }

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

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

  .copy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

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

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

  .plaza-name {
    max-width: 200px;
    font-size: 16px;
  }

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

  .sol-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;
  }

  .roster-ledger.hero .tuner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-ledger.hero .search-label,
  .roster-ledger.hero .reset-filter {
    grid-column: 1 / -1;
  }

  .roster-ledger.hero .tuner-row label:nth-of-type(4),
  .roster-ledger.hero .tuner-row label:nth-of-type(5),
  .roster-ledger.hero .tuner-row label:nth-of-type(6),
  .roster-ledger.hero .tuner-row label:nth-of-type(7) {
    display: none;
  }

  .roster-ledger.hero.limit-visible .player-table-wrap {
    max-height: 300px;
  }

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

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

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

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

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

  .roster-ledger.hero .roster-table {
    min-width: 0;
    table-layout: fixed;
  }

  .roster-table:not(.ranking) .col-age,
  .roster-table:not(.ranking) .col-nationality,
  .roster-table:not(.ranking) .col-number,
  .roster-ledger:not(.compact) .roster-table:not(.ranking) .col-position {
    display: none;
  }

  .roster-ledger.compact .roster-table:not(.ranking) .col-position {
    display: table-cell;
  }

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

  .roster-table.plantilla-table {
    min-width: 0;
  }

  .roster-table.plantilla-table .col-player {
    width: 72%;
  }

  .roster-table.plantilla-table .col-goals {
    width: 28%;
  }

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

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

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

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

  .roster-ledger:not(.compact) .roster-table:not(.ranking) .col-player {
    width: 43%;
  }

  .roster-ledger:not(.compact) .roster-table:not(.ranking) .col-team {
    width: 43%;
  }

  .roster-ledger:not(.compact) .roster-table:not(.ranking) .col-goals {
    width: 14%;
  }

  .roster-ledger.compact .roster-table:not(.ranking) .col-player {
    width: 64%;
  }

  .roster-ledger.compact .roster-table:not(.ranking) .col-position {
    width: 22%;
  }

  .roster-ledger.compact .roster-table:not(.ranking) .col-goals {
    width: 14%;
  }

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

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

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

  .roster-ledger.hero .player-badge,
  .roster-ledger.hero .team-logo-frame.compact {
    width: 28px;
    height: 28px;
  }

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

  .club-plaque {
    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;
  }

  .section-photo,
  .section-photo img,
  .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;
  }

  .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);
  }

  .plaza-name {
    max-width: 172px;
    font-size: 15px;
  }

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

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

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

  .club-plaque {
    padding: 10px;
  }

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