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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2b42;
  --bg-glass: rgba(26, 34, 52, 0.85);

  /* League Colors */
  --epl-purple: #38003c;
  --epl-accent: #8b5cf6;
  --laliga-orange: #e87722;
  --bundesliga-red: #d20515;
  --seriea-blue: #024494;
  --ligue1-green: #091c3e;

  /* General */
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gold: #d4a843;
  --accent-red: #ef4444;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* --- Header --- */
.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

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

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e1b4b, var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.logo h1 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: scale(1.05);
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* --- Stats Cards --- */
.stats-section {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 32px;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
}

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

.stat-card .stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.stat-card.purple .stat-value { color: var(--accent-purple); }
.stat-card.blue .stat-value { color: var(--accent-blue); }
.stat-card.gold .stat-value { color: var(--accent-gold); }
.stat-card.green .stat-value { color: var(--accent-green); }

/* --- Tabs --- */
.tabs-section {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 32px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-purple); border-bottom-color: var(--accent-purple); }

/* --- Filters Section --- */
.filters-section {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 32px;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

/* League Pills */
.league-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.league-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.league-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: white;
}

/* League-specific active colors */
.league-pill[data-league="Premier League"].active {
  background: rgba(56, 0, 60, 0.4);
  border-color: var(--epl-purple);
}
.league-pill[data-league="La Liga"].active {
  background: rgba(232, 119, 34, 0.2);
  border-color: var(--laliga-orange);
}
.league-pill[data-league="Bundesliga"].active {
  background: rgba(210, 5, 21, 0.2);
  border-color: var(--bundesliga-red);
}
.league-pill[data-league="Serie A"].active {
  background: rgba(2, 68, 148, 0.2);
  border-color: var(--seriea-blue);
}
.league-pill[data-league="Ligue 1"].active {
  background: rgba(9, 28, 62, 0.3);
  border-color: #4a7c59;
}

.league-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-all { background: linear-gradient(135deg, var(--epl-purple), var(--laliga-orange), var(--bundesliga-red), var(--seriea-blue)); }
.dot-epl { background: var(--epl-purple); }
.dot-laliga { background: var(--laliga-orange); }
.dot-bundesliga { background: var(--bundesliga-red); }
.dot-seriea { background: var(--seriea-blue); }
.dot-ligue1 { background: #4a7c59; }

/* Club Pills */
.club-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.club-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.club-pill.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: white;
}

/* --- Search Bar --- */
.search-section {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 32px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent-purple);
}

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

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.search-clear:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }

/* --- News Cards --- */
.content-section {
  max-width: 1400px;
  margin: 20px auto 40px;
  padding: 0 32px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid var(--border);
}

.news-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* League-specific left border */
.news-card[data-league="Premier League"] { border-left-color: var(--epl-purple); }
.news-card[data-league="La Liga"] { border-left-color: var(--laliga-orange); }
.news-card[data-league="Bundesliga"] { border-left-color: var(--bundesliga-red); }
.news-card[data-league="Serie A"] { border-left-color: var(--seriea-blue); }
.news-card[data-league="Ligue 1"] { border-left-color: #4a7c59; }

.card-inner {
  padding: 20px 24px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}

.card-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-league {
  font-weight: 700;
}

.badge-league.epl { background: rgba(56, 0, 60, 0.3); color: #c084fc; }
.badge-league.laliga { background: rgba(232, 119, 34, 0.2); color: var(--laliga-orange); }
.badge-league.bundesliga { background: rgba(210, 5, 21, 0.2); color: #f87171; }
.badge-league.seriea { background: rgba(2, 68, 148, 0.2); color: #60a5fa; }
.badge-league.ligue1 { background: rgba(74, 124, 89, 0.2); color: #6ee7b7; }
.badge-league.general { background: rgba(100, 116, 139, 0.2); color: var(--text-secondary); }

.badge-club {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.badge-source {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 500;
}

.badge-credibility {
  font-size: 9px;
  padding: 2px 6px;
}

.badge-credibility.high { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-credibility.medium { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.badge-credibility.low { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* Bookmark Button */
.bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  transition: all 0.2s;
  filter: grayscale(1) opacity(0.4);
}

.bookmark-btn:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.2);
}

.bookmark-btn.active {
  filter: grayscale(0) opacity(1);
  animation: bookmarkPop 0.3s ease;
}

@keyframes bookmarkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.2s;
}

.card-title:hover { color: var(--accent-blue); }

.card-snippet {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-meta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta-row a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.card-meta-row a:hover { text-decoration: underline; }

/* Bookmark Note */
.bookmark-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(212, 168, 67, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--accent-gold);
}

/* --- Load More --- */
.load-more-section {
  text-align: center;
  padding: 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #1e1b4b, var(--accent-purple));
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.news-count {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* --- Sources Grid --- */
.sources-header-section {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sources-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sources-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.add-source-btn {
  background: var(--accent-green);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.add-source-btn:hover { background: #059669; transform: translateY(-1px); }

.source-filters select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.source-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

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

.source-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.source-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.source-toggle {
  position: relative;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.source-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.source-toggle .slider {
  position: absolute;
  inset: 0;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 22px;
  transition: all 0.3s;
}

.source-toggle .slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
}

.source-toggle input:checked + .slider {
  background: var(--accent-green);
}

.source-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.source-delete-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.source-delete-btn:hover {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

.modal-lg {
  max-width: 700px;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.12); }

.modal-body {
  padding: 24px;
}

.modal form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-btn {
  background: linear-gradient(135deg, #1e1b4b, var(--accent-purple));
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  transition: all 0.2s;
  margin-top: 4px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

/* Article Modal Content */
.article-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.article-detail-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-detail-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.article-detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

.article-detail-content p {
  margin-bottom: 14px;
}

.article-detail-content p:last-child {
  margin-bottom: 0;
}

.article-detail-content .no-content {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 30px;
}

/* Scrollbar for article content */
.article-detail-content::-webkit-scrollbar {
  width: 6px;
}

.article-detail-content::-webkit-scrollbar-track {
  background: transparent;
}

.article-detail-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.article-detail-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Fetch Content Section */
.fetch-content-section {
  text-align: center;
  padding: 20px;
  margin: 16px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.04);
}

.fetch-content-btn {
  background: linear-gradient(135deg, #1e1b4b, var(--accent-purple));
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.fetch-content-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.fetch-content-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.fetch-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

.article-detail-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.article-link-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Loading --- */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header { padding: 16px; }
  .stats-section, .filters-section, .content-section, .search-section,
  .sources-header-section { padding: 0 16px; }
  .tabs-section { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sources-grid { grid-template-columns: 1fr; }
  .card-top { flex-direction: column; }
  .card-footer { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .sources-header-section { flex-direction: column; align-items: flex-start; }
  .modal { max-width: 100%; margin: 10px; }
  .filter-group { gap: 6px; }
  .league-pill { padding: 5px 10px; font-size: 11px; }
}
