/* /assets/css/sports-sidebar.css
 * Стилі для спортивного сайдбару (відрізняється від загального .sidebar-widget)
 */

.sp-sb-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-sb {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sp-sb-head {
  padding: 10px 14px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background: #12122a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-sb-head.red    { background: #e63c3c; }
.sp-sb-head.green  { background: #2e7d32; }
.sp-sb-head.purple { background: #6a1b9a; }
.sp-sb-head.blue   { background: #1565c0; }

.sp-sb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: sp-pulse 1.5s infinite;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sp-sb-body { padding: 0; }

/* === LIVE === */
.sp-live-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  transition: background 0.15s;
}
.sp-live-row:last-child { border-bottom: none; }
.sp-live-row:hover { background: #fafbfc; }
.sp-live-min {
  background: #e63c3c;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  text-align: center;
}
.sp-live-match { font-weight: 600; color: #12122a; line-height: 1.3; }
.sp-live-match .sp-score { color: #e63c3c; font-weight: 800; }
.sp-live-league { font-size: 10px; color: #888; }

/* === СЬОГОДНІ === */
.sp-day-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}
.sp-day-row:last-child { border-bottom: none; }
.sp-day-row:hover { background: #fafbfc; }
.sp-day-time {
  font-weight: 700;
  color: #888;
  text-align: center;
  font-size: 11px;
}
.sp-day-match { color: #12122a; line-height: 1.3; }
.sp-day-league { font-size: 10px; color: #888; }

/* === КОМПАКТНА ТАБЛИЦЯ ЛІГИ === */
.sp-mini-league-title {
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #12122a;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f7f9fb;
  border-bottom: 1px solid #f0f0f0;
}
.sp-mini-league-title a { color: #e63c3c; }
.sp-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.sp-mini-table thead th {
  padding: 4px 6px;
  text-align: center;
  color: #aaa;
  font-weight: 700;
  background: #fafbfc;
  border-bottom: 1px solid #f0f0f0;
}
.sp-mini-table thead th.al { text-align: left; padding-left: 10px; }
.sp-mini-table tbody td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid #f5f5f5;
}
.sp-mini-table tbody tr:last-child td { border-bottom: none; }
.sp-mini-pos {
  font-weight: 700;
  color: #888;
  width: 22px;
  font-size: 10px;
}
.sp-mini-team {
  text-align: left;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-mini-team-name {
  color: #12122a;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.sp-mini-logo {
  width: 14px; height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}
.sp-mini-logo-ph {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e63c3c, #12122a);
  color: #fff;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.sp-mini-pts {
  color: #e63c3c;
  font-weight: 800;
  font-size: 11px;
}
/* Зони */
.sp-mini-table tbody tr.zone-cl  .sp-mini-pos { background:#2e7d32; color:#fff; border-radius:2px; }
.sp-mini-table tbody tr.zone-el  .sp-mini-pos { background:#1565c0; color:#fff; border-radius:2px; }
.sp-mini-table tbody tr.zone-ecl .sp-mini-pos { background:#7e57c2; color:#fff; border-radius:2px; }
.sp-mini-table tbody tr.zone-rel .sp-mini-pos { background:#c62828; color:#fff; border-radius:2px; }

.sp-more-link {
  display: block;
  padding: 8px 14px;
  text-align: center;
  background: #f7f9fb;
  color: #e63c3c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.sp-more-link:hover { background: #f0f2f5; }

/* === БОМБАРДИРИ === */
.sp-scorer-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}
.sp-scorer-row:last-child { border-bottom: none; }
.sp-scorer-rank {
  font-weight: 700;
  color: #aaa;
  text-align: center;
}
.sp-scorer-name {
  color: #12122a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-scorer-team {
  font-size: 10px;
  color: #888;
  display: block;
  margin-top: 1px;
}
.sp-scorer-goals {
  color: #e63c3c;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

/* === СТАТТІ === */
.sp-article-row {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  line-height: 1.4;
  transition: background 0.15s;
}
.sp-article-row:last-child { border-bottom: none; }
.sp-article-row:hover { background: #fafbfc; }
.sp-article-row:hover .sp-article-title { color: #e63c3c; }
.sp-article-title { color: #12122a; font-weight: 600; }
.sp-article-date { font-size: 10px; color: #aaa; margin-top: 3px; }

/* === EMPTY === */
.sp-empty {
  padding: 14px;
  text-align: center;
  color: #aaa;
  font-size: 12px;
  font-style: italic;
}


/* === Спортивні статті в сайдбарі === */
.sp-art-row { display:flex; gap:10px; align-items:center; padding:8px 12px; border-bottom:1px solid #f0f0f0; text-decoration:none; color:#12122a; transition:background .15s; }
.sp-art-row:last-child { border-bottom:none; }
.sp-art-row:hover { background:#fafbfc; }
.sp-art-img, .sp-art-img-ph { width:50px; height:38px; flex-shrink:0; object-fit:cover; border-radius:4px; }
.sp-art-img-ph { background:linear-gradient(135deg,#ffa500,#e63c3c); display:flex; align-items:center; justify-content:center; font-size:16px; color:#fff; }
.sp-art-title { font-size:12px; line-height:1.35; font-weight:500; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.sp-stub { padding:14px; text-align:center; color:#888; font-size:12px; font-style:italic; }

/* === ВЧОРА / СЬОГОДНІ / ЗАВТРА (таби) === */
.sp-mbd-tabs {
  display: flex;
  padding: 0;
  gap: 0;
  background: #12122a;
}
.sp-mbd-tab {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sp-mbd-tab:hover { color: rgba(255,255,255,0.85); }
.sp-mbd-tab.active {
  color: #fff;
  border-bottom-color: #e63c3c;
}
.sp-day-row .sp-score {
  background: #12122a;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 0;
  border-radius: 3px;
  text-align: center;
  width: 44px;
  display: inline-block;
}
.sp-mbd-show-more {
  display: block;
  width: 100%;
  padding: 8px;
  background: #f7f9fb;
  border: none;
  color: #e63c3c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
}
.sp-mbd-show-more:hover { background: #eef1f5; }
