:root {
  --bg: #071018;
  --panel: #0f1a28;
  --panel-2: #122034;
  --accent: #2fe0ad;
  --accent-2: #ff6a57;
  --accent-3: #44c9ff;
  --accent-3-soft: #a8e9ff;
  --accent-4: #ffd60a;
  --text: #eef6ff;
  --muted: #9db3c9;
  --stroke: #22364b;
  --shadow: 0 20px 60px rgba(1, 8, 14, 0.48);
}

:root[data-theme="light"] {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --panel-2: #eef4fa;
  --accent: #ff8a33;
  --accent-2: #ff6a57;
  --accent-3: #1ba7e7;
  --accent-3-soft: #1d89bf;
  --text: #12263a;
  --muted: #60778e;
  --stroke: #d6e2ee;
  --shadow: 0 16px 42px rgba(18, 38, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 100% -15%, rgba(68, 201, 255, 0.14) 0%, transparent 60%),
    radial-gradient(1000px 560px at -15% 10%, rgba(47, 224, 173, 0.14) 0%, transparent 62%),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 34px
    ),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.2px;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(1200px 620px at 100% -15%, rgba(27, 167, 231, 0.12) 0%, transparent 60%),
    radial-gradient(1000px 560px at -15% 10%, rgba(255, 138, 51, 0.1) 0%, transparent 62%),
    repeating-linear-gradient(
      120deg,
      rgba(18, 38, 58, 0.02) 0 1px,
      transparent 1px 34px
    ),
    var(--bg);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: rgba(47, 224, 173, 0.34);
  top: -80px;
  left: -40px;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: rgba(68, 201, 255, 0.3);
  top: 40vh;
  right: -120px;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(255, 106, 87, 0.24);
  bottom: -120px;
  left: 40vw;
}

:root[data-theme="light"] .orb-1 {
  background: rgba(255, 138, 51, 0.2);
}

:root[data-theme="light"] .orb-2 {
  background: rgba(27, 167, 231, 0.22);
}

:root[data-theme="light"] .orb-3 {
  background: rgba(255, 106, 87, 0.16);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 80px 8vw 40px;
  max-width: 1420px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px);
  gap: 24px;
}

.hero > * {
  grid-column: 2;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero > * {
    grid-column: 1;
  }
}

.hero__spacer {
  height: 10px;
}

.hero__tagline {
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-align: center;
}

.hero__intro {
  margin: 8px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.hero {
  text-align: center;
}

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

.brand img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.brand__link {
  display: inline-flex;
  text-decoration: none;
}

.hero .brand {
  justify-content: center;
}

.match-page .brand {
  justify-content: center;
}

.hero h1:not(.hero__tagline) {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin: 16px 0 12px;
  font-family: "Fraunces", "Georgia", serif;
  letter-spacing: 1px;
}

.hero h1.hero__tagline {
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 10px 0 0;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero__badge {
  display: inline-block;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--accent);
  background: rgba(255, 184, 0, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.meta__label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.meta__value {
  font-weight: 600;
  margin-top: 6px;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 8vw 80px;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px);
  gap: 24px;
}

.match-page .wrap {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px);
  max-width: 1420px;
  padding-top: 40px;
}

.match-page .content {
  gap: 20px;
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background:
    linear-gradient(90deg, rgba(47, 224, 173, 0.16), rgba(68, 201, 255, 0.14));
  border: 1px solid var(--stroke);
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticker__label {
  font-weight: 700;
  color: #d4fff3;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.ticker__content {
  color: var(--text);
  font-weight: 500;
}

.ticker__track {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__row {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 9s linear infinite;
  will-change: transform;
}

.ticker__segment {
  display: inline-flex;
  gap: 24px;
  padding-right: 24px;
}

.ticker__segment::after {
  content: " • ";
  color: var(--muted);
  padding: 0 12px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--ticker-width)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__row {
    animation: none;
  }
}

.ticker__link {
  color: #eaf7ff;
  text-decoration: none;
  font-weight: 600;
}

.ticker__link:hover {
  color: var(--accent);
}

:root[data-theme="light"] .ticker__label {
  color: #9a5a1f;
}

:root[data-theme="light"] .ticker__link {
  color: #22425b;
}

.content {
  display: grid;
  gap: 26px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.match-page .content {
  max-width: 560px;
}

.feed {
  display: grid;
  gap: 26px;
}

.active-header {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: -10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-header__link {
  font-size: 0.95rem;
  color: var(--accent-4);
  text-decoration: none;
  font-weight: 600;
}

.active-header__link:hover {
  color: var(--accent-3-soft);
}

.active-list {
  display: grid;
  gap: 16px;
}

.all-matches {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(17, 19, 26, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .all-matches {
  background: var(--panel);
}

.all-matches h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.all-matches__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.all-matches__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--stroke);
  font-size: 0.95rem;
}

.all-matches__item:hover {
  border-color: var(--accent);
}

.all-matches__date {
  color: var(--muted);
  font-size: 0.85rem;
}

.group {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(17, 19, 26, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .group {
  background: var(--panel);
}

.group summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

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

.group__count {
  color: var(--muted);
  font-size: 0.9rem;
}

.group__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease;
}

.group[open] .group__icon {
  transform: rotate(45deg);
}

.group__body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.finished__more {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.finished__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.finished-all {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(17, 19, 26, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .finished-all {
  background: var(--panel);
}

.finished-all__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.finished-all__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.finished-all__body {
  display: grid;
  gap: 16px;
}

.finished-all__pager {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.finished-all__pager button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.finished-all__pager button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty {
  color: var(--muted);
  padding: 10px 4px 0;
}

.day {
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(17, 19, 26, 0.9);
  padding: 20px;
}

:root[data-theme="light"] .day {
  background: var(--panel);
}

.day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.day__date {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.4rem;
  letter-spacing: 0.8px;
}

.day__count {
  color: var(--muted);
  font-size: 0.9rem;
}

.day__summary-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.day--collapsible > summary {
  list-style: none;
  cursor: pointer;
}

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

.day--collapsible .group__icon {
  transition: transform 0.2s ease;
}

.day--collapsible[open] .group__icon {
  transform: rotate(45deg);
}

.cards {
  display: grid;
  gap: 16px;
}

/* Homepage experiment: bold scoreboard strips */
.feed .cards {
  grid-template-columns: 1fr;
  gap: 12px;
}

.feed .card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "tag"
    "match"
    "pick"
    "meta"
    "summary"
    "result";
  gap: 10px 16px;
  align-items: start;
  border-radius: 16px;
}

.feed .card__tag {
  grid-area: tag;
  align-self: start;
  justify-self: center;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.feed .card__title {
  grid-area: match;
}

.feed .card__pick {
  grid-area: pick;
  justify-self: center;
  min-width: 0;
  width: fit-content;
  justify-content: center;
  align-self: center;
  text-align: center;
}

.feed .card__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  align-self: center;
  justify-self: center;
}

.feed .card__meta span {
  white-space: nowrap;
}

.feed .card__meta span:nth-child(2) {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent-4);
}

.feed .card__summary-wrap {
  grid-area: summary;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed .card__summary {
  margin-top: 1px;
  font-size: 0.95rem;
  color: #b3c9dd;
}

:root[data-theme="light"] .feed .card__summary {
  color: #4e677f;
}

.feed .card__more {
  align-self: flex-end;
  color: var(--accent-4);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.feed .card__more:hover {
  color: var(--accent);
}

.feed .card__result {
  grid-area: result;
}

.feed .card__pick-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.feed .card__pick-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feed .match--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.feed .match__side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: max-content;
}

.feed .match__side--home {
  justify-content: flex-end;
  justify-self: end;
}

.feed .match__side--away {
  justify-content: flex-start;
  justify-self: start;
}

.feed .match__team {
  font-size: 1.04rem;
  line-height: 1.2;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  max-width: clamp(120px, 16vw, 240px);
}

.feed .match__side--home .match__team {
  order: 1;
  text-align: right;
}

.feed .match__side--home .team__logo {
  order: 2;
}

.feed .match__side--away .match__team {
  order: 2;
  text-align: left;
}

.feed .match__side--away .team__logo {
  order: 1;
}

.feed .match__vs {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #c7d7e8;
}

:root[data-theme="light"] .feed .match__vs {
  color: #60778e;
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  --accent-left: rgba(47, 224, 173, 0.4);
  --accent-right: rgba(68, 201, 255, 0.34);
  background-image:
    linear-gradient(120deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.0) 40%),
    radial-gradient(140px 140px at 8% 0%, color-mix(in srgb, var(--accent-left) 60%, transparent), transparent 70%),
    radial-gradient(160px 160px at 92% 0%, color-mix(in srgb, var(--accent-right) 60%, transparent), transparent 70%);
}

.card--featured {
  background-image:
    linear-gradient(120deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.0) 40%),
    radial-gradient(180px 180px at 8% 0%, color-mix(in srgb, var(--accent-left) 70%, transparent), transparent 70%),
    radial-gradient(200px 200px at 92% 0%, color-mix(in srgb, var(--accent-right) 70%, transparent), transparent 70%);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.card__title:hover {
  color: var(--accent);
}

.match {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.match--stacked {
  grid-template-rows: auto auto auto;
}

.match__team {
  font-size: 1.2rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.match__vs {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.match--detail {
  font-size: 1.2rem;
}

.team__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

:root[data-theme="light"] .team__logo {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 250, 1));
}

.team__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.team__logo span {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
}

.team__logo.logo--fallback span {
  opacity: 1;
}

.team__logo.logo--fallback img {
  display: none;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card__pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: var(--panel-2);
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-weight: 600;
}

.card__pick strong {
  color: var(--accent);
}

.card__summary {
  color: var(--muted);
  line-height: 1.6;
}

.card__result {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.result {
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

.result--won {
  background: rgba(40, 195, 120, 0.2);
  color: #7ef0b0;
}

.result--lost {
  background: rgba(255, 92, 92, 0.2);
  color: #ff9a9a;
}

.result--push {
  background: rgba(255, 184, 0, 0.2);
  color: #ffd27a;
}

.card__stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    var(--accent-left),
    var(--accent-right)
  );
}


.detail {
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 26px;
  background: rgba(10, 20, 31, 0.9);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  --accent-left: rgba(47, 224, 173, 0.34);
  --accent-right: rgba(68, 201, 255, 0.3);
  background-image:
    radial-gradient(180px 180px at 8% 0%, color-mix(in srgb, var(--accent-left) 70%, transparent), transparent 70%),
    radial-gradient(200px 200px at 92% 0%, color-mix(in srgb, var(--accent-right) 70%, transparent), transparent 70%);
}

:root[data-theme="light"] .detail {
  background: var(--panel);
}

.match-page .detail {
  padding: 32px;
}

.detail__stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-left), var(--accent-right));
}

.detail__back {
  color: var(--accent-4);
  text-decoration: none;
  font-weight: 600;
}

.detail__kicker {
  margin-top: 10px;
  color: var(--muted);
}

.detail h2 {
  margin: 12px 0 6px;
  font-size: 2.2rem;
  font-family: "Fraunces", "Georgia", serif;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 18px;
}

.detail__pick {
  margin: 16px 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.pick--blue {
  color: var(--accent-3-soft);
  font-weight: 700;
}

.detail__prediction-title {
  color: var(--accent);
}

.detail__prediction-line {
  color: var(--accent-4);
  font-weight: 600;
}

.detail__prediction-line .predict__label {
  color: var(--accent-4);
  font-weight: 600;
}

.detail__prediction-line .pick--blue {
  color: var(--accent-4);
}

.detail__lead {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
  text-align: justify;
}

.detail__body {
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
}

.detail__body-title {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}

.detail__list {
  display: grid;
  gap: 8px;
  margin: 6px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.detail__list li {
  margin: 0;
}

/* Match page text experiment: editorial blocks */
.match-page .detail h3 {
  display: block;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 0 8px;
  border: none;
  border-bottom: 1px solid rgba(68, 201, 255, 0.3);
  color: #e8f8ff;
  letter-spacing: 0.5px;
  font-size: 1rem;
  text-transform: uppercase;
}

:root[data-theme="light"] .match-page .detail h3 {
  color: #1e3449;
}

.match-page .detail__lead {
  margin-top: 4px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(120deg, rgba(47, 224, 173, 0.14), rgba(68, 201, 255, 0.06));
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1.75;
}

:root[data-theme="light"] .match-page .detail__lead {
  background: linear-gradient(120deg, rgba(255, 138, 51, 0.12), rgba(27, 167, 231, 0.08));
}

.match-page .detail__body {
  margin: 10px 0 0;
  padding: 14px 15px 14px 17px;
  border-left: 2px solid rgba(68, 201, 255, 0.42);
  border-radius: 0 12px 12px 0;
  background: rgba(6, 15, 24, 0.52);
  line-height: 1.8;
}

:root[data-theme="light"] .match-page .detail__body {
  border-left: 2px solid rgba(27, 167, 231, 0.42);
  background: rgba(247, 251, 255, 0.94);
}

.match-page .detail__body-title {
  font-size: 1.06rem;
  color: #d7fbef;
}

:root[data-theme="light"] .match-page .detail__body-title {
  color: #23445d;
}

.match-page .detail__list {
  padding: 12px 14px 12px 28px;
  border: 1px solid rgba(68, 201, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 15, 24, 0.48);
}

:root[data-theme="light"] .match-page .detail__list {
  border: 1px solid rgba(27, 167, 231, 0.25);
  background: rgba(247, 251, 255, 0.94);
}

.form__win {
  color: #4ade80;
  font-weight: 700;
}

.form__loss {
  color: #f87171;
  font-weight: 700;
}

.form__draw {
  color: #facc15;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(17, 19, 26, 0.95);
  box-shadow: var(--shadow);
  z-index: 30;
}

:root[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.98);
}

.cookie-banner--visible {
  display: flex;
}

.cookie-banner__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.cookie-banner__link:hover {
  color: var(--accent-3-soft);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #111;
}

.cookie-banner__btn--ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
}

.footer__divider {
  margin: 0 8px;
  color: var(--muted);
}

.footer__button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .comments {
    padding: 18px;
  }

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

.detail__result {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.comments {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(17, 19, 26, 0.9);
  padding: 22px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .comments {
  background: var(--panel);
}

.comments__header {
  margin-bottom: 16px;
}

.comments__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.comments__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.comments__feedback {
  margin-bottom: 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.comments__feedback[data-state="success"] {
  border-color: rgba(47, 224, 173, 0.38);
  color: #d5fff1;
  background: rgba(47, 224, 173, 0.1);
}

.comments__feedback[data-state="error"] {
  border-color: rgba(255, 106, 87, 0.42);
  color: #ffd6d1;
  background: rgba(255, 106, 87, 0.12);
}

:root[data-theme="light"] .comments__feedback[data-state="success"] {
  color: #17533f;
}

:root[data-theme="light"] .comments__feedback[data-state="error"] {
  color: #7e2d23;
}

.comments__form {
  display: grid;
  gap: 14px;
}

.comments__field {
  display: grid;
  gap: 8px;
}

.comments__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.comments__input,
.comments__textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

:root[data-theme="light"] .comments__input,
:root[data-theme="light"] .comments__textarea {
  background: var(--panel-2);
}

.comments__input:focus,
.comments__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 224, 173, 0.12);
}

.comments__textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.comments__turnstile {
  min-height: 65px;
}

.comments__actions {
  display: flex;
  justify-content: flex-start;
}

.comments__submit {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04131b;
}

.comments__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.comments__empty {
  margin: 18px 0 0;
  color: var(--muted);
}

.comments__list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.comments__item {
  border: 1px solid rgba(68, 201, 255, 0.14);
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(7, 15, 24, 0.48);
}

:root[data-theme="light"] .comments__item {
  background: rgba(247, 251, 255, 0.94);
  border-color: rgba(27, 167, 231, 0.16);
}

.comments__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.comments__nickname {
  font-weight: 700;
  color: var(--text);
}

.comments__time {
  color: var(--muted);
  font-size: 0.9rem;
}

.comments__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.related {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(17, 19, 26, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .related {
  background: var(--panel);
}

.related h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.stats {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(17, 19, 26, 0.9);
  padding: 18px;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .stats {
  background: var(--panel);
}

.stats__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.stats__title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-family: "Fraunces", "Georgia", serif;
}

.stats__intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
}

.stats__meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.stats-month {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(14, 16, 22, 0.9);
  padding: 10px 12px;
  margin-bottom: 14px;
}

:root[data-theme="light"] .stats-month {
  background: var(--panel);
}

.stats-month__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.stats-month__summary::-webkit-details-marker {
  display: none;
}

.stats-month__meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.stats-month .group__icon {
  transition: transform 0.2s ease;
}

.stats-month[open] .group__icon {
  transform: rotate(45deg);
}

.stats-grid {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: 0.8fr 2.2fr 1.6fr 0.6fr 0.8fr 0.8fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
}

.stats-row--head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
}

.stats-row--a {
  background: rgba(255, 255, 255, 0.03);
}

.stats-row--b {
  background: rgba(255, 255, 255, 0.06);
}

.stats-row__match {
  font-weight: 600;
}

.stats-row__pick {
  padding-left: 8px;
}
/* 1) Don't nudge the Prediction header */
.stats-row--head .stats-row__pick {
  padding-left: 14px;
}

/* 2) Make numeric headers left-aligned (looks aligned with the column start) */
.stats-row--head .stats-row__odd,
.stats-row--head .stats-row__profit {
  text-align: center;
  padding-right: 0;
}

/* 3) Keep numeric cells right aligned for actual rows */
.stats-row:not(.stats-row--head) .stats-row__odd,
.stats-row:not(.stats-row--head) .stats-row__profit {
  text-align: right;
  padding-right: 16px;
}

/* Nudge Odds numbers slightly left */
.stats-row:not(.stats-row--head) .stats-row__odd {
  text-align: right;
  padding-right: 6px;
  transform: translateX(-16px);
}

/* Nudge Confidence slightly right */
.stats-row:not(.stats-row--head) .stats-row__confidence {
  padding-left: 8px;
}

.stats-row__odd {
  text-align: right;
  padding-right: 12px;
}

.stats-row__profit--won {
  color: #4ade80;
  font-weight: 700;
}

.stats-row__profit--lost {
  color: #f87171;
  font-weight: 700;
}

.stats-row__profit--push {
  color: #60a5fa;
  font-weight: 700;
}

.stats-total {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-total__profit--won {
  color: #4ade80;
  font-weight: 700;
}

.stats-total__profit--lost {
  color: #f87171;
  font-weight: 700;
}

.stats-total__profit--push {
  color: #60a5fa;
  font-weight: 700;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: 0.7fr 1.6fr 1.1fr 0.6fr 0.8fr;
  }
  .stats-row__confidence {
    display: none;
  }
}

@media (max-width: 640px) {
  .stats-row--head {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px;
  }
  .stats-row__match {
    grid-column: 1 / -1;
  }
  .stats-row__odd,
  .stats-row__profit {
    grid-column: 2 / 3;
  }
  .stats-row:not(.stats-row--head) .stats-row__odd {
    transform: translateX(6px);
  }
  .stats-row__profit {
    transform: translateX(16px);
  }
  .stats-row__pick,
  .stats-row__confidence {
    padding-left: 0;
    padding-right: 0;
  }
  .stats-row:not(.stats-row--head) .stats-row__confidence {
    padding-left: 0;
  }
  .stats-row__confidence {
    display: block;
  }

  .stats-row > div::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.related__item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--stroke);
  font-size: 0.95rem;
}

.related__item:hover {
  border-color: var(--accent);
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__note {
  margin-top: 6px;
}

.footer__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer__link:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .hero {
    padding: 60px 8vw 30px;
  }

  .day__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .day__count {
    font-size: 0.85rem;
  }

  .card__meta {
    gap: 8px;
  }
}

.ad {
  position: sticky;
  top: 24px;
  align-self: start;
  border-radius: 20px;
  padding: 18px;
  min-height: 240px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.15), rgba(17, 19, 26, 0.95));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  z-index: 2;
}

:root[data-theme="light"] .ad {
  background: linear-gradient(180deg, rgba(255, 138, 51, 0.2), rgba(255, 255, 255, 0.98));
}

.ad--right {
  background: linear-gradient(180deg, rgba(92, 225, 255, 0.18), rgba(17, 19, 26, 0.95));
}

:root[data-theme="light"] .ad--right {
  background: linear-gradient(180deg, rgba(27, 167, 231, 0.2), rgba(255, 255, 255, 0.98));
}

.ad__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}

.ad__headline {
  font-size: 1.2rem;
  font-weight: 700;
}

.ad__copy {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.ad__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #111;
  background: var(--accent);
}

.ad--right .ad__cta {
  background: var(--accent-3);
}

.ad.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

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

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

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

  .feed .card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "match"
      "meta"
      "pick"
      "summary"
      "result";
  }

  .feed .card__pick {
    justify-self: center;
    min-width: 0;
    text-align: center;
  }

  .feed .card__tag {
    justify-self: center;
    text-align: center;
  }

  /* Mobile card duel layout (same structure as scorecast):
     home name above v, away name below v, logos left/right of v */
  .feed .match--compact {
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "home home home"
      "homeLogo vs awayLogo"
      "away away away";
    justify-content: center;
    column-gap: 8px;
    row-gap: 6px;
  }

  .feed .match--compact .match__side {
    display: contents;
  }

  .feed .match--compact .match__side--home .match__team {
    grid-area: home;
    order: initial;
    text-align: center;
    justify-self: center;
    max-width: min(88vw, 280px);
    overflow-wrap: anywhere;
  }

  .feed .match--compact .match__side--away .match__team {
    grid-area: away;
    order: initial;
    text-align: center;
    justify-self: center;
    max-width: min(88vw, 280px);
    overflow-wrap: anywhere;
  }

  .feed .match--compact .match__side--home .team__logo {
    grid-area: homeLogo;
    order: initial;
    justify-self: end;
  }

  .feed .match--compact .match__side--away .team__logo {
    grid-area: awayLogo;
    order: initial;
    justify-self: start;
  }

  .feed .match--compact .match__vs {
    grid-area: vs;
    justify-self: center;
    align-self: center;
  }

  .feed .card__more {
    align-self: flex-end;
  }

  .feed .card__summary {
    text-align: justify;
    text-justify: inter-word;
  }

  /* Turn sticky into normal flow blocks */
  .ad {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    width: 100%;
  }

  .ad.is-hidden {
    display: none;
  }

  /* Default mobile spacing for ads on ALL pages */
  .ad { margin: 0 0 18px; }
  .ad--right { margin-top: 18px; margin-bottom: 0; }

  /* ✅ Match page: use gap for spacing, so remove ad margins there */
  body.match-page .wrap {
    display: flex !important;
    flex-direction: column;
    gap: 10px; /* <-- make ad-left closer to logo */
  }

  body.match-page .ad {
    margin: 0; /* <-- IMPORTANT: prevents double spacing on match page */
  }

  body.match-page #ad-left  { order: 1; }
  body.match-page .content  { order: 2; }
  body.match-page #ad-right { order: 3; }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .feed .card__meta {
    grid-template-columns: 1fr;
  }

  .feed .match__team {
    font-size: 0.98rem;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  body.match-page #ad-left {
    margin-top: -20px;
  }
}
