.match-center-card-footer {
  align-items: center;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
}

.match-center-card-footer.is-link-only {
  justify-content: flex-end;
}

.match-center-card-footer.is-status-only {
  justify-content: center;
}

.match-card-venue {
  align-items: flex-start;
  color: #94a3b8 !important;
  display: inline-flex !important;
  font-size: 0.625rem !important;
  line-height: 1.35;
  max-width: 72%;
  text-align: right;
  white-space: normal;
}

[data-legacy-today-matches] {
  display: none !important;
}

.upcoming-matches {
  border-top: 1px solid rgba(52, 211, 153, 0.2);
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.upcoming-matches-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.upcoming-matches-kicker {
  color: #6ee7b7;
  display: block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.upcoming-matches-header h2 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1.1;
  margin-top: 0.2rem;
}

.upcoming-matches-range {
  color: #fde68a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.upcoming-matches-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upcoming-match-card {
  background:
    linear-gradient(90deg, var(--upcoming-accent), var(--upcoming-accent)) top
      left / 100% 0.14rem no-repeat,
    linear-gradient(145deg, rgba(248, 250, 252, 0.97), rgba(226, 232, 240, 0.93));
  border: 1px solid color-mix(in srgb, var(--upcoming-accent) 42%, #94a3b8);
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.22);
  color: #0f172a;
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0.42rem 0.55rem 0.38rem;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.upcoming-match-card:hover {
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.32);
  transform: translateY(-1px);
}

.upcoming-match-meta {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.46rem;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: 0.07em;
}

.upcoming-match-phase {
  background: var(--upcoming-accent);
  border-radius: 0 0 0.4rem 0.4rem;
  color: #07111f;
  margin-top: -0.42rem;
  padding: 0.2rem 0.45rem;
}

.upcoming-match-matchup {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: minmax(0, 1fr) 4.1rem minmax(0, 1fr);
  margin-top: 0.42rem;
}

.upcoming-match-team {
  align-items: center;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.upcoming-match-flag {
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.2));
  font-size: 1.55rem;
  line-height: 1;
}

.upcoming-match-team strong {
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.upcoming-match-time {
  display: grid;
  justify-items: center;
}

.upcoming-match-time strong {
  color: #0f172a;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.upcoming-match-time small {
  color: #64748b;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.upcoming-match-time.is-live strong,
.upcoming-match-time.is-live small {
  color: #dc2626;
}

.upcoming-match-time.is-finished strong {
  color: #047857;
}

.upcoming-match-time.is-finished small {
  color: #475569;
}

.upcoming-match-venue {
  border-top: 1px solid rgba(100, 116, 139, 0.22);
  color: #64748b;
  font-size: 0.45rem;
  line-height: 1.3;
  margin-top: 0.35rem;
  overflow: hidden;
  padding-top: 0.28rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-spotlight {
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}

.home-spotlight-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.home-spotlight-kicker {
  color: #fde68a;
  display: block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.home-spotlight-header h2 {
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-top: 0.2rem;
}

.home-spotlight-summary {
  color: #94a3b8;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.home-spotlight-range {
  color: #6ee7b7;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.home-spotlight-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.home-spotlight-card {
  background:
    linear-gradient(90deg, var(--home-spotlight-accent), var(--home-spotlight-accent))
      top left / 100% 0.15rem no-repeat,
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.93));
  border: 1px solid color-mix(in srgb, var(--home-spotlight-accent) 35%, #94a3b8);
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18);
  color: #0f172a;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  padding: 0.55rem 0.6rem 0.5rem;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.home-spotlight-card:hover {
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.28);
  transform: translateY(-1px);
}

.home-spotlight-card-top {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  justify-content: space-between;
  min-width: 0;
}

.home-spotlight-card-label {
  color: #475569;
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-spotlight-card-badge {
  background: var(--home-spotlight-accent);
  border-radius: 999px;
  color: #07111f;
  flex: 0 0 auto;
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.42rem;
  text-transform: uppercase;
}

.home-spotlight-card-title {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.1;
}

.home-spotlight-card-detail {
  color: #475569;
  font-size: 0.68rem;
  line-height: 1.35;
}

.home-spotlight-card-score {
  color: #047857;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-top: 0.1rem;
}

.match-browser {
  background:
    radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(7, 17, 31, 0.96));
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
  overflow: hidden;
  padding: 1rem;
}

.match-browser-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.match-browser-kicker {
  color: #6ee7b7;
  display: block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.match-browser-header h2 {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.match-browser-summary {
  color: #94a3b8;
  font-size: 0.7rem;
  text-align: right;
}

.match-browser-tabs {
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
  padding: 0.3rem;
}

.match-browser-tabs button {
  border: 1px solid transparent;
  border-radius: 0.55rem;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 2.25rem;
  padding: 0.45rem 0.6rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.match-browser-tabs button:hover {
  color: #f8fafc;
}

.match-browser-tabs button[data-active="true"] {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fde68a;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
  color: #07111f;
}

.match-browser-date-navigation {
  align-items: stretch;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  margin-top: 0.75rem;
}

.match-browser-date-navigation[hidden] {
  display: none;
}

.match-browser-date-arrow,
.match-browser-date-button {
  border: 1px solid rgba(71, 85, 105, 0.78);
  border-radius: 0.65rem;
  cursor: pointer;
}

.match-browser-date-arrow {
  background: rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  font-size: 1.35rem;
}

.match-browser-date-arrow:disabled {
  cursor: default;
  opacity: 0.3;
}

.match-browser-date-list {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-browser-date-button {
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  display: grid;
  min-height: 3.25rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.match-browser-date-button span {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-browser-date-button strong {
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.2;
}

.match-browser-date-button[data-active="true"] {
  background: rgba(6, 78, 59, 0.55);
  border-color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.18);
}

.match-browser-date-button[data-active="true"] span,
.match-browser-date-button[data-active="true"] strong {
  color: #a7f3d0;
}

[data-match-browser-filter][data-match-browser-mode="results"]
  select[aria-label="Filtr dnia"],
[data-match-browser-filter][data-match-browser-mode="upcoming"]
  select[aria-label="Filtr dnia"] {
  display: none;
}

[data-match-browser-filter][data-match-browser-mode="results"]
  .match-browser-filter-grid,
[data-match-browser-filter][data-match-browser-mode="upcoming"]
  .match-browser-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-browser-list {
  display: grid;
  gap: 1rem;
}

.match-browser-date-section h3 {
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem 0.2rem;
}

.match-browser-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-browser-more {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(71, 85, 105, 0.82);
  border-radius: 0.7rem;
  color: #d1fae5;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
  justify-self: center;
  padding: 0.65rem 1.2rem;
}

.match-browser-more:hover {
  border-color: #34d399;
}

.match-browser-empty {
  background: rgba(15, 23, 42, 0.58);
  border: 1px dashed rgba(71, 85, 105, 0.82);
  border-radius: 0.8rem;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.prediction-outcome-card {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.prediction-outcome-card.is-correct {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.12);
}

.prediction-outcome-card.is-wrong {
  border-color: rgba(248, 113, 113, 0.42);
}

.prediction-outcome-teams {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  text-align: center;
}

.prediction-outcome-flag {
  font-size: 2rem;
  line-height: 1;
}

.prediction-outcome-team-name {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 850;
  margin-top: 0.3rem;
}

.prediction-outcome-vs {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.prediction-outcome-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.prediction-outcome-button {
  align-items: center;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 0.7rem;
  color: #cbd5e1;
  cursor: pointer;
  display: grid;
  min-height: 3.4rem;
  min-width: 0;
  padding: 0.45rem 0.35rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.prediction-outcome-button:hover:not(:disabled) {
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
}

.prediction-outcome-button strong {
  color: #fde68a;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

.prediction-outcome-button span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-outcome-button.is-selected {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fde68a;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
  color: #07111f;
}

.prediction-outcome-button.is-selected strong {
  color: #07111f;
}

.prediction-outcome-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.prediction-outcome-button.is-selected:disabled {
  opacity: 1;
}

.prediction-outcome-clear {
  color: #94a3b8;
  display: block;
  font-size: 0.65rem;
  margin: 0.55rem auto 0;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.prediction-outcome-clear:hover {
  color: #fca5a5;
}

.prediction-outcome-lock {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
  margin-top: 0.55rem;
  text-align: center;
}

.prediction-outcome-result {
  align-items: center;
  border-top: 1px solid rgba(51, 65, 85, 0.68);
  color: #94a3b8;
  display: flex;
  font-size: 0.68rem;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
}

.prediction-outcome-result strong {
  color: #f8fafc;
}

.prediction-outcome-result .is-correct {
  color: #6ee7b7;
  font-weight: 900;
}

.prediction-outcome-result .is-wrong {
  color: #fca5a5;
  font-weight: 900;
}

/* Compact main sponsorship banner. The 300 x 250 desktop sidebar stays unchanged. */
.ad-slot-main {
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.625rem 0.875rem;
}

.ad-slot-main .ad-slot-kicker {
  font-size: 0.6rem;
}

.ad-slot-main .ad-slot-title {
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.ad-slot-main .ad-slot-contact {
  font-size: 0.7rem;
  margin-top: 0.35rem;
}

.ad-slot-main .ad-slot-visual {
  height: 64px;
  margin-top: 0;
}

.ad-slot-main .ad-slot-scene {
  max-width: 260px;
}

.ad-slot-main .ad-slot-visual-caption {
  font-size: 0.5rem;
}

.ad-slot-main .ad-slot-label-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.ad-slot-main .ad-slot-partner-label {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid #fbbf24;
  border-radius: 0.35rem;
  color: #fde68a;
  display: inline-flex;
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ad-slot-main {
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
    min-height: 96px;
    padding: 0.625rem 1rem;
  }

  .ad-slot-main .ad-slot-visual {
    height: 88px;
  }

  .ad-slot-main .ad-slot-scene {
    max-width: 280px;
  }
}

.match-center-status {
  align-items: center;
  color: #94a3b8;
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 900;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-page-grid.is-single-panel {
  grid-template-columns: 1fr;
}

.match-center-status::before {
  background: currentcolor;
  border-radius: 999px;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.match-center-status.is-finished {
  color: #6ee7b7;
}

.match-center-status.is-live {
  color: #fca5a5;
}

.match-center-status.is-live::before {
  animation: match-live-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45);
}

.match-center-status.is-alert {
  color: #fde68a;
}

.match-center-link {
  align-items: center;
  color: #fde68a;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  gap: 0.35rem;
  text-decoration: none;
}

.match-center-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.match-center-link:hover {
  color: #fef3c7;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.match-center-link:hover::after {
  transform: translateX(0.2rem);
}

.match-card-official {
  box-shadow:
    inset 0 1px 0 rgba(52, 211, 153, 0.06),
    0 12px 28px rgba(2, 6, 23, 0.18);
}

.official-score-locked {
  cursor: pointer !important;
  opacity: 1 !important;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease !important;
}

.official-score-locked:hover,
.official-score-locked:focus-visible {
  background: rgba(251, 191, 36, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.32);
  transform: translateY(-1px);
}

.official-score-locked.is-awaiting-result {
  border: 0;
  color: #64748b !important;
  font-size: 1.05rem !important;
  font-style: normal !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.42rem 0.25rem;
  white-space: nowrap;
}

[data-nav-order="1"] { order: 1; }
[data-nav-order="2"] { order: 2; }
[data-nav-order="3"] { order: 3; }
[data-nav-order="4"] { order: 4; }
[data-nav-order="5"] { order: 5; }
[data-nav-order="6"] { order: 6; }
[data-nav-order="7"] { order: 7; }
[data-nav-order="8"] { order: 8; }
[data-nav-order="9"] { order: 9; }
[data-nav-order="10"] { order: 10; }
[data-nav-order="11"] { order: 11; }
[data-nav-order="12"] { order: 12; }

.site-trophy-mark[data-home-navigation="true"] {
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.site-trophy-mark[data-home-navigation="true"]:hover,
.site-trophy-mark[data-home-navigation="true"]:focus-visible {
  border-color: #fbbf24;
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.52),
    0 0 22px rgba(251, 191, 36, 0.26) !important;
  transform: translateY(-1px);
}

.team-list-back-button {
  align-items: center !important;
  background: linear-gradient(
    135deg,
    rgba(6, 78, 59, 0.72),
    rgba(15, 23, 42, 0.9)
  ) !important;
  border: 1px solid rgba(52, 211, 153, 0.42) !important;
  border-radius: 0.7rem !important;
  color: #a7f3d0 !important;
  display: inline-flex !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.85rem !important;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.team-list-back-button:hover,
.team-list-back-button:focus-visible {
  border-color: #fbbf24 !important;
  color: #fde68a !important;
  transform: translateX(-2px);
}

.dream-team-player-photo {
  background: #0f172a !important;
  font-size: 0 !important;
  overflow: hidden;
  position: relative;
}

.dream-team-player-photo img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 50% 18%;
  position: absolute;
  width: 100%;
}

@media (min-width: 1024px) {
  .site-primary-nav-desktop {
    display: grid !important;
    gap: 0.3rem 0.4rem !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible !important;
    padding-bottom: 0.45rem;
  }

  .site-primary-nav-desktop > button {
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
    padding: 0.65rem 0.45rem !important;
    text-align: center;
    white-space: normal !important;
  }

  .site-primary-nav-desktop > button svg {
    flex: 0 0 auto;
    height: 1rem;
    width: 1rem;
  }
}

.match-page {
  color: #e2e8f0;
  margin: 0 auto;
  min-height: 100vh;
  padding: 1.25rem 1rem 3rem;
  width: min(100%, 1180px);
}

.match-page-back {
  color: #a7f3d0;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-decoration: none;
}

.match-page-back:hover {
  color: #fde68a;
}

.match-page-card {
  background:
    radial-gradient(circle at 85% 8%, rgba(16, 185, 129, 0.11), transparent 28rem),
    rgba(15, 30, 48, 0.92);
  border: 1px solid rgba(51, 100, 108, 0.5);
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.26);
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.match-page-card h2 {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.match-page-hero {
  background:
    radial-gradient(circle at 50% 0, rgba(251, 191, 36, 0.13), transparent 24rem),
    linear-gradient(145deg, rgba(15, 30, 48, 0.98), rgba(6, 78, 59, 0.34));
  border-color: rgba(52, 211, 153, 0.38);
  overflow: hidden;
  position: relative;
}

.match-page-hero::before {
  background: linear-gradient(90deg, #fbbf24, #34d399);
  content: "";
  height: 0.18rem;
  inset: 0 55% auto 0;
  position: absolute;
}

.match-page-kicker {
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.match-page-meta {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 0.4rem;
  text-align: center;
}

.match-scoreboard {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 1.5rem auto 0;
  max-width: 850px;
}

.match-scoreboard-team {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  text-align: center;
}

.match-scoreboard-team strong {
  color: #f8fafc;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.match-scoreboard-flag {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1;
}

.match-scoreboard-result {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.match-scoreboard-result > strong {
  color: #fde68a;
  font-size: clamp(2rem, 7vw, 4.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 0.45rem 0 0.3rem;
  white-space: nowrap;
}

.match-scoreboard-result small {
  color: #94a3b8;
  font-size: 0.7rem;
}

.match-scoreboard-status {
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
}

.match-scoreboard-status.is-finished {
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}

.match-scoreboard-status.is-live {
  background: rgba(127, 29, 29, 0.42);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.match-page-update {
  color: #64748b;
  font-size: 0.65rem;
  margin-top: 1.25rem;
  text-align: center;
}

.match-page-grid {
  display: grid;
  gap: 1rem;
}

.match-page-grid > .match-page-card {
  margin-bottom: 0;
}

.match-empty-state {
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 0.9rem;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.match-events {
  display: grid;
  gap: 0.55rem;
}

.match-event {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 2.5rem 1.6rem minmax(0, 1fr);
  padding: 0.7rem;
}

.match-event.is-goal {
  border-color: rgba(52, 211, 153, 0.34);
}

.match-event time {
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.match-event-icon {
  font-size: 1rem;
  text-align: center;
}

.match-event div {
  display: grid;
  min-width: 0;
}

.match-event strong {
  color: #f8fafc;
  font-size: 0.8rem;
}

.match-event span,
.match-event small {
  color: #94a3b8;
  font-size: 0.68rem;
}

.match-statistics-head,
.match-statistic-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr minmax(8rem, 1.3fr) 1fr;
  text-align: center;
}

.match-statistics-head {
  color: #a7f3d0;
  font-size: 0.7rem;
  padding: 0 0.5rem 0.7rem;
}

.match-statistic-row {
  border-top: 1px solid rgba(51, 65, 85, 0.62);
  padding: 0.65rem 0.5rem;
}

.match-statistic-row strong {
  color: #f8fafc;
  font-size: 0.82rem;
}

.match-statistic-row span {
  color: #94a3b8;
  font-size: 0.68rem;
}

.match-lineups {
  display: grid;
  gap: 1rem;
}

.match-lineup {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 1rem;
  padding: 1rem;
}

.match-lineup-head {
  align-items: start;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.match-lineup-head h3 {
  color: #fde68a;
  font-size: 0.9rem;
  font-weight: 900;
}

.match-lineup-head p,
.match-lineup-head span {
  color: #94a3b8;
  font-size: 0.65rem;
}

.match-lineup ol {
  display: grid;
  gap: 0.35rem;
}

.match-lineup li {
  align-items: center;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1.8rem minmax(0, 1fr) 2rem;
  min-height: 1.75rem;
}

.match-lineup li > span {
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.match-lineup li strong {
  color: #e2e8f0;
  font-size: 0.75rem;
}

.match-lineup li small {
  color: #64748b;
  font-size: 0.65rem;
  text-align: right;
}

.match-lineup details {
  border-top: 1px solid rgba(51, 65, 85, 0.62);
  color: #94a3b8;
  font-size: 0.68rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.match-lineup summary {
  color: #a7f3d0;
  cursor: pointer;
  font-weight: 800;
}

.match-lineup details p {
  line-height: 1.6;
  margin-top: 0.55rem;
}

.match-page-source {
  color: #64748b;
  font-size: 0.65rem;
  padding: 0.5rem;
  text-align: center;
}

.match-not-found {
  padding: 3rem 1rem;
  text-align: center;
}

.match-not-found h1 {
  color: #fde68a;
  font-size: 1.4rem;
  font-weight: 900;
}

.match-not-found p {
  color: #94a3b8;
  margin-top: 0.5rem;
}

.automatic-scorers {
  background:
    radial-gradient(circle at 90% 0, rgba(16, 185, 129, 0.12), transparent 22rem),
    linear-gradient(145deg, rgba(15, 30, 48, 0.96), rgba(10, 25, 36, 0.94));
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 1rem;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22);
  margin-top: 1rem;
  overflow: hidden;
}

.automatic-scorers-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.automatic-scorers-kicker {
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.automatic-scorers-header h3 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.automatic-scorers-description {
  color: #94a3b8;
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.automatic-scorers-badge {
  background: rgba(6, 78, 59, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
}

.automatic-scorers-columns,
.automatic-scorers-row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(5rem, 0.5fr) 3rem;
}

.automatic-scorers-columns {
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.25rem 0.45rem;
}

.automatic-scorers-columns span:nth-child(3),
.automatic-scorers-columns span:nth-child(4) {
  text-align: right;
}

.automatic-scorers-list {
  padding: 0 0.75rem 0.65rem;
}

.automatic-scorers-row {
  border-top: 1px solid rgba(51, 65, 85, 0.62);
  min-height: 4rem;
  padding: 0.55rem 0.5rem;
}

.automatic-scorers-row:first-child {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent 72%);
  border-color: rgba(251, 191, 36, 0.22);
  border-radius: 0.75rem 0.75rem 0 0;
}

.automatic-scorers-rank {
  align-items: center;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 999px;
  color: #cbd5e1;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  height: 1.85rem;
  justify-content: center;
  width: 1.85rem;
}

.automatic-scorers-row:first-child .automatic-scorers-rank {
  background: rgba(120, 53, 15, 0.72);
  border-color: rgba(251, 191, 36, 0.48);
  color: #fde68a;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.12);
}

.automatic-scorers-identity {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.automatic-scorers-flag {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.automatic-scorers-player {
  display: grid;
  min-width: 0;
}

.automatic-scorers-player strong,
.automatic-scorers-player a {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automatic-scorers-player a:hover {
  color: #fde68a;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.automatic-scorers-player span {
  color: #94a3b8;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.automatic-scorers-minutes {
  color: #94a3b8;
  font-size: 0.68rem;
  text-align: right;
}

.automatic-scorers-goals {
  color: #6ee7b7;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.automatic-scorers-row:first-child .automatic-scorers-goals {
  color: #fde68a;
}

.automatic-scorers-note,
.automatic-scorers-empty {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.5;
}

.automatic-scorers-note {
  border-top: 1px solid rgba(51, 65, 85, 0.58);
  padding: 0.7rem 1.25rem;
}

.automatic-scorers-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
}

@keyframes match-live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(248, 113, 113, 0);
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 780px) {
  .match-page {
    padding-top: 2rem;
  }

  .match-page-card {
    padding: 1.5rem;
  }

  .match-page-grid,
  .match-lineups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .match-browser {
    padding: 0.8rem;
  }

  .match-browser-header {
    align-items: start;
    display: grid;
  }

  .match-browser-summary {
    text-align: left;
  }

  .match-browser-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-browser-tabs button {
    min-height: 2.5rem;
  }

  .match-browser-date-navigation {
    grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem;
  }

  .match-browser-date-list {
    gap: 0.3rem;
  }

  .match-browser-date-button {
    min-height: 3.65rem;
    padding-inline: 0.2rem;
  }

  .match-browser-date-button strong {
    font-size: 0.62rem;
  }

  .match-browser-grid {
    grid-template-columns: 1fr;
  }

  .prediction-outcome-team-name {
    font-size: 0.74rem;
  }

  .prediction-outcome-grid {
    gap: 0.35rem;
  }

  .prediction-outcome-button {
    min-height: 3.65rem;
    padding-inline: 0.2rem;
  }

  .prediction-outcome-button span {
    font-size: 0.56rem;
  }

  [data-match-browser-filter][data-match-browser-mode="results"]
    .match-browser-filter-grid,
  [data-match-browser-filter][data-match-browser-mode="upcoming"]
    .match-browser-filter-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-matches-header {
    align-items: start;
  }

  .upcoming-matches-header h2 {
    font-size: 0.95rem;
  }

  .upcoming-matches-range {
    font-size: 0.62rem;
    max-width: 8rem;
  }

  .upcoming-matches-grid {
    grid-template-columns: 1fr;
  }

  .home-spotlight-header {
    align-items: start;
    flex-direction: column;
  }

  .home-spotlight-range {
    text-align: left;
  }

  .home-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-match-card {
    padding: 0.48rem 0.55rem 0.4rem;
  }

  .upcoming-match-matchup {
    grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 1fr);
  }

  .upcoming-match-flag {
    font-size: 1.75rem;
  }

  .upcoming-match-team strong {
    font-size: 0.62rem;
  }

  .match-card-venue {
    font-size: 0.56rem !important;
    max-width: 68%;
  }

  .automatic-scorers-header {
    display: grid;
    padding: 1rem;
  }

  .automatic-scorers-badge {
    justify-self: start;
  }

  .automatic-scorers-columns,
  .automatic-scorers-row {
    gap: 0.5rem;
    grid-template-columns: 1.8rem minmax(0, 1fr) 2.5rem;
  }

  .automatic-scorers-columns {
    padding-inline: 0.8rem;
  }

  .automatic-scorers-columns span:nth-child(3),
  .automatic-scorers-minutes {
    display: none;
  }

  .automatic-scorers-list {
    padding-inline: 0.4rem;
  }

  .automatic-scorers-row {
    min-height: 3.75rem;
    padding-inline: 0.4rem;
  }

  .automatic-scorers-rank {
    height: 1.65rem;
    width: 1.65rem;
  }

  .automatic-scorers-flag {
    font-size: 1.15rem;
  }

  .automatic-scorers-player strong,
  .automatic-scorers-player a {
    font-size: 0.78rem;
  }

  .automatic-scorers-note {
    padding-inline: 1rem;
  }

  .match-center-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .match-scoreboard {
    gap: 0.35rem;
  }

  .match-scoreboard-result > strong {
    font-size: 1.85rem;
  }

  .match-page-meta {
    line-height: 1.5;
  }

  .match-lineup-head {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-center-status.is-live::before {
    animation: none;
  }
}
