/* ── Reset & base ──────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #009E4F;
  --primary-dark: #007A3D;
  --primary-light: #E8F5EE;
  --gold: #CFA761;
  --gold-light: #FFF3DC;
  --red: #FF3B30;
  --text: #111111;
  --text-2: #444444;
  --text-3: #888888;
  --bg: #FFFFFF;
  --bg-2: #F0F2F5;
  --bg-3: #E5E7EB;
  --border: #E5E7EB;
  --border-2: #D1D5DB;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
}

body.worldcup-fullbleed {
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body.worldcup-fullbleed img {
  display: block;
}

body.worldcup-fullbleed button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Keyframes ─────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.75);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}


/* ── Scroll reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Spinner ───────────────────────────────── */
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 60px auto;
}

@keyframes shimmer {
  0% {
    background-position: -600px 0
  }

  100% {
    background-position: 600px 0
  }
}

.skel {
  display: block;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ── Scrollbar ─────────────────────────────── */
.worldcup-fullbleed ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.worldcup-fullbleed ::-webkit-scrollbar-track {
  background: var(--bg-2);
}

.worldcup-fullbleed ::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 3px;
}

.worldcup-fullbleed ::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ── Header ────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}

.hdr.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.hdr-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.hdr-nav-left,
.hdr-nav-right {
  display: flex;
  gap: 10px;
  list-style: none;
  flex: 1;
}

.hdr-nav-right {
  justify-content: flex-end;
}

.hdr-nav-right li {
  align-content: center;
}

.nav-a {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .18s;
  white-space: nowrap;
}

.nav-a:hover {
  color: var(--text);
}

.nav-a.on {
  color: var(--primary);
  font-weight: 600;
}

.hdr-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 20px;
}

.hdr-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.lang-sw {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 0;
}

.lang-btn {
  padding: 4px 11px;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-3);
  cursor: pointer;
  transition: color .18s, background .18s;
}

.lang-btn.on {
  background: var(--primary);
  color: #fff;
}

.hdr-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
  padding: 0;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}

.hdr-bell:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.hdr-bell:active {
  transform: scale(.96);
}

.hdr-bell svg {
  display: block;
}

.hdr-bell.granted {
  border-color: rgba(0, 158, 79, .4);
  background: var(--primary-light);
  color: var(--primary);
}

.hdr-bell.denied {
  opacity: .45;
  cursor: not-allowed;
}

.hdr-bell.loading {
  opacity: .6;
  cursor: progress;
}

.hdr-bell-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}

.hdr-bell.granted .hdr-bell-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* ── Bell popover ──────────────────────────── */
.bell-pop-wrap {
  position: relative;
  display: inline-flex;
}

@keyframes bellShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-14deg);
  }

  30% {
    transform: rotate(11deg);
  }

  45% {
    transform: rotate(-8deg);
  }

  60% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-3deg);
  }

  90% {
    transform: rotate(1deg);
  }
}

.hdr-bell.shaking {
  animation: bellShake .75s ease-in-out both;
}

@keyframes bellPopIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bell-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  padding: 16px;
  z-index: 110;
  animation: bellPopIn .2s cubic-bezier(.16, 1, .3, 1) both;
}

.bell-pop::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.bell-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bell-pop-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bell-pop.granted .bell-pop-icon {
  background: rgba(76, 175, 130, .14);
  color: #2e9265;
}

.bell-pop.denied .bell-pop-icon {
  background: rgba(255, 59, 48, .12);
  color: var(--red);
}

.bell-pop-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.25;
}

.bell-pop-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 12px;
}

.bell-pop-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 12px;
}

.bell-pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}

.bell-pop-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bell-pop-item-dot.live {
  background: var(--red);
}

.bell-pop-item-dot.pick {
  background: var(--primary);
}

.bell-pop-item-dot.pre {
  background: var(--gold);
}

.bell-pop-actions {
  display: flex;
  gap: 8px;
}

.bell-pop-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
}

.bell-pop-btn.primary {
  background: var(--primary);
  color: #fff;
}

.bell-pop-btn.primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.bell-pop-btn.primary:disabled {
  opacity: .55;
  cursor: progress;
}

.bell-pop-btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}

.bell-pop-btn.ghost:hover {
  background: var(--bg-2);
  color: var(--text);
}

.bell-pop-btn.danger-ghost {
  background: transparent;
  border-color: rgba(255, 59, 48, .25);
  color: var(--red);
}

.bell-pop-btn.danger-ghost:hover {
  background: rgba(255, 59, 48, .07);
}

.bell-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
}

@media (max-width: 480px) {
  .bell-pop {
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .bell-pop::before {
    display: none;
  }
}

/* ── Bell toast ────────────────────────────── */
@keyframes bellToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes bellToastOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}

.bell-toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  z-index: 200;
  animation: bellToastIn .25s cubic-bezier(.16, 1, .3, 1);
}

.bell-toast.leaving {
  animation: bellToastOut .25s cubic-bezier(.4, 0, 1, 1) forwards;
}

.bell-toast.success {
  border-color: rgba(76, 175, 130, .35);
}

.bell-toast.success .bell-toast-icon {
  color: #2e9265;
}

.bell-toast.error {
  border-color: rgba(255, 59, 48, .35);
}

.bell-toast.error .bell-toast-icon {
  color: var(--red);
}

.bell-toast.info .bell-toast-icon {
  color: var(--primary);
}

.bell-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hdr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
}

.hdr-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.hdr-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hdr-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hdr-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(0, 0, 0, .25);
  z-index: 98;
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
  padding: 8px 0 16px;
  animation: fadeDown .2s ease;
}

.mobile-nav-item {
  display: block;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s, background .15s;
}

.mobile-nav-item:hover {
  color: var(--primary);
  background: var(--bg-2);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mobile-nav-lang {
  padding: 8px 24px 0;
  max-width: 150px;
}

.hdr-mobile-lang {
  display: none;
}

@media (max-width: 640px) {

  .hdr-nav-left,
  .hdr-nav-right {
    display: none;
  }

  .hdr-mobile-lang {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .hdr-mobile-lang .hdr-bell {
    margin-left: 0;
    width: 32px;
    height: 32px;
  }

  .hdr-logo {
    padding: 0;
    flex: 1;
    justify-content: flex-start;
  }

  .hdr-hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .hdr-logo img {
    height: 60px;
  }
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  padding-bottom: 200px;
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg);
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.3);
  transform-origin: center center;
}


.hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(20px, 5%, 56px);
  gap: 0;
}

.hero-eyebrow {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  animation: fadeUp .5s ease both;
}

.hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  line-height: 1.08;
  color: #000000;
  margin-bottom: 28px;
  animation: fadeUp .5s .08s ease both;
}

/* ── Countdown inline ── */
.hero-cdown {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeUp .5s .18s ease both;
}

.hero-cdown-sep {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  color: var(--text-3);
  line-height: 1;
  padding-top: clamp(4px, 8px, 12px);
}

.cdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cdown-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 32px, 42px);
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.cdown-lbl {
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C0C0C0;
}

/* ── Odds carousel (below hero) ─────────────── */
.odds-carousel-wrap {
  background: transparent;
  padding: 0;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.odds-carousel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* one big card */
.oc-big-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.oc-big-card::-webkit-scrollbar {
  display: none;
}

/* each section inside the card */
.oc-section {
  flex: 1 1 0;
  min-width: 200px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background .18s;
}

.oc-section:last-child {
  border-right: none;
}

.oc-section:hover {
  background: var(--bg-2);
}

.oc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.oc-datetime {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.oc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--red);
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.oc-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.1s ease-in-out infinite;
}

.oc-teams {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.oc-bar-wrap {
  height: 5px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.oc-bar-home {
  height: 100%;
  background: #C8A96E;
}

.oc-bar-draw {
  height: 100%;
  background: #D1D5DB;
}

.oc-bar-away {
  height: 100%;
  background: var(--primary);
}

.oc-probs {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.oc-prob-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.oc-prob-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

.oc-prob-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.oc-prob-value.win,
.oc-prob-label.win {
  color: var(--primary);
}

@keyframes swipe-hint {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  25% {
    opacity: 1;
    transform: translateX(0);
  }

  65% {
    opacity: 1;
    transform: translateX(-5px);
  }

  100% {
    opacity: 0;
    transform: translateX(-5px);
  }
}

.oc-carousel-footer {
  display: none;
}

@media (max-width: 640px) {
  .oc-big-card {
    scroll-snap-type: x mandatory;
  }

  .oc-section {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 16px;
    border-right: none;
  }

  .oc-carousel-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0 4px;
  }

  .oc-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .oc-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, width .2s;
  }

  .oc-dot.active {
    background: var(--primary);
    width: 18px;
  }

  .oc-swipe-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-3);
    opacity: 0;
    animation: swipe-hint 2.8s ease 0.5s forwards;
  }
}

/* ── Ad banner ─────────────────────────────── */
.ad-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.ad-inner {
  background: var(--bg-2);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px 12px;
}

.ad-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, .7);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ── Section container ─────────────────────── */
.sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
}

/* ── Match list tabs ────────────────────────── */
.ml-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.ml-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border: none;
  background: none;
  transition: color .18s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ml-tab:hover {
  color: var(--text);
}

.ml-tab.on {
  color: var(--primary);
}

.ml-tab-new {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Match list rows ────────────────────────── */
.ml-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ml-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}

.ml-row:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: scale(1.01);
}

/* col 1 — time */
.ml-time-block {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ml-time {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.ml-date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

/* col 2 — teams */
.ml-teams-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ml-team-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.ml-vs-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  background: var(--bg-2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .04em;
}

/* col 3 — info */
.ml-info {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  padding: 0 24px;
}

/* col 4 — odds */
.ml-odds-block {
  flex: 1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.ml-odds-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  transition: border-color .18s, background .18s, color .18s;
}

.ml-odds-col.is-active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.ml-odds-col.is-active .ml-odds-lbl,
.ml-odds-col.is-active .ml-odds-val {
  color: var(--primary);
}

.ml-odds-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}

.ml-odds-val {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.ml-chevron {
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform .18s;
}

.ml-row:hover .ml-chevron {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .ml-row {
    padding: 14px 12px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .ml-time-block {
    width: auto;
    flex-shrink: 0;
    order: 1;
    flex: 1;
  }

  .ml-info {
    display: block;
    flex: 1;
    padding: 0 0 0 10px;
    order: 1;
    text-align: end;
  }

  .ml-teams-block {
    flex-basis: 100%;
    order: 2;
    padding: 8px 0 4px;
    justify-content: center;
  }

  .ml-team-pair {
    white-space: normal;
    font-size: 13px;
    align-items: center;
  }

  .ml-team-pair span {
    max-width: 88px;
    word-break: break-word;
  }

  .ml-odds-block {
    display: flex;
    flex-basis: 100%;
    justify-content: space-between;
    padding-top: 6px;
    order: 3;
  }

  .ml-odds-col {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
  }

  .ml-chevron {
    display: none;
  }
}

/* ── More detail btn ────────────────────────── */
.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  padding: 11px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .18s, transform .15s;
  width: fit-content;
  align-self: center;
}

.more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.more-btn:active {
  transform: scale(.98);
}

/* ── Standings (inside tabs) ─────────────────── */
.st-table-wrap {
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: 12px;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.st-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-2);
}

.st-table thead th:first-child {
  text-align: left;
  padding-left: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.st-table tbody tr {
  transition: background .15s;
}

.st-table tbody tr:last-child {
  border-bottom: none;
}

.st-table tbody tr:hover {
  background: var(--bg-2);
}

.st-table tbody td {
  padding: 14px 12px;
  text-align: center;
  color: var(--text-2);
}

.st-table tbody td:first-child {
  text-align: left;
  padding-left: 16px;
}

.st-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-pos {
  font-size: 11px;
  color: var(--text-3);
  width: 16px;
  flex-shrink: 0;
}

.st-qualify-bar {
  width: 3px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.st-qualify-bar.grey {
  background: var(--bg-3);
}

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

.st-pts {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.st-gd-pos {
  color: var(--primary);
}

.st-gd-neg {
  color: var(--red);
}

@media (max-width: 640px) {
  .st-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.group-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.group-tab {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-3);
  cursor: pointer;
  transition: all .15s;
}

.group-tab.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Player stats section ────────────────────── */
.ps-wrap {
  display: flex;
  align-items: center;
  gap: 60px;
}

@media (max-width: 900px) {
  .ps-wrap {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .ps-img-col {
    display: none !important;
  }
}

.ps-img-col {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ps-img-col img {
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.ps-img-col .ps-img-front {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  animation: float 6s ease-in-out infinite;
}

.ps-img-col .ps-img-back {
  position: absolute;
  z-index: 1;
  right: 10%;
  bottom: 10%;
  width: auto;
  height: 200px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
  animation: float 8s ease-in-out infinite reverse;
}

.ps-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(160deg, #f0f2f5 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
}

.ps-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ps-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.ps-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .18s, border-color .18s;
}

.ps-tab:hover {
  color: var(--text);
}

.ps-tab.on {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s;
}

.ps-row:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.25);
}

.ps-rank {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.ps-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.ps-name-team {
  min-width: 120px;
}

.ps-player-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-team-name {
  font-size: 11px;
  color: var(--text-3);
}

.ps-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.ps-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
  margin-left: auto;
}


/* ── Trending news ──────────────────────────── */
.tn-header {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.tn-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}

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

/* Left featured */
.tn-featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tn-feat-content {
  padding: 16px;
}

.tn-feat-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.tn-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.tn-feat-img:hover img {
  transform: scale(1.04);
}

.tn-feat-date {
  font-size: 12px;
  color: var(--text-3);
}

.tn-feat-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.25;
  color: var(--text);
}

.tn-feat-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right secondary stack */
.tn-secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px 16px;
  height: 100%;
}

.tn-sec-row {
  display: flex;
  flex: 1;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  transition: background .18s;
  align-items: center;
}

.tn-sec-row:first-child {
  margin-top: 16px;
}

.tn-sec-row:hover {
  background: var(--bg-2);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.tn-sec-thumb {
  flex: 1;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}

.tn-sec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.tn-sec-row:hover .tn-sec-thumb img {
  transform: scale(1.06);
}

.tn-sec-body {
  flex: 1.4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tn-sec-date {
  font-size: 11px;
  color: var(--text-3);
}

.tn-sec-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tn-sec-see {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}


/* ── Stats footer ────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 40px 24px;
  min-height: 270px;
  align-content: center;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  color: var(--gold);
}

.stat-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

/* ── Copyright bar ───────────────────────────── */
.copyright-bar {
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Confetti canvases ──────────────────────── */
.confetti-cv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.confetti-cv--back {
  z-index: 0;
}

.confetti-cv--front {
  z-index: 2;
}

#sec-matches {
  scroll-margin-top: 64px;
}

#sec-players {
  position: relative;
  overflow: hidden;
}

#sec-players .ps-wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .stats-bar-inner {
    grid-template-columns: 1fr;
  }
}