/* ==============================================================================
   RESCUE CUP - OFFICIAL SERIE A THEME STYLESHEET
   Authentic Lega Serie A Visual Identity:
   Luminous Ice / Celeste Canvas, Deep Navy Typography & Electric Azure Accents
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:ital,wght@0,600;0,700;0,800;0,900;1,700&display=swap');

:root {
  /* Serie A Light Canvas Palette */
  --bg-primary: #eef3f8;
  --bg-secondary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-card: #ffffff;
  
  /* Serie A Official Electric Celeste & Royal Blues */
  --accent-cyan: #008cfc;
  --accent-celeste: #0096ff;
  --accent-celeste-light: #e0f2fe;
  --accent-cyan-glow: rgba(0, 140, 252, 0.3);
  --seriea-navy: #0a1b38;
  --seriea-deep-blue: #0032a0;
  
  /* Florentine Rescue Highlights */
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-red: #e11d48;
  --florence-lily: #e11d48;
  
  /* High-Contrast Sports Typography */
  --text-main: #0c1c38;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-subtle: #e2e8f0;
  --border-active: #008cfc;
  
  /* Layout & Elevations */
  --max-w: 1320px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 6px 20px -4px rgba(10, 30, 70, 0.08), 0 2px 6px -1px rgba(10, 30, 70, 0.04);
  --shadow-hover: 0 16px 32px -6px rgba(0, 140, 252, 0.16), 0 4px 12px -2px rgba(10, 30, 70, 0.06);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 140, 252, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 50, 160, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(0, 140, 252, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-title {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--seriea-navy);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==============================================================================
   TOP TICKER / MATCHDAY RIBBON (Serie A Signature Header Strip)
   ============================================================================== */
.top-ticker {
  background: #08152e;
  border-bottom: 2px solid rgba(0, 140, 252, 0.3);
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ticker-track {
  display: flex;
  gap: 12px;
  min-width: max-content;
  padding: 0 20px;
  align-items: center;
}

.ticker-badge {
  background: linear-gradient(135deg, #008cfc 0%, #004bbb 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 140, 252, 0.4);
}

.ticker-match-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  font-size: 13px;
  cursor: pointer;
  color: #fff;
}

.ticker-match-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.chip-status {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
}
.chip-status.live {
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chip-status.live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f87171;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.chip-teams {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.chip-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.chip-score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==============================================================================
   MAIN NAVBAR (Serie A Royal Navy + Celeste Highlight)
   ============================================================================== */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(10, 30, 70, 0.04);
  position: sticky;
  top: 48px;
  z-index: 90;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 3px 8px rgba(0, 140, 252, 0.25));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--seriea-navy);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--seriea-navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin {
  background: linear-gradient(135deg, #008cfc 0%, #004bbb 100%);
  border: none;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 140, 252, 0.3);
  transition: var(--transition);
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 140, 252, 0.45);
}

/* ==============================================================================
   HERO BROADCAST BANNER (Serie A Royal Navy Card with Electric Celeste Glow)
   ============================================================================== */
.hero-broadcast {
  padding: 36px 0 20px;
}

.hero-card {
  background: linear-gradient(135deg, #07152f 0%, #002875 60%, #0066cc 100%);
  border-radius: var(--radius-lg);
  padding: 34px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 40, 120, 0.35);
  color: #ffffff;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 100%;
  background: radial-gradient(circle at right top, rgba(0, 190, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

.hero-edition-info {
  color: #bae6fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-match-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin: 10px 0 25px;
}

.hero-team {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.hero-team-logo {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.hero-team:hover .hero-team-logo {
  transform: scale(1.08);
}

.hero-team-name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-team-meta {
  font-size: 13px;
  color: #7dd3fc;
  font-weight: 600;
  margin-top: 4px;
}

.hero-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 30px;
  min-width: 180px;
  backdrop-filter: blur(6px);
}

.hero-score-numbers {
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 6px;
  line-height: 1;
}

.hero-score-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-top: 6px;
}

.hero-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: #e0f2fe;
}

.hero-venue-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: #ffffff;
  color: var(--seriea-navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.btn-primary:hover {
  background: #f0f9ff;
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

/* ==============================================================================
   SECTION HEADINGS & MATCHDAY NAV
   ============================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar {
  width: 5px;
  height: 28px;
  background: var(--accent-cyan);
  border-radius: 3px;
}

.section-title {
  font-size: 24px;
  color: var(--seriea-navy);
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Matchday Filter Ribbon (Giornate) */
.matchday-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}

.matchday-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.matchday-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.matchday-btn.active {
  background: linear-gradient(135deg, #008cfc 0%, #004bbb 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 140, 252, 0.35);
}

/* ==============================================================================
   MATCH CARDS GRID (Clean Serie A White Cards with Celeste Accents)
   ============================================================================== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.match-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-group-tag {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 9px;
  border-radius: 4px;
}

.status-badge.tbd {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #b45309;
}

.status-badge.confirmed {
  background: #e0f2fe;
  border: 1px solid #008cfc;
  color: #0369a1;
}

.status-badge.finished {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.status-badge.live {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  animation: pulse 1.5s infinite;
}

.card-teams-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.team-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-badge-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--seriea-navy);
}

.team-score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-cyan);
  min-width: 28px;
  text-align: right;
}

.team-score.dim {
  color: #94a3b8;
  font-size: 15px;
}

.card-venue-row {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.btn-card-action {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--seriea-navy);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-card-action:hover {
  background: #e0f2fe;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-card-action.highlight {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.btn-card-action.highlight:hover {
  background: #ffe4e6;
  border-color: #e11d48;
}

/* ==============================================================================
   STANDINGS TABLE (Serie A Format - Crisp Clean Table)
   ============================================================================== */
.standings-section {
  padding: 30px 0 60px;
}

.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-filter-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-btn {
  padding: 15px 26px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--seriea-navy);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: #ffffff;
}

.table-responsive {
  overflow-x: auto;
}

.seriea-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.seriea-table th {
  background: #f1f5f9;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-subtle);
}

.seriea-table td {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-main);
}

.seriea-table tbody tr:hover {
  background: #f8fafc;
}

.pos-col {
  width: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}

.seriea-table tr:nth-child(1) .pos-col,
.seriea-table tr:nth-child(2) .pos-col {
  color: var(--accent-cyan);
  position: relative;
  font-weight: 900;
}

.seriea-table tr:nth-child(1) td:first-child::before,
.seriea-table tr:nth-child(2) td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--accent-cyan);
  border-radius: 0 3px 3px 0;
}

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

.table-team-badge {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.table-team-name {
  font-weight: 800;
  color: var(--seriea-navy);
}

.table-team-type {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-left: 6px;
  font-weight: 700;
}

.num-col {
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.points-col {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--seriea-navy);
  text-align: center;
  background: rgba(0, 140, 252, 0.05);
}

.form-pill-wrap {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.form-pill.w { background: var(--accent-emerald); }
.form-pill.d { background: var(--accent-amber); }
.form-pill.l { background: var(--accent-red); }

/* ==============================================================================
   TEAMS DIRECTORY (16 SQUADRE VETRINA)
   ============================================================================== */
.teams-section {
  padding: 30px 0 60px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.team-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.team-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-hover);
}

.team-color-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  display: flex;
}

.team-color-part {
  flex: 1;
  height: 100%;
}

.showcase-badge {
  width: 76px;
  height: 76px;
  margin: 12px 0 16px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.team-showcase-card:hover .showcase-badge {
  transform: scale(1.1);
}

.showcase-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--seriea-navy);
  margin-bottom: 4px;
}

.showcase-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.showcase-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-venue {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-weight: 600;
}

/* ==============================================================================
   HIGHLIGHTS & STATS ROW
   ============================================================================== */
.media-stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.video-spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-thumb-wrap:hover .video-thumb-img {
  transform: scale(1.04);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(225, 29, 72, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.5);
  transition: var(--transition);
}

.video-thumb-wrap:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #e11d48;
}

.video-info-content {
  padding: 24px;
}

.video-badge {
  background: #ffe4e6;
  color: #e11d48;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.video-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--seriea-navy);
}

.video-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Top Scorers Card */
.scorers-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.scorer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.scorer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
}

.scorer-rank {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--accent-cyan);
  width: 24px;
}

.scorer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.scorer-team-badge {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.scorer-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--seriea-navy);
}

.scorer-role {
  font-size: 11px;
  color: var(--text-dim);
}

.scorer-goals {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--seriea-navy);
}

/* ==============================================================================
   MODAL DIALOGS (Match Center & YouTube Player)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 55, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 30, 80, 0.4);
  position: relative;
  animation: modalEnter 0.22s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.modal-title {
  font-size: 17px;
  color: var(--seriea-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: #e2e8f0;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.yt-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: #000;
}

.yt-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Match Center Timeline & Events */
.timeline-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.event-min {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-cyan);
  min-width: 34px;
}

.event-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.main-footer {
  background: #07152f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px 0 25px;
  color: #ffffff;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 480px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-match-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .hero-team {
    justify-content: center;
  }
  .hero-team.away {
    flex-direction: row;
    text-align: center;
  }
  .media-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
