:root {
  --color-bg: #ffffff;
  --color-fg: #111111;
  --color-accent: #1976d2;
  --color-hover: rgba(25, 118, 210, 0.1);

  --color-bg-dark: #181818;
  --color-fg-dark: #f1f1f1;

  --navbar-bg: #f8f9fa;
  --navbar-bg-dark: #101010;

  --color-hover-dark: rgba(255,255,255,0.08);
  --transition-fast: 0.3s ease;
  --icon-color: #222;
}

body.dark {
  background: var(--color-bg-dark);
  color: var(--color-fg-dark);
  --navbar-bg: var(--navbar-bg-dark);
  --icon-color: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: background var(--transition-fast), color var(--transition-fast);
  overflow-x: hidden;
}

header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--navbar-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px); /* always applied */
}

body {
  padding-top: 64px;
}




.logo img {
  height: 56px;
  padding-inline: 8px;
}

.desktop-search {
  flex: 1;
  max-width: 500px;
  margin: 0 24px;
  transition: all 0.3s ease-in-out;
}

.desktop-search input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.nav-links,
.auth-controls {
  display: flex;
  gap: 4px;
  align-items: center;
  position: relative;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-bar {
  display: none;
  gap: 12px;
}

.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 13000;

  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  pointer-events: none;
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease,
    backdrop-filter 0.4s ease;
}

body.dark .mobile-search-overlay {
  background: rgba(18, 18, 18, 0.95);
}

.mobile-search-overlay.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}


.mobile-search-box {
  position: relative;
  width: 80%;
}

.mobile-search-box input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.mobile-search-box button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0.6;
  cursor: pointer;
  color: #444;
  transition: opacity 0.2s, color 0.2s;
}

.mobile-search-box button:hover {
  opacity: 0.8;
  color: #000;
}

body.dark .mobile-search-box button {
  color: #444;
  opacity: 0.8;
}

body.dark .mobile-search-box button:hover {
  opacity: 0.95;
  color: #000;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100dvh;
  background-color: var(--navbar-bg);
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.3);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s ease, visibility 0.4s ease, opacity 0.4s ease;
  z-index: 10001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
  border-radius: 1rem 0 0 1rem;

  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.mobile-drawer.show {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.dark .mobile-drawer {
  background-color: var(--navbar-bg-dark);
}

@media (max-width: 768px) {
  .mobile-drawer {
    width: 100% !important;
    border-radius: 0 !important;
  }
}


.drawer-section {
  margin-top: 24px;
}

.drawer-section h4 {
  margin: 24px 0 12px;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-section a,
.drawer-section button {
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 12px;
  margin-bottom: 4px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.drawer-section a:hover,
.drawer-section button:hover {
  background: var(--color-hover);
  color: var(--color-accent);
}

.drawer-section a:active,
.drawer-section button:active {
  transform: scale(0.98);
}

body.dark .drawer-section h4 {
  color: #aaa;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1500;
}

.overlay.show {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 1030px) {
  .desktop-search,
  .nav-links,
  .auth-controls {
    display: none !important;
  }

  .mobile-bar {
    display: flex;
  }
}

@media (min-width: 1031px) {
  .desktop-search,
  .nav-links,
  .auth-controls {
    display: flex;
  }

  .mobile-bar,
  #drawer,
  .overlay {
    display: none !important;
  }
}

.drawer-submenu {
  display: none;
  padding-left: 12px;
  margin-bottom: 8px;
  flex-direction: column;
}

.drawer-submenu.show {
  display: flex;
}

#drawerClose {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drawerClose:hover {
  opacity: 0.8;
  color: var(--color-accent);
}

body.dark #drawerClose {
  color: #ccc;
}

body.dark #drawerClose:hover {
  color: #fff;
}

.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

body:not(.dark) .brand-name {
  color: #222;
}

html.drawer-open,
html.drawer-open.dark,
body.drawer-open,
body.drawer-open.dark {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

html, body {
  max-width: 100vw;             /* ✅ prevent horizontal scroll from drawer */
  overflow-x: hidden;           /* ✅ lock the page width */
}

.mobile-bar button {
  background: none;
  border: none;
  font-size: 6vw;           /* ✅ responsive icon size */
  width: 5vw;              /* ✅ responsive width */
  height: 5vw;             /* ✅ responsive height */
  color: var(--color-fg);   /* ✅ light mode color */
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 0.5rem;
  min-width: 44px;          /* ✅ ensures good tap target */
  min-height: 44px;
  max-width: 70px;
  max-height: 70px;
  
}

body.dark .mobile-bar button {
  color: var(--color-fg-dark); /* ✅ dark mode support */
}

.mobile-bar button:hover {
  background-color: var(--color-hover); /* ✅ light hover effect */
  transform: scale(1.1);
}

body.dark .mobile-bar button:hover {
  background-color: var(--color-hover-dark); /* ✅ dark hover effect */
}

.mobile-bar button {
  vertical-align: middle;
  touch-action: manipulation;
}

.mobile-bar {
  justify-content: center;
  gap: 3vw; /* or use space-between */
}

@media (min-width: 500px) {
  .mobile-bar button {
    font-size: 32px; /* max cap */
  }
}

.nav-item {
  position: relative;
}

.nav-links a, .auth-controls a, .theme-toggle {
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  padding: 10px 10px;
  border-radius: 8px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover, .auth-controls a:hover, .theme-toggle:hover {
  background: var(--color-hover);
  transform: translateY(-1px);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a::after {
  content: '▾';
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-item:hover > a::after {
  transform: rotate(180deg);
}

.nav-item:hover .dropdown {
  display: flex;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 8px 0;
  z-index: 3000;
  animation: dropdownFade 0.2s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .dropdown {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--color-bg);
}

body.dark .dropdown::before {
  border-bottom-color: #5c5454;
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: center; /* or flex-start with padding-left if preferred */
  height: 44px;
  padding: 0 20px;
  margin: 2px 8px;
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.dropdown a:hover {
  background: var(--color-hover);
  color: var(--color-accent);
  transform: scale(1.02);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


.nav-links,
.auth-controls,
.desktop-search {
  transition: opacity 0.2s ease;
}

/* home-enhanced.css */

main {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.9;
  text-align: center;
  color: #222;
}

body.dark main {
  color: #eee;
}

section {
  scroll-margin-top: 80px;
}

.section-alt {
  background-color: #f5f7fa;
}

body.dark .section-alt {
  background-color: #1a1a1a;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  padding: 100px 24px 80px;
  color: white;
  background: linear-gradient(to bottom right, #141429, #1b1b3a);
}

body.dark .hero {
  background: linear-gradient(to bottom right, #141429, #1b1b3a);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: #e74c3c;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: #c0392b;
}

.features {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  text-align: left;
  display: inline-block;
}

.features li {
  font-size: 1.2rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
}

.card {
  flex: 1 1 280px;
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  font-size: 1.1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

body.dark .card {
  background: #222;
  color: #f1f1f1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

blockquote {
  background: #eef2f7;
  border-left: 5px solid #1976d2;
  margin: 32px auto;
  padding: 20px 28px;
  border-radius: 12px;
  font-size: 1.1rem;
  max-width: 700px;
  text-align: left;
}

body.dark blockquote {
  background: #222;
  border-left-color: #64b5f6;
}

blockquote footer {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #666;
}

#countdown-timer {
  font-size: 2rem;
  margin-top: 20px;
  font-weight: 700;
}

#contact ul {
  list-style: none;
  padding: 0;
  font-size: 1.15rem;
}

#contact li {
  margin-bottom: 16px;
}

#contact a {
  color: #1976d2;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

footer {
  background: #f1f1f1;
  color: #444;
  text-align: center;
  padding: 28px 0;
  font-size: 1rem;
}

body.dark footer {
  background: #111;
  color: #aaa;
}

@media (max-width: 768px) {
  .cards {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 12px 24px;
  }
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

body.dark .brand-name {
  color: white;
}

.brand-link:hover .brand-name {
  opacity: 0.85;
}

.brand-link a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.brand-name {
  margin-right: 20px;
}

.brand-link a:hover {
  color: #1976d2; /* Adjust to your accent color */
  text-decoration: underline;
}

.site-footer {
  background-color: #111;
  color: #ddd;
  font-size: 14px;
  padding: 2rem 1rem;
  border-top: 1px solid #222;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-title {
  color: #ff5500;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-text {
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  color: #ff5500;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff5500;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #ddd;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ff5500;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem; /* ↓ tighter spacing */
    margin-bottom: 1rem;
  }

  .footer-col {
    margin-bottom: 0;
    flex: 1 1 5px;
  }

  .footer-col:last-child {
    margin-bottom: 0;
  }
}

:root {
  --sidebar-bg: #ffffff;
  --sidebar-text: #111;
  --sidebar-border: #0ec9de;

  --hover-bg: #e0f7fb;
  --active-bg: #c2f0f5;
  --active-text: #000;
  --icon-color: #007b8a;
  --expanded-bg: #f6fcfd;
}

body.dark {
  --sidebar-bg: #121212;
  --sidebar-text: #f0f0f0;
  --sidebar-border: #ff6600;

  --hover-bg: #252525;
  --active-bg: #2d2a24;
  --active-text: #ffdca8;
  --icon-color: #ff944d;
  --expanded-bg: #1a1a1a;
}

.left-sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 1rem 0;
  border-right: 2px solid var(--sidebar-border);
  font-family: system-ui, sans-serif;

  /* No scroll, full render */
  overflow: visible;
  max-height: none;
}

.dropdown-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--sidebar-border);
  letter-spacing: 0.8px;
}

.dropdown-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--sidebar-border);
  margin-top: 4px;
  border-radius: 1px;
}

.country-list,
.country-list li,
.league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.country-item {
  margin-bottom: 0.5rem;
}

.country-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.2rem;
  width: 100%;
  border: none;
  background-color: transparent;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sidebar-text);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.country-toggle:hover,
.country-toggle:focus-visible {
  background-color: var(--hover-bg);
  outline: none;
}

.country-toggle[aria-expanded="true"] {
  font-weight: 800;
}

.country-toggle[aria-expanded="true"]:hover,
.country-toggle[aria-expanded="true"]:focus-visible {
  background-color: var(--hover-bg);
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: inherit;
}

.country-toggle[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.league-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.country-toggle[aria-expanded="true"] + .league-list {
  max-height: none; /* 🔥 No limit */
  padding: 0.2rem 0 0.3rem;
  background-color: var(--expanded-bg);
  border-radius: 6px;
  margin-top: 0.2rem;
}

.league-list li {
  margin: 0;
}

.league-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.8rem;
  font-size: 0.93rem;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 40px;
}

/* Hover (not active) */
.league-list a:not(.active):hover {
  background-color: var(--hover-bg);
  border-left: 3px solid var(--sidebar-border);
  padding-left: 1.6rem;
  color: var(--sidebar-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Active */
.league-list a.active {
  background-color: var(--active-bg);
  color: var(--active-text);
  font-weight: 600;
  cursor: default;
}

.league-list a.active i {
  color: var(--active-text);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Icon */
.league-list i {
  font-size: 0.8rem;
  color: var(--icon-color);
  flex-shrink: 0;
}

/* Desktop only */
@media (max-width: 768px) {
  .left-sidebar {
    display: none;
  }
}

/* Mobile drawer alternative */
.mobile-countries {
  padding: 0.2rem;
}

.mobile-countries .dropdown-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sidebar-border);
  margin-bottom: 0.5rem;
}

@media (min-width: 769px) {
  .mobile-countries {
    display: none;
  }
}

.page-layout {
  display: flex;
  flex-direction: row;
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
}

.match-list {
  width: 55vw;
  margin: 2vh auto;
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

/* Card */
.match-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 0.6vw;
  padding: 1.5vh 2vw;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  transition: background 0.2s ease, border 0.2s ease;
  margin-left: 1vw;
}

.match-card:first-child {
  margin-top: 2vh;
}

.match-card:last-child {
  margin-bottom: 2vh;
}

.match-card:hover {
  background: var(--hover-bg);
}

/* Header (League + Time) */
.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9vw;
  font-weight: 600;
  color: var(--sidebar-text);
  text-transform: uppercase;
}

.match-time {
  font-weight: 700;
  color: var(--sidebar-text);
  text-transform: none;
}

/* Body (Teams + Scores) */
.match-body {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto; /* HomeLogo | HomeName | Score | AwayName | AwayLogo */
  align-items: center;
  gap: 0.8vw;
}

.team-logo {
  width: 2.5vw;
  height: 2.5vw;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.team-name {
  font-size: 1.1vw;
  font-weight: 500;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-name.home {
  text-align: right;
  justify-self: end;
}

.team-name.away {
  text-align: left;
  justify-self: start;
}

.scores {
  font-size: 1.4vw;
  font-weight: 700;
  color: var(--sidebar-text);
  text-align: center;
  min-width: 4vw;
  justify-self: center;
}

/* Footer (Predictions Row) */
.match-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* keep them inline always */
  gap: 0.8vw;
  margin-top: 0.5vh;
  align-items: center;
}

.prediction {
  padding: 0.4vh 1vw;
  border-radius: 999px; /* pill style */
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  color: #fff;
  font-size: 0.9vw;
  white-space: nowrap;
}

/* Light mode green palette */
body:not(.dark) .prediction.best {
  background: #2e7d32; /* strong green */
  border-color: #1b5e20;
}

body:not(.dark) .prediction.second {
  background: #43a047; /* medium green */
  border-color: #2e7d32;
}

body:not(.dark) .prediction.third {
  background: #66bb6a; /* lighter green */
  border-color: #388e3c;
}

/* Dark mode adjusted green palette */
body.dark .prediction.best {
  background: #43a047;
  border-color: #2e7d32;
}

body.dark .prediction.second {
  background: #388e3c;
  border-color: #1b5e20;
}

body.dark .prediction.third {
  background: #2e7d32;
  border-color: #145a32;
}

/* Mobile */
@media (max-width: 768px) {
  .match-list {
    width: 95vw;
  }

  .match-card {
    padding: 2vh 3vw;
    margin-left: 0;
  }

  .match-card:first-child {
    margin-top: 1vh;
  }

  .match-card:last-child {
    margin-bottom: 0.5vh;
  }

  .match-header {
    font-size: 3.2vw;
  }

  .match-time {
    font-size: 3.2vw;
  }

  .match-body {
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 2vw;
  }

  .team-logo {
    width: 8vw;
    height: 8vw;
  }

  .team-name {
    font-size: 3.5vw;
  }

  .scores {
    font-size: 5vw;
    min-width: 10vw;
  }

  /* Predictions still inline */
  .match-footer {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2vw;
  }

  .prediction {
    font-size: 2.8vw;
    padding: 1vh 1.5vw;
  }
}

section h1 {
  font-size: 2em; /* or 32px, etc. */
}
