/* ============================================================
   SEZAR TV — Sports Sections Stylesheet
   Dark navy / gold glass-morphism design system
   ============================================================ */

/* -------------------------------------------------------
   1. ANNOUNCEMENT ROTATOR BAR
   ------------------------------------------------------- */
.announce-bar {
  display: block;
  width: 100%;
  margin: 10px auto;
  max-width: 1400px;
  padding: 0 16px;
  background: rgba(21, 32, 46, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201, 169, 110, 0.06);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-body);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}

.announce-bar:hover {
  background: rgba(28, 42, 58, 0.5);
  border-color: rgba(201, 169, 110, 0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.announce-rotator {
  position: relative;
  height: 42px;
  overflow: hidden;
}

.rotator-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
}

.rotator-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.rotator-slide strong {
  color: var(--gold);
  font-weight: 700;
}

.rotator-slide.slide-gold {
  color: var(--gold-secondary);
}

.rotator-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* -------------------------------------------------------
   2. LIVE SCORES WIDGET
   ------------------------------------------------------- */
.livescores-section {
  margin: 16px 0;
}

.livescores-card {
  position: relative;
  background: rgba(21, 32, 46, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.livescores-card:hover {
  border-color: rgba(201,169,110,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.livescores-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.livescores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.livescores-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.livescores-title svg,
.livescores-title i {
  color: var(--gold);
  font-size: 16px;
}

.livescores-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.livescores-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slb-dot {
  width: 6px;
  height: 6px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.livescores-updated,
.h2h-updated {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}

.livescores-updated i,
.h2h-updated i {
  font-size: 12px;
  opacity: 0.6;
}

.livescores-track-wrap {
  overflow: hidden;
  padding: 14px 0;
}

.livescores-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 18px;
  white-space: nowrap;
  will-change: transform;
}

.ls-card {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  background: rgba(21, 32, 46, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 14px;
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}

.ls-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateY(-2px);
}

.ls-league {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
  overflow: hidden;
}

.ls-league-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.ls-league-name {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ls-league-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.ls-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ls-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.ls-team-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.ls-team-name {
  font-size: 10px;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
  text-align: center;
}

.ls-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 55px;
}

.ls-status {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ls-status.ls-live {
  color: var(--live-red);
  animation: pulseDot 1.4s ease-in-out infinite;
}

.ls-status.ls-ht {
  color: var(--gold-secondary);
}

.ls-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 1px;
  transition: color 0.3s, transform 0.3s;
}

.ls-score-flash {
  color: #22c55e !important;
  transform: scale(1.2);
  animation: goalPulse 0.6s ease 3;
}

.ls-goal-flash {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34,197,94,0.3) !important;
}

@keyframes goalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.livescores-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.livescores-empty svg,
.livescores-empty i {
  font-size: 28px;
  opacity: 0.35;
}

.ls-empty-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

/* -------------------------------------------------------
   3. UPCOMING MATCHES (H2H) WIDGET
   ------------------------------------------------------- */
.h2h-section {
  margin: 16px 0;
}

.h2h-card-wrap {
  position: relative;
  background: rgba(21, 32, 46, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.h2h-card-wrap:hover {
  border-color: rgba(201,169,110,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.h2h-card-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.h2h-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.h2h-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.h2h-title svg,
.h2h-title i {
  color: var(--gold);
  font-size: 16px;
}

.h2h-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.h2h-track-wrap {
  overflow: hidden;
  padding: 14px 0;
}

.h2h-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 18px;
  white-space: nowrap;
  will-change: transform;
}

.h2h-card {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: rgba(21, 32, 46, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}

.h2h-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateY(-2px);
}

.h2h-league {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  min-width: 0;
  overflow: hidden;
}

.h2h-league-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.h2h-league-name {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.h2h-league-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.h2h-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
}

.h2h-date {
  color: var(--text-muted);
  font-weight: 500;
}

.h2h-time {
  color: var(--gold);
  font-weight: 700;
}

.h2h-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 6px;
}

.h2h-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.h2h-team-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
}

.h2h-team-name {
  font-size: 11px;
  color: var(--text-body);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85px;
}

.h2h-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.h2h-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}

.h2h-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.h2h-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.h2h-dot-w {
  background: rgba(34, 197, 94, 0.8);
}

.h2h-dot-d {
  background: rgba(234, 179, 8, 0.8);
}

.h2h-dot-l {
  background: rgba(239, 68, 68, 0.8);
}

.h2h-no-data {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

.h2h-summary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h2h-stat {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.h2h-stat.h2h-w {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
}

.h2h-stat.h2h-d {
  color: #fde047;
  background: rgba(250, 204, 21, 0.12);
}

.h2h-stat.h2h-l {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

/* -------------------------------------------------------
   4. STANDINGS SECTION
   ------------------------------------------------------- */
.standings-section {
  margin: 16px 0;
}

.standings-card {
  position: relative;
  background: rgba(21, 32, 46, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.standings-card:hover {
  border-color: rgba(201,169,110,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.standings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 10px;
}

.standings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.standings-title svg,
.standings-title i {
  color: var(--gold);
  font-size: 16px;
}

.standings-title .canli-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-title .canli-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}

.standings-sport-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.standings-sport-tab {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.standings-sport-tab:hover {
  color: var(--text-body);
  border-color: rgba(201, 169, 110, 0.25);
}

.standings-sport-tab.active {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.35);
}

/* League Dropdown */
.standings-league-bar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: rgba(21, 32, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.25s;
  gap: 10px;
}

.dropdown-trigger:hover {
  border-color: rgba(201, 169, 110, 0.25);
}

.custom-dropdown.open .dropdown-trigger {
  border-color: var(--gold-secondary);
}

.dropdown-trigger svg,
.dropdown-trigger i {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.25s;
}

.custom-dropdown.open .dropdown-trigger svg,
.custom-dropdown.open .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(21, 32, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.2);
  border-radius: 4px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
  background: rgba(201, 169, 110, 0.08);
}

.dropdown-item.active {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.12);
}

.dropdown-item img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Content Tabs */
.standings-content-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 0 18px;
  gap: 0;
}

.st-content-tab {
  position: relative;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
  white-space: nowrap;
}

.st-content-tab:hover {
  color: var(--text-body);
}

.st-content-tab.active {
  color: var(--gold);
}

.st-content-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px 2px 0 0;
}

/* Panels */
.st-panel {
  display: none;
  animation: fadePanel 0.3s ease;
}

.st-panel.active {
  display: block;
}

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

/* Standings Table */
.standings-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.standings-table-wrap::-webkit-scrollbar {
  height: 3px;
}

.standings-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.15);
  border-radius: 3px;
}

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

.standings-table thead th {
  position: sticky;
  top: 0;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  background: rgba(21, 32, 46, 0.9);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.st-row td {
  padding: 9px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-body);
  white-space: nowrap;
}

.st-row td:first-child {
  text-align: left;
  padding-left: 18px;
}

.st-team {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.st-team-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.st-team-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.st-pts {
  font-weight: 700;
  color: var(--gold) !important;
}

/* Zone Indicators */
.zone-cl {
  box-shadow: inset 3px 0 0 0 #3b82f6;
}

.zone-el {
  box-shadow: inset 3px 0 0 0 #f97316;
}

.zone-ecl {
  box-shadow: inset 3px 0 0 0 #22c55e;
}

.zone-rel {
  box-shadow: inset 3px 0 0 0 #ef4444;
}

.zone-playoff {
  box-shadow: inset 3px 0 0 0 #a855f7;
}

.zone-promotion {
  box-shadow: inset 3px 0 0 0 #06b6d4;
}

/* Form Dots */
.form-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.form-dot-w {
  background: rgba(34, 197, 94, 0.8);
}

.form-dot-d {
  background: rgba(234, 179, 8, 0.8);
}

.form-dot-l {
  background: rgba(239, 68, 68, 0.8);
}

.standings-timestamp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

.standings-timestamp i {
  font-size: 10px;
  opacity: 0.6;
}

/* Standings Legend */
.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
}

.standings-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

.standings-legend-item .legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-cl { background: #3b82f6; }
.legend-el { background: #f97316; }
.legend-ecl { background: #22c55e; }
.legend-rel { background: #ef4444; }

/* Expand Row */
.st-expand-row {
  display: none;
}

.st-expand-row.open {
  display: table-row;
}

.st-expand-row td {
  padding: 0;
}

.st-expand-inner {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(21, 32, 46, 0.4);
  border-top: 1px solid var(--border-light);
}

.st-expand-block {
  flex: 1;
  min-width: 0;
}

.st-expand-block h5 {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.st-expand-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11px;
  color: var(--text-body);
}

.st-expand-stat span:last-child {
  font-weight: 600;
  color: var(--gold);
}

/* -------------------------------------------------------
   5. FIXTURES
   ------------------------------------------------------- */
.fixtures-sub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.fix-sub {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.fix-sub:hover {
  color: var(--text-body);
  border-color: rgba(201, 169, 110, 0.25);
}

.fix-sub.active {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.35);
}

.fix-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fix-date-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.fix-list {
  padding: 0 18px 14px;
}

.fix-card {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: rgba(21, 32, 46, 0.3);
  transition: background 0.2s, border-color 0.2s;
}

.fix-card:hover {
  background: rgba(21, 32, 46, 0.5);
  border-color: var(--border);
}

.fix-card-live {
  border-left: 3px solid var(--gold);
  background: rgba(201, 169, 110, 0.04);
}

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

/* fix-team and fix-team-name styled in fixture cards section below */

.fix-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 60px;
}

.fix-score-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fix-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  min-width: 20px;
  text-align: center;
}

.fix-score-sep {
  color: var(--text-muted);
  font-weight: 400;
}

.fix-vs {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.fix-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--live-red);
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
}

.fix-live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease-in-out infinite;
}

.fix-ft {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
}

.fix-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.fix-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 10px;
  color: var(--text-muted);
}

.fix-extra span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fix-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.fix-action-btn {
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s;
}

.fix-action-btn:hover {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.25);
}

/* -------------------------------------------------------
   6. STATISTICS
   ------------------------------------------------------- */
.stats-sub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.stat-sub {
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.stat-sub:hover {
  color: var(--text-body);
  border-color: rgba(201, 169, 110, 0.25);
}

.stat-sub.active {
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.35);
}

.stats-list {
  padding: 14px 18px;
}

.stat-card {
  margin-bottom: 6px;
}

.stat-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(21, 32, 46, 0.3);
  transition: background 0.2s, border-color 0.2s;
}

.stat-player-row:hover {
  background: rgba(21, 32, 46, 0.5);
  border-color: var(--border);
}

.stat-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: rgba(201, 169, 110, 0.08);
  color: var(--text-muted);
  flex-shrink: 0;
}

.stat-rank-1 {
  background: rgba(201, 169, 110, 0.2);
  color: var(--gold);
}

.stat-rank-2 {
  background: rgba(192, 192, 192, 0.15);
  color: #c0c0c0;
}

.stat-rank-3 {
  background: rgba(205, 127, 50, 0.15);
  color: #cd7f32;
}

.stat-player-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

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

.stat-player-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-player-team {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 30px;
  text-align: right;
}

/* -------------------------------------------------------
   7. MATCH DETAIL PANEL
   ------------------------------------------------------- */
.md-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 18px;
  background: var(--gold-gradient-subtle);
  border-bottom: 1px solid var(--border-light);
}

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

.md-hero-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

.md-hero-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
}

.md-hero-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}

.md-hero-score .md-sep {
  color: var(--text-muted);
  font-size: 24px;
  font-weight: 400;
}

.md-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 0 18px;
}

.md-tab {
  position: relative;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s;
}

.md-tab:hover {
  color: var(--text-body);
}

.md-tab.active {
  color: var(--gold);
}

.md-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px 2px 0 0;
}

.md-tab-panel {
  display: none;
  padding: 18px;
  animation: fadePanel 0.3s ease;
}

.md-tab-panel.active {
  display: block;
}

/* -------------------------------------------------------
   8. H2H OVERLAY (MODAL)
   ------------------------------------------------------- */
.h2h-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 20, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.h2h-panel {
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(21, 32, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
}

.h2h-overlay.open .h2h-panel {
  transform: translateY(0) scale(1);
}

.h2h-panel::-webkit-scrollbar {
  width: 4px;
}

.h2h-panel::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.2);
  border-radius: 4px;
}

.h2h-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}

.h2h-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.h2h-panel-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s;
}

.h2h-panel-close:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.3);
}

.h2h-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  gap: 12px;
}

.h2h-teams-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.h2h-teams-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.h2h-teams-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  text-align: center;
}

.h2h-teams-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.h2h-teams-summary .h2h-sum-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.h2h-teams-summary .h2h-sum-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.h2h-body {
  padding: 0 18px 18px;
}

.h2h-body-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.h2h-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: rgba(21, 32, 46, 0.3);
  gap: 8px;
}

.h2h-match-date {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 60px;
}

.h2h-match-teams {
  flex: 1;
  font-size: 11px;
  color: var(--text-body);
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h2h-match-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* -------------------------------------------------------
   9. NEWS SECTION
   ------------------------------------------------------- */
.news-section {
  margin: 16px 0;
}

.news-card {
  position: relative;
  background: rgba(21, 32, 46, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(201,169,110,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.news-card:hover {
  border-color: rgba(201,169,110,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.7;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.news-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.news-header-left i {
  color: var(--gold);
  font-size: 16px;
}

.news-scroll-container {
  overflow: hidden;
  padding: 14px 0;
}

.news-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 18px;
  white-space: nowrap;
  will-change: transform;
}

.news-item {
  display: flex;
  flex-direction: column;
  width: 296px;
  min-width: 296px;
  max-width: 296px;
  flex-shrink: 0;
  background: rgba(21, 32, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
  white-space: normal;
  text-decoration: none;
  color: inherit;
}

.news-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.2);
  transform: translateY(-2px);
}

.news-img-wrap {
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: rgba(21, 32, 46, 0.8);
  flex-shrink: 0;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
}

.news-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.news-item .news-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  gap: 6px;
}

.news-source {
  font-weight: 600;
  color: var(--gold-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.news-time {
  white-space: nowrap;
  flex-shrink: 0;
}

.news-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.news-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 18px;
  color: var(--text-muted);
  font-size: 13px;
}

/* -------------------------------------------------------
   10. LOADING / ERROR / EMPTY STATES
   ------------------------------------------------------- */
.standings-loading {
  padding: 18px;
}

.sk-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sk-block {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 110, 0.06) 25%,
    rgba(201, 169, 110, 0.12) 50%,
    rgba(201, 169, 110, 0.06) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

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

.sk-block-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.sk-block-md {
  width: 120px;
}

.sk-block-lg {
  flex: 1;
}

.sk-block-xs {
  width: 40px;
}

.standings-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  gap: 12px;
  text-align: center;
}

.standings-error svg,
.standings-error i {
  font-size: 32px;
  color: var(--live-red);
  opacity: 0.6;
}

.standings-error p {
  font-size: 13px;
  color: var(--text-muted);
}

.standings-error .retry-btn {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.standings-error .retry-btn:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.4);
}

.st-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.st-empty-state svg,
.st-empty-state i {
  font-size: 32px;
  opacity: 0.3;
}

/* -------------------------------------------------------
   11. RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 768px) {
  .standings-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .standings-sport-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .standings-sport-tabs::-webkit-scrollbar {
    display: none;
  }

  .standings-content-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .standings-content-tabs::-webkit-scrollbar {
    display: none;
  }

  .standings-table thead th,
  .st-row td {
    padding: 8px 5px;
    font-size: 11px;
  }

  .st-team-name {
    max-width: 100px;
  }

  .st-hide-mobile {
    display: none !important;
  }

  .st-expand-inner {
    flex-direction: column;
    gap: 12px;
  }

  .livescores-header,
  .h2h-header,
  .news-header {
    padding: 12px 14px;
  }

  .livescores-track,
  .h2h-track {
    padding: 0 14px;
    gap: 10px;
  }

  .ls-card {
    width: 200px;
    min-width: 200px;
  }

  .h2h-card {
    width: 240px;
    min-width: 240px;
  }

  .news-item {
    min-width: 210px;
    max-width: 210px;
  }

  .news-img-wrap {
    height: 85px;
  }

  .fix-match {
    gap: 8px;
  }

  .fix-team-logo {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .fix-team-name {
    font-size: 11px;
  }

  .fix-score {
    font-size: 16px;
  }

  .md-hero {
    padding: 18px 14px;
    gap: 14px;
  }

  .md-hero-logo {
    width: 38px;
    height: 38px;
  }

  .md-hero-score {
    font-size: 26px;
  }

  .h2h-panel {
    width: 95%;
    max-height: 90vh;
  }

  .stats-sub-tabs,
  .fixtures-sub-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .stats-sub-tabs::-webkit-scrollbar,
  .fixtures-sub-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .standings-table thead th,
  .st-row td {
    padding: 7px 4px;
    font-size: 10px;
  }

  .st-rank-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .st-team-logo {
    width: 16px;
    height: 16px;
  }

  .st-team-name {
    max-width: 80px;
    font-size: 11px;
  }

  .form-dot {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .ls-card {
    width: 190px;
    min-width: 190px;
    padding: 10px;
  }

  .ls-team-logo {
    width: 18px;
    height: 18px;
  }

  .ls-team-name {
    max-width: 70px;
    font-size: 11px;
  }

  .ls-score {
    font-size: 16px;
  }

  .h2h-card {
    width: 220px;
    min-width: 220px;
    padding: 10px;
  }

  .h2h-team-logo {
    width: 24px;
    height: 24px;
  }

  .h2h-vs {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .h2h-dot {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }

  .news-item {
    min-width: 180px;
    max-width: 180px;
  }

  .news-img-wrap {
    height: 70px;
  }

  .news-item .news-title {
    font-size: 11px;
  }

  .fix-team-logo {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  .fix-team-name {
    font-size: 10px;
  }

  .fix-score {
    font-size: 14px;
  }

  .fix-extra {
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-player-row {
    gap: 8px;
    padding: 8px 10px;
  }

  .stat-player-photo {
    width: 28px;
    height: 28px;
  }

  .stat-value {
    font-size: 14px;
  }

  .announce-bar {
    padding: 0 10px;
  }

  .rotator-slide {
    font-size: 11px;
  }

  .md-hero-score {
    font-size: 22px;
  }

  .md-hero-logo {
    width: 32px;
    height: 32px;
  }

  .h2h-panel {
    width: 96%;
    border-radius: 12px;
  }

  .h2h-teams-logo {
    width: 32px;
    height: 32px;
  }

  .standings-legend {
    gap: 8px;
    padding: 10px 14px;
  }
}

/* ============================================================
   STANDINGS.JS-SPECIFIC CLASSES
   ============================================================ */

/* Dropdown items (standings.js uses dd-* classes) */
.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.dd-item:hover {
  background: rgba(201,169,110,0.06);
  color: var(--text-body);
}
.dd-item.dd-active {
  background: rgba(201,169,110,0.12);
  color: var(--gold);
}
.dd-flag { font-size: 16px; flex-shrink: 0; }
.dd-name { flex: 1; }


/* Standings rows */
.st-row {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
  cursor: pointer;
}
.st-row:hover { background: rgba(201,169,110,0.04); }
.st-row-expanded { background: rgba(201,169,110,0.06); }

/* Zone indicators */
.st-zone-cl td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
.st-zone-el td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.st-zone-ecl td:first-child { box-shadow: inset 4px 0 0 #a78bfa; }
.st-zone-rel td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
.st-zone-promo td:first-child { box-shadow: inset 4px 0 0 #22c55e; }

/* Rank badges */
.st-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  font-size: 14px;
}
.st-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(201,169,110,0.06);
}

/* Detail rows */
.st-detail-row { background: rgba(201,169,110,0.03); }
.st-detail-row td { padding: 0 !important; }
.st-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}
.st-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.st-detail-stat {
  text-align: center;
  background: rgba(201,169,110,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.st-detail-stat-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.st-detail-stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.st-detail-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-detail-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-body);
}
.st-detail-bar-lbl {
  min-width: 120px;
  color: var(--text-muted);
  font-size: 11px;
}
.st-detail-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.st-detail-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.5s;
}
.st-detail-bar-fill.st-bar-red {
  background: linear-gradient(90deg, #c44, #e55);
}
.st-detail-bar-val {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: var(--text-body);
}
.st-detail-note {
  font-size: 11px;
  color: var(--gold-secondary);
  padding: 6px 10px;
  background: rgba(201,169,110,0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-dark);
}
@media (max-width: 640px) {
  .st-detail-grid { grid-template-columns: repeat(3, 1fr); }
  .st-detail-bar-lbl { min-width: 90px; }
}
.st-detail-label {
  font-weight: 700;
  color: var(--gold-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* Form dots */
.st-form-dots {
  display: inline-flex;
  gap: 3px;
}
.st-form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.st-form-w {
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.st-form-d {
  background: rgba(250,204,21,0.15);
  color: #fde047;
  border: 1px solid rgba(250,204,21,0.25);
}
.st-form-l {
  background: rgba(239,68,68,0.2);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
}

/* Legend */
.st-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
}
.st-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(201,169,110,0.03);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}
.st-legend-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.st-zone-cl-dot { background: #22c55e; }
.st-zone-el-dot { background: #3b82f6; }
.st-zone-ecl-dot { background: #a78bfa; }
.st-zone-rel-dot { background: #ef4444; }
.st-zone-promo-dot { background: #22c55e; }

/* Fixture cards (standings.js uses fix-teams/fix-team) */
.fix-teams {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fix-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.fix-team-right {
  flex-direction: row-reverse;
}
.fix-team-logo {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.fix-team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fix-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 60px;
}
.fix-score-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
}
.fix-live-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--live-red);
  background: rgba(239,68,68,0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.fix-status-label {
  font-size: 9px;
  font-weight: 600;
  color: #22c55e;
}
.fix-pen {
  font-size: 9px;
  color: var(--text-muted);
}
.fix-upcoming .fix-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.fix-upcoming .fix-vs {
  font-size: 10px;
  color: var(--text-muted);
}
.fix-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}
.fix-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(201,169,110,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.fix-btn:hover {
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border-color: var(--gold-secondary);
}
.fixtures-list {
  padding: 0 14px 14px;
}

/* Stats table */
.st-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.st-stats-table thead th {
  padding: 10px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.st-stats-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}
.st-stats-table tbody tr:hover {
  background: rgba(201,169,110,0.04);
}
.st-stats-table td {
  padding: 8px 10px;
  color: var(--text-body);
  font-size: 12px;
}
.st-stats-table .st-rank {
  width: 36px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}
.st-player {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-player-photo {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.st-team-logo-sm {
  width: 16px; height: 16px;
  object-fit: contain;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}
.st-team-name-sm {
  font-size: 11px;
  color: var(--text-muted);
}
.st-stat-val {
  color: var(--gold);
  font-weight: 700;
}

/* Empty state */
.st-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
  text-align: center;
}
.st-empty i {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.5;
}
.st-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}
.st-empty-text {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 220px;
}

.st-retry-btn {
  margin-top: 8px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}

.st-retry-btn:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.4);
}

/* Error state */
.st-error-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.st-error-inner i {
  font-size: 24px;
  color: var(--live-red);
}
.st-error-inner span {
  font-size: 13px;
  color: var(--text-body);
}
.st-error-inner button {
  padding: 8px 18px;
  background: rgba(201,169,110,0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.st-error-inner button:hover {
  background: rgba(201,169,110,0.2);
}

/* Modal overlay (H2H) */
.st-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}
.st-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
}
.st-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.st-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.st-modal-close:hover { color: var(--gold); }
.st-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.st-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.st-modal-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.st-h2h-list { display: flex; flex-direction: column; gap: 6px; }
.st-h2h-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(201,169,110,0.04);
  border: 1px solid var(--border-light);
  font-size: 12px;
}
.st-h2h-date {
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  min-width: 70px;
}
.st-h2h-matchup {
  color: var(--text-body);
  font-weight: 500;
}

/* Match detail tabs & content */
.md-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 2px;
}
.md-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.md-tab:hover { color: var(--text-body); }
.md-tab-active, .md-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold-secondary);
}
.md-content { padding: 12px 16px; }
.md-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

/* Events */
.md-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.md-event-min {
  min-width: 32px;
  font-weight: 700;
  color: var(--gold);
  font-size: 11px;
}
.md-event-icon { font-size: 14px; }
.md-event-info {
  flex: 1;
  color: var(--text-body);
}
.md-event-team {
  font-size: 10px;
  color: var(--text-muted);
}

/* Match stats */
.md-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
}
.md-stat-home, .md-stat-away {
  min-width: 40px;
  font-weight: 700;
  color: var(--text-body);
}
.md-stat-home { text-align: right; }
.md-stat-away { text-align: left; }
.md-stat-name {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

/* Lineups */
.md-lineup {
  margin-bottom: 14px;
}
.md-lineup-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.md-lineup-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-body);
}
.md-lineup-num {
  min-width: 24px;
  font-weight: 700;
  color: var(--gold-secondary);
  font-size: 11px;
}

/* Match detail back bar */
.md-back-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
.md-back-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(201,169,110,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.md-back-btn:hover {
  color: var(--gold);
  background: rgba(201,169,110,0.12);
}
.md-match-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}

/* Fixture button variants */
.fix-h2h-btn,
.fix-detail-btn {
  font-size: 10px;
}

/* Fixture modifier classes */
.fix-finished .fix-score-num {
  color: var(--text-body);
}

.fix-finished .fix-status-label {
  color: #22c55e;
}

/* Badge color variants for standings ranks */
.st-gold { color: #fbbf24; }
.st-silver { color: #9ca3af; }
.st-bronze { color: #cd7f32; }

/* Standings form column */
.st-form {
  min-width: 100px;
}

/* Match detail content panels */
.md-events,
.md-stats,
.md-lineups {
  min-height: 100px;
}

/* News live badge */
.news-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  color: var(--live-red);
  padding: 2px 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 20px;
}
.live-pulse {
  width: 5px; height: 5px;
  background: var(--live-red);
  border-radius: 50%;
  animation: pulseDot 1.4s ease infinite;
}

/* Spinner inside modals */
.st-modal-loading .spinner,
.md-content .spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold-secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

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

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

/* -------------------------------------------------------
   CARD STATS BADGES
   ------------------------------------------------------- */
.st-card-col {
  text-align: center !important;
  white-space: nowrap;
}
.st-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.st-card-yellow {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.25);
}
.st-card-red {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.25);
}
.st-yellow-col { color: #eab308; }
.st-red-col { color: #ef4444; }

/* -------------------------------------------------------
   TEAM STATS CARDS GRID
   ------------------------------------------------------- */
.st-teamstats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  padding: 12px;
}
.st-team-card {
  background: rgba(21,32,46,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.st-team-card:hover {
  border-color: rgba(201,169,110,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.st-team-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.st-team-card-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.st-team-card-info {
  flex: 1;
  min-width: 0;
}
.st-team-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-team-card-form {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.st-form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: white;
}
.st-form-w { background: #22c55e; }
.st-form-d { background: #a3a3a3; }
.st-form-l { background: #ef4444; }
.st-team-card-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-secondary);
  background: rgba(201,169,110,0.08);
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.st-team-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.st-team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  background: rgba(201,169,110,0.04);
  border-radius: 8px;
}
.st-team-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
}
.st-team-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.st-stat-green { color: #22c55e; }
.st-stat-gray { color: #a3a3a3; }
.st-stat-red { color: #ef4444; }
.st-team-card-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-team-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 70px;
  flex-shrink: 0;
}
.st-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
  min-width: 48px;
  text-align: right;
}
.st-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(201,169,110,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.st-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-secondary));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

@media (max-width: 680px) {
  .st-teamstats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px;
  }
  .st-team-stat-val { font-size: 15px; }
}
