:root {
  --pitch-deep: #0b3d2e;
  --pitch-mid: #146b4a;
  --pitch-light: #1f8f63;
  --cream: #f3f6f2;
  --ink: #14201b;
  --ink-soft: #3d5248;
  --accent: #c45c26;
  --accent-soft: #e8a078;
  --line: rgba(20, 32, 27, 0.12);
  --white: #ffffff;
  --live: #c62828;
  --shadow: 0 18px 50px rgba(11, 61, 46, 0.18);
  --radius: 4px;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 143, 99, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 92, 38, 0.16), transparent 50%),
    linear-gradient(180deg, #e8efe9 0%, var(--cream) 40%, #e4ebe3 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(11, 61, 46, 0.35) 48px,
      rgba(11, 61, 46, 0.35) 49px
    );
  pointer-events: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 242, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f7d9a8, transparent 45%),
    conic-gradient(from 210deg, var(--pitch-deep), var(--pitch-light), var(--pitch-deep));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  color: var(--pitch-deep);
}

.brand-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pitch-deep);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.site-main {
  padding: 1.5rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 61, 46, 0.94);
  color: #d9ebe2;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  color: rgba(217, 235, 226, 0.8);
  font-size: 0.95rem;
}

.footer-note {
  align-self: end;
  opacity: 0.7;
}

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem 0 1.5rem;
  animation: rise 0.7s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--pitch-deep);
  margin: 0;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pitch-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--pitch-mid);
}

.btn-ghost {
  background: transparent;
  border-color: var(--pitch-deep);
  color: var(--pitch-deep);
}

.section {
  margin-top: 2.5rem;
  animation: rise 0.8s ease both;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--pitch-deep);
  padding-bottom: 0.55rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.match-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.match-teams {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.match-score {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  text-align: right;
  color: var(--pitch-deep);
  line-height: 1.1;
}

.match-status-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 0.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.status-live {
  color: var(--live);
}

.status-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.status-upcoming {
  color: var(--accent);
}

.status-done {
  color: var(--ink-soft);
}

.empty-state,
.error-state {
  padding: 1.5rem 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--pitch-mid);
  background: rgba(255, 255, 255, 0.75);
}

.flash-success {
  border-color: var(--pitch-light);
}

.flash-error {
  border-color: var(--live);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-bottom: 2px solid transparent;
}

.tab.is-active {
  color: var(--pitch-deep);
  border-color: var(--accent);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.5);
}

.rank-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pitch-deep);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filters input,
.filters select,
.form-field input,
.form-field select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  color: var(--ink);
  min-width: 12rem;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.player-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}

.player-link:hover {
  padding-left: 0.35rem;
}

.player-link strong {
  display: block;
  font-size: 1.1rem;
}

.player-link span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stat-blocks {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.predict-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.predict-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.vote-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}

.vote-fill {
  height: 0.55rem;
  background: rgba(20, 32, 27, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.vote-fill > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pitch-mid), var(--pitch-light));
}

.vote-fill.is-right > span {
  margin-left: auto;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
}

.predict-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--pitch-deep);
  line-height: 0.95;
}

.page-intro {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.live-panel[data-live-refresh] {
  min-height: 2rem;
}

.group-label {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--pitch-mid);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(243, 246, 242, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .match-score,
  .match-status-text {
    text-align: left;
  }

  .compare-grid,
  .compare-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Professional sports dashboard refresh */
:root {
  --pitch-deep: #062d24;
  --pitch-mid: #0b6149;
  --pitch-light: #14a06f;
  --cream: #f4f7f5;
  --ink: #10241d;
  --ink-soft: #60736b;
  --accent: #f06b35;
  --accent-soft: #ffc0a6;
  --line: rgba(16, 36, 29, 0.1);
  --shadow: 0 18px 48px rgba(6, 45, 36, 0.1);
  --shadow-soft: 0 8px 24px rgba(6, 45, 36, 0.07);
  --radius: 12px;
  --max: 1180px;
}

body {
  background: #edf3ef;
}

.page-bg {
  background:
    radial-gradient(circle at 12% 3%, rgba(20, 160, 111, 0.14), transparent 26rem),
    radial-gradient(circle at 92% 10%, rgba(240, 107, 53, 0.1), transparent 24rem),
    linear-gradient(180deg, #f7faf8 0, #edf3ef 70%);
}

.utility-bar {
  color: rgba(255, 255, 255, 0.78);
  background: var(--pitch-deep);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

.utility-bar__inner {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.utility-bar__source.is-fresh {
  color: #fff;
}

.live-panel.is-refreshing,
.match-detail-refresh.is-refreshing {
  position: relative;
}

.live-panel.is-refreshing::after,
.match-detail-refresh.is-refreshing::after {
  content: "Updating scores…";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 45, 36, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.match-detail-refresh {
  position: relative;
}

.utility-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.utility-live i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ff6c5f;
  box-shadow: 0 0 0 4px rgba(255, 108, 95, 0.15);
  animation: pulse 1.3s infinite;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  min-height: 4.75rem;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent);
  box-shadow: 0 7px 16px rgba(240, 107, 53, 0.24);
  animation: none;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 120%;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(27deg);
}

.brand-mark::before { left: 1rem; }
.brand-mark::after { right: 1rem; }

.brand-mark i {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.brand-name {
  font-size: 1.95rem;
  color: var(--pitch-deep);
}

.brand-tag {
  color: var(--ink-soft);
}

.site-nav {
  gap: 0.25rem;
}

.nav-link {
  padding: 0.65rem 0.72rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: var(--pitch-mid);
  background: rgba(11, 97, 73, 0.06);
}

.nav-link.is-active {
  color: #fff;
  background: var(--pitch-mid);
}

.site-main {
  min-height: 65vh;
  padding-top: 2rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  align-content: center;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  color: #fff;
  border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(6, 45, 36, 0.98), rgba(11, 97, 73, 0.88)),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.2), transparent 30%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -8rem;
  width: 32rem;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.035),
    0 0 0 95px rgba(255, 255, 255, 0.025);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .brand-tag,
.hero .hero-lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero-brand {
  color: #fff;
  font-size: clamp(4rem, 10vw, 7rem);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

.hero .btn-primary {
  background: var(--accent);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn {
  min-height: 43px;
  padding: 0.68rem 1.05rem;
  border-radius: 9px;
}

.btn-primary {
  box-shadow: 0 8px 18px rgba(6, 45, 36, 0.14);
}

.btn-quiet {
  color: var(--ink-soft);
  background: #eef3f0;
}

.page-title {
  font-size: clamp(3.1rem, 7vw, 5.3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--pitch-mid);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.section {
  margin-top: 3rem;
}

.section-head {
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  color: var(--pitch-deep);
  font-size: 2.4rem;
}

.match-search {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem;
  border: 1px solid rgba(11, 97, 73, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.match-search__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.match-search__heading h2 {
  margin: 0.12rem 0 0;
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.result-count {
  padding: 0.35rem 0.65rem;
  color: var(--pitch-mid);
  border-radius: 999px;
  background: rgba(20, 160, 111, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}

.match-search__form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.35fr) auto auto;
  gap: 0.75rem;
  align-items: end;
}

.search-control {
  display: grid;
  gap: 0.35rem;
}

.search-control label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.search-control input,
.match-search input,
.predict-form input,
.predict-form select {
  width: 100%;
  min-height: 43px;
  padding: 0.65rem 0.78rem;
  color: var(--ink);
  border: 1px solid #dbe5df;
  border-radius: 9px;
  background: #f9fbfa;
  font: inherit;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > span {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  color: var(--ink-soft);
  transform: translateY(-50%) rotate(-20deg);
}

.input-with-icon input {
  padding-left: 2.2rem;
}

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

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.match-card--live {
  border-top: 3px solid #d64242;
}

.match-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8faf9;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.match-card__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.55rem;
}

.match-card__meta strong {
  overflow: hidden;
  max-width: 210px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.match-card__header time {
  white-space: nowrap;
}

.match-card__body {
  padding: 1rem;
}

.scoreboard {
  display: grid;
  gap: 0.55rem;
}

.scoreboard__team {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 53px;
  padding: 0.3rem 0;
}

.scoreboard__team.is-winner .scoreboard__identity strong,
.scoreboard__team.is-winner .scoreboard__score {
  color: var(--pitch-mid);
}

.team-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.team-mark img {
  position: relative;
  z-index: 2;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.team-mark__fallback {
  position: absolute;
  z-index: 1;
  color: var(--pitch-mid);
  font-size: 0.72rem;
  font-weight: 800;
}

[data-image-frame].is-fallback img {
  display: none;
}

.scoreboard__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.scoreboard__identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scoreboard__identity small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.scoreboard__score {
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.035em;
}

.match-card__details {
  display: flex;
  min-height: 38px;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.65rem;
  padding-top: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
}

.match-card__details > span:not(:last-child)::after {
  content: "•";
  margin-left: 0.8rem;
  color: #b2beb8;
}

.match-card__status {
  width: 100%;
  color: var(--pitch-mid);
}

.match-card__link {
  margin-left: auto;
  color: var(--pitch-mid);
  font-weight: 800;
  text-decoration: none;
}

.empty-state,
.error-state {
  padding: 2rem;
  border: 1px dashed #c9d7d0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.player-grid {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1rem;
}

.player-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 97, 73, 0.3);
}

.player-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  color: #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, var(--pitch-light), var(--pitch-deep));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.player-card__body {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.player-card__body strong {
  font-size: 1.08rem;
}

.player-card__body small {
  color: var(--ink-soft);
}

.player-card__meta,
.team-table-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.player-card__meta img,
.team-table-name img,
.inline-flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.player-card__arrow {
  color: var(--pitch-mid);
  font-size: 1.2rem;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(115deg, #fff, #e8f2ed);
  box-shadow: var(--shadow-soft);
}

.player-avatar--hero {
  width: clamp(110px, 15vw, 160px);
  height: clamp(110px, 15vw, 160px);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.profile-hero__content .page-intro {
  margin-bottom: 1rem;
}

.profile-hero__content .eyebrow {
  gap: 0.55rem;
}

.stat-block {
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.compare-form,
.filters {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compare-form {
  grid-template-columns: 1fr 1fr minmax(130px, 0.45fr) auto;
}

.compare-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff, #edf5f1);
  box-shadow: var(--shadow-soft);
}

.compare-player h2,
.compare-player p {
  margin: 0;
}

.compare-player p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.data-table {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.data-table th {
  color: #fff;
  background: var(--pitch-deep);
}

.data-table th,
.data-table td {
  padding: 0.9rem 0.8rem;
}

.tabs {
  padding: 0.35rem;
  border-radius: 10px;
  background: #e2ebe6;
  width: fit-content;
}

.tab {
  border: 0;
  border-radius: 7px;
}

.tab.is-active {
  color: #fff;
  background: var(--pitch-mid);
}

.predict-item {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.prediction-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.prediction-team {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.prediction-team--right {
  flex-direction: row-reverse;
  text-align: right;
}

.prediction-vs {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.vote-bar {
  grid-template-columns: minmax(120px, auto) minmax(120px, 1fr) minmax(120px, auto);
  padding: 0.75rem;
  border-radius: 10px;
  background: #f5f8f6;
}

.site-footer {
  padding-bottom: 1rem;
  background: #05281f;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding-bottom: 2rem;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.footer-links strong {
  margin-bottom: 0.25rem;
  color: #fff;
}

.footer-links a {
  color: rgba(217, 235, 226, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: rgba(217, 235, 226, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .utility-bar__source {
    display: none;
  }

  .site-nav {
    top: 6.75rem;
    gap: 0.35rem;
    box-shadow: 0 15px 25px rgba(6, 45, 36, 0.13);
  }

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

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

  .compare-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .utility-bar__inner {
    justify-content: space-between;
  }

  .hero {
    min-height: 320px;
    padding: 2.5rem 1.25rem;
    border-radius: 16px;
  }

  .match-search__form,
  .compare-form,
  .compare-players,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .match-search__form .btn {
    width: 100%;
  }

  .match-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .player-avatar--hero {
    width: 100px;
    height: 100px;
  }

  .prediction-teams {
    gap: 0.45rem;
  }

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

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

  .vote-bar {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Cricket news */
.section-news {
  margin-top: 0.5rem;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0.35rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 10px;
  background: #e2ebe6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-grid--featured {
  grid-template-columns: 1.35fr 1fr;
  grid-auto-rows: minmax(220px, auto);
}

.news-grid--featured .news-card--hero {
  grid-row: span 2;
}

.news-grid--list {
  grid-template-columns: 1fr;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-grid--list .news-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.news-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0b6149, #062d24);
}

.news-card--hero .news-card__media,
.news-grid--list .news-card__media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card__media-fallback,
.news-article__hero-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #0b6149, #062d24);
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
}

[data-image-frame].is-fallback .news-card__media-fallback,
[data-image-frame].is-fallback .news-article__hero-fallback {
  display: grid;
}

[data-image-frame].is-fallback img[data-image] {
  display: none;
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.15rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  color: var(--pitch-mid);
  border-radius: 999px;
  background: rgba(20, 160, 111, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.news-card--hero .news-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: 0.03em;
  line-height: 0.98;
}

.news-card__title a {
  color: var(--pitch-deep);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--pitch-mid);
}

.news-card__excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.news-card__link {
  margin-top: auto;
  color: var(--pitch-mid);
  font-weight: 800;
  text-decoration: none;
}

.news-article {
  max-width: 860px;
}

.news-article__header {
  margin-bottom: 1.25rem;
}

.news-article__byline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.news-article__hero {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.news-article__hero img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.news-article__content {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.news-article__content p {
  margin: 0 0 1.1rem;
}

.news-article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.section-head a {
  color: var(--pitch-mid);
  font-weight: 700;
  text-decoration: none;
}

.section-head a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .news-grid,
  .news-grid--featured {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid--featured .news-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .news-grid,
  .news-grid--featured,
  .news-grid--list .news-card {
    grid-template-columns: 1fr;
  }

  .news-grid--list .news-card__media {
    min-height: 210px;
  }
}

/* Match detail centre */
.detail-hero {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eaf4ef);
  box-shadow: var(--shadow-soft);
}

.detail-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-hero__title {
  margin: 0.25rem 0 0.45rem;
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.detail-hero__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink-soft);
}

.detail-hero__meta {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: right;
}

.detail-scoreboard {
  display: grid;
  gap: 0.7rem;
}

.detail-scoreboard__team {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.detail-scoreboard__team.is-batting {
  border-color: rgba(11, 97, 73, 0.35);
  box-shadow: inset 3px 0 0 var(--pitch-mid);
}

.detail-scoreboard__team.is-winner .detail-scoreboard__score {
  color: var(--pitch-mid);
}

.detail-scoreboard__info {
  display: grid;
  min-width: 0;
}

.detail-scoreboard__info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-scoreboard__info small {
  color: var(--ink-soft);
}

.detail-scoreboard__score {
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
}

.detail-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.detail-stat-strip > div {
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  background: rgba(6, 45, 36, 0.92);
  color: #fff;
}

.detail-stat-strip span {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-stat-strip strong {
  font-size: 1.05rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.chart-card {
  padding: 1rem 1.1rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.chart-card h3 {
  margin: 0 0 0.65rem;
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.leader-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.leader-card__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.leader-card__head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.leader-card__head strong {
  display: block;
}

.leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.leader-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.leader-list small {
  display: block;
  color: var(--ink-soft);
}

.leader-list em {
  color: var(--pitch-mid);
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.player-avatar--mini {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  font-size: 0.9rem;
}

.player-avatar--mini img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scorecard-block h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.scorecard-block h3 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.table-scroll {
  overflow-x: auto;
}

.scorecard-table td,
.scorecard-table th {
  white-space: nowrap;
}

.scorecard-player {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.scorecard-player img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f1ec;
}

.detail-side-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.note-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.note-list li + li {
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .detail-stat-strip,
  .chart-grid,
  .leader-grid,
  .detail-side-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .detail-hero__meta {
    text-align: left;
  }

  .detail-stat-strip,
  .chart-grid,
  .leader-grid,
  .detail-side-grid {
    grid-template-columns: 1fr;
  }

  .detail-scoreboard__score {
    font-size: 1.35rem;
  }
}
