:root {
  --bg: #0b0b0f;
  --panel: #11131a;
  --panel-2: #161a25;
  --accent: #ffb800;
  --accent-2: #ff5c5c;
  --accent-3: #5ce1ff;
  --text: #f4f5f8;
  --muted: #a0a6b5;
  --stroke: #23283a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 80% -10%, #1b1f2d 0%, transparent 60%),
    radial-gradient(900px 500px at -20% 10%, #1a1b2b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.2px;
}

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

.orb-1 {
  width: 340px;
  height: 340px;
  background: rgba(255, 184, 0, 0.35);
  top: -80px;
  left: -40px;
}

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

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

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

.hero__spacer {
  height: 10px;
}

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

.brand img {
  height: 65px;
}

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

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

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

.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(255, 184, 0, 0.15), rgba(255, 92, 92, 0.12));
  border: 1px solid var(--stroke);
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticker__label {
  font-weight: 700;
  color: var(--accent);
  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 7s 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: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

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

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

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

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

.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(220px, 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);
}

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

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

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  --accent-left: rgba(255, 184, 0, 0.35);
  --accent-right: rgba(92, 225, 255, 0.35);
  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;
}

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

.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: 10px 14px;
  background: var(--panel-2);
  border-radius: 12px;
  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(17, 19, 26, 0.9);
  box-shadow: var(--shadow);
}

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

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

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

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

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

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

.detail__lead {
  font-size: 1.1rem;
  color: var(--text);
}

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

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

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

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

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

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

  .ad {
    position: static;
  }
}

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

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

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

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

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