/* =============================================
   CSS VARIABLES & THEME
   ============================================= */
:root {
  --red: #e2001a;
  --red-dark: #b5001a;
  --red-soft: rgba(226, 0, 26, 0.12);
  --red-glow: rgba(226, 0, 26, 0.3);
  --white: #ffffff;
  --transition: 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg: #141416;
  --bg-card: #1c1c1f;
  --bg-card-2: #222226;
  --bg-elevated: #28282c;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #d4d4d4;
  --text-muted: #666;
  --text-bright: #ffffff;
  --nav-bg: rgba(10,10,10,0.92);
  --hero-overlay: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.7) 50%, #0a0a0a 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 24px rgba(226,0,26,0.2);
}

[data-theme="light"] {
  --bg: #f0f0f0;
  --bg-card: #ffffff;
  --bg-card-2: #f8f8f8;
  --bg-elevated: #ececec;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #333333;
  --text-muted: #888;
  --text-bright: #111111;
  --nav-bg: rgba(240,240,240,0.95);
  --hero-overlay: linear-gradient(180deg, rgba(240,240,240,0) 0%, rgba(240,240,240,0.6) 50%, #f0f0f0 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-red: 0 4px 24px rgba(226,0,26,0.15);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-crest {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  line-height: 1;
}

.nav-wordmark span {
  color: var(--red);
}

.nav-wordmark .domain {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-bright);
  background: var(--border);
}

/* Dropdown navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--text-bright) !important;
  background: var(--bg-elevated) !important;
}

/* Mobile nav groups */
.mobile-nav-group {
  padding: 0.25rem 0;
}

.mobile-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  padding: 0.5rem 1.5rem 0.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.lang-btn.active {
  background: var(--red);
  color: white;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-btn:hover {
  border-color: var(--red);
}

.forum-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: var(--red);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.forum-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding-top: 64px; /* nav height */
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(226, 0, 26, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(226, 0, 26, 0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 30% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 30% 50%, black 20%, transparent 75%);
  opacity: 0.35;
}

/* Two-column layout */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-soft);
  border: 1px solid rgba(226, 0, 26, 0.25);
  color: #ff4d5e;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease both;
  align-self: flex-start;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

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

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero h1 .red { color: var(--red); }

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

/* Countdown block */
.match-countdown {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.6s 0.15s ease both;
  box-shadow: var(--shadow);
}

.countdown-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.5rem 0 3rem;
    gap: 2rem;
  }
  .hero h1 { font-size: clamp(3.5rem, 14vw, 5rem); }
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}

.vs-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.competition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.countdown-timer {
  display: flex;
  gap: 1rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-bright);
  letter-spacing: 0.05em;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.countdown-divider {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  margin-top: -2px;
}

.match-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* =============================================
   SECTION COMMON
   ============================================= */
.section {
  padding: 4rem 0;
}

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

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .accent-bar {
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background: var(--red);
  border-radius: 2px;
}

.see-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.see-all:hover { color: var(--red); }

/* =============================================
   RESULTS GRID
/* =============================================
   DASHBOARD — INDEX PAGE
   ============================================= */
.dashboard-section { padding-top: 0; margin-top: -1rem; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.dash-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dash-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dash-card-icon { font-size: 1.1rem; }
.dash-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}
.dash-card-body { flex: 1; margin-bottom: 0.75rem; }
.dash-card-link {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
}

/* Standings snapshot */
.dash-standings-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
}
.dash-standings-info { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--text-bright);
}
.dash-detail { font-size: 0.75rem; color: var(--text-muted); }
#dash-standings { display: flex; align-items: center; gap: 1rem; }

/* Last result */
.dash-result-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-bright);
}
.dash-result-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  min-width: 50px;
  text-align: center;
}
.dash-result-score.result-win { color: #3fb950; }
.dash-result-score.result-loss { color: #ff6b6b; }
.dash-result-score.result-draw { color: #d29922; }
.dash-result-comp { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 0.4rem; }

/* Featured news */
.dash-news-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-news-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Upcoming matches — horizontal card grid */
.upcoming-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .upcoming-matches { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .upcoming-matches { grid-template-columns: 1fr; }
}
.upcoming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.upcoming-card:hover { border-color: var(--red); transform: translateY(-1px); box-shadow: var(--shadow); }
.upcoming-card-date {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.upcoming-card-teams {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-bright);
  line-height: 1.3;
}
.upcoming-card-teams .benfica { color: var(--red); font-weight: 700; }
.upcoming-card-vs { color: var(--text-muted); font-size: 0.72rem; margin: 0 0.15rem; }
.upcoming-card-comp {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.dash-see-all {
  color: var(--red);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
}
.dash-see-all:hover { text-decoration: underline; }


/* =============================================
   RESULTS GRID (subpages)
   ============================================= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
  cursor: pointer;
}

.result-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.result-sport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.sport-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.result-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-win { background: rgba(46,160,67,0.15); color: #3fb950; }
.status-draw { background: rgba(210,153,34,0.15); color: #d29922; }
.status-loss { background: rgba(226,0,26,0.12); color: #ff6b6b; }
.status-live { background: rgba(226,0,26,0.2); color: var(--red); animation: livePulse 1.5s ease infinite; }
.status-upcoming { background: rgba(88,166,255,0.12); color: #58a6ff; }

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.result-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.result-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.result-team.home { align-items: flex-start; }
.result-team.away { align-items: flex-end; }

.result-team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.2;
}

.result-team-name.benfica {
  color: var(--red);
}

.result-competition {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.result-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  text-align: center;
  min-width: 70px;
  line-height: 1;
}

.result-score .dash {
  color: var(--text-muted);
  font-size: 1.4rem;
}

/* Score result states */
.result-score.result-win { color: #3fb950; }
.result-score.result-loss { color: #ff6b6b; }
.result-score.result-draw { color: #d29922; }
.result-score.result-pending { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: var(--text-muted); }
.result-card-win { border-left: 3px solid #3fb950; }
.result-date-small { font-size: 0.7rem; color: var(--text-muted); }

/* Compact match rows for sport results */
.match-row-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  transition: all 0.2s;
}
.match-row-compact:hover { border-color: var(--border-strong); }
.match-row-compact.match-won { border-left: 3px solid #3fb950; }
.match-comp-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.match-date-label { color: var(--text-muted); font-weight: 400; }
.match-teams-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.match-team-home {
  flex: 1;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-bright);
}
.match-team-away {
  flex: 1;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-bright);
}
.match-team-home.benfica, .match-team-away.benfica { color: var(--red); font-weight: 700; }
.match-score-compact {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  min-width: 55px;
  text-align: center;
}
.match-score-compact.result-win { color: #3fb950; }
.match-score-compact.result-loss { color: #ff6b6b; }
.match-score-compact.result-draw { color: #d29922; }
.match-score-compact.match-pending { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: var(--text-muted); }

/* Sport standing card */
.sport-standing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sport-standing-comp {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
}
.sport-standing-stats {
  display: flex;
  gap: 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.sport-standing-pos { color: var(--red); }
.sport-standing-pts { color: var(--text-bright); }
.sport-standing-games { color: var(--text-muted); }

/* =============================================
   STANDINGS TABLE
   ============================================= */
.standings-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.standings-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.standings-table thead {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
}

.standings-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.standings-table th.num { text-align: center; }

.standings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.standings-table tr:last-child td { border-bottom: none; }

.standings-table td.num { text-align: center; color: var(--text-muted); font-size: 0.82rem; }

.standings-table tr.benfica-row {
  background: var(--red-soft);
}

.standings-table tr.benfica-row td {
  color: var(--text-bright);
  font-weight: 600;
}

.standings-table tr.benfica-row td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}

.club-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.club-pos {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 1.5rem;
  font-size: 0.82rem;
}

.benfica-row .club-pos {
  color: var(--red);
}

.club-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

.benfica-row .club-dot { background: var(--red); }

.pts-cell {
  font-weight: 700;
  color: var(--text-bright) !important;
}

.form-dots {
  display: flex;
  gap: 3px;
}

.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.form-w { background: #3fb950; }
.form-d { background: #d29922; }
.form-l { background: #ff6b6b; }

/* =============================================
   NEWS FEED
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

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

.news-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.news-main:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.news-main-img {
  height: 200px;
  background: linear-gradient(135deg, var(--red-dark) 0%, #1a0005 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-img-placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.news-source-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-main-body {
  padding: 1.25rem;
}

.news-main-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-2);
}

.news-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
}

.news-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.source-tag {
  color: var(--red);
  font-weight: 600;
}

/* =============================================
   MULTI-SPORT SECTION
   ============================================= */
.sports-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.sport-tab {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sport-tab:hover { border-color: var(--red); color: var(--text); }

.sport-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.sport-content {
  display: none;
}

.sport-content.active { display: block; }

.sport-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-sport {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.coming-soon-icon { font-size: 2rem; opacity: 0.6; }
.coming-soon-label { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); margin: 0; }
.coming-soon-sub { font-size: 0.8rem; color: var(--text-muted); margin: 0; max-width: 380px; }

/* =============================================
   YOUTH ACADEMY
   ============================================= */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.academy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}

.academy-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.academy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.academy-team {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.academy-result {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}

.academy-match-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.academy-match-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================
   FORUM TEASER
   ============================================= */
.forum-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.forum-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.forum-teaser-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.forum-teaser h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.forum-teaser p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}

.email-signup {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  color: var(--text-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}

.email-input:focus { border-color: var(--red); }
.email-input::placeholder { color: var(--text-muted); }

.notify-btn {
  padding: 0.65rem 1.25rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

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

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

.footer-brand .nav-logo { margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-glorioso {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* Easter egg — hidden crew signature */
.easter-egg-wrap {
  text-align: center;
  padding: 0.6rem 0 0.1rem;
}

.easter-trigger {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  cursor: default;
  opacity: 0.25;
  transition: opacity 0.3s ease, background 0.3s ease;
  user-select: none;
}

.easter-trigger:hover {
  opacity: 0.45;
  cursor: pointer;
}

.easter-msg {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  animation: fadeInUp 0.5s ease both;
}

.easter-msg .paixao { color: var(--red); }
.easter-msg .glorioso { color: var(--text-bright); font-weight: 600; }

/* =============================================
   MOBILE NAV
   ============================================= */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--red); }
.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .match-countdown { padding: 1.2rem 1.2rem; }
  .countdown-num { font-size: 1.8rem; }
  .countdown-divider { font-size: 1.8rem; }
  .results-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .email-signup { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .forum-btn span { display: none; }
}

/* =============================================
   UTILITY
   ============================================= */
.divider-line {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s ease infinite;
}

/* Mock data note */
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(88,166,255,0.1);
  color: #58a6ff;
  border: 1px solid rgba(88,166,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Skeleton loaders */
.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.table-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.api-error {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-2px); }
/* =============================================
   V3.2.0 — HOME LAYOUT: 1/3 cards + 2/3 news
   ============================================= */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 768px) {
  .home-layout { grid-template-columns: 1fr; }
}

/* Left column: stacked cards */
.home-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Right column: news card stretches to match */
.home-right-news {
  display: flex;
}
.home-news-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-news-card .news-headlines {
  flex: 1;
}

/* News headlines list */
.news-headlines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-headline-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.news-headline-item:last-child { border-bottom: none; }
.news-headline-item:hover { opacity: 0.8; }
.news-headline-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-headline-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
/* =============================================
   V3.3.0 — HERO STADIUM BACKGROUND
   Append to portal.css
   ============================================= */

/* Override hero background with stadium image */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-stadium.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay for text readability */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 12, 0.85) 0%,
    rgba(10, 10, 12, 0.7) 40%,
    rgba(10, 10, 12, 0.5) 100%
  );
  z-index: 1;
}

/* Remove the grid pattern — stadium replaces it */
.hero-grid {
  display: none;
}

/* Ensure content stays above the overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Light mode: slightly different overlay */
[data-theme="light"] .hero-bg::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.75) 40%,
    rgba(255, 255, 255, 0.55) 100%
  );
}
