:root {
    /* Cores do Cruzeiro - Sincronizadas */
    --primary: #003399;
    --primary-dark: #002266;
    --primary-light: #1a4db8;
    --accent: #ffd700;
    --accent-dark: #ccac00;
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;
    
    /* Status e Placar */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    --live-red: #ef4444;
    --live-green: #22c55e;
    --half-time: #f59e0b;
    --finished: #64748b;
    
    /* Cores dos times */
    --cruzeiro-blue: #003399;
    --adversario-red: #c41e3a;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Bebas Neue', sans-serif; /* Alterado para manter o padrão */
    --font-countdown: 'Bebas Neue', sans-serif;
    
    /* Spacing & Radius (Mantidos os do minuto-a-minuto) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 30px rgba(0, 51, 153, 0.3);
    --shadow-accent: 0 0 30px var(--accent-glow);
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-200) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* === UTILITIES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-6); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent));
}

.navbar {
    width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  z-index: 1001;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  font-size: 1.25rem;
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  gap: var(--space-6);
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

.nav-link i {
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
  }
}


/* === HERO SECTION === */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--gray-950) 100%);
    padding: calc(70px + var(--space-12)) var(--space-4) var(--space-10);
    overflow: hidden;
    text-align: center;
    min-height: 250px;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,215,0,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(88,86,214,0.3) 0%, transparent 60%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, rgba(255,215,0,0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 70%, rgba(255,215,0,0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.2) 50%, transparent 50%);
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255,255,255,0.2);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.title-main {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.title-sub {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

/* === MAIN CONTENT === */
.main-content {
    padding: var(--space-10) 0;
}

/* === PLACAR / COUNTDOWN === */
#live-match-container {
    margin-bottom: var(--space-8);
}

.match-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.match-info {
    text-align: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-bottom: 2px solid var(--gray-200);
}

.match-championship {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
}

.match-date {
    font-size: 0.9rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.team-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(var(--shadow-md));
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.score {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1;
}

.score-separator {
    font-size: 2.5rem;
    color: var(--gray-400);
    font-weight: 300;
}

.match-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--live-red);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-4);
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Countdown */
.countdown-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-grid {
    display: flex;
    gap: var(--space-4);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    min-width: 90px;
    box-shadow: var(--shadow-lg);
}

.countdown-value {
    font-family: var(--font-countdown);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: var(--space-1);
}

/* === LAYOUT GRID === */
.match-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px; /* Largura fixa nas laterais para melhor controle */
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    align-items: start; /* CRUCIAL: Impede que as colunas estiquem até o chão */
}

/* === ESTATÍSTICAS === */
.stats-column {
    position: sticky;
    top: 90px; /* Fica fixo ao scrollar, logo abaixo do header */
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: auto;
}

.stats-card {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.stats-header {
    background: var(--gray-50);
    padding: var(--space-3) var(--space-4);
    font-size: 0.75rem; /* Fonte menor e mais elegante */
    border-bottom: 2px solid var(--primary);
}

.stats-list {
    padding: var(--space-3);
    gap: var(--space-2); /* Menos espaço entre as linhas */
}

.stat-row {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-500);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.loading-stats {
    text-align: center;
    padding: var(--space-8);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* === TIMELINE CENTRAL === */
.timeline-column {
    display: flex;
    flex-direction: column;
}

.timeline-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--accent);
}

.timeline-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.match-status {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    max-height: 600px;
}

/* Timeline Items */
.timeline-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.timeline-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-item.timeline-adversario {
    border-left-color: var(--adversario-red);
}

.timeline-item.goal-event {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, rgba(255,215,0,0.05), var(--white));
}

.timeline-time {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
    height: fit-content;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.timeline-item.timeline-adversario .timeline-time {
    background: linear-gradient(135deg, var(--adversario-red), #9e1830);
}

.timeline-item.goal-event .timeline-time {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--gray-900);
}

.timeline-content {
    flex: 1;
}

.timeline-content .timeline-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    padding-bottom: 0;
    border-bottom: none;
    background: none;
}

.timeline-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--white);
    padding: 3px;
    box-shadow: var(--shadow);
}

.timeline-type {
    font-size: 0.75rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item.timeline-adversario .timeline-type {
    background: linear-gradient(135deg, var(--adversario-red), #9e1830);
}

.timeline-item.goal-event .timeline-type {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--gray-900);
}

.timeline-desc {
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: var(--space-2);
    font-size: 1rem;
    font-weight: 500;
}

.timeline-item.goal-event .timeline-desc {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.timeline-team {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.timeline-team::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-item.timeline-adversario .timeline-team::before {
    background: var(--adversario-red);
}

/* Mensagem sem eventos */
.no-events-message {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.no-events-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-events-icon i {
    font-size: 3rem;
    color: var(--gray-400);
}

.no-events-message p {
    font-size: 1.2rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.no-events-message span {
    font-size: 0.95rem;
    color: var(--gray-500);
}

/* Scrollbar personalizada */
.timeline::-webkit-scrollbar {
    width: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

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

/* === SEÇÃO DE ESCALAÇÕES === */
.lineup-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px dashed var(--gray-300);
}

.lineup-layout {
    grid-template-columns: 1fr 220px 1fr; /* Centraliza o árbitro */
    align-items: start;
}

.referee-column {
    display: flex;
    align-items: stretch;
    min-width: 200px;
}

.referee-card {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--gray-300);
}

.referee-card .loading-stats {
    padding: var(--space-4);
}

.player-item-min {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid var(--gray-100);
}

.player-number {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: bold;
    min-width: 20px;
}

.player-info-text {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

.player-pos {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-transform: uppercase;
}


/* === FOOTER === */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-950) 100%);
    color: var(--white);
    padding: var(--space-12) 0 var(--space-6);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-accent);
}

.footer-logo h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-1);
}

.footer-logo p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: var(--space-4);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-400);
    transition: var(--transition);
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-400);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* === ANIMAÇÃO DE GOL === */
#goal-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 86, 214, 0.97);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#goal-animation.active {
    opacity: 1;
    pointer-events: auto;
}

.goal-animation-content {
    text-align: center;
    color: var(--white);
    animation: goalBounce 0.5s ease;
}

@keyframes goalBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.goal-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.8);
    animation: goalPulse 0.8s ease-in-out infinite;
}

@keyframes goalPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
    50% { transform: scale(1.05); text-shadow: 0 0 80px rgba(255, 215, 0, 1); }
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .match-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .timeline-column {
        order: -1;
    }
    
    .lineup-layout {
        grid-template-columns: 1fr;
    }
    
    .referee-column {
        order: -1;
    }
}

@media (max-width: 640px) {
    .score-row {
        flex-direction: column;
        padding: var(--space-6) var(--space-4);
        gap: var(--space-4);
    }
    
    .team-logo {
        width: 70px;
        height: 70px;
    }
    
    .score {
        font-size: 3rem;
    }
    
    .team-name {
        font-size: 0.95rem;
    }
    
    .countdown-grid {
        gap: var(--space-2);
    }
    
    .countdown-unit {
        min-width: 70px;
        padding: var(--space-4) var(--space-3);
    }
    
    .countdown-value {
        font-size: 2.4rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .timeline-time {
        align-self: flex-start;
    }
}

@media (max-width: 1024px) {
    .match-layout, .lineup-layout {
        grid-template-columns: 1fr;
    }
    .stats-column {
        position: static; /* Remove o sticky no mobile */
    }
}