/*
Theme Name: MLSR
Theme URI: https://majorleaguesimracing.com
Author: MLSR
Description: Major League Sim Racing — Official WordPress Theme. v3.9.27 applies the driver-profile gradient-wash recipe to team profile pages: hero background fades from team color into charcoal with a matching 2px team-color border; the dark overlay is lightened so the color shows through; hero stat numbers (Race Wins / Podiums / Championships / Drivers) and section labels (About the Team / Roster / Team Sponsors / Team Details / Engineers &amp; Crew / Follow the Team) are now white for guaranteed readability regardless of the team's chosen color. Hero subtitle, left-border accents, logo ring, roster row accents, and other small accents still use team color. Builds on v3.9.26. All other site sections preserved.
Version: 3.9.27
License: GNU General Public License v2 or later
Text Domain: mlsr
*/

:root {
  --red: #CC0000; --red-bright: #FF1A1A; --red-dark: #990000;
  --black: #0A0A0A; --black-mid: #111111; --black-card: #161616; --black-border: #222222;
  --white: #FFFFFF; --white-dim: #E8E8E8; --white-muted: #AAAAAA; --white-faint: #444444;
  --gold: #C8A84B;
  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); overflow-x: hidden; line-height: 1.5; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 60px 0; }
.tag { display: inline-block; font-family: var(--font-condensed); font-weight: 700; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); border-left: 3px solid var(--red); padding: 2px 10px; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); letter-spacing: 1px; line-height: 1; color: var(--white); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-condensed); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; padding: 14px 28px; border: none; cursor: pointer; transition: all 0.2s ease; }
.btn-primary { background: var(--red); color: var(--white); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white-faint); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.carbon-bg { background-color: var(--black-card); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 8px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 8px); }
.divider-stripe { height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 30px, var(--black-border) 30px, var(--black-border) 32px); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-header-right a { font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); text-decoration: none; }
#navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--black-border); transition: all 0.3s ease; }
#navbar.scrolled { border-bottom-color: var(--red); box-shadow: 0 2px 40px rgba(204,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mlsr { font-family: var(--font-display); font-size: 28px; color: var(--white); letter-spacing: 2px; }
.logo-sub { font-family: var(--font-condensed); font-size: 9px; font-weight: 600; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a { font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-muted); text-decoration: none; padding: 22px 14px; display: block; border-bottom: 3px solid transparent; transition: all 0.2s ease; }
.nav-links a:hover { color: var(--white); border-bottom-color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-watch { background: var(--red); color: var(--white); font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 18px; text-decoration: none; display: flex; align-items: center; gap: 6px; transition: background 0.2s; }
.btn-watch:hover { background: var(--red-bright); }
.live-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); }
@media(max-width:900px){.nav-links,.nav-cta{display:none}.hamburger{display:flex}}
.ticker-bar { background: var(--red); height: 32px; display: flex; align-items: center; overflow: hidden; margin-top: 64px; position: relative; z-index: 50; flex-shrink: 0; clear: both; }
.ticker-label { font-family: var(--font-condensed); font-weight: 900; font-size: 11px; letter-spacing: 2px; background: var(--black); color: var(--white); padding: 0 16px; height: 100%; display: flex; align-items: center; flex-shrink: 0; gap: 8px; white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content { display: flex; gap: 60px; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-item { font-family: var(--font-condensed); font-weight: 600; font-size: 12px; color: var(--white); flex-shrink: 0; }
.ticker-sep { color: rgba(255,255,255,0.4); }
@keyframes ticker { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }
.hero { position: relative; z-index: 1; height: 90vh; min-height: 600px; max-height: 900px; display: flex; align-items: center; overflow: hidden; background: #080808; justify-content: flex-start; margin-top: 0; clear: both; }
.hero-graphic { position: absolute; right: -2%; top: 0; bottom: 0; width: 58%; opacity: 0.12; z-index: 0; }
.hero-overlay { display: none; }
.hero-speedlines { position: absolute; inset: 0; background: repeating-linear-gradient(170deg, transparent 0px, transparent 60px, rgba(204,0,0,0.04) 60px, rgba(204,0,0,0.04) 61px); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 720px; width: 100%; }
.hero-eyebrow { font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-eyebrow::before { content: ''; display: block; width: 30px; height: 2px; background: var(--red); }
.hero-title { font-family: var(--font-display); font-size: clamp(72px, 12vw, 140px); line-height: 0.92; letter-spacing: 2px; color: var(--white); margin-bottom: 8px; }
.hero-title span { color: var(--red); }
.hero-subtitle { font-family: var(--font-condensed); font-weight: 400; font-size: clamp(18px, 2.5vw, 26px); letter-spacing: 6px; text-transform: uppercase; color: var(--white-muted); margin-bottom: 30px; }
.hero-desc { font-size: 16px; color: var(--white-muted); max-width: 560px; margin-bottom: 40px; line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: space-between; gap: 36px; border-top: 1px solid var(--black-border); padding-top: 30px; max-width: 720px; }
.hero-stat-num { font-family: var(--font-display); font-size: 42px; color: var(--white); line-height: 1; }
.hero-stat-label { font-family: var(--font-condensed); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--white-muted); }
.hero-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 20px, var(--black) 20px, var(--black) 40px); z-index: 3; }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }
.animate-up { opacity: 1; }
.delay-1{animation-delay:0.1s}.delay-2{animation-delay:0.2s}.delay-3{animation-delay:0.3s}.delay-4{animation-delay:0.4s}.delay-5{animation-delay:0.5s}
.featured-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2px; background: var(--black-border); }
.featured-card { position: relative; overflow: hidden; background: var(--black-card); min-height: 280px; cursor: pointer; }
.featured-card:hover .featured-overlay { opacity: 1; }
.featured-card:hover .featured-img-inner { transform: scale(1.05); }
.featured-img { position: absolute; inset: 0; overflow: hidden; }
.featured-img-inner { width: 100%; height: 100%; background: var(--black-mid); display: flex; align-items: center; justify-content: center; transition: transform 0.5s ease; }
.featured-overlay { position: absolute; inset: 0; background: rgba(204,0,0,0.15); opacity: 0; transition: opacity 0.3s; }
.featured-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, transparent 100%); }
.featured-category { font-family: var(--font-condensed); font-weight: 700; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.featured-title { font-family: var(--font-condensed); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--white); }
.featured-date { font-size: 12px; color: var(--white-muted); margin-top: 6px; }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--black-border); margin-top: 40px; }
.series-card { background: var(--black-card); padding: 40px 32px; position: relative; overflow: hidden; cursor: pointer; transition: background 0.3s; }
.series-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.series-card:hover::before { transform: scaleX(1); }
.series-card:hover { background: #1a1a1a; }
.series-number { font-family: var(--font-display); font-size: 100px; color: rgba(255,255,255,0.04); position: absolute; right: -10px; top: -10px; line-height: 1; pointer-events: none; }
.series-badge { width: 60px; height: 60px; background: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; clip-path: polygon(15% 0%,85% 0%,100% 15%,100% 85%,85% 100%,15% 100%,0% 85%,0% 15%); }
.series-badge svg { width: 30px; height: 30px; fill: white; }
.series-name { font-family: var(--font-display); font-size: 32px; letter-spacing: 1px; margin-bottom: 8px; }
.series-desc { font-size: 14px; color: var(--white-muted); line-height: 1.6; margin-bottom: 24px; }
.series-meta { display: flex; gap: 24px; margin-bottom: 24px; }
.series-meta-num { font-family: var(--font-display); font-size: 28px; color: var(--red); line-height: 1; }
.series-meta-label { font-family: var(--font-condensed); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--white-muted); }
.series-link { font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.series-link:hover { color: var(--red); }
.series-link::after { content: '→'; }
.standings-wrap { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-family: var(--font-condensed); }
.standings-table thead tr { background: var(--red); }
.standings-table thead th { font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); padding: 12px 16px; text-align: left; white-space: nowrap; }
.standings-table tbody tr { border-bottom: 1px solid var(--black-border); transition: background 0.15s; cursor: pointer; }
.standings-table tbody tr:hover { background: rgba(204,0,0,0.07); }
.standings-table tbody td { padding: 14px 16px; font-size: 15px; color: var(--white-dim); white-space: nowrap; }
.pos-num { font-family: var(--font-display); font-size: 22px; color: var(--white-muted); width: 50px; }
.pos-1{color:var(--gold)}.pos-2{color:#C0C0C0}.pos-3{color:#CD7F32}
.driver-num-badge { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; width: 36px; height: 36px; background: var(--black-border); color: var(--white); margin-right: 10px; }
.driver-name-cell { font-weight: 700; font-size: 17px; letter-spacing: 0.5px; }
.pts-cell { font-family: var(--font-display); font-size: 20px; color: var(--white); }
.playoff-dot { display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.change-up{color:#22CC66;font-size:12px}.change-down{color:var(--red);font-size:12px}.change-same{color:var(--white-faint);font-size:12px}
.page-nav { background: var(--black-mid); border-bottom: 1px solid var(--black-border); overflow-x: auto; }
.page-nav-inner { display: flex; }
.page-nav-btn { font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-muted); background: none; border: none; padding: 16px 22px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.2s; }
.page-nav-btn:hover { color: var(--white); }
.page-nav-btn.active { color: var(--white); border-bottom-color: var(--red); }
.schedule-list { display: flex; flex-direction: column; gap: 2px; }
.race-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px; background: var(--black-card); padding: 20px 24px; border-left: 4px solid transparent; transition: all 0.2s; cursor: pointer; }
.race-row:hover { border-left-color: var(--red); background: #1a1a1a; }
.race-date { text-align: center; }
.race-month { font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.race-day { font-family: var(--font-display); font-size: 36px; line-height: 1; color: var(--white); }
.race-name { font-family: var(--font-condensed); font-weight: 700; font-size: 20px; color: var(--white); }
.race-track { font-size: 13px; color: var(--white-muted); margin-top: 4px; }
.race-series-tag { font-family: var(--font-condensed); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: var(--red); color: var(--white); padding: 2px 8px; display: inline-block; margin-bottom: 4px; }
.race-action a { font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-muted); text-decoration: none; transition: color 0.2s; }
.race-action a:hover { color: var(--red); }
.next-badge { font-family: var(--font-condensed); font-weight: 700; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--red); color: var(--white); padding: 4px 10px; display: block; margin-bottom: 6px; text-align: center; }
.drivers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--black-border); }
.driver-card { background: var(--black-card); position: relative; overflow: hidden; cursor: pointer; transition: background 0.2s; }
.driver-card:hover { background: #1c1c1c; }
.driver-num-overlay { position: absolute; right: -10px; top: -10px; font-family: var(--font-display); font-size: 130px; line-height: 1; color: var(--red); opacity: 0.05; pointer-events: none; transition: opacity 0.3s; }
.driver-card:hover .driver-num-overlay { opacity: 0.08; }
.driver-avatar { height: 160px; background: var(--black-mid); display: flex; align-items: center; justify-content: center; position: relative; }
.driver-avatar-icon { font-family: var(--font-display); font-size: 64px; color: rgba(255,255,255,0.1); }
.driver-car-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.driver-card-body { padding: 16px 20px 20px; }
.driver-number-display { font-family: var(--font-display); font-size: 14px; color: var(--red); letter-spacing: 1px; margin-bottom: 4px; }
.driver-full-name { font-family: var(--font-condensed); font-weight: 700; font-size: 19px; color: var(--white); line-height: 1.1; margin-bottom: 6px; }
.driver-team-name { font-size: 12px; color: var(--white-muted); margin-bottom: 12px; }
.driver-stats-mini { display: flex; gap: 16px; border-top: 1px solid var(--black-border); padding-top: 12px; }
.driver-stat-mini-num { font-family: var(--font-display); font-size: 20px; color: var(--white); line-height: 1; }
.driver-stat-mini-label { font-family: var(--font-condensed); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white-muted); }
.teams-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.team-card { background: var(--black-card); border: 1px solid var(--black-border); padding: 28px 20px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.team-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.3s; }
.team-card:hover { border-color: var(--red-dark); }
.team-card:hover::after { transform: scaleX(1); }
.team-logo-area { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; }
.team-name { font-family: var(--font-condensed); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 6px; }
.team-drivers { font-size: 12px; color: var(--white-muted); }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: var(--black-border); }
.news-main { background: var(--black-card); }
.news-sidebar { background: var(--black-card); display: flex; flex-direction: column; }
.news-main-img { height: 260px; background: linear-gradient(135deg, #1a1a1a 0%, #222 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.news-play-btn { width: 60px; height: 60px; background: rgba(204,0,0,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.news-play-btn:hover { background: var(--red-bright); transform: scale(1.1); }
.news-main-body { padding: 28px; }
.news-main-title { font-family: var(--font-condensed); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--white); margin-bottom: 12px; cursor: pointer; }
.news-main-title:hover { color: var(--red); }
.news-main-excerpt { font-size: 14px; color: var(--white-muted); line-height: 1.7; }
.news-item { padding: 20px 24px; border-bottom: 1px solid var(--black-border); cursor: pointer; transition: background 0.2s; flex: 1; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(255,255,255,0.02); }
.news-item-title { font-family: var(--font-condensed); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--white); margin-bottom: 6px; }
.news-item-meta { font-size: 12px; color: var(--white-muted); }
.sponsors-tier { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--black-border); }
.sponsors-tier:last-child { border-bottom: none; }
.sponsor-tier-label { font-family: var(--font-condensed); font-weight: 700; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--white-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sponsor-tier-label::after { content: ''; flex: 1; height: 1px; background: var(--black-border); }
.sponsors-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sponsor-slot { flex: 1; min-width: 160px; max-width: 320px; height: 140px; background: var(--black-card); border: 1px solid var(--black-border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--white-faint); text-transform: uppercase; }
.sponsor-slot:hover { border-color: var(--white-faint); }
.rulebook-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 40px; }
.rule-section-title { font-family: var(--font-condensed); font-weight: 700; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--black-border); padding-bottom: 10px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.rule-num { font-family: var(--font-display); font-size: 24px; color: var(--red); }
.rule-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; color: var(--white-muted); line-height: 1.6; display: flex; gap: 12px; }
.rule-item::before { content: '§'; color: var(--red); font-family: var(--font-condensed); font-weight: 700; flex-shrink: 0; }
.penalty-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--black-card); margin-bottom: 2px; }
.penalty-offense { font-size: 13px; color: var(--white-dim); }
.penalty-result { font-family: var(--font-condensed); font-weight: 700; font-size: 13px; letter-spacing: 1px; padding: 3px 10px; }
.penalty-warning{color:#F5A623;background:rgba(245,166,35,0.15)}.penalty-points{color:var(--red);background:rgba(204,0,0,0.15)}.penalty-dq{color:#FF3B3B;background:rgba(255,59,59,0.2)}
.cta-band { background: var(--red); padding: 60px 0; position: relative; overflow: hidden; }
.cta-band::before { content: 'MLSR'; position: absolute; font-family: var(--font-display); font-size: 300px; color: rgba(0,0,0,0.15); right: -40px; top: 50%; transform: translateY(-50%); line-height: 1; pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text-title { font-family: var(--font-display); font-size: clamp(32px,5vw,56px); color: var(--white); line-height: 1; margin-bottom: 8px; }
.cta-text-sub { font-size: 16px; color: rgba(255,255,255,0.75); font-weight: 300; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cta-white { background: var(--white); color: var(--red); font-family: var(--font-condensed); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 30px; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-cta-white:hover { background: var(--black); color: var(--white); }
.btn-cta-black { background: rgba(0,0,0,0.3); color: var(--white); font-family: var(--font-condensed); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 30px; border: 2px solid rgba(255,255,255,0.3); text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-cta-black:hover { border-color: white; background: rgba(0,0,0,0.5); }
footer { background: var(--black-mid); border-top: 1px solid var(--black-border); }
.footer-top { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 60px; padding: 60px 0 40px; }
.footer-tagline { font-size: 13px; color: var(--white-muted); line-height: 1.6; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: var(--black-border); border: 1px solid var(--black-border); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--white-muted); font-size: 14px; font-family: var(--font-condensed); font-weight: 700; transition: all 0.2s; }
.social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-col-title { font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); border-bottom: 1px solid var(--black-border); padding-bottom: 10px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--white-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--black-border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 12px; color: var(--white-faint); font-family: var(--font-condensed); letter-spacing: 1px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--white-faint); text-decoration: none; font-family: var(--font-condensed); letter-spacing: 1px; }
.footer-legal a:hover { color: var(--white-muted); }
.broadcast-info { display: flex; align-items: center; gap: 16px; background: var(--black-card); border: 1px solid var(--black-border); border-left: 3px solid var(--red); padding: 14px 20px; margin-bottom: 20px; }
.broadcast-live { font-family: var(--font-condensed); font-weight: 700; font-size: 11px; letter-spacing: 2px; background: var(--red); color: var(--white); padding: 4px 10px; display: flex; align-items: center; gap: 6px; }
.broadcast-text { font-size: 14px; color: var(--white-dim); }
.broadcast-link { margin-left: auto; font-family: var(--font-condensed); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); text-decoration: none; background: var(--red); padding: 8px 16px; transition: background 0.2s; }
.broadcast-link:hover { background: var(--red-bright); }
@media(max-width:1024px){.drivers-grid{grid-template-columns:repeat(2,1fr)}.teams-grid{grid-template-columns:repeat(2,1fr)}.footer-top{grid-template-columns:1fr 1fr;gap:30px}.rulebook-grid{grid-template-columns:1fr}}
@media(max-width:768px){.featured-grid{grid-template-columns:1fr}.series-cards{grid-template-columns:1fr}.news-grid{grid-template-columns:1fr}.cta-inner{flex-direction:column;text-align:center}.cta-actions{justify-content:center}.footer-top{grid-template-columns:1fr;gap:24px}.footer-bottom{flex-direction:column;gap:12px;text-align:center}.race-row{grid-template-columns:60px 1fr}.race-action{display:none}.hero-stats{gap:24px}}
@media(max-width:480px){.drivers-grid{grid-template-columns:1fr}.teams-grid{grid-template-columns:1fr}}
::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--black)}::-webkit-scrollbar-thumb{background:var(--red-dark)}::-webkit-scrollbar-thumb:hover{background:var(--red)}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@media(max-width:768px) {
  .hero .container { flex-direction: column !important; }
  .hero .container > div:last-child { display: none !important; }
}

/* ─── UPLOAD 5: MOBILE IMPROVEMENTS ─── */

/* Better mobile nav */
.mobile-nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #111111;
    border-bottom: 3px solid #CC0000;
    padding: 16px 24px;
    gap: 0;
    z-index: 999;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}
.mobile-nav-open li a {
    padding: 14px 0 !important;
    border-bottom: 1px solid #222 !important;
    font-size: 16px !important;
    color: #E8E8E8 !important;
}
.mobile-nav-open li:last-child a {
    border-bottom: none !important;
}

/* Mobile hero fixes */
@media(max-width:600px) {
    .hero-title { font-size: clamp(52px, 15vw, 80px) !important; }
    .hero-stats { gap: 20px !important; flex-wrap: wrap; }
    .hero-stat-num { font-size: 32px !important; }
    .hero-actions { gap: 10px !important; }
    .btn { padding: 12px 20px !important; font-size: 12px !important; }
}

/* Mobile series cards */
@media(max-width:600px) {
    .series-cards { grid-template-columns: 1fr !important; }
    .featured-grid { grid-template-columns: 1fr !important; }
    .drivers-grid { grid-template-columns: 1fr 1fr !important; }
    .teams-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Mobile ticker */
@media(max-width:480px) {
    .ticker-label { padding: 0 10px !important; font-size: 9px !important; }
    .ticker-item { font-size: 11px !important; }
}

/* Mobile footer */
@media(max-width:480px) {
    .footer-top { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* Mobile rulebook */
@media(max-width:768px) {
    .rulebook-grid { grid-template-columns: 1fr !important; }
    .news-grid { grid-template-columns: 1fr !important; }
}

/* Smooth transitions */
.team-card, .driver-card, .series-card, .featured-card {
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

/* Better button hover states */
.btn-primary:active { transform: translateY(0) !important; }

/* Standings table mobile */
@media(max-width:600px) {
    .standings-table thead th:nth-child(n+6),
    .standings-table tbody td:nth-child(n+6) { display: none; }
}

/* Admin bar offset fix */
@media(max-width:782px) {
    #navbar { top: 46px !important; }
    .ticker-bar { margin-top: 110px !important; }
}
@media(min-width:783px) {
    body.admin-bar #navbar { top: 32px !important; }
    body.admin-bar .ticker-bar { margin-top: 96px !important; }
}

/* Page load animation */
body { animation: pageFadeIn 0.3s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #CC0000; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FF1A1A; }

/* Print styles */
@media print {
    #navbar, .ticker-bar, .cta-band, footer { display: none !important; }
    body { background: white !important; color: black !important; }
}

/* ── LEAGUE DROPDOWN ──────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid rgba(204,0,0,0.3);
  border-top: 2px solid #CC0000;
  min-width: 160px;
  z-index: 1000;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--white-muted);
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu li a:hover { color: #fff; background: rgba(204,0,0,0.12); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

/* ── FINANCES PAGE ────────────────────────────────── */
.finances-hero {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(204,0,0,0.2);
  padding: 80px 0 48px;
  text-align: center;
}
.finances-hero h1 { font-family: var(--font-display); font-size: clamp(36px,6vw,72px); color: #fff; letter-spacing: 2px; margin: 0 0 8px; }
.finances-hero p { color: var(--white-muted); font-family: var(--font-condensed); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.finances-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 768px) { .finances-grid { grid-template-columns: 1fr; } }
.finances-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid #CC0000;
  padding: 28px 32px;
}
.finances-card h2 {
  font-family: var(--font-condensed);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #CC0000;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.finances-reserve-amount {
  font-family: var(--font-display);
  font-size: clamp(42px,6vw,72px);
  color: #fff;
  line-height: 1;
  margin: 0 0 8px;
}
.finances-reserve-label { font-family: var(--font-condensed); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--white-muted); }
.finances-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: #3D95CE;
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.2s;
}
.finances-donate-btn:hover { background: #2d7aad; color: #fff; }
.finances-table { width: 100%; border-collapse: collapse; }
.finances-table th {
  font-family: var(--font-condensed);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  text-align: left;
  padding: 0 12px 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.finances-table td {
  font-family: var(--font-condensed);
  font-size: 14px;
  color: #ddd;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.finances-table td.amount-expense { color: #ff6b6b; font-weight: 700; }
.finances-table td.amount-income { color: #6bff9e; font-weight: 700; }
.finances-table tr:last-child td { border-bottom: none; }
.finances-empty { color: var(--white-muted); font-family: var(--font-condensed); font-size: 13px; text-align: center; padding: 32px 0; }
.finances-total-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; border-top: 1px solid rgba(204,0,0,0.3); margin-top: 8px; }
.finances-total-label { font-family: var(--font-condensed); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--white-muted); }
.finances-total-amount { font-family: var(--font-display); font-size: 28px; color: #fff; }

/* ── SPONSOR CARDS ───────────────────────────────── */
.sponsor-card { transition: border-color 0.2s, transform 0.2s; }
.sponsor-card:hover { transform: translateY(-2px); }
.sponsors-row { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }


/* ─── COMPETITION CENTER ── INCIDENT POINTS LADDER ─── */
.ladder-header{display:grid;grid-template-columns:48px 1fr 1.4fr;gap:12px;padding:8px 0 10px;border-bottom:1px solid var(--black-border);margin-bottom:8px;font-family:var(--font-condensed);font-weight:700;font-size:11px;letter-spacing:1.5px;color:var(--white-dim);}
.ladder-row{display:grid;grid-template-columns:48px 1fr 1.4fr;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.04);}
.ladder-row:last-child{border-bottom:none;}
.ladder-pts{font-family:var(--font-display);font-size:26px;font-weight:700;text-align:center;line-height:1;padding:6px 0;border-radius:2px;}
.ladder-pts-low{color:#F5A623;background:rgba(245,166,35,0.12);}
.ladder-pts-mid{color:var(--red);background:rgba(204,0,0,0.15);}
.ladder-pts-high{color:#FF3B3B;background:rgba(255,59,59,0.18);}
.ladder-pts-max{color:#fff;background:var(--red);}
.ladder-trigger{font-family:var(--font-condensed);font-size:13px;color:var(--white);line-height:1.45;}
.ladder-consequence{font-size:13px;color:var(--white-muted);line-height:1.5;}

.example-block{border:1px solid var(--black-border);margin-bottom:10px;background:rgba(0,0,0,0.2);}
.example-block summary{cursor:pointer;padding:12px 14px;font-family:var(--font-condensed);font-weight:600;font-size:13px;color:var(--white);list-style:none;display:flex;align-items:center;gap:10px;}
.example-block summary::-webkit-details-marker{display:none;}
.example-block summary::after{content:'+';margin-left:auto;color:var(--red);font-size:18px;font-weight:700;}
.example-block[open] summary::after{content:'\2212';}
.example-tag{font-size:10px;letter-spacing:1.5px;color:var(--red);text-transform:uppercase;padding:2px 6px;background:rgba(204,0,0,0.15);}
.example-body{padding:4px 14px 16px;font-size:13px;color:var(--white-muted);line-height:1.6;}
.example-body p{margin:4px 0 12px;}
.example-label{font-family:var(--font-condensed);font-weight:700;font-size:10px;letter-spacing:1.5px;color:var(--white-dim);text-transform:uppercase;margin-top:8px;}

@media(max-width:640px){
  .ladder-header,.ladder-row{grid-template-columns:42px 1fr;}
  .ladder-header span:nth-child(3),.ladder-row .ladder-consequence{grid-column:2;padding-top:4px;}
}
