:root {
  --blue-950: #020b28;
  --blue-900: #06123b;
  --blue-800: #0a1e5e;
  --blue-700: #12358e;
  --blue-600: #174bb8;
  --yellow: #ffd51f;
  --yellow-soft: #ffe56b;
  --white: #f8f9ff;
  --muted: #a9b4d3;
  --muted-2: #7785ac;
  --card: rgba(9, 24, 69, 0.82);
  --card-solid: #0a194c;
  --line: rgba(255, 255, 255, 0.1);
  --green: #159957;
  --red: #f15454;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -10%, rgba(20, 70, 180, 0.35), transparent 38%),
    linear-gradient(180deg, var(--blue-950) 0%, #040d2c 45%, #02071c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 213, 31, 0.72);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.page-glow {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.page-glow--one {
  top: 12%;
  left: -220px;
  background: #1b56e6;
}

.page-glow--two {
  right: -250px;
  bottom: 5%;
  background: #ffd51f;
  opacity: 0.08;
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-shield {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--blue-950);
  clip-path: polygon(12% 0, 88% 0, 100% 16%, 88% 82%, 50% 100%, 12% 82%, 0 16%);
  font-weight: 950;
  font-size: 21px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  letter-spacing: 0.08em;
  font-size: 19px;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.next-match-nav {
  max-width: 410px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.next-match-nav strong {
  color: var(--yellow);
  font-size: 13px;
}

.next-match-nav small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.match-hero {
  padding: 66px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(450px, 0.9fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 700px;
  margin: 17px 0 19px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: var(--yellow);
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.score-card,
.card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 43, 119, 0.88), rgba(6, 18, 58, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.score-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.score-card.is-loading > * {
  visibility: hidden;
}

.score-card.is-loading {
  min-height: 360px;
}

.score-card.is-loading::after {
  content: "ACTUALIZANDO PARTIDO";
  position: absolute;
  inset: 4px 0 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.08) 49%, transparent 63%),
    linear-gradient(145deg, rgba(16, 43, 119, 0.96), rgba(6, 18, 58, 0.98));
  background-size: 220% 100%, 100% 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  animation: match-loading 1.2s linear infinite;
}

@keyframes match-loading {
  to { background-position: -220% 0, 0 0; }
}

.score-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--yellow);
}

.score-card__meta,
.venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-card__meta {
  padding: 25px 28px 18px;
}

.score-card__meta span {
  color: #71eea2;
  font-weight: 800;
}

.scoreboard {
  padding: 8px 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team strong {
  margin-top: 11px;
  font-size: 15px;
}

.team small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 11px;
}

.crest {
  width: 72px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-fallback {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 213, 31, 0.55);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--yellow);
  font-size: 19px;
  font-weight: 950;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, 0.28));
}

.score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.score span {
  color: var(--muted-2);
  font-size: 23px;
}

.goal-event {
  margin: 0 22px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--blue-950);
}

.goal-event div {
  display: flex;
  flex-direction: column;
}

.goal-event strong {
  font-size: 14px;
}

.goal-event small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.venue-row {
  margin-top: 20px;
  padding: 17px 27px;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(350px, 0.72fr);
  min-width: 0;
  max-width: min(var(--max-width), calc(100vw - 40px));
}

.content-grid > *,
.match-panel,
.rating-panel {
  min-width: 0;
  max-width: 100%;
  gap: 24px;
  align-items: start;
}

.card {
  border-radius: var(--radius-lg);
}

.match-panel,
.rating-panel {
  padding: 27px;
}

.match-panel,
.tab-panel {
  overflow: clip;
}

.tab-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.rating-panel h2 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.formation-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255, 213, 31, 0.25);
  border-radius: 999px;
  background: rgba(255, 213, 31, 0.1);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.view-tabs {
  margin: 24px 0 18px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 13px;
}

.tab-button {
  border: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: 180ms ease;
}

.tab-button:hover {
  color: var(--white);
}

.tab-button.is-active {
  background: var(--yellow);
  color: var(--blue-950);
}

.tab-panel {
  animation: fadeIn 180ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pitch {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1.46 / 1;
  min-height: 495px;
  border: 7px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 12.5%,
      rgba(0, 0, 0, 0.02) 12.5%,
      rgba(0, 0, 0, 0.02) 25%
    ),
    linear-gradient(180deg, #19824a, #11683d);
}

.pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 35%, rgba(0, 0, 0, 0.1));
}

.pitch-markings span {
  position: absolute;
  display: block;
  border-color: rgba(255, 255, 255, 0.42);
  z-index: 1;
}

.halfway {
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid;
}

.center-circle {
  width: 116px;
  height: 116px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid;
  border-radius: 50%;
}

.center-circle::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}

.box {
  width: 45%;
  height: 19%;
  left: 27.5%;
  border: 2px solid;
}

.box--top {
  top: -2px;
}

.box--bottom {
  bottom: -2px;
}

.goal {
  width: 18%;
  height: 4%;
  left: 41%;
  border: 2px solid;
}

.goal--top { top: -2px; }
.goal--bottom { bottom: -2px; }

.players-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pitch-unavailable {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, calc(100% - 36px));
  margin: 0;
  padding: 14px 18px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(2, 11, 40, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.player-marker {
  position: relative;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-800);
  border: 4px solid var(--yellow);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease;
  overflow: hidden;
}

.player-marker img,
.selected-subject__number img,
.coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.player:hover .player-marker,
.player:focus-visible .player-marker {
  transform: translateY(-3px) scale(1.04);
}

.player.is-selected .player-marker {
  box-shadow: 0 0 0 5px rgba(255, 213, 31, 0.24), 0 10px 24px rgba(0, 0, 0, 0.42);
  transform: translateY(-3px) scale(1.08);
}

.player-captain::after {
  content: "C";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 10px;
  font-weight: 950;
}

.player-name {
  max-width: 105px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(2, 11, 40, 0.77);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-line {
  width: 100%;
  margin: 15px 0 0;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.coach-line:hover {
  border-color: rgba(255, 213, 31, 0.25);
  background: rgba(255, 213, 31, 0.07);
}

.coach-line span {
  color: var(--yellow);
  font-weight: 900;
}

.coach-line .coach-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--blue-800);
}

.coach-line strong {
  color: var(--white);
}

.coach-line small {
  margin-left: auto;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
}

.changes-list {
  display: grid;
  gap: 11px;
}

.change-item {
  padding: 16px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.change-item:hover,
.change-item.is-selected {
  border-color: rgba(255, 213, 31, 0.3);
  background: rgba(255, 213, 31, 0.08);
}

.change-minute {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 213, 31, 0.11);
  color: var(--yellow);
  font-weight: 900;
}

.change-players {
  display: grid;
  gap: 5px;
}

.change-players span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.change-in::before,
.change-out::before {
  width: 17px;
  font-weight: 950;
}

.change-in::before {
  content: "↑";
  color: #55e38d;
}

.change-out {
  color: var(--muted);
}

.change-out::before {
  content: "↓";
  color: #ff7070;
}

.change-rate-action {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.transfers-list {
  display: grid;
  gap: 11px;
}

.transfer-item {
  padding: 15px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.transfer-item:hover,
.transfer-item.is-selected {
  border-color: rgba(255, 213, 31, 0.3);
  background: rgba(255, 213, 31, 0.08);
}

.transfer-direction {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.transfer-direction--alta {
  background: rgba(85, 227, 141, 0.13);
  color: #6be59c;
}

.transfer-direction--baja {
  background: rgba(255, 112, 112, 0.13);
  color: #ff8b8b;
}

.transfer-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.transfer-info small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.transfer-info strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-info span,
.transfers-empty {
  color: var(--muted);
  font-size: 11px;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.market-insights {
  margin-bottom: 22px;
}

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

.market-list-card,
.market-rating-card {
  padding: 26px;
}

.market-rating-card {
  position: sticky;
  top: 22px;
}

.community-score--compact {
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .market-insights__grid {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-rating-card {
    position: static;
  }
}

.transfer-rate-action {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.transfers-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}

.stats-list {
  display: grid;
  gap: 18px;
}

.stat-item {
  display: grid;
  gap: 8px;
}

.stat-values,
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-values strong {
  font-size: 17px;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-bar {
  height: 9px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.stat-bar span:first-child {
  width: var(--home);
  background: var(--yellow);
}

.stat-bar span:last-child {
  flex: 1;
  background: #68b9ef;
}

.data-note {
  margin: 21px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.rating-panel__top p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.rating-mode {
  margin: 21px 0 0;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.rating-mode__button {
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: 160ms ease;
}

.rating-mode__button small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
}

.rating-mode__button:hover {
  color: var(--white);
}

.rating-mode__button.is-active {
  border-color: rgba(255, 213, 31, 0.28);
  background: rgba(255, 213, 31, 0.12);
  color: var(--yellow);
}

.rating-mode__button.is-active small {
  color: var(--yellow-soft);
}

.rating-mode__button:last-child {
  grid-column: auto;
}

.rating-mode-panel {
  animation: fadeIn 180ms ease;
}

.contextual-empty {
  min-height: 132px;
  margin-top: 22px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  place-items: center start;
  gap: 4px 12px;
  border: 1px dashed rgba(255, 213, 31, 0.27);
  border-radius: 17px;
  background: rgba(255, 213, 31, 0.04);
  text-align: left;
}

.contextual-empty > span {
  width: 38px;
  height: 38px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 213, 31, 0.12);
  color: var(--yellow);
  font-size: 17px;
}

.contextual-empty strong {
  font-size: 14px;
}

.contextual-empty p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.contextual-rating-form {
  margin-top: 22px;
}

.selected-subject,
.selected-change,
.selected-transfer {
  margin-bottom: 24px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 213, 31, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 213, 31, 0.13), rgba(255, 213, 31, 0.04));
}

.selected-subject__number,
.selected-change > span {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
}

.selected-subject > div,
.selected-change > div,
.selected-transfer > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-subject small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.selected-subject strong,
.selected-change strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-subject span,
.selected-change small {
  color: var(--muted);
  font-size: 10px;
}

.selected-subject b {
  color: var(--yellow-soft);
}

.selected-subject--coach .selected-subject__number {
  border-radius: 14px;
  color: var(--yellow);
}

.selected-change > span {
  border: 0;
  border-radius: 13px;
  background: rgba(255, 213, 31, 0.14);
  color: var(--yellow);
}

.selected-change strong {
  color: #6be59c;
}

.selected-change small {
  color: #ff8b8b;
}

.selected-transfer > span {
  flex: 0 0 58px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.selected-transfer small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.selected-transfer strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-transfer > div > span {
  color: var(--muted);
  font-size: 10px;
}

.contextual-submit {
  margin-top: 21px;
}

.community-score {
  margin: 24px 0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 213, 31, 0.17), rgba(255, 213, 31, 0.06));
  border: 1px solid rgba(255, 213, 31, 0.2);
}

.community-score__number {
  min-width: 103px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.community-score__number strong {
  color: var(--yellow);
  font-size: 39px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.community-score__number span {
  color: var(--yellow-soft);
  font-size: 13px;
}

.community-score > div:last-child {
  display: flex;
  flex-direction: column;
}

.community-score > div:last-child strong {
  font-size: 13px;
}

.community-score > div:last-child small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.rating-form {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.selected-rating {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.selected-rating span {
  color: var(--muted);
  font-size: 12px;
}

.selected-rating strong {
  font-size: 32px;
  color: var(--white);
}

input[type="range"] {
  width: 100%;
  margin: 14px 0 6px;
  accent-color: var(--yellow);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.quick-ratings {
  margin: 19px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-ratings button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.quick-ratings button:hover,
.quick-ratings button.is-selected {
  border-color: rgba(255, 213, 31, 0.55);
  background: rgba(255, 213, 31, 0.12);
  color: var(--yellow);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(255, 213, 31, 0.18);
}

.primary-button:active {
  transform: translateY(0);
}

.saved-vote-message {
  margin: 12px 0 0;
  color: #78e7a5;
  font-size: 11px;
  text-align: center;
}

.distribution {
  padding-top: 21px;
}

.distribution__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.distribution__header strong {
  font-size: 12px;
}

.distribution__header span {
  color: var(--muted-2);
  font-size: 10px;
}

.distribution-bars {
  height: 74px;
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.distribution-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.distribution-bar {
  width: 100%;
  min-height: 3px;
  height: var(--height);
  border-radius: 4px 4px 2px 2px;
  background: rgba(255, 213, 31, 0.27);
  transition: height 260ms ease, background 160ms ease;
}

.distribution-bar-wrap.is-peak .distribution-bar {
  background: var(--yellow);
}

.distribution-bar-wrap small {
  color: var(--muted-2);
  font-size: 8px;
}

.vote-completion {
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
}

.vote-completion > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vote-completion strong {
  font-size: 13px;
}

.vote-completion small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.secondary-button {
  min-height: 45px;
  padding: 0 15px;
  border: 1px solid rgba(255, 213, 31, 0.3);
  border-radius: 12px;
  background: rgba(255, 213, 31, 0.08);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: 160ms ease;
}

.secondary-button:hover {
  border-color: rgba(255, 213, 31, 0.58);
  background: rgba(255, 213, 31, 0.14);
}

.voting-summary {
  margin-top: 24px;
  padding: 30px;
  scroll-margin-top: 20px;
}

.voting-summary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.voting-summary__header h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.voting-summary__header p {
  max-width: 670px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.summary-vote-count {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 213, 31, 0.1);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 850;
}

.summary-overview {
  margin-top: 25px;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

.summary-main-card {
  padding: 22px;
  border: 1px solid rgba(255, 213, 31, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 213, 31, 0.1), rgba(255, 213, 31, 0.025));
}

.summary-main-card__scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-main-card__scores > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.summary-main-card__scores small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.summary-main-card__scores strong {
  color: var(--yellow);
  font-size: 32px;
  line-height: 1;
}

.summary-scale {
  position: relative;
  height: 46px;
  margin-top: 25px;
}

.summary-scale__line {
  position: absolute;
  inset: 21px 0 auto;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e45d65, #d3ba42 50%, #46c983);
}

.summary-marker {
  position: absolute;
  left: var(--position);
  top: 14px;
  width: 20px;
  height: 20px;
  transform: translateX(-50%);
  border: 3px solid var(--blue-950);
  border-radius: 50%;
}

.summary-marker i {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.summary-marker--community {
  background: var(--white);
}

.summary-marker--user {
  z-index: 2;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 213, 31, 0.15);
}

.summary-marker--user i {
  color: var(--yellow);
}

.summary-position-label {
  display: block;
  margin-top: 16px;
  font-size: 12px;
}

.summary-list-heading {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-list-heading strong {
  font-size: 12px;
}

.summary-list-heading span {
  color: var(--muted-2);
  font-size: 9px;
}

.summary-comparisons {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.summary-comparison {
  padding: 13px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.summary-comparison__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-comparison__heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-comparison small {
  color: var(--yellow);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.summary-comparison strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-comparison__chart {
  display: grid;
  gap: 7px;
}

.comparison-bar {
  display: grid;
  grid-template-columns: 52px minmax(90px, 1fr) 26px;
  gap: 8px;
  align-items: center;
}

.comparison-bar > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.comparison-bar > i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.comparison-bar > i b {
  width: var(--bar-width);
  height: 100%;
  display: block;
  border-radius: inherit;
}

.comparison-bar--user > i b {
  background: var(--yellow);
}

.comparison-bar--community > i b {
  background: #76bde9;
}

.comparison-bar > strong {
  font-size: 9px;
  text-align: right;
}

.summary-delta {
  min-width: 46px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.summary-delta--positive {
  background: rgba(76, 211, 133, 0.12);
  color: #65e49b;
}

.summary-delta--negative {
  background: rgba(241, 84, 84, 0.12);
  color: #ff8585;
}

.summary-delta--neutral {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.summary-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.summary-back-button {
  margin-top: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.summary-back-button:hover {
  color: var(--yellow);
}

.site-footer {
  margin-top: 55px;
  min-height: 150px;
  padding: 35px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 330px;
  padding: 14px 17px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--blue-950);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: 240ms ease;
  z-index: 20;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1040px) {
  .match-hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .score-card {
    max-width: 620px;
  }

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

  .rating-panel {
    display: block;
  }

  .change-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .change-rate-action,
  .transfer-rate-action {
    grid-column: 2;
  }

  .transfer-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .shell,
  .site-header {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .content-grid {
    max-width: calc(100vw - 24px);
  }

  .site-header {
    min-height: 72px;
  }

  .match-hero {
    padding: 44px 0 28px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .score-card__meta {
    padding-inline: 18px;
  }

  .scoreboard {
    padding-inline: 13px;
    gap: 8px;
  }

  .crest {
    width: 58px;
    height: 64px;
  }

  .team strong {
    font-size: 12px;
  }

  .score strong {
    font-size: 43px;
  }

  .goal-event {
    margin-inline: 13px;
  }

  .match-panel,
  .rating-panel {
    padding: 17px;
  }

  .content-grid {
    gap: 14px;
  }

  .section-heading h2,
  .rating-panel h2 {
    font-size: 24px;
  }

  .view-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .view-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-width: 104px;
  }

  .pitch {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 480px;
    aspect-ratio: auto;
  }

  .player {
    min-width: 67px;
  }

  .player-marker {
    width: 43px;
    height: 43px;
    font-size: 12px;
  }

  .player-name {
    max-width: 78px;
    font-size: 9px;
  }

  .rating-panel {
    display: block;
  }

  .rating-mode__button {
    padding-inline: 8px;
  }

  .change-item {
    padding: 12px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .transfer-item {
    padding: 12px;
    gap: 10px;
  }

  .change-minute {
    width: 42px;
    height: 42px;
  }

  .contextual-empty {
    min-height: 108px;
    margin-top: 16px;
  }

  .rating-form {
    margin-top: 20px;
    padding: 0 0 24px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .voting-summary {
    padding: 20px 17px;
  }

  .voting-summary__header {
    display: grid;
    gap: 13px;
  }

  .voting-summary__header h2 {
    font-size: 25px;
  }

  .summary-vote-count {
    justify-self: start;
  }

  .summary-overview {
    grid-template-columns: 1fr;
  }

  .summary-main-card {
    padding: 18px;
  }

  .site-footer {
    margin-top: 32px;
    display: block;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .brand-copy small {
    display: none;
  }

  .scoreboard {
    gap: 3px;
  }

  .crest {
    width: 50px;
    height: 56px;
  }

  .team strong {
    max-width: 88px;
    line-height: 1.15;
  }

  .score strong {
    font-size: 36px;
  }

  .team small {
    display: none;
  }

  .score {
    gap: 7px;
  }

  .pitch {
    width: 100%;
    min-height: 430px;
    aspect-ratio: auto;
  }

  .player-marker {
    width: 38px;
    height: 38px;
    border-width: 3px;
  }

  .player-name {
    max-width: 70px;
  }

  .rating-mode__button small {
    display: none;
  }

  .rating-mode__button {
    min-height: 42px;
    justify-content: center;
  }

  .summary-main-card__scores strong {
    font-size: 28px;
  }

  .summary-comparison__heading {
    align-items: flex-start;
  }

  .comparison-bar {
    grid-template-columns: 48px minmax(70px, 1fr) 25px;
    gap: 6px;
  }

}

/* Dirección visual editorial */
:root {
  --card: #081d53;
  --card-solid: #081d53;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  --radius-lg: 6px;
  --radius-md: 4px;
  --max-width: 1260px;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #04133c;
  background-size: 100% 48px;
}

.page-glow {
  display: none;
}

.site-header {
  min-height: 74px;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid var(--yellow);
}

.brand {
  gap: 10px;
}

.brand-shield {
  width: 37px;
  height: 42px;
  font-size: 18px;
}

.brand-copy strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.match-hero {
  padding: 50px 0 56px;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: 44px;
}

.hero-copy {
  padding-left: 22px;
  border-left: 7px solid var(--yellow);
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 510px;
  color: #c2cbea;
  font-size: 16px;
  line-height: 1.55;
}

.score-card,
.card {
  border: 1px solid #24448b;
  border-radius: 6px;
  background: #081d53;
  box-shadow: none;
  backdrop-filter: none;
}

.score-card {
  border: 0;
  border-radius: 3px;
  background: var(--yellow);
  color: var(--blue-950);
  box-shadow: 12px 12px 0 #0d3388;
}

.score-card::before {
  display: none;
}

.score-card__meta,
.venue-row,
.score-card__meta span {
  color: rgba(2, 11, 40, 0.7);
}

.score-card__meta {
  border-bottom: 1px solid rgba(2, 11, 40, 0.18);
}

.team small,
.score span {
  color: rgba(2, 11, 40, 0.58);
}

.goal-event {
  border: 0;
  border-radius: 2px;
  background: var(--blue-950);
  color: var(--white);
}

.goal-event .event-icon {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.goal-event small {
  color: #b8c4e3;
}

.venue-row {
  background: rgba(2, 11, 40, 0.08);
  border-color: rgba(2, 11, 40, 0.15);
}

.content-grid {
  gap: 20px;
}

.match-panel,
.rating-panel {
  padding: 28px;
}

.match-panel {
  border-top: 5px solid var(--yellow);
}

.rating-panel {
  position: sticky;
  top: 18px;
  border-top: 5px solid #1d58c8;
}

.section-heading h2,
.rating-panel h2,
.voting-summary__header h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.formation-pill,
.summary-vote-count {
  border-radius: 2px;
}

.view-tabs {
  margin: 25px 0 20px;
  padding: 0;
  gap: 0;
  border-bottom: 1px solid #315096;
  border-radius: 0;
  background: transparent;
}

.tab-button {
  padding: 13px 8px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.tab-button.is-active {
  border-bottom-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}

.pitch {
  border-width: 3px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.player-marker,
.selected-subject__number {
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.player-name {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  background: #031239;
}

.coach-line,
.change-item,
.transfer-item,
.quick-ratings button,
.primary-button,
.secondary-button,
.contextual-empty,
.selected-subject,
.selected-change,
.selected-transfer,
.community-score,
.summary-main-card,
.summary-empty {
  border-radius: 3px;
}

.change-item,
.transfer-item {
  border-left: 4px solid transparent;
  background: #0b245f;
}

.change-item:hover,
.change-item.is-selected,
.transfer-item:hover,
.transfer-item.is-selected {
  border-left-color: var(--yellow);
  background: #102d72;
}

.change-minute,
.transfer-direction,
.selected-change > span,
.selected-transfer > span {
  border-radius: 2px;
}

.stats-list {
  gap: 22px;
  padding: 5px 0;
}

.stat-item {
  gap: 7px;
}

.stat-bar {
  height: 6px;
  border-radius: 0;
}

.stat-label {
  font-size: 10px;
}

.data-note {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.rating-mode {
  padding: 0;
  gap: 1px;
  border: 1px solid #24448b;
  border-radius: 3px;
  background: #24448b;
}

.rating-mode__button {
  border: 0;
  border-radius: 0;
  background: #061746;
}

.rating-mode__button.is-active {
  border: 0;
  background: var(--yellow);
  color: var(--blue-950);
}

.rating-mode__button.is-active small {
  color: rgba(2, 11, 40, 0.68);
}

.community-score,
.selected-subject,
.selected-change,
.selected-transfer,
.summary-main-card {
  background: #0b2868;
}

.contextual-empty {
  background: #071947;
}

.primary-button {
  min-height: 49px;
}

.primary-button:hover {
  box-shadow: 5px 5px 0 #174aa9;
}

.distribution-bar {
  border-radius: 0;
}

.vote-completion {
  border-top: 3px solid #24448b;
}

.voting-summary {
  border-top: 5px solid var(--yellow);
}

.summary-scale__line {
  border-radius: 0;
}

.site-footer {
  min-height: 92px;
  margin-top: 50px;
  padding: 25px 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.toast {
  border-radius: 2px;
  box-shadow: 6px 6px 0 #174aa9;
}

@media (max-width: 1040px) {
  .match-hero {
    grid-template-columns: 1fr;
  }

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

  .rating-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 100% 38px;
  }

  .site-header {
    min-height: 66px;
    padding: 10px 0;
  }

  .next-match-nav {
    max-width: 54%;
  }

  .next-match-nav strong {
    font-size: 11px;
  }

  .next-match-nav small {
    font-size: 8px;
  }

  .match-hero {
    padding: 34px 0 38px;
  }

  .hero-copy {
    padding-left: 15px;
    border-left-width: 5px;
  }

  .hero-copy h1 {
    font-size: clamp(41px, 12vw, 56px);
  }

  .score-card {
    box-shadow: 7px 7px 0 #0d3388;
  }

  .match-panel,
  .rating-panel {
    padding: 18px;
  }

  .view-tabs {
    padding-bottom: 1px;
  }

  .tab-button {
    min-width: 112px;
  }
}

/* Ajustes de legibilidad, identidad y movimiento */
body {
  font-size: 16px;
}

.brand img {
  width: clamp(165px, 17vw, 220px);
  height: auto;
  display: block;
}

.next-match-nav__title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.next-match-nav__title img {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.26));
}

.next-match-nav strong {
  font-size: 14px;
}

.next-match-nav small {
  font-size: 11px;
}

.eyebrow,
.score-card__meta,
.venue-row {
  font-size: 12px;
}

.team strong {
  font-size: 16px;
}

.team small,
.goal-event small {
  font-size: 12px;
}

.goal-event strong,
.tab-button {
  font-size: 14px;
}

.player-name {
  font-size: 12px;
}

.rating-panel__top p,
.contextual-empty p,
.vote-completion small,
.selected-subject span,
.selected-change span,
.selected-transfer span {
  font-size: 13px;
  line-height: 1.5;
}

.rating-mode__button {
  font-size: 13px;
}

.rating-mode__button small,
.range-labels,
.saved-vote-message,
.data-note {
  font-size: 11px;
}

.stats-teams-header {
  margin-bottom: 20px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-teams-header strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-teams-header strong:first-child {
  color: var(--yellow);
}

.stats-teams-header strong:last-child {
  color: #76bde9;
  text-align: right;
}

.stats-teams-header span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
}

.stat-name {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.stat-values strong {
  font-size: 18px;
}

.voting-summary__header p {
  font-size: 14px;
}

.summary-vote-count {
  font-size: 12px;
}

.summary-main-card__scores small {
  font-size: 10px;
}

.summary-scale {
  height: 68px;
}

.summary-scale__line {
  inset-block-start: 29px;
}

.summary-marker {
  top: 22px;
}

.summary-marker i {
  font-size: 10px;
}

.summary-marker--community i {
  bottom: calc(100% + 7px);
}

.summary-marker--user i {
  top: calc(100% + 7px);
  bottom: auto;
}

.summary-position-label {
  margin-top: 10px;
  font-size: 14px;
}

.summary-list-heading strong {
  font-size: 14px;
}

.summary-list-heading span,
.summary-comparison small {
  font-size: 10px;
}

.summary-comparison strong {
  font-size: 13px;
}

.comparison-bar > span,
.comparison-bar > strong,
.summary-delta {
  font-size: 11px;
}

.summary-back-button,
.summary-empty {
  font-size: 12px;
}

.site-footer {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  font-size: 13px;
}

.footer-brand {
  grid-column: 1;
  justify-self: center;
  display: block;
}

.footer-brand img {
  width: clamp(160px, 17vw, 210px);
  height: auto;
  display: block;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  margin: -10px auto 0;
  max-width: 720px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.contact-page {
  padding-bottom: 72px;
}

.contact-layout {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.contact-form-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius-lg);
}

.contact-section-heading h2,
.contact-channels h2 {
  margin: 9px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.contact-section-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  position: relative;
  margin-top: 30px;
  display: grid;
  gap: 19px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 15, 50, 0.72);
  color: var(--white);
  font: inherit;
  outline: none;
  padding: 14px 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
  background: rgba(6, 23, 75, 0.94);
  box-shadow: 0 0 0 3px rgba(255, 213, 31, 0.13);
}

.contact-form label > small {
  color: var(--muted-2);
  font-size: 11px;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-submit {
  justify-self: start;
  min-width: 190px;
}

.contact-status {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.contact-status--success {
  border-color: rgba(113, 238, 162, 0.38);
  background: rgba(28, 130, 75, 0.16);
  color: #91f5b8;
}

.contact-status--error {
  border-color: rgba(255, 114, 114, 0.4);
  background: rgba(165, 38, 38, 0.18);
  color: #ffadad;
}

.lineup-comparison {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  background: rgba(3, 16, 55, 0.58);
}

.lineup-comparison__header {
  margin-bottom: 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.lineup-comparison__header h3 {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 19px;
}

.lineup-comparison__header > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.lineup-comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lineup-change-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.lineup-change-group > strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lineup-change-group--incoming > strong span {
  color: #71eea2;
}

.lineup-change-group--outgoing > strong span {
  color: #ff9292;
}

.lineup-change-list {
  display: grid;
  gap: 8px;
}

.lineup-change-player {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.lineup-change-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  font-size: 11px;
  font-weight: 950;
}

.lineup-change-avatar--incoming {
  border-color: #71eea2;
}

.lineup-change-avatar--outgoing {
  border-color: #ff9292;
}

.lineup-change-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lineup-change-player__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lineup-change-player__copy small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lineup-change-player__copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-change-status {
  padding: 4px 6px;
  border: 1px solid currentColor;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.lineup-change-status--incoming {
  color: #71eea2;
}

.lineup-change-status--outgoing {
  color: #ff9292;
}

.lineup-comparison__empty {
  margin: 0;
  padding: 17px;
  border: 1px dashed rgba(255, 213, 31, 0.32);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.contact-channels {
  display: grid;
  gap: 15px;
}

.contact-channels > div {
  margin-bottom: 5px;
}

.contact-channel {
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  color: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 31, 0.52);
  background: linear-gradient(145deg, rgba(21, 57, 154, 0.92), rgba(7, 23, 72, 0.96));
}

.contact-channel__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  color: #07143f;
  font-size: 14px;
  font-weight: 950;
}

.contact-channel > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-channel small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.contact-channel strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}

.contact-channel b {
  color: var(--yellow);
  font-size: 18px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-form-card {
    padding: 22px 17px;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }

  .lineup-comparison {
    padding: 16px 12px;
  }

  .lineup-comparison__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .lineup-comparison__header > small {
    text-align: left;
  }

  .lineup-comparison__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.score-card {
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 260ms ease;
  animation: score-card-arrive 680ms cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}

.score-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.24) 49%, transparent 63%);
  pointer-events: none;
  transform: translateX(-120%);
  animation: score-card-shine 900ms 450ms ease-out both;
}

.scoreboard .team {
  animation: team-arrive 560ms 210ms ease-out both;
}

.scoreboard .team--rival {
  animation-delay: 320ms;
}

.scoreboard .score {
  animation: score-pop 520ms 390ms cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

.scoreboard .score strong,
.goal-event,
.crest {
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.crest img {
  animation: crest-float 4.5s 1.1s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .score-card:hover {
    transform: translateY(-6px);
    box-shadow: 17px 17px 0 #0d3388;
  }

  .score-card:hover .score strong {
    color: #174bb8;
    transform: scale(1.06);
  }

  .score-card:hover .team--boca .crest {
    transform: translateY(-3px) rotate(-2deg) scale(1.06);
  }

  .score-card:hover .team--rival .crest {
    transform: translateY(-3px) rotate(2deg) scale(1.06);
  }

  .goal-event:hover {
    background: #12358e;
    transform: translateY(-2px);
  }
}

.score-card:active {
  transform: translateY(-1px) scale(0.995);
  box-shadow: 8px 8px 0 #0d3388;
}

.pitch {
  animation: pitch-arrive 650ms 120ms ease-out both;
}

.player {
  opacity: 0;
  animation: player-arrive 520ms calc(220ms + var(--player-delay)) cubic-bezier(0.2, 0.8, 0.2, 1.12) both;
}

.player-marker img {
  animation: portrait-breathe 4.8s calc(1s + var(--player-delay)) ease-in-out infinite;
}

@keyframes score-card-arrive {
  from { opacity: 0; transform: translateY(18px) rotate(0.6deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes score-card-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes team-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes score-pop {
  from { opacity: 0; transform: scale(0.76); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes crest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pitch-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes player-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(0.84);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes portrait-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@media (max-width: 720px) {
  .brand img {
    width: 145px;
  }

  .next-match-nav {
    max-width: 56%;
  }

  .next-match-nav strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .next-match-nav small {
    font-size: 9px;
  }

  .next-match-nav__title img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .player-name {
    max-width: 82px;
    font-size: 10px;
  }

  .stats-teams-header {
    gap: 8px;
  }

  .stats-teams-header strong {
    font-size: 12px;
  }

  .site-footer {
    min-height: 150px;
    padding-block: 27px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
    text-align: center;
  }

  .footer-brand img {
    width: 180px;
  }

  .footer-disclaimer {
    margin: 0;
    max-width: 520px;
  }
}

@media (max-width: 430px) {
  .site-header {
    min-height: 0;
    padding: 14px 0 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }

  .brand img {
    width: 168px;
  }

  .next-match-nav {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-top: 10px;
    align-items: center;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .next-match-nav__title {
    justify-content: center;
  }

  .next-match-nav small {
    max-width: 310px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-card,
  .score-card::after,
  .scoreboard .team,
  .scoreboard .score,
  .crest img,
  .pitch,
  .player,
  .player-marker img {
    animation: none;
  }

  .player {
    opacity: 1;
  }
}

/* Navegación y vistas históricas */
.brand {
  flex: 0 0 auto;
}

.site-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-nav a {
  padding: 9px 11px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--yellow);
  color: var(--white);
}

.key-insights {
  margin-bottom: 20px;
  padding: 25px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.key-insights__heading,
.ranking-card__header,
.history-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.key-insights__heading h2,
.ranking-card__header h2,
.history-section__heading h2 {
  margin: 7px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.key-insights__heading > small {
  color: var(--muted);
  font-size: 12px;
}

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

.key-stat {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #24448b;
  border-top: 4px solid var(--yellow);
  background: #081d53;
  overflow: hidden;
  transform-origin: center;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: key-stat-arrive 560ms cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}

.key-stat:nth-child(2) {
  animation-delay: 90ms;
}

.key-stat:nth-child(3) {
  animation-delay: 180ms;
}

.key-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.12) 49%, transparent 64%);
  pointer-events: none;
  transform: translateX(-125%);
  animation: key-stat-shine 800ms 380ms ease-out both;
}

.key-stat--worst {
  border-top-color: #ef6c72;
}

.key-stat--coach {
  border-top-color: #76bde9;
}

.key-stat__index {
  color: var(--muted-2);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 19px;
}

.key-stat__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #031239;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.key-stat--worst .key-stat__avatar {
  border-color: #ef6c72;
}

.key-stat--coach .key-stat__avatar {
  border-color: #76bde9;
}

.key-stat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.key-stat__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.key-stat__copy small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.key-stat--worst .key-stat__copy small {
  color: #ff9599;
}

.key-stat--coach .key-stat__copy small {
  color: #8dcdf3;
}

.key-stat__copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-stat__copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-stat__score {
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 34px;
  font-weight: 500;
  transition: transform 200ms ease;
}

.key-stat--worst .key-stat__score {
  color: #ff8585;
}

.key-stat--coach .key-stat__score {
  color: #76bde9;
}

@media (hover: hover) and (pointer: fine) {
  .key-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 213, 31, 0.72);
    box-shadow: 7px 7px 0 rgba(13, 51, 136, 0.72);
  }

  .key-stat:hover .key-stat__score {
    transform: scale(1.08);
  }
}

@keyframes key-stat-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes key-stat-shine {
  from { transform: translateX(-125%); }
  to { transform: translateX(125%); }
}

.inner-page {
  min-height: calc(100vh - 230px);
}

.inner-page-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.inner-page-hero h1 {
  margin: 12px 0 13px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.inner-page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.competition-heading {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.competition-heading__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.ranking-card {
  margin-top: 25px;
  padding: 28px;
  border-top: 5px solid var(--yellow);
}

.rating-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
}

.rating-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 2px;
}

.legend-swatch--bad { background: #c84b55; }
.legend-swatch--mid { background: #c1a83b; }
.legend-swatch--good { background: #359a66; }

.list-filters {
  margin-top: 20px;
  padding: 13px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid #24448b;
  background: #061746;
}

.list-filters label {
  min-width: 180px;
  display: grid;
  gap: 6px;
}

.list-filters label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list-filters select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid #315096;
  border-radius: 2px;
  color: var(--white);
  background: #0b2868;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.list-filters select:focus-visible {
  outline: 3px solid rgba(255, 213, 31, 0.72);
  outline-offset: 2px;
}

.ranking-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  scrollbar-color: var(--yellow) #061746;
}

.ranking-table {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--white);
}

.ranking-table th,
.ranking-table td {
  height: 70px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #081d53;
  text-align: center;
}

.ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 94px;
  background: #061746;
}

.ranking-player-column {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 245px;
  min-width: 245px;
  text-align: left !important;
}

.ranking-average-column {
  position: sticky;
  left: 245px;
  z-index: 2;
  width: 74px;
  min-width: 74px;
  background: #0d2b6c !important;
  text-align: left !important;
}

.ranking-table thead .ranking-player-column,
.ranking-table thead .ranking-average-column {
  z-index: 5;
}

.ranking-match-column {
  width: 92px;
  min-width: 92px;
}

.ranking-match-column img {
  width: 28px;
  height: 30px;
  display: block;
  margin: 0 auto 5px;
  object-fit: contain;
}

.ranking-match-column strong,
.ranking-match-column small {
  max-width: 72px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-match-column strong {
  margin-inline: auto;
  font-size: 9px;
  text-align: center;
}

.ranking-match-column small {
  margin: 3px auto 0;
  color: var(--muted);
  font-size: 8px;
}

.ranking-player-column {
  align-items: center;
}

.ranking-table tbody .ranking-player-column {
  display: flex;
  gap: 9px;
}

.ranking-position {
  width: 22px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
}

.ranking-player-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #031239;
  font-size: 9px;
}

.ranking-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-player-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranking-player-name strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player-name small {
  color: var(--muted);
  font-size: 9px;
}

.ranking-average-column strong {
  color: var(--yellow);
  font-size: 18px;
}

.ranking-rating-cell {
  color: var(--rating-text);
  background: var(--rating-bg) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ranking-rating-cell strong {
  display: block;
  font-size: 15px;
}

.ranking-rating-cell small {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 8px;
  opacity: 0.72;
}

.ranking-rating-cell.is-empty {
  background: #071947 !important;
  box-shadow: none;
  color: var(--muted-2);
}

.table-hint {
  margin: 11px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.history-section {
  margin-top: 25px;
}

.history-empty {
  margin-top: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.history-empty strong {
  color: var(--white);
  font-size: 15px;
}

.history-empty span {
  font-size: 12px;
}

.history-empty a {
  margin-top: 5px;
  color: var(--yellow);
  font-weight: 850;
  text-decoration: none;
}

.history-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.history-match {
  border-left: 5px solid var(--yellow);
}

.history-match__summary {
  padding: 20px 22px 14px;
  display: block;
  list-style: none;
  cursor: pointer;
}

.history-match__summary::-webkit-details-marker {
  display: none;
}

.history-match__summary:focus-visible {
  outline: 3px solid rgba(255, 213, 31, 0.72);
  outline-offset: -3px;
}

.history-match__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.history-match__top > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-match__top time,
.history-match__top > span {
  color: var(--muted);
  font-size: 10px;
}

.history-scoreboard {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  gap: 18px;
  align-items: center;
}

.history-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-team:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.history-team__crest {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 45px;
  display: grid;
  place-items: center;
}

.history-team__crest > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 31, 0.45);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.history-team__crest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--blue-950);
}

.history-team strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-result {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.history-result > strong {
  font-size: 27px;
}

.history-result > span {
  color: var(--muted-2);
}

.history-result small,
.history-result b {
  grid-column: 1 / -1;
}

.history-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.history-result b {
  color: var(--yellow);
  font-size: 20px;
}

.history-ratings {
  margin-top: 0;
  padding: 15px 22px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid var(--line);
}

.history-match__details {
  animation: fadeIn 180ms ease;
}

.history-match__expand {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-match__expand::after {
  content: "↓";
  font-size: 13px;
}

.history-match__expand span:last-child,
.history-match[open] .history-match__expand span:first-child {
  display: none;
}

.history-match[open] .history-match__expand span:last-child {
  display: inline;
}

.history-match[open] .history-match__expand::after {
  content: "↑";
}

.history-rating {
  min-width: 0;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #071947;
}

.history-rating > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-rating small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.history-rating strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-rating b {
  color: var(--yellow);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px 20px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .key-insights__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .key-insights {
    padding-block: 21px;
  }

  .key-insights__heading,
  .ranking-card__header,
  .history-section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .key-insights__heading h2,
  .ranking-card__header h2,
  .history-section__heading h2 {
    font-size: 26px;
  }

  .key-stat {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .inner-page-hero {
    padding: 42px 0 30px;
  }

  .inner-page-hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .ranking-card {
    padding: 18px;
  }

  .list-filters {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .list-filters label {
    min-width: 0;
  }

  .ranking-player-column {
    width: 178px;
    min-width: 178px;
  }

  .ranking-average-column {
    left: 178px;
    width: 62px;
    min-width: 62px;
  }

  .ranking-position {
    display: none;
  }

  .ranking-player-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .history-match {
    padding: 0;
  }

  .history-match__summary {
    padding: 16px 16px 12px;
  }

  .history-ratings {
    padding: 13px 16px 16px;
  }

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

  .history-team {
    flex-direction: column;
    text-align: center;
  }

  .history-team:last-child {
    flex-direction: column;
    text-align: center;
  }

  .history-team strong {
    max-width: 92px;
    font-size: 11px;
  }

  .history-team__crest {
    width: 36px;
    height: 39px;
    flex-basis: 39px;
  }

  .history-team__crest > span {
    width: 34px;
    height: 34px;
  }

  .history-team__crest img {
    width: 36px;
    height: 39px;
  }

  .history-result > strong {
    font-size: 23px;
  }

  .history-ratings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-nav {
    order: 0;
    width: 100%;
    padding: 8px 0;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 10px;
  }

  .key-stat {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .key-stat__index {
    display: none;
  }

  .key-stat__avatar {
    width: 43px;
    height: 43px;
  }

  .key-stat__score {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .key-stat,
  .key-stat::after {
    animation: none;
  }
}

/* Resumen compacto y generador de imágenes */
.vote-completion__actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
}

.share-card-trigger {
  min-height: 45px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.share-card-trigger span {
  font-size: 15px;
}

.share-card-trigger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #174aa9;
}

.share-card-trigger:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.summary-overview {
  grid-template-columns: minmax(270px, 0.66fr) minmax(0, 1.34fr);
  gap: 16px;
}

.summary-main-card {
  position: sticky;
  top: 18px;
}

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

.summary-comparison {
  min-width: 0;
  min-height: 82px;
  padding: 10px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar copy delta"
    "avatar scores scores";
  column-gap: 9px;
  row-gap: 7px;
  align-items: center;
  border-radius: 3px;
  background: #071947;
}

.summary-comparison__avatar {
  grid-area: avatar;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #031239;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.summary-comparison__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-comparison__copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.summary-comparison__copy small {
  overflow: hidden;
  color: var(--yellow);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-comparison__copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-comparison__scores {
  grid-area: scores;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.summary-comparison__scores > span {
  min-height: 26px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.summary-comparison__scores small {
  color: var(--muted);
  font-size: 8px;
}

.summary-comparison__scores b {
  color: var(--white);
  font-size: 12px;
}

.summary-comparison__scores > span:last-child b {
  color: #8dcdf3;
}

.summary-comparison .summary-delta {
  grid-area: delta;
  min-width: 42px;
  padding: 4px 6px;
  font-size: 9px;
}

.summary-more {
  margin-top: 9px;
  border-top: 1px solid var(--line);
}

.summary-more > summary {
  padding: 11px 2px 3px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.summary-more > summary::-webkit-details-marker {
  display: none;
}

.summary-more > summary::after {
  content: " ↓";
}

.summary-more[open] > summary::after {
  content: " ↑";
}

.summary-comparisons--more {
  margin-top: 10px;
}

.ranking-card__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ranking-card__tools .share-card-trigger {
  min-height: 40px;
}

.ranking-match-column {
  padding: 4px !important;
}

.ranking-match-select {
  width: 100%;
  min-height: 84px;
  padding: 6px 4px;
  display: grid;
  justify-items: center;
  align-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ranking-match-select:hover,
.ranking-match-select.is-selected {
  border-color: var(--yellow);
  background: rgba(255, 213, 31, 0.09);
}

.ranking-match-select.is-selected {
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.ranking-match-select img {
  margin-bottom: 5px;
}

.ranking-match-fallback {
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 31, 0.45);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.ranking-match-select img {
  width: 34px;
  height: 34px;
  margin-top: -39px;
  object-fit: contain;
  background: var(--blue-950);
}

/* Acceso social y perfil */
.auth-nav {
  position: relative;
  flex: 0 0 auto;
}

.auth-login {
  position: relative;
}

.auth-login > summary {
  padding: 10px 15px;
  border: 1px solid rgba(255, 213, 31, 0.5);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.auth-login > summary::-webkit-details-marker {
  display: none;
}

.auth-login__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 28px));
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 213, 31, 0.28);
  border-radius: 16px;
  background: #071b52;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.auth-login__menu > strong {
  color: var(--white);
  font-size: 15px;
}

.auth-login__menu > p {
  margin: -3px 0 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.auth-provider {
  min-height: 44px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.auth-provider:hover {
  border-color: var(--yellow);
}

.auth-provider--google {
  border-color: #747775;
  background: #fff;
  color: #1f1f1f;
}

.auth-provider--google:hover {
  border-color: #1f1f1f;
  background: #f2f2f2;
}

.auth-provider__icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
}

.auth-provider__icon img {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
}

.auth-profile-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.auth-profile-link > span:first-child {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 950;
}

.auth-profile-link > span:last-child {
  display: grid;
  gap: 2px;
}

.auth-profile-link small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.auth-profile-link strong {
  color: var(--white);
  font-size: 10px;
}

.auth-notice {
  position: fixed;
  z-index: 1100;
  right: 22px;
  bottom: 22px;
  max-width: 380px;
  padding: 14px 17px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 8px 8px 0 #174aa9;
}

.auth-notice--error {
  background: #ff8b8b;
}

.profile-gate {
  max-width: 760px;
  padding: 48px;
  text-align: center;
}

.profile-gate h1 {
  margin: 10px 0;
  font-size: clamp(34px, 6vw, 54px);
}

.profile-gate p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-login-actions {
  max-width: 440px;
  margin: 30px auto 0;
  display: grid;
  gap: 13px;
}

.profile-login-actions .auth-provider {
  min-height: 58px;
  padding: 14px 18px;
  gap: 14px;
  border-radius: 12px;
  font-size: 15px;
}

.profile-login-actions .auth-provider__icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
}

.profile-login-actions .auth-provider__icon img {
  width: 22px;
  height: 22px;
}

.profile-hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-identity__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 950;
}

.profile-identity h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 5vw, 46px);
}

.profile-identity p {
  margin: 0;
  color: var(--muted);
}

.profile-logout {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.profile-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-stats article {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.profile-stats small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.profile-stats strong {
  color: var(--yellow);
  font-size: 34px;
}

.profile-dashboard {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.profile-module {
  padding: 25px;
}

.profile-module:first-child {
  grid-row: span 2;
}

.profile-module h2 {
  margin: 7px 0 16px;
  font-size: 25px;
}

.profile-module > p,
.profile-recent-votes > p {
  color: var(--muted);
  line-height: 1.55;
}

.profile-module > a {
  display: inline-block;
  margin-top: 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.profile-recent-votes {
  display: grid;
  gap: 8px;
}

.profile-recent-vote {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.profile-recent-vote span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-recent-vote small {
  color: var(--muted);
  font-size: 9px;
}

.profile-recent-vote strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-recent-vote b {
  color: var(--yellow);
  font-size: 18px;
}

.profile-module--future {
  background: linear-gradient(135deg, rgba(255, 213, 31, 0.08), rgba(9, 32, 91, 0.8));
}

.profile-module--predictions {
  border-top: 4px solid var(--yellow);
  background: linear-gradient(135deg, rgba(255, 213, 31, 0.09), rgba(9, 32, 91, 0.82));
}

.profile-predictions-list {
  display: grid;
  gap: 8px;
}

.profile-prediction {
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.profile-prediction span {
  display: grid;
  gap: 3px;
}

.profile-prediction small {
  color: var(--muted);
  font-size: 9px;
}

.profile-prediction strong {
  font-size: 12px;
}

.profile-prediction b {
  color: var(--yellow);
  font-size: 18px;
}

/* Predicciones de temporada */
.predictions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  column-gap: 50px;
  align-items: end;
}

.predictions-hero > .eyebrow,
.predictions-hero > h1,
.predictions-hero > p {
  grid-column: 1;
}

.prediction-deadline {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 128px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  border: 1px solid #3e5fa6;
  border-left: 6px solid var(--yellow);
  background: #071947;
}

.prediction-deadline strong {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.prediction-deadline span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.prediction-deadline.is-locked {
  border-left-color: #ef6c72;
}

.prediction-deadline.is-locked strong {
  color: #ff9599;
}

.predictions-shell {
  padding-top: 34px;
  padding-bottom: 70px;
}

.predictions-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.predictions-heading h2 {
  margin: 7px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.predictions-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.prediction-tabs {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.prediction-tab {
  min-height: 54px;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #061746;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.prediction-tab img {
  width: 31px;
  height: 31px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.prediction-tab:last-child {
  border-right: 0;
}

.prediction-tab:hover,
.prediction-tab.is-active {
  background: var(--yellow);
  color: #05113b;
}

.prediction-panel,
.predictions-loading {
  margin-top: 14px;
  padding: 28px;
}

.prediction-panel {
  border-top: 5px solid var(--yellow);
}

.prediction-panel__header {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.prediction-panel__header h3 {
  margin: 6px 0 0;
  font-size: 26px;
}

.prediction-competition-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.prediction-competition-title > img {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
}

.prediction-progress {
  min-width: 66px;
  padding: 10px 12px;
  border: 1px solid #35589f;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.prediction-questions {
  display: grid;
  gap: 10px;
}

.prediction-leaders {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #35589f;
  background: rgba(3, 18, 57, 0.62);
}

.prediction-leaders__heading {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.prediction-leaders__heading h4 {
  margin: 6px 0 0;
  font-size: 20px;
}

.prediction-leaders__heading > small {
  color: var(--muted);
  font-size: 9px;
}

.prediction-leaders__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.prediction-leader-card {
  min-width: 0;
  min-height: 154px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  background: #071947;
}

.prediction-leader-card__avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #f5f7fb;
}

.prediction-leader-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prediction-leader-card > span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.prediction-leader-card small {
  min-height: 22px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.prediction-leader-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-leader-card em {
  color: var(--yellow);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.prediction-question {
  min-height: 122px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(180px, 0.72fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: #061746;
}

.prediction-question--outcome {
  grid-template-columns: 48px minmax(180px, 0.8fr) minmax(220px, 1.72fr);
}

.prediction-question__number {
  color: #5571ac;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 25px;
}

.prediction-question__copy {
  display: grid;
  gap: 5px;
}

.prediction-question__copy small {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.prediction-question__copy strong {
  font-size: 14px;
}

.prediction-question select {
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid #35589f;
  border-radius: 0;
  background: #0a2869;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.prediction-question select:focus {
  border-color: var(--yellow);
  outline: 2px solid rgba(255, 213, 31, 0.18);
}

.prediction-question select:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.prediction-player-preview {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.prediction-player-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: #031239;
  font-size: 11px;
  font-weight: 900;
}

.prediction-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prediction-player-preview > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.prediction-player-preview small,
.prediction-player-placeholder {
  color: var(--muted);
  font-size: 10px;
}

.prediction-player-preview strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.prediction-form-actions .primary-button {
  margin-top: 0;
}

.prediction-form-status {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-left: 4px solid #72c35b;
  background: rgba(114, 195, 91, 0.1);
  color: #c9edbd;
  font-size: 11px;
}

.prediction-form-status.is-pending {
  border-left-color: var(--yellow);
  color: #ffe98c;
}

.prediction-form-status.is-error {
  border-left-color: #ef6c72;
  color: #ffb5b8;
}

@media (max-width: 900px) {
  .predictions-hero {
    display: block;
  }

  .prediction-deadline {
    margin-top: 25px;
  }

  .prediction-question,
  .prediction-question--outcome {
    grid-template-columns: 42px minmax(150px, 0.72fr) minmax(210px, 1fr);
  }

  .prediction-player-preview {
    grid-column: 2 / -1;
  }

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

@media (max-width: 900px) {
  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-module:first-child {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .auth-login__menu {
    position: fixed;
    top: 92px;
    right: 14px;
  }

  .auth-profile-link > span:last-child {
    display: none;
  }

  .profile-hero,
  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-gate,
  .profile-hero,
  .profile-module {
    padding: 20px;
  }

  .predictions-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .predictions-heading > p {
    text-align: left;
  }

  .prediction-panel {
    padding: 20px;
  }

  .prediction-panel__header,
  .prediction-leaders__heading {
    align-items: flex-start;
  }

  .prediction-tabs {
    grid-template-columns: 1fr;
  }

  .prediction-tab,
  .prediction-tab:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prediction-tab:last-child {
    border-bottom: 0;
  }

  .prediction-question,
  .prediction-question--outcome {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
  }

  .prediction-question select,
  .prediction-player-preview {
    grid-column: 1 / -1;
  }

  .prediction-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prediction-leaders {
    padding: 14px;
  }

  .prediction-leaders__grid {
    grid-template-columns: 1fr;
  }

  .prediction-leader-card {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .prediction-leader-card small {
    min-height: 0;
  }
}

body.share-card-open {
  overflow: hidden;
}

.share-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 22px;
  display: grid;
  place-items: center;
}

.share-card-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 20, 0.86);
  backdrop-filter: blur(8px);
}

.share-card-modal__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 44px);
  padding: 20px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  border: 1px solid #315096;
  border-top: 5px solid var(--yellow);
  background: #061746;
  box-shadow: 14px 14px 0 #0d3388;
}

.share-card-modal__dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.share-card-modal__dialog h2 {
  margin: 6px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.share-card-modal__close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #315096;
  background: #0b2868;
  color: var(--white);
  font-size: 25px;
  cursor: pointer;
}

.share-card-preview {
  min-height: 300px;
  display: grid;
  place-items: center;
  background: #020b28;
}

.share-card-preview img {
  width: auto;
  max-width: 100%;
  max-height: min(62vh, 680px);
  display: block;
}

.share-card-loading {
  padding: 50px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.share-card-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.share-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-card-actions .primary-button {
  margin-top: 0;
}

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

  .rating-panel {
    position: static;
  }
}

@media (max-width: 1040px) {
  .summary-overview {
    grid-template-columns: 1fr;
  }

  .summary-main-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .ranking-card__tools {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ranking-card__tools .share-card-trigger {
    width: 100%;
  }

  .summary-comparisons,
  .summary-comparisons--more {
    padding-bottom: 5px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82%);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--yellow) #061746;
  }

  .summary-comparison {
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .vote-completion__actions,
  .share-card-actions {
    grid-template-columns: 1fr;
  }

  .share-card-modal {
    padding: 10px;
  }

  .share-card-modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 15px;
    box-shadow: 7px 7px 0 #0d3388;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-card-trigger {
    transition: none;
  }
}
