/* ============================================
   AD KILL SWITCH
   When html.ads-disabled is set, hide all ads
   ============================================ */
html.ads-disabled .banner-ad,
html.ads-disabled .ad-container,
html.ads-disabled .ad-placeholder,
html.ads-disabled [class*="adsbygoogle"] {
  display: none !important;
}

/* ============================================
   DEV TOOLS (localhost only)
   Data source switcher for testing mock data
   ============================================ */
.dev-tools {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  margin: 0 12px 16px 12px;
  padding: 10px;
}

.dev-tools-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dev-tools-badge {
  background: #f59e0b;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dev-tools-title {
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}

.dev-tools-dropdown {
  position: relative;
}

.dev-tools-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #d97706;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dev-tools-btn:hover {
  background: #fffbeb;
  border-color: #b45309;
}

.dev-tools-current {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-tools-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.dev-tools-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d97706;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
}

.dev-tools-menu.open {
  display: block;
}

.dev-tools-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  color: #78350f;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease;
}

.dev-tools-option:hover {
  background: #fef3c7;
}

.dev-tools-option.active {
  background: #fde68a;
  font-weight: 600;
}

.dev-tools-option:first-child {
  border-radius: 5px 5px 0 0;
}

.dev-tools-option:last-child {
  border-radius: 0 0 5px 5px;
}

/* Mobile menu dev tools */
.mobile-menu .dev-tools {
  margin: 12px;
}

/* ============================================
   CSS VARIABLES (from theme.json)
   ============================================ */
:root {
  --primary: #0C1A3D;
  --primary-light: #1E3A5F;
  --primary-container: #E8EEF8;
  --on-primary: #FFFFFF;
  --on-primary-container: #0C1A3D;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --surface-variant: #E2E8F0;
  --on-surface: #334155;
  --on-surface-variant: #64748B;
  --outline: #CBD5E1;
  --outline-variant: #E2E8F0;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-container: #DBEAFE;
  --success: #10B981;
  --error: #EF4444;
  --draw: #64748B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.2s ease;
  --sidebar-width: 260px;
  --header-height: 64px;
  --content-max-width: 1400px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   UNIFIED PAGE LAYOUT (Single DOM, Responsive)
   ============================================ */

/* Legacy desktop-layout support (deprecated, will be removed) */
.desktop-layout {
  display: flex;
  min-height: 100vh;
}

.mobile-layout {
  display: none;
}

/* New unified layout - single DOM structure */
.page-layout {
  display: flex;
  min-height: 100vh;
}

/* Mobile-only header (hidden on desktop) */
.mobile-header {
  display: none;
}

/* Mobile app banner (hidden on desktop in unified layout) */
.page-layout .mobile-app-banner {
  display: none;
}

/* Mobile menu elements (hidden on desktop) */
.page-layout .mobile-menu-overlay,
.page-layout .mobile-menu {
  display: none;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-light);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  padding: 0 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-item.active .nav-icon {
  color: var(--accent-light);
}

.nav-icon {
  width: 22px;
  height: 22px;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* SVG nav icons */
svg.nav-icon {
  stroke: currentColor;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.download-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: white;
  color: var(--primary);
  text-align: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.download-cta:hover {
  background: var(--primary-container);
  transform: translateY(-1px);
}

.download-cta-icon {
  font-size: 20px;
}

.download-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-cta-label {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-cta-title {
  font-size: 15px;
  font-weight: 600;
}

/* Share Button */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.share-icon {
  width: 18px;
  height: 18px;
}

/* Share Toast Notification */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.content-area {
  padding: 28px 32px;
  max-width: var(--content-max-width);
}

/* ============================================
   BREADCRUMB
   ============================================ */
/* Breadcrumb Row (with share button) */
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.breadcrumb-row .breadcrumb {
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Inline Share Button (breadcrumb area) */
.share-btn-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.share-btn-inline:hover {
  background: var(--primary-light);
}

.share-btn-inline .share-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.card-body {
  padding: 16px 20px;
}

.card-body.no-padding {
  padding: 0;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* ============================================
   SECTION
   ============================================ */
.section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  padding: 24px;
  margin-bottom: 20px;
}

.section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section p {
  color: var(--on-surface);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.section p:last-child {
  margin-bottom: 0;
}

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

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.filter-btn:hover {
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================
   STANDINGS TABLE
   ============================================ */
.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 10px 12px;
  text-align: center;
  background: var(--surface-variant);
}

.standings-table th:first-child,
.standings-table th:nth-child(2) {
  text-align: left;
}

.standings-table td {
  padding: 12px;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 14px;
  text-align: center;
}

.standings-table td:first-child,
.standings-table td:nth-child(2) {
  text-align: left;
}

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

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

.standings-flag {
  font-size: 22px;
  text-decoration: none;
}

a.standings-flag {
  text-decoration: none;
}

.standings-name {
  font-weight: 500;
}

.standings-name a {
  color: var(--on-surface);
  text-decoration: none;
}

.standings-name a:hover {
  color: var(--primary);
}

.standings-pos {
  font-weight: 700;
  color: var(--primary);
  width: 24px;
}

.standings-pts {
  font-weight: 700;
  color: var(--primary);
}

.qualify {
  background: rgba(16, 185, 129, 0.08);
}

/* Group Table - matches app columns: P W D L + - ± Pts */
.group-table {
  width: 100%;
  border-collapse: collapse;
}

.group-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 10px 6px;
  text-align: center;
  background: var(--surface-variant);
}

.group-table th:first-child {
  text-align: left;
  padding-left: 12px;
}

.group-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 13px;
  text-align: center;
}

.group-table td:first-child {
  text-align: left;
  padding-left: 12px;
}

/* Stat columns - compact width */
.group-table .stat-p,
.group-table .stat-w,
.group-table .stat-d,
.group-table .stat-l,
.group-table .stat-gf,
.group-table .stat-ga,
.group-table .stat-gd {
  width: 26px;
  min-width: 26px;
}

.group-table .stat-pts {
  width: 30px;
  min-width: 30px;
  font-weight: 600;
}

.group-table .team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-table .team-row a {
  color: var(--on-surface);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.group-table .team-row a:hover {
  color: var(--primary);
}

.highlight {
  background: rgba(16, 185, 129, 0.06);
}

/* ============================================
   MATCH ITEM (Unified horizontal match row)
   ============================================ */
.match-item {
  display: flex;
  align-items: center;
  position: relative;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.match-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.match-item .date-col {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-item .date {
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
}

.match-item .time {
  font-size: 13px;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.match-item .your-time {
  font-size: 12px;
  color: var(--on-surface-variant);
  opacity: 0.7;
  white-space: nowrap;
}

.match-item .matchup {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.match-item .matchup .flag {
  font-size: 24px;
}

.match-item .matchup .flag.clickable-flag {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.match-item .matchup .flag.clickable-flag:hover {
  transform: scale(1.15);
}

.match-item .matchup .team-name {
  font-weight: 500;
}

.match-item .matchup .team-name.highlight {
  font-weight: 700;
  color: var(--primary);
}

.match-item .matchup .vs {
  color: var(--outline);
  font-size: 14px;
  padding: 0 4px;
}

.match-item .meta {
  position: absolute;
  right: 16px;
  text-align: right;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.match-item .meta .stage {
  font-weight: 600;
  color: var(--primary);
}

.match-item .matchup .score {
  font-weight: 700;
  font-size: 16px;
  color: var(--on-surface);
  padding: 0 8px;
  min-width: 60px;
  text-align: center;
}

.match-item .matchup .score.live {
  color: #dc2626;
}

.match-item .live-badge {
  background: #dc2626;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-item.finished {
  opacity: 0.85;
}

.match-item.live {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.03);
}

/* Previous matches toggle */
.previous-matches-container {
  margin-bottom: 24px;
}

.previous-matches-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: var(--transition);
}

.previous-matches-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.previous-matches-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.previous-matches-content {
  margin-top: 16px;
  margin-bottom: 32px;
}

/* Load More Button */
.load-more-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.load-more-btn:hover {
  background: var(--primary-dark, #0a1530);
}

.load-more-btn:active {
  transform: scale(0.98);
}

/* ============================================
   MATCH CARD (Vertical card style)
   ============================================ */
.match-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  margin-bottom: 20px;
}

.match-header {
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-header-left {
  font-size: 14px;
  font-weight: 500;
}

.match-badge {
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-content {
  padding: 32px 24px;
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.team {
  text-align: center;
  flex: 1;
}

.team-flag {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
}

.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.team-code {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

.vs {
  font-size: 24px;
  font-weight: 700;
  color: var(--outline);
  padding: 0 24px;
}

.match-details {
  background: var(--surface-variant);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--outline-variant);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface);
}

/* ============================================
   POTENTIAL OPPONENTS CTA (Team Pages)
   ============================================ */
.potential-opponents-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 16px 0 24px 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.potential-opponents-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.potential-opponents-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.potential-opponents-icon {
  width: 32px;
  height: 32px;
  color: white;
  flex-shrink: 0;
}

.potential-opponents-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.potential-opponents-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.potential-opponents-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.potential-opponents-arrow {
  font-size: 24px;
  color: white;
  opacity: 0.8;
  margin-left: 12px;
}

@media (max-width: 600px) {
  .potential-opponents-cta {
    padding: 14px 16px;
  }

  .potential-opponents-icon {
    width: 28px;
    height: 28px;
  }

  .potential-opponents-title {
    font-size: 14px;
  }

  .potential-opponents-desc {
    font-size: 12px;
  }
}

/* ============================================
   APP PROMO / CTA SECTIONS
   ============================================ */
.app-promo,
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.app-promo-content {
  flex: 1;
}

.app-promo-title,
.cta-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-promo-desc,
.cta-section p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
  line-height: 1.5;
}

.app-promo-buttons,
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.store-btn:hover,
.cta-button:hover {
  background: rgba(255,255,255,0.25);
}

.store-icon {
  width: 20px;
  height: 20px;
}

.store-btn.primary,
.cta-button.primary {
  background: white;
  color: var(--primary);
}

.store-btn.primary:hover,
.cta-button.primary:hover {
  background: var(--primary-container);
}

.app-promo-image {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-promo-image svg {
  width: 36px;
  height: 36px;
  stroke: white;
  opacity: 0.9;
}

.app-promo-image img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.app-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}

/* Secondary CTA */
.cta-section.cta-secondary {
  background: var(--primary-container);
}

.cta-section.cta-secondary h3 {
  color: var(--primary);
}

.cta-section.cta-secondary p {
  color: var(--on-surface-variant);
  opacity: 1;
}

.cta-secondary .cta-button.primary {
  background: var(--primary);
  color: white;
}

/* Mobile CTA section - stack vertically and compact */
@media (max-width: 1023px) {
  .cta-section {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .cta-section.cta-secondary {
    margin-bottom: 0;
  }

  .cta-section h3 {
    font-size: 15px;
    margin-bottom: 0;
  }

  .cta-section p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .cta-section .app-promo-content {
    width: 100%;
  }

  .cta-section .app-promo-buttons,
  .cta-section .cta-buttons {
    justify-content: center;
  }

  .app-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 11px;
  }

  /* Remove space between secondary CTA and footer */
  .cta-section.cta-secondary + .site-footer,
  .cta-section:last-child {
    margin-bottom: 0;
  }
}

/* ============================================
   HEAD TO HEAD
   ============================================ */
.h2h-record {
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 20px 0;
  background: var(--surface-variant);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.h2h-stat {
  flex: 1;
}

.h2h-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.h2h-label {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* ============================================
   TEAM HERO
   ============================================ */
.team-hero {
  color: var(--on-surface);
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.team-hero .flag,
.team-hero-flag {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 16px;
}

.team-hero h1,
.team-hero-name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.team-hero .subtitle,
.team-hero-subtitle {
  font-size: 16px;
  color: var(--on-surface-variant);
}

/* Team Stats Grid */
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.team-stat {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.team-stat .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.team-stat .label {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

.team-stat .trophies {
  font-size: 24px;
}

/* ============================================
   INFO CARD
   ============================================ */
.info-card {
  background: var(--surface-variant);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-surface);
}

/* ============================================
   STAGE & DATE HEADERS
   ============================================ */
.stage-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.stage-header:first-child {
  margin-top: 0;
}

.date-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

.matchday-header {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   RELATED LINKS
   ============================================ */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-link {
  background: var(--surface-variant);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--outline-variant);
}

.related-link:hover {
  background: var(--primary-container);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   BANNER AD
   ============================================ */
.banner-ad {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 2px dashed var(--outline);
  border-radius: var(--radius-md);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  font-size: 13px;
  margin-bottom: 24px;
}

.ad-placeholder {
  text-align: center;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* ============================================
   GROUP NAVIGATION (A-L links)
   ============================================ */
.group-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.group-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--on-surface);
  text-decoration: none;
  transition: var(--transition);
}

.group-nav a:hover {
  background: var(--primary-container);
  border-color: var(--primary);
  color: var(--primary);
}

.group-nav a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================
   STAGE NAVIGATION
   ============================================ */
.stage-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 40px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  color: white;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
}

/* ============================================
   LEGACY HEADER (for standalone pages without sidebar)
   ============================================ */
.site-header {
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Mobile App Upsell Banner */
.mobile-app-banner {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-app-banner:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.mobile-app-banner-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.mobile-app-banner-arrow {
  font-size: 20px;
  font-weight: 300;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Desktop App Upsell Banner */
.desktop-app-banner {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.desktop-app-banner:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.desktop-app-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-app-banner-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.desktop-app-banner-text {
  font-size: 14px;
  font-weight: 500;
}

.desktop-app-banner-btn {
  background: white;
  color: #2563EB;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.desktop-app-banner-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: white;
}

/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cta {
  background: white;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--primary-container);
}

/* Mobile Menu Toggle */
.menu-toggle {
  background: transparent;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Dropdown Menu */
/* Mobile Slide-out Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--primary);
  padding: 24px;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  cursor: pointer;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:hover {
  color: white;
}

.mobile-menu-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-item.share {
  color: var(--accent-light);
}

/* Legacy container (for pages without sidebar) */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  /* Legacy layout support */
  .desktop-layout {
    display: none;
  }

  .mobile-layout {
    display: block;
    padding-bottom: 80px;
  }

  /* NEW: Unified layout responsive behavior */
  .page-layout {
    display: block;
    padding-bottom: 80px;
  }

  .page-layout .sidebar {
    display: none;
  }

  .page-layout .mobile-header {
    display: block;
  }

  .page-layout .mobile-app-banner {
    display: flex;
  }

  .page-layout .mobile-menu-overlay,
  .page-layout .mobile-menu {
    display: block;
  }

  .page-layout .main-content {
    margin-left: 0;
    flex: none;
    min-height: auto;
  }

  .page-layout .main-header {
    display: none;
  }

  .page-layout .desktop-app-banner {
    display: none;
  }

  .page-layout .breadcrumb-row {
    display: none;
  }

  .page-layout .content-area {
    padding: 20px 16px 0;
  }

  /* Ensure match tabs are visible on mobile */
  .page-layout .match-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Legacy support */
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .grid-2, .grid-3, .grid-4, .grid-6 {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-promo {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .app-promo-buttons {
    flex-direction: column;
    width: 100%;
  }

  .store-btn {
    justify-content: center;
  }

  .app-promo-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .page-title {
    font-size: 22px;
  }

  .team-flag {
    font-size: 56px;
  }

  .team-name {
    font-size: 16px;
  }

  .vs {
    font-size: 18px;
    padding: 0 12px;
  }

  .app-features {
    flex-direction: column;
    gap: 8px;
  }

  .h2h-record {
    flex-direction: column;
    gap: 16px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    justify-content: center;
  }

  .match-item {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    text-align: center;
  }

  .match-item .date-col {
    position: static;
    width: 100%;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px 8px;
    justify-content: center;
  }

  .match-item .matchup {
    justify-content: center;
    width: 100%;
  }

  .match-item .meta {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

  .team-stats {
    grid-template-columns: 1fr;
  }

  .team-hero .flag {
    font-size: 64px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hide hamburger menu - using tab bar instead */
  .menu-toggle {
    display: none;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: none;
  }
}

/* Tablet adjustments */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   LINEUP PAGE STYLES
   ============================================ */

/* Pitch Container */
.lineup-pitch-container {
  margin-bottom: 32px;
}

.pitch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pitch-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pitch-team-info.away {
  flex-direction: row-reverse;
}

.pitch-team-flag {
  font-size: 24px;
}

.pitch-team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
}

.pitch-formation {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: var(--surface-variant);
  padding: 4px 10px;
  border-radius: 20px;
}

/* The Pitch */
.lineup-pitch {
  background: linear-gradient(180deg,
    #2d5a27 0%,
    #3a7332 8%,
    #2d5a27 8%,
    #3a7332 16%,
    #2d5a27 16%,
    #3a7332 24%,
    #2d5a27 24%,
    #3a7332 32%,
    #2d5a27 32%,
    #3a7332 40%,
    #2d5a27 40%,
    #3a7332 48%,
    #2d5a27 48%,
    #3a7332 52%,
    #2d5a27 52%,
    #3a7332 60%,
    #2d5a27 60%,
    #3a7332 68%,
    #2d5a27 68%,
    #3a7332 76%,
    #2d5a27 76%,
    #3a7332 84%,
    #2d5a27 84%,
    #3a7332 92%,
    #2d5a27 92%,
    #3a7332 100%
  );
  border-radius: 0;
  padding: 0;
  position: relative;
  height: 600px;
  overflow: hidden;
  border-left: 1px solid var(--outline-variant);
  border-right: 1px solid var(--outline-variant);
}

/* Pitch markings */
.pitch-center-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255,255,255,0.5);
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: transparent;
}

.pitch-center-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

.pitch-penalty-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 18%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
}

.pitch-penalty-area.home {
  bottom: 0;
  border-bottom: none;
}

.pitch-penalty-area.away {
  top: 0;
  border-top: none;
}

.pitch-goal-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 6%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
}

.pitch-goal-area.home {
  bottom: 0;
  border-bottom: none;
}

.pitch-goal-area.away {
  top: 0;
  border-top: none;
}

/* Players on pitch */
.pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.pitch-player-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.3);
}

.pitch-player.home .pitch-player-number {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: white;
}

.pitch-player.away .pitch-player-number {
  background: linear-gradient(135deg, #002B7F 0%, #003d99 100%);
  color: #FFD100;
}

.pitch-player-name {
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coaches section */
.pitch-coaches {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.pitch-coach {
  font-size: 13px;
  color: var(--on-surface);
}

.pitch-coach .coach-label {
  color: var(--on-surface-variant);
}

/* Legacy pitch styles (keeping for backwards compatibility) */
.lineup-team {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.lineup-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lineup-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 70px;
}

.player-number {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
  box-shadow: var(--shadow-md);
}

.player-number.away {
  background: var(--primary);
  color: white;
}

.player-name {
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-position {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Lineup List (alternative to pitch view) */
.lineup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lineup-list-team {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lineup-list-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--outline-variant);
}

.lineup-list-flag {
  font-size: 28px;
}

.lineup-list-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.lineup-list-formation {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-left: auto;
}

.lineup-section {
  padding: 12px 0;
}

.lineup-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
  padding: 8px 20px;
  background: var(--surface-variant);
}

.lineup-player-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--outline-variant);
  gap: 12px;
}

.lineup-player-row:last-child {
  border-bottom: none;
}

.lineup-player-number {
  width: 28px;
  height: 28px;
  background: var(--primary-container);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  flex-shrink: 0;
}

.lineup-player-info {
  flex: 1;
  min-width: 0;
}

.lineup-player-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-player-detail {
  font-size: 12px;
  color: var(--on-surface-variant);
}

.lineup-player-captain {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Substitutes Section */
.lineup-subs {
  margin-top: 24px;
}

.lineup-subs-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.lineup-subs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.lineup-sub-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-variant);
  border-radius: var(--radius-md);
}

.lineup-sub-number {
  font-weight: 700;
  font-size: 13px;
  color: var(--on-surface-variant);
  width: 24px;
}

.lineup-sub-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
}

/* Match Officials */
.match-officials {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.match-officials h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.official-item {
  text-align: center;
}

.official-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.official-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

.official-country {
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* Lineup unavailable state */
.lineup-unavailable {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface-variant);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.lineup-unavailable-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.lineup-unavailable h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.lineup-unavailable p {
  font-size: 14px;
  color: var(--on-surface-variant);
  max-width: 400px;
  margin: 0 auto;
}

/* Dynamic lineup display (from dev-tools.js) */
.lineup-available {
  background: var(--surface-variant);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.lineup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.team-lineup {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
}

.team-lineup h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.formation-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.coach-info {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.starting-xi,
.substitutes {
  margin-top: 12px;
}

.starting-xi h4,
.substitutes h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lineup-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-variant);
}

.lineup-player:last-child {
  border-bottom: none;
}

.lineup-player.sub {
  opacity: 0.8;
}

.player-number {
  background: var(--surface-variant);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.player-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.player-position {
  font-size: 12px;
  color: var(--on-surface-variant);
  background: var(--surface-variant);
  padding: 2px 8px;
  border-radius: 4px;
}

.captain-badge {
  background: #FFD700;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.match-officials {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-variant);
}

.match-officials h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.officials-list {
  display: grid;
  gap: 8px;
}

.official {
  font-size: 13px;
  color: var(--on-surface-variant);
}

.official-role {
  color: var(--on-surface);
  font-weight: 500;
}

/* Live score display in match card */
.match-card .vs.completed,
.match-card .vs.live {
  min-width: 80px;
}

.match-card .vs .live-score {
  font-size: 24px;
  font-weight: 700;
}

.match-card .vs.live .live-score {
  color: #EF4444;
}

.match-card .vs.completed .live-score {
  color: var(--on-surface);
}

/* Live indicator dot */
.live-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #EF4444;
  border-radius: 50%;
  margin-right: 8px;
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

/* Live badge in page title */
.live-badge {
  color: #EF4444;
  font-weight: 700;
  animation: live-pulse 1.5s infinite;
}

/* Page tabs for match subpages */
.match-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 0;
}

.match-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.match-tab:hover {
  color: var(--primary);
}

.match-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Match Facts - Visually hidden but accessible for SEO/AI crawlers
   Uses screen-reader-only pattern: content remains in DOM for search engines
   but is invisible to sighted users */
.match-facts {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive lineup styles */
@media (max-width: 768px) {
  .lineup-list {
    grid-template-columns: 1fr;
  }

  .lineup-pitch {
    height: 500px;
  }

  .pitch-header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .pitch-team-info {
    width: 100%;
    justify-content: space-between;
  }

  .pitch-team-info.away {
    flex-direction: row;
  }

  .pitch-player-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .pitch-player-name {
    font-size: 9px;
    max-width: 60px;
  }

  .pitch-coaches {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .lineup-player {
    min-width: 60px;
  }

  .player-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .player-name {
    font-size: 10px;
    max-width: 60px;
  }

  .lineup-subs-grid {
    grid-template-columns: 1fr;
  }

  .officials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================
   FAQ SECTION (for SEO rich snippets)
   ============================================ */
.faq-section {
  background: var(--surface);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface-variant);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--outline-variant);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: var(--on-surface);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Accordion Styles (Group Pages) */
.faq-card .faq-item {
  border-bottom: 1px solid var(--outline-variant);
  background: transparent;
  border-radius: 0;
  padding: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.faq-card .faq-item:last-child {
  border-bottom: none;
}

.faq-card .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 0;
  gap: 12px;
}

.faq-card .faq-question:hover {
  color: var(--primary);
}

.faq-card .faq-question span {
  flex: 1;
}

.faq-card .faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--on-surface-variant);
}

.faq-card .faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-card .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.faq-card .faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 12px;
}

.faq-card .faq-answer p {
  padding: 0 0 16px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.faq-loading {
  color: var(--on-surface-variant);
  text-align: center;
  padding: 16px;
}

/* ============================================
   RESULT PAGE STYLES
   ============================================ */
.result-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  margin-bottom: 24px;
}

.result-card.upcoming {
  border-style: dashed;
}

.result-header {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
}

.result-badge.ft {
  background: #27ae60;
}

.result-badge.upcoming {
  background: rgba(255, 255, 255, 0.15);
}

.result-date {
  font-size: 13px;
  opacity: 0.9;
}

.result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 24px;
}

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

.result-team.home {
  justify-content: flex-end;
}

.result-team.away {
  justify-content: flex-start;
}

.result-flag {
  font-size: 32px;
}

.result-team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-surface);
}

.result-scoreline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  justify-content: center;
}

.result-scoreline .score {
  font-size: 42px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1;
}

.result-scoreline .score-separator {
  font-size: 28px;
  color: var(--on-surface-variant);
}

.result-scoreline.upcoming {
  flex-direction: column;
}

.result-scoreline .kickoff-time {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}

.result-penalties {
  text-align: center;
  padding: 12px 24px;
  background: var(--surface-variant);
  font-size: 14px;
  color: var(--on-surface-variant);
  border-top: 1px solid var(--outline-variant);
}

/* Mobile adjustments for result card */
@media (max-width: 600px) {
  .result-score {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .result-team {
    justify-content: center !important;
  }

  .result-team-name {
    font-size: 16px;
  }

  .result-flag {
    font-size: 28px;
  }

  .result-scoreline .score {
    font-size: 36px;
  }

  .result-scoreline .kickoff-time {
    font-size: 20px;
  }
}

/* ============================================
   APP STORE MODAL
   ============================================ */
.app-store-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-store-modal.open {
  opacity: 1;
  visibility: visible;
}

.app-store-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.app-store-modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.app-store-modal.open .app-store-modal-content {
  transform: scale(1) translateY(0);
}

.app-store-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.app-store-modal-close:hover {
  background: var(--surface-variant);
  color: var(--on-surface);
}

.app-store-modal-close svg {
  width: 20px;
  height: 20px;
}

.app-store-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-store-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.app-store-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0 0 8px 0;
}

.app-store-modal-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.4;
}

.app-store-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-store-modal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.app-store-modal-btn.ios {
  background: #000;
  color: white;
}

.app-store-modal-btn.ios:hover {
  background: #222;
  transform: translateY(-1px);
}

.app-store-modal-btn.android {
  background: var(--surface-variant);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
}

.app-store-modal-btn.android.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.app-store-modal-btn .store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.app-store-modal-btn .store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-store-modal-btn .store-btn-label {
  font-size: 11px;
  opacity: 0.8;
}

.app-store-modal-btn .store-btn-name {
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .app-store-modal-content {
    padding: 24px;
    margin: 16px;
  }

  .app-store-modal-icon {
    font-size: 40px;
  }

  .app-store-modal-title {
    font-size: 20px;
  }

  .app-store-modal-btn {
    padding: 12px 16px;
  }

  .app-store-modal-btn .store-icon {
    width: 24px;
    height: 24px;
  }

  .app-store-modal-btn .store-btn-name {
    font-size: 15px;
  }
}

/* ============================================
   SEO LANDING PAGES
   Standalone informational pages for search traffic
   ============================================ */

/* SEO Page Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.header .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header .logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.header .logo-text span {
  color: var(--accent);
}

.header .header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.header .header-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* SEO Page Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 40px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.footer-logo-text span {
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 480px) {
  .header .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .header .logo-text {
    font-size: 16px;
  }

  .header .logo-icon {
    width: 32px;
    height: 32px;
  }
}

.seo-page {
  background: var(--background);
  min-height: 100vh;
}

.seo-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.seo-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.seo-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.seo-hero-subtitle {
  font-size: 20px;
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.seo-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline-variant);
}

.seo-section {
  margin-bottom: 48px;
}

.seo-section:last-child {
  margin-bottom: 0;
}

.seo-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--outline-variant);
}

.seo-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.seo-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-surface);
  margin-bottom: 16px;
}

.seo-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.seo-section li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-surface);
  margin-bottom: 8px;
}

/* Feature Highlight Grid */
.feature-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-highlight {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--outline-variant);
}

.feature-highlight-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.feature-highlight h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-highlight p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 0;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.info-card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 0;
  color: white;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.comparison-table tr:hover {
  background: var(--background);
}

.comparison-table .check {
  color: var(--success);
  font-weight: 600;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--outline-variant);
}

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--primary);
}

.faq-item p {
  font-size: 15px;
  color: var(--on-surface-variant);
  margin-bottom: 0;
  line-height: 1.6;
}

/* CTA Section */
.seo-cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin-top: 48px;
}

.seo-cta-section h2 {
  color: white;
  border-bottom: none;
  padding-bottom: 0;
}

.seo-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin: 0 auto 32px;
}

.seo-app-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.seo-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
}

.seo-store-button.ios {
  background: #000;
  color: white;
}

.seo-store-button.ios:hover {
  background: #222;
  transform: translateY(-2px);
}

.seo-store-button.android {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.seo-store-button.android:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.seo-store-button span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.seo-store-button small {
  font-size: 11px;
  opacity: 0.8;
}

.seo-store-button strong {
  font-size: 16px;
}

/* Broadcast Regions */
.broadcast-region {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--outline-variant);
}

.broadcast-region h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.broadcast-details p {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.broadcast-details p:last-child {
  margin-bottom: 0;
  color: var(--on-surface-variant);
}

/* Schedule Phases */
.schedule-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.schedule-phase {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--outline-variant);
}

.schedule-phase h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.schedule-phase > p {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.schedule-phase ul {
  margin: 0;
  padding-left: 20px;
}

.schedule-phase li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Venues Grid */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.venue-country h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.venue-country ul {
  margin: 0;
  padding-left: 20px;
}

.venue-country li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* App Features List */
.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--background);
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
}

.app-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.app-feature h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.app-feature p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 0;
}

/* Confederation Sections */
.confederation-section {
  margin-bottom: 32px;
}

.confederation-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline-variant);
}

.teams-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--background);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--outline-variant);
}

.team-badge.host {
  background: var(--accent-container);
  border-color: var(--accent);
  color: var(--accent);
}

/* Venue Cards */
.venue-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--outline-variant);
}

.venue-card.featured {
  background: linear-gradient(135deg, var(--primary-container), var(--background));
  border-color: var(--primary);
}

.venue-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.venue-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.venue-location {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.venue-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
}

.venue-details span {
  color: var(--on-surface-variant);
}

.venue-card > p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--on-surface);
}

/* SEO Index Page */
.seo-index {
  padding: 40px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.seo-index h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.seo-index > p {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 40px;
}

.seo-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.seo-page-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--outline-variant);
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.seo-page-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.seo-page-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.seo-page-card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-bottom: 12px;
}

.seo-page-card .seo-page-url {
  font-size: 12px;
  color: var(--accent);
  font-family: monospace;
}

/* SEO Page Responsive */
@media (max-width: 768px) {
  .seo-hero h1 {
    font-size: 32px;
  }

  .seo-hero-subtitle {
    font-size: 17px;
  }

  .seo-content {
    padding: 32px 24px;
  }

  .seo-section h2 {
    font-size: 24px;
  }

  .seo-cta-section {
    padding: 32px 24px;
  }

  .seo-app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .seo-store-button {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .feature-highlight-grid {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-phases {
    grid-template-columns: 1fr;
  }

  .venues-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .seo-hero {
    padding: 40px 0 24px;
  }

  .seo-hero h1 {
    font-size: 26px;
  }

  .seo-content {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 16px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Key Facts (definition list) */
.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.key-fact {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--outline-variant);
}

.key-fact dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.key-fact dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* Footer Disclaimer */
.footer-disclaimer {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .key-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .key-fact {
    padding: 12px;
  }

  .key-fact dd {
    font-size: 14px;
  }
}
