/* Scoped styles for Live Football Scores & Standings */
.lfss-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.lfss-main {
  padding: 1.5rem 1rem 3rem;
}

.lfss-container {
  max-width: 1040px;
  margin: 0 auto;
}

.lfss-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.lfss-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.lfss-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Nav Tabs */
.lfss-nav-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.lfss-tab-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.lfss-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lfss-tab-btn-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.lfss-tab-btn-active:hover {
  background: #0369a1;
  color: #ffffff;
}

/* Toolbar */
.lfss-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
}

.lfss-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lfss-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.lfss-select {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.lfss-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lfss-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.lfss-btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.lfss-btn-primary:hover {
  background: #0369a1;
}

.lfss-btn-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.lfss-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Sections */
.lfss-fixtures-section,
.lfss-standings-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lfss-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lfss-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lfss-live-badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Fixtures Grid */
.lfss-fixtures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.lfss-match-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lfss-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.lfss-match-live {
  border-color: #fca5a5;
  background: #fffafa;
}

.lfss-match-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

.lfss-status-tag {
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.lfss-status-live {
  background: #dc2626;
  color: #ffffff;
  animation: lfssPulse 1.5s infinite ease-in-out;
}

@keyframes lfssPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.lfss-status-ft {
  background: #e2e8f0;
  color: #334155;
}

.lfss-status-upcoming {
  background: #e0f2fe;
  color: #0369a1;
}

.lfss-match-venue {
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfss-match-teams {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lfss-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.lfss-team-name {
  font-weight: 600;
  color: #0f172a;
}

.lfss-team-score {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0284c7;
}

.lfss-match-events {
  font-size: 0.72rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.4rem;
  line-height: 1.3;
}

/* Legend */
.lfss-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
}

.lfss-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lfss-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.lfss-dot-ucl {
  background: #0284c7;
}

.lfss-dot-uel {
  background: #f59e0b;
}

.lfss-dot-rel {
  background: #ef4444;
}

/* Standings Table */
.lfss-table-wrap {
  overflow-x: auto;
}

.lfss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lfss-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.lfss-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.lfss-table tbody tr:hover {
  background-color: #f8fafc;
  cursor: pointer;
}

.lfss-th-pos, .lfss-td-pos {
  width: 38px;
  text-align: center !important;
  font-weight: 700;
}

.lfss-th-club, .lfss-td-club {
  text-align: left !important;
  min-width: 140px;
}

.lfss-th-num, .lfss-td-num {
  text-align: center !important;
  width: 44px;
}

.lfss-th-pts, .lfss-td-pts {
  text-align: center !important;
  width: 48px;
  font-weight: 800;
  color: #0284c7;
}

.lfss-th-form, .lfss-td-form {
  text-align: center !important;
  min-width: 110px;
}

.lfss-row-ucl td:first-child {
  border-left: 3px solid #0284c7;
}

.lfss-row-uel td:first-child {
  border-left: 3px solid #f59e0b;
}

.lfss-row-rel td:first-child {
  border-left: 3px solid #ef4444;
}

.lfss-form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 1.5px;
}

.lfss-form-w {
  background: #10b981;
}

.lfss-form-d {
  background: #f59e0b;
}

.lfss-form-l {
  background: #ef4444;
}

/* Club Detail Card */
.lfss-club-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lfss-club-head {
  margin-bottom: 1rem;
}

.lfss-club-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.lfss-club-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.lfss-club-league-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.lfss-club-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.lfss-club-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.lfss-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.lfss-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.lfss-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

/* Ad slots */
.lfss-ad-slot {
  margin: 1.75rem 0;
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
  .lfss-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .lfss-filter-group {
    justify-content: space-between;
  }
  .lfss-btn-group {
    width: 100%;
  }
  .lfss-btn {
    flex: 1;
    text-align: center;
  }
  .lfss-th-num:nth-child(n+5),
  .lfss-td-num:nth-child(n+5) {
    display: none;
  }
}
