/* ============================================
   ZAiLUM · England World Cup 2026 Hub
   Design System — Group L Corrected + Flags
   ============================================ */

:root {
  /* Core brand */
  --eng-red: #C8102E;
  --eng-red-dark: #9A0B22;
  --eng-red-glow: rgba(200,16,46,0.35);
  --zailum-cyan: #54F3FF;
  --zailum-cyan-glow: rgba(84,243,255,0.25);

  /* Surfaces */
  --bg-base: #05070B;
  --bg-card: #0D1117;
  --bg-card-2: #131920;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(200,16,46,0.4);

  /* Text */
  --text-primary: #F0F2F5;
  --text-secondary: #8B949E;
  --text-muted: #484F58;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --ticker-h: 36px;
  --nav-h: 56px;
  --tab-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', 'Rajdhani', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: calc(var(--ticker-h) + var(--nav-h));
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 8px);
}

/* ─── Ticker ─── */
.ticker-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: var(--eng-red);
  z-index: 100;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

.ticker-inner span {
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  height: var(--ticker-h);
}

.ticker-inner span:not(:last-child)::after {
  content: '·';
  margin-left: 32px;
  opacity: 0.5;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: var(--ticker-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5,7,11,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 99;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-flag { font-size: 22px; }

.nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.nav-accent { color: var(--eng-red); }

.install-btn-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--eng-red);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.install-btn-nav:hover { opacity: 0.85; }

/* Desktop nav - hidden by default (mobile first) */
.desktop-nav {
  display: none;
}

/* Desktop animated pill nav (21st.dev style) */
.desktop-nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #000;
  border-radius: 9999px;
  padding: 4px;
  gap: 0;
  list-style: none;
}

.desktop-nav-pill li {
  list-style: none;
}

.nav-cursor {
  position: absolute;
  left: 0;
  height: 28px;
  width: 0;
  border-radius: 9999px;
  background: #000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.nav-cursor.active {
  opacity: 1;
}

.desktop-nav-link {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  transition: color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.desktop-nav-link:hover {
  color: #fff;
  mix-blend-mode: difference;
}

.desktop-nav-link.active {
  color: #fff;
  mix-blend-mode: difference;
}

@media (min-width: 768px) {
  .nav-cursor {
    height: 40px;
  }
  
  .desktop-nav-link {
    padding: 10px 20px;
    font-size: 14px;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}

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

/* ─── Drawer ─── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.active { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--ticker-h) + var(--nav-h) + 16px);
  padding-bottom: 24px;
}

.drawer.open { transform: translateX(0); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--r-md);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.zailum-link { color: var(--zailum-cyan) !important; }

.install-btn-drawer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--eng-red);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 12px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin: 16px;
  transition: opacity 0.2s;
}

/* ─── Bottom Tab Bar ─── */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tab-h);
  background: rgba(5,7,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 98;
  padding-bottom: var(--safe-bottom);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.tab.active { color: var(--eng-red); }

.tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%; right: 25%;
  height: 2px;
  background: var(--eng-red);
  border-radius: 0 0 3px 3px;
}

.tab-flag { font-size: 18px; line-height: 1; }

/* ─── Main Content ─── */
.main-content {
  padding: 0 0 16px;
  min-height: 80vh;
}

/* ─── England Hero Card ─── */
.england-hero {
  background: linear-gradient(160deg, #1A0810 0%, #0D0508 50%, #05070B 100%);
  border-bottom: 1px solid rgba(200,16,46,0.3);
  padding: 20px 16px 18px;
  position: relative;
  overflow: hidden;
}

.england-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FF6B7A;
  margin-bottom: 16px;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  display: none;
}

.live-dot.active {
  display: block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

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

.hero-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hero-team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.1;
}

/* ─── Flag Circles ─── */
.flag-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.flag-lg {
  width: 64px;
  height: 64px;
  font-size: 40px;
  line-height: 1;
}

.flag-md {
  width: 36px;
  height: 36px;
  font-size: 24px;
}

.flag-sm {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

/* Native flag images via flagcdn */
.flag-img-lg {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  object-fit: cover;
}

.flag-img-md {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.flag-img-sm {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.hero-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.hero-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.hero-meta {
  text-align: center;
}

.hero-meta-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.hero-meta-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--eng-red);
  letter-spacing: 0.04em;
}

.hero-venue {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 8px;
}

.hero-group-badge {
  display: inline-block;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.25);
  border-radius: var(--r-full);
  padding: 3px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FF6B7A;
  text-align: center;
  width: 100%;
}

/* ─── Quick Stats ─── */
.quick-stats {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.quick-stats::-webkit-scrollbar { display: none; }

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.england-accent { color: var(--eng-red); }

/* ─── Sections ─── */
.section {
  padding: 20px 16px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.section-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--eng-red);
  background: rgba(200,16,46,0.1);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

.see-all-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--eng-red);
  text-decoration: none;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 10px;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ─── Match Cards (Horizontal Scroll) ─── */
.matches-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  padding-right: 16px;
}

.matches-scroll::-webkit-scrollbar { display: none; }

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  min-width: 200px;
  max-width: 220px;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-smooth);
  cursor: pointer;
  position: relative;
}

.match-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.match-card.england {
  border-color: rgba(200,16,46,0.3);
  background: linear-gradient(145deg, rgba(200,16,46,0.06), var(--bg-card));
}

.match-card.live {
  border-color: #4CAF50;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { border-color: #4CAF50; box-shadow: 0 0 0 0 rgba(76,175,80,0); }
  50% { border-color: #81C784; box-shadow: 0 0 12px rgba(76,175,80,0.3); }
}

.match-card-status {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
  display: inline-block;
}

.status-live { background: rgba(76,175,80,0.2); color: #81C784; }
.status-upcoming { background: rgba(200,16,46,0.15); color: #FF6B7A; }
.status-ft { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

.match-card-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-card-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-card-team-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.match-card-team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.match-card-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

.match-card-vs {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0;
}

.match-card-meta {
  margin-top: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Group L Table ─── */
.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.standings-loading {
  padding: 20px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-muted);
  font-size: 14px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table thead th {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.standings-table thead th:first-child { text-align: left; padding-left: 14px; }

.standings-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.standings-table tbody tr:last-child { border-bottom: none; }
.standings-table tbody tr:hover { background: var(--bg-glass); }

.standings-table tbody tr.england-row {
  background: rgba(200,16,46,0.07);
}

.standings-table tbody tr.england-row:hover {
  background: rgba(200,16,46,0.12);
}

.standings-table tbody td {
  padding: 10px 10px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.standings-table tbody td:first-child {
  text-align: left;
  padding-left: 14px;
}

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

.standings-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.standings-pos.qualify { color: #4CAF50; }
.standings-pos.playoff { color: #FF9800; }

.standings-pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  color: var(--eng-red);
}

.standings-header {
  padding: 12px 14px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* ─── Countdown ─── */
.countdown-section {
  margin: 20px 16px 0;
  background: linear-gradient(135deg, var(--bg-card), rgba(200,16,46,0.05));
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--r-xl);
  padding: 20px;
  text-align: center;
}

.countdown-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.countdown-lbl {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.countdown-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--eng-red);
  margin-top: -8px;
  opacity: 0.7;
}

/* ─── Fixture List ─── */
.fixture-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.fixture-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.15s;
}

.fixture-row:last-child { border-bottom: none; }
.fixture-row:hover { background: var(--bg-glass); }

.fixture-date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  grid-row: 1 / 3;
}

.fixture-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  color: var(--eng-red);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.fixture-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.fixture-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.fixture-team.right {
  flex-direction: row-reverse;
  text-align: right;
}

.fixture-team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.fixture-vs-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.fixture-vs-badge.upcoming { background: rgba(200,16,46,0.12); color: var(--eng-red); }
.fixture-vs-badge.live { background: rgba(76,175,80,0.15); color: #81C784; }
.fixture-vs-badge.ft { background: var(--bg-glass); color: var(--text-muted); }

.fixture-venue-mini {
  grid-column: 2;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── News Feed ─── */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.2s;
}

.news-card:hover {
  border-color: rgba(200,16,46,0.3);
  background: var(--bg-glass-hover);
}

.news-card-content { flex: 1; }

.news-card-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--eng-red);
  margin-bottom: 4px;
}

.news-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── ZAiLUM Strip ─── */
.zailum-strip {
  margin: 20px 16px 0;
  background: linear-gradient(135deg, #050E10 0%, #071316 50%, #0A1A1E 100%);
  border: 1px solid rgba(84,243,255,0.2);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.zailum-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(84,243,255,0.04), transparent);
  animation: strip-shimmer 3s ease-in-out infinite;
}

@keyframes strip-shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.zailum-strip:hover {
  border-color: rgba(84,243,255,0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(84,243,255,0.08);
}

.zailum-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  flex-shrink: 0;
}

.zailum-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--zailum-cyan);
  opacity: 0.7;
  animation: wave-bar 1.2s ease-in-out infinite;
}

.zailum-waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.zailum-waveform span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.zailum-waveform span:nth-child(3) { height: 26px; animation-delay: 0.2s; }
.zailum-waveform span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.zailum-waveform span:nth-child(5) { height: 32px; animation-delay: 0.4s; }
.zailum-waveform span:nth-child(6) { height: 24px; animation-delay: 0.5s; }
.zailum-waveform span:nth-child(7) { height: 14px; animation-delay: 0.4s; }
.zailum-waveform span:nth-child(8) { height: 20px; animation-delay: 0.3s; }
.zailum-waveform span:nth-child(9) { height: 12px; animation-delay: 0.2s; }
.zailum-waveform span:nth-child(10) { height: 6px; animation-delay: 0.1s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.zailum-strip-content { flex: 1; }

.zailum-strip-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--zailum-cyan);
  line-height: 1;
}

.zailum-strip-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(84,243,255,0.7);
  margin-top: 3px;
}

.zailum-strip-arrow {
  font-size: 20px;
  color: var(--zailum-cyan);
  opacity: 0.6;
}

/* ─── Loading Shimmer ─── */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-2) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}

.match-card-shimmer {
  height: 130px;
  min-width: 200px;
  flex-shrink: 0;
}

.news-shimmer {
  height: 72px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Install UI ─── */
.install-fab {
  position: fixed;
  bottom: calc(var(--tab-h) + 16px + var(--safe-bottom));
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eng-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 20px var(--eng-red-glow);
  animation: fab-pulse 3s ease-in-out infinite;
  transition: transform 0.2s var(--ease-spring);
}

.install-fab:hover { transform: scale(1.1); }

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--eng-red-glow); }
  50% { box-shadow: 0 6px 30px rgba(200,16,46,0.55); }
}

.install-banner {
  position: fixed;
  bottom: calc(var(--tab-h) + var(--safe-bottom));
  left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 89;
}

.install-banner-text {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.install-banner-btn {
  background: var(--eng-red);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  padding: 8px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.install-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-icon { font-size: 32px; }

.modal-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  flex: 1;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eng-red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 3px;
}

.step-icon { font-size: 16px; }

.modal-note {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Standalone display ─── */
@media (display-mode: standalone) {
  .install-fab,
  .install-btn-nav,
  .install-btn-drawer,
  .install-banner { display: none !important; }
}

/* ─── Responsive: Desktop ─── */
@media (min-width: 768px) {
  .tab-bar { display: none; }
  .hamburger { display: none; }
  
  body {
    padding-bottom: 16px;
  }

  .nav {
    padding: 0 24px;
    gap: 24px;
    justify-content: flex-start;
  }

  .nav-brand {
    margin-right: auto;
  }

  /* Desktop horizontal nav */
  .desktop-nav {
    display: flex !important;
    align-items: center;
  }

  .main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 24px;
  }

  .england-hero {
    border-radius: var(--r-xl);
    margin: 20px 0 0;
    border: 1px solid rgba(200,16,46,0.25);
  }

  .flag-lg { width: 80px; height: 80px; font-size: 50px; }

  .flag-img-lg { width: 80px; height: 60px; }

  .hero-score { font-size: 48px; }

  .hero-team-name { font-size: 22px; }

  .countdown-num { font-size: 56px; }
}

/* ─── Utility ─── */
[hidden] { display: none !important; }
