/* ═══════════════════════════════════════════════════════════
   Šipkařská liga – Modern Pro Widget CSS
   Navrženo pro elegantní vložení do WordPressu i jiných webů.
   ═══════════════════════════════════════════════════════════ */

.sipky-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.5;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.sipky-widget *, .sipky-widget *::before, .sipky-widget *::after {
  box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────── */
.sipky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.sipky-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sipky-season-select {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}
.sipky-season-select:hover {
  border-color: #94a3b8;
}
.sipky-season-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ── Tables ─────────────────────────────────────────────── */
.sipky-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
}
.sipky-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.sipky-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.sipky-table thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.sipky-table thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.sipky-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}
.sipky-table tbody tr:hover td {
  background-color: #f8fafc;
}
.sipky-table tbody tr:last-child td {
  border-bottom: none;
}

.sipky-table .tc { text-align: center; }
.sipky-table .tr { text-align: right; }

/* ── Podium Row Highlights (Clean & Modern) ──────────────── */
.sipky-row-p1 td {
  background-color: rgba(245, 158, 11, 0.08) !important;
}
.sipky-row-p1 td:first-child {
  border-left: 4px solid #f59e0b !important;
}
.sipky-row-p2 td {
  background-color: rgba(148, 163, 184, 0.08) !important;
}
.sipky-row-p2 td:first-child {
  border-left: 4px solid #94a3b8 !important;
}
.sipky-row-p3 td {
  background-color: rgba(217, 119, 6, 0.07) !important;
}
.sipky-row-p3 td:first-child {
  border-left: 4px solid #d97706 !important;
}

/* ── Position Badges with Trophies ──────────────────────── */
.sipky-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  padding: 2px 4px;
  margin: 0 auto;
}
.sipky-pos.p1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  min-width: 32px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}
.sipky-pos.p2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
  min-width: 32px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35);
}
.sipky-pos.p3 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  min-width: 32px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.35);
}
.sipky-trophy {
  font-size: 13px;
  line-height: 1;
}
.sipky-crown {
  color: #f59e0b;
  font-size: 14px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.4));
}

/* ── Badges for points and scores ───────────────────────── */
.sipky-badge-pts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.28);
}
.sipky-badge-score {
  display: inline-block;
  padding: 3px 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.sipky-badge-legs {
  display: inline-block;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 12.5px;
}

.sipky-team {
  font-weight: 700;
  color: #0f172a;
}
.sipky-pts {
  font-weight: 800;
  font-size: 15px;
  color: #2563eb;
}
.sipky-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
}

/* ── Match Cards (Upcoming & Results) ───────────────────── */
.sipky-match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  transition: all 0.15s ease;
  gap: 12px;
}
.sipky-match-card:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.sipky-match-card:last-child {
  margin-bottom: 0;
}

.sipky-match-date {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  min-width: 80px;
  line-height: 1.3;
}
.sipky-match-date strong {
  color: #0f172a;
  font-size: 12px;
}

.sipky-match-teams {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.sipky-match-home, .sipky-match-away {
  font-weight: 700;
  color: #0f172a;
  min-width: 100px;
}
.sipky-match-vs {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.sipky-match-score {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

/* ── Badges ─────────────────────────────────────────────── */
.sipky-match-result {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.sipky-r-hw  { background: #dbeafe; color: #1d4ed8; }
.sipky-r-hwd { background: #e0f2fe; color: #0369a1; }
.sipky-r-awd { background: #fef9c3; color: #854d0e; }
.sipky-r-aw  { background: #f1f5f9; color: #475569; }

.sipky-badge-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Tournaments ────────────────────────────────────────── */
.sipky-tour-scores {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin: 1px 2px;
  font-variant-numeric: tabular-nums;
}
.sipky-dropped {
  text-decoration: line-through;
  color: #dc2626 !important;
  background: #fef2f2 !important;
  border: 1px solid #fee2e2;
  opacity: 0.7;
}

/* ── Helpers & States ───────────────────────────────────── */
.sipky-legend {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #64748b;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sipky-loading {
  text-align: center;
  padding: 36px 20px;
  color: #64748b;
  font-weight: 600;
}
.sipky-empty {
  text-align: center;
  padding: 36px 20px;
  color: #94a3b8;
  font-size: 14px;
}
.sipky-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .sipky-widget { padding: 14px; }
  .sipky-match-card { flex-direction: column; text-align: center; }
  .sipky-match-home, .sipky-match-away { min-width: auto; }
  .sipky-header { flex-direction: column; align-items: flex-start; }
}
/* ── All-in-one Tab Navigation ──────────────────────────── */
.sipky-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.sipky-tabs-title {
  display: flex;
  align-items: center;
}
.sipky-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sipky-tabs-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.sipky-tab-btn {
  background: transparent;
  border: none;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.15s ease;
  white-space: nowrap;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sipky-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}
.sipky-tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.sipky-tabs-season-wrap {
  margin-left: auto;
}
.sipky-tab-content {
  min-height: 200px;
}
/* ── Pro Styles: Matches & Interactive Match Sheets ─────── */
.sipky-matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sipky-match-card-pro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
  overflow: hidden;
}
.sipky-match-card-pro:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.sipky-mc-top {
  background: #f8fafc;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}
.sipky-mc-round {
  font-weight: 800;
  color: #2563eb;
  letter-spacing: .04em;
  font-size: 11px;
}
.sipky-mc-date {
  font-weight: 600;
  color: #1e293b;
}
.sipky-mc-venue {
  color: #64748b;
}
.sipky-mc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 14px;
}
.sipky-mc-team {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.sipky-mc-team.home { text-align: right; }
.sipky-mc-team.away { text-align: left; }
.sipky-mc-team.winner { color: #16a34a; }
.sipky-mc-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.sipky-mc-score {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: .05em;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 14px;
}
.sipky-mc-legs {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}
.sipky-mc-footer {
  border-top: 1px solid #f1f5f9;
  background: #fbfcfe;
  padding: 8px 16px;
}
.sipky-btn-sheet {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sipky-btn-sheet:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.sipky-sheet-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.sipky-sheet-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.sipky-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sipky-sheet-table th, .sipky-sheet-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.sipky-sheet-table th {
  background: #f1f5f9;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

/* ── Badges for 180s and High Finishes ──────────────────── */
.sipky-badge-180 {
  display: inline-block;
  padding: 2px 7px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.35);
}
.sipky-badge-hf-gold {
  display: inline-block;
  padding: 2px 7px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.35);
}
.sipky-form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.sipky-form-badge.w { background: #16a34a; }
.sipky-form-badge.l { background: #dc2626; }

/* ── Teams and Venues Grid ──────────────────────────────── */
.sipky-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sipky-team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sipky-tc-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.sipky-tc-row {
  font-size: 13px;
  color: #334155;
}
.sipky-tc-row.sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: -4px;
}
.sipky-tc-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.sipky-roster-box {
  margin-top: 10px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #e2e8f0;
}
.sipky-roster-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sipky-roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}
.sipky-roster-item:last-child { border-bottom: none; }
.sipky-badge-role {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

/* ── Tournaments Subnav & Cards ─────────────────────────── */
.sipky-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.sipky-subnav-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sipky-subnav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.sipky-subnav-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.sipky-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.sipky-tour-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sipky-tour-card.is-live {
  border: 1.5px solid #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  background: linear-gradient(to bottom right, #ffffff, #fef2f2);
}
.sipky-tour-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sipky-tour-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.sipky-tour-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.sipky-badge-live {
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
}
.sipky-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: sipky-pulse 1.4s infinite;
}
@keyframes sipky-pulse {
  0% { transform: scale(0.85); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
  100% { transform: scale(0.85); opacity: 1; }
}
.sipky-badge-scheduled {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
}
.sipky-badge-finished {
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
}
.sipky-badge-ranked {
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.sipky-badge-unranked {
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.sipky-tour-meta {
  font-size: 12.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sipky-tour-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sipky-tour-winner {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sipky-tour-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.sipky-badge-place {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

/* ── Tournaments Filter Toolbar ────────────────────────── */
.sipky-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.sipky-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sipky-filter-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 4px;
}
.sipky-filter-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.sipky-filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}
.sipky-filter-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.28);
}
.sipky-filter-pill.is-live-pill {
  border-color: #fca5a5;
  color: #dc2626;
}
.sipky-filter-pill.is-live-pill:hover {
  background: #fee2e2;
}
.sipky-filter-pill.is-live-pill.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Universal Modal Dialog (Popup / Lightbox)
   ═══════════════════════════════════════════════════════════ */
.sipky-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.sipky-modal-backdrop.sipky-modal-open {
  opacity: 1;
  visibility: visible;
}
.sipky-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform .2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}
.sipky-modal-backdrop.sipky-modal-open .sipky-modal-dialog {
  transform: scale(1) translateY(0);
}
.sipky-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #ffffff;
  flex-shrink: 0;
}
.sipky-modal-title {
  font-size: 17.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffffff;
}
.sipky-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  outline: none;
}
.sipky-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}
.sipky-modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

/* Modal Tabs */
.sipky-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.sipky-modal-tab-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: all .15s;
}
.sipky-modal-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.sipky-modal-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #eff6ff;
}

/* Spacious Bracket Grid in Modal */
.sipky-modal-bracket {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px 4px;
  align-items: stretch;
  -webkit-overflow-scrolling: touch;
}
.sipky-bracket-round {
  width: 250px;
  min-width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sipky-bracket-round-title {
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px 8px 0 0;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sipky-bracket-round-matches {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
}
.sipky-bracket-match-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sipky-bracket-match-card.is-done {
  border-color: #10b981;
}
.sipky-bracket-participant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  background: #f8fafc;
}
.sipky-bracket-participant.is-winner {
  background: #ecfdf5;
  font-weight: 800;
  color: #065f46;
}
.sipky-bracket-score {
  font-weight: 800;
  font-size: 13px;
}

/* ── Modal Hero Banners with Background Image ───────────── */
.sipky-hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 22px 24px;
  margin-bottom: 22px;
  color: #ffffff;
  background-color: #0f172a;
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sipky-hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(30, 41, 59, 0.92) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 1;
}
.sipky-hero-banner > * {
  position: relative;
  z-index: 2;
}
.sipky-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #94a3b8;
}
.sipky-hero-meta-pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  color: #f1f5f9;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sipky-hero-venue {
  color: #e2e8f0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sipky-hero-duel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sipky-hero-team {
  flex: 1;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  word-break: break-word;
}
.sipky-hero-team.home { text-align: right; }
.sipky-hero-team.away { text-align: left; }
.sipky-hero-team.is-winner {
  color: #4ade80;
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.45);
}
.sipky-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}
.sipky-hero-score {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .06em;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 5px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  color: #ffffff;
}
.sipky-hero-legs {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.sipky-hero-result-tag {
  text-align: center;
  margin-top: 14px;
}
/* ── Text Truncation & Venue Hide Helpers ────────────────── */
.sipky-mobile-only {
  display: none !important;
}
.sipky-team-name {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.sipky-player-name {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.sipky-team-venue {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.sipky-team-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN: TABLETS (max-width: 900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sipky-widget {
    padding: 14px 12px;
  }

  /* Skrýt název herny na tabletu i mobilu */
  .sipky-team-venue {
    display: none !important;
  }

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

  .sipky-col-extra {
    display: none !important;
  }

  .sipky-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sipky-tabs-nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    gap: 4px;
  }

  .sipky-tabs-season-wrap {
    margin-left: 0;
    width: 100%;
  }

  .sipky-tabs-season-wrap .sipky-season-select {
    width: 100%;
  }

  .sipky-tours-grid,
  .sipky-teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN: SMARTPHONES & MOBILES (max-width: 640px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .sipky-widget {
    padding: 10px 6px;
    border-radius: 8px;
    font-size: 12.5px;
  }

  .sipky-mobile-only {
    display: block !important;
  }

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

  .sipky-col-extra {
    display: none !important;
  }

  /* Název místa/herny zcela skrýt na mobilu */
  .sipky-team-venue {
    display: none !important;
  }

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

  /* Zkrácení názvů týmů a hráčů pro zobrazení všech výsledků */
  .sipky-team-name {
    max-width: 86px;
  }
  .sipky-player-name {
    max-width: 88px;
  }

  .sipky-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .sipky-header .sipky-season-select {
    width: 100%;
  }

  .sipky-title {
    font-size: 15px;
  }

  /* Tabs Navigation Swipe */
  .sipky-tabs-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px;
    border-radius: 8px;
  }

  .sipky-tab-btn {
    padding: 7px 11px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Super-kompaktní tabulka pro mobil se zobrazením VŠECH výsledků */
  .sipky-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
  }

  .sipky-table {
    font-size: 11.5px;
    width: 100%;
  }

  .sipky-table thead th {
    padding: 6px 2px !important;
    font-size: 9.5px !important;
    letter-spacing: 0;
    text-align: center;
  }
  .sipky-table thead th:nth-child(2) {
    text-align: left;
    padding-left: 4px !important;
  }

  .sipky-table tbody td {
    padding: 5px 2px !important;
  }
  .sipky-table tbody td.sipky-team {
    padding-left: 4px !important;
  }

  .sipky-pos {
    min-width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    padding: 0 !important;
  }

  .sipky-pos .sipky-trophy {
    font-size: 10px !important;
  }

  .sipky-crown {
    font-size: 11px !important;
  }

  .sipky-badge-score {
    font-size: 10px !important;
    padding: 1.5px 3px !important;
    white-space: nowrap;
  }

  .sipky-badge-pts {
    font-size: 10.5px !important;
    padding: 1.5px 4px !important;
  }

  .sipky-legend {
    font-size: 10.5px;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding: 6px 8px;
  }

  /* Match Cards on Mobile */
  .sipky-match-card-pro {
    border-radius: 8px;
  }

  .sipky-mc-top {
    padding: 7px 10px;
    font-size: 11px;
    gap: 8px;
  }

  .sipky-mc-main {
    padding: 12px 10px;
    gap: 8px;
  }

  .sipky-mc-team {
    font-size: 13.5px;
    line-height: 1.3;
  }

  .sipky-mc-score-wrap {
    min-width: 80px;
  }

  .sipky-mc-score {
    font-size: 16px;
    padding: 3px 10px;
  }

  .sipky-mc-legs {
    font-size: 10.5px;
  }

  .sipky-mc-footer {
    padding: 6px 10px;
  }

  .sipky-btn-sheet {
    width: 100%;
    justify-content: center;
    font-size: 11.5px;
    padding: 7px 10px;
  }

  /* Tournaments & Teams Grids */
  .sipky-teams-grid,
  .sipky-tours-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .sipky-tour-card,
  .sipky-team-card {
    padding: 14px;
  }

  .sipky-filter-toolbar {
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sipky-filter-group {
    width: 100%;
  }

  .sipky-filter-pill {
    padding: 4px 10px;
    font-size: 11px;
  }

  .sipky-subnav {
    flex-direction: column;
    gap: 6px;
  }

  .sipky-subnav-btn {
    width: 100%;
    justify-content: center;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* Universal Modal Dialog as Modern Bottom-Sheet on Mobile */
  .sipky-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .sipky-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
  }

  .sipky-modal-header {
    padding: 12px 14px;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .sipky-modal-title {
    font-size: 14px;
  }

  .sipky-modal-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .sipky-modal-body {
    padding: 12px 10px;
  }

  .sipky-modal-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    margin-bottom: 12px;
  }

  .sipky-modal-tab-btn {
    padding: 7px 10px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero Banners inside Modals */
  .sipky-hero-banner {
    padding: 14px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .sipky-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .sipky-hero-duel {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .sipky-hero-team.home,
  .sipky-hero-team.away {
    text-align: center !important;
    font-size: 15px;
  }

  .sipky-hero-score {
    font-size: 24px;
    padding: 3px 14px;
  }

  /* Bracket in Modal */
  .sipky-modal-bracket {
    gap: 10px;
    padding: 4px 0 14px 0;
  }

  .sipky-bracket-round {
    width: 195px;
    min-width: 190px;
  }

  .sipky-bracket-round-title {
    font-size: 11px;
    padding: 6px 8px;
  }

  .sipky-bracket-round-matches {
    padding: 8px 6px;
    gap: 8px;
  }

  .sipky-bracket-participant {
    font-size: 11px;
    padding: 4px 6px;
  }

  .sipky-bracket-score {
    font-size: 11.5px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN: EXTRA SMALL SCREENS (max-width: 420px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .sipky-team-name {
    max-width: 72px;
  }

  .sipky-player-name {
    max-width: 75px;
  }

  .sipky-table {
    font-size: 10.5px;
  }

  .sipky-table thead th {
    padding: 5px 1.5px !important;
    font-size: 9px !important;
  }

  .sipky-table tbody td {
    padding: 4px 1.5px !important;
  }

  .sipky-badge-score {
    font-size: 9.5px !important;
    padding: 1px 2.5px !important;
  }

  .sipky-badge-pts {
    font-size: 10px !important;
    padding: 1px 3px !important;
  }

  .sipky-pos {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 9px !important;
  }

  .sipky-mc-team {
    font-size: 12px;
  }

  .sipky-mc-score {
    font-size: 14px;
    padding: 2px 6px;
  }
}

/* ── Base Component Styles (Light Theme Default) ────────── */
.sipky-calendar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sipky-event-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: all .15s ease;
}
.sipky-event-card.is-live {
  border: 1.5px solid #ef4444;
  box-shadow: 0 4px 12px rgba(239,68,68,0.15);
}

.sipky-event-date-box {
  text-align: center;
  min-width: 64px;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.sipky-event-time {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}
.sipky-event-date {
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
}
.sipky-event-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.sipky-event-venue {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.sipky-event-score {
  font-size: 18px;
  font-weight: 900;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Síň slávy (HOF) */
.sipky-hof-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.sipky-hof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.sipky-hof-row {
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}
.sipky-hof-row.p1 {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}
.sipky-hof-row.p2 {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}
.sipky-hof-row.p3 {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.sipky-hof-row.stat-purple {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6b21a8;
}
.sipky-hof-row.stat-amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.sipky-hof-row.stat-green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Filtr pilulky */
.sipky-filter-pill-bar {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

/* Prázdné stavy */
.sipky-empty-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-weight: 500;
}

/* 4hra v detailu zápasu */
.sipky-row-doubles {
  background: #f1f5f9;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   ── DARK THEME OVERRIDES (BULLPOINT PORTAL) ──
   ═══════════════════════════════════════════════════════════ */

/* Hlavní kontejner widgetu */
html[data-theme="dark"] .sipky-widget {
  background: #0b1120;
  border-color: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sipky-title {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-header {
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .sipky-nav {
  background: #070a13;
  border-color: #1e293b;
}

html[data-theme="dark"] .sipky-tab-btn {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
}
html[data-theme="dark"] .sipky-tab-btn:hover {
  background: #1e293b;
  color: #ffffff;
}
html[data-theme="dark"] .sipky-tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

html[data-theme="dark"] .sipky-season-select {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}
html[data-theme="dark"] .sipky-season-select:focus {
  border-color: #3b82f6;
}

/* ── 1) Tabulka ligy v tmavém režimu ── */
html[data-theme="dark"] .sipky-table thead th {
  background: #0f172a;
  color: #94a3b8;
  border-top-color: #1e293b;
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .sipky-table tbody tr {
  color: #e2e8f0;
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .sipky-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .sipky-table tbody tr:hover td {
  background-color: rgba(37, 99, 235, 0.12) !important;
}

/* Stupně vítězů v tmavém režimu */
html[data-theme="dark"] .sipky-row-p1 td {
  background-color: rgba(245, 158, 11, 0.12) !important;
}
html[data-theme="dark"] .sipky-row-p1 td:first-child {
  border-left-color: #f59e0b !important;
}
html[data-theme="dark"] .sipky-row-p2 td {
  background-color: rgba(148, 163, 184, 0.10) !important;
}
html[data-theme="dark"] .sipky-row-p2 td:first-child {
  border-left-color: #94a3b8 !important;
}
html[data-theme="dark"] .sipky-row-p3 td {
  background-color: rgba(217, 119, 6, 0.08) !important;
}
html[data-theme="dark"] .sipky-row-p3 td:first-child {
  border-left-color: #d97706 !important;
}

/* Tým a texty v tabulce */
html[data-theme="dark"] .sipky-team-name,
html[data-theme="dark"] .sipky-player-name {
  color: #f8fafc !important;
}

html[data-theme="dark"] .sipky-team-venue,
html[data-theme="dark"] .sipky-team-sub {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-team-col {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .sipky-pos {
  color: #94a3b8;
  background: transparent;
}

html[data-theme="dark"] .sipky-badge-score {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html[data-theme="dark"] .sipky-badge-legs {
  color: #94a3b8;
  background: transparent;
}

html[data-theme="dark"] .sipky-legend {
  border-top-color: #1e293b;
  color: #94a3b8;
}

/* ── 2) Zápasy & Výsledky v tmavém režimu ── */
html[data-theme="dark"] .sipky-match-card-pro {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .sipky-mc-top {
  background: #090e1a;
  border-bottom-color: #1e293b;
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-mc-date {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-mc-venue {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-mc-team {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-mc-team.winner {
  color: #4ade80;
}

html[data-theme="dark"] .sipky-mc-score {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-mc-legs {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-mc-footer {
  background: #090e1a;
  border-top-color: #1e293b;
}

/* ── 3) Týmy & Herny v tmavém režimu ── */
html[data-theme="dark"] .sipky-team-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .sipky-tc-title {
  color: #f8fafc;
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .sipky-tc-row {
  color: #e2e8f0;
}

html[data-theme="dark"] .sipky-tc-row strong {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-tc-row.sub {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-tc-footer {
  border-top-color: #1e293b;
}

html[data-theme="dark"] .sipky-btn-sheet {
  background: #1e293b;
  border-color: #334155;
  color: #60a5fa;
}
html[data-theme="dark"] .sipky-btn-sheet:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* ── 4) Kalendář akcí v tmavém režimu ── */
html[data-theme="dark"] .sipky-calendar-topbar {
  background: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}

html[data-theme="dark"] .sipky-event-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .sipky-event-card.is-live {
  border-color: #ef4444;
  background: linear-gradient(135deg, #0f172a, #1f1315);
}

html[data-theme="dark"] .sipky-event-date-box {
  background: #090e1a;
  border-color: #1e293b;
}

html[data-theme="dark"] .sipky-event-time {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-event-date {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-event-title {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-event-venue {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-event-score {
  background: #1e293b;
  border-color: #334155;
  color: #60a5fa;
}

/* ── 5) Turnajová série v tmavém režimu ── */
html[data-theme="dark"] .sipky-tour-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .sipky-tour-card.is-live {
  border-color: #ef4444;
  background: linear-gradient(135deg, #0f172a, #1f1315);
}

html[data-theme="dark"] .sipky-tour-card-title {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-tour-meta {
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-tour-winner {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

html[data-theme="dark"] .sipky-tour-footer {
  border-top-color: #1e293b;
}

html[data-theme="dark"] .sipky-tour-scores {
  background: #1e293b;
  color: #f1f5f9;
}
html[data-theme="dark"] .sipky-tour-scores.sipky-dropped {
  background: #090e1a;
  color: #64748b;
}

html[data-theme="dark"] .sipky-filter-pill-bar {
  background: #1e293b;
}

/* ── 6) Síň slávy v tmavém režimu ── */
html[data-theme="dark"] .sipky-hof-card {
  background: #0f172a;
  border-color: #1e293b;
}

html[data-theme="dark"] .sipky-hof-header {
  border-bottom-color: #1e293b;
}

html[data-theme="dark"] .sipky-hof-row.p1 {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
html[data-theme="dark"] .sipky-hof-row.p2 {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
html[data-theme="dark"] .sipky-hof-row.p3 {
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.25);
  color: #fdba74;
}
html[data-theme="dark"] .sipky-hof-row.stat-purple {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.3);
  color: #d8b4fe;
}
html[data-theme="dark"] .sipky-hof-row.stat-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}
html[data-theme="dark"] .sipky-hof-row.stat-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #86efac;
}

/* ── 7) Modální okna a prázdné stavy ── */
html[data-theme="dark"] .sipky-modal-dialog {
  background: #0b1120;
  border: 1px solid #1e293b;
  color: #f8fafc;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .sipky-modal-body {
  background: #0b1120;
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-modal-header {
  background: #070a13;
  border-bottom: 1px solid #1e293b;
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-modal-title {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
html[data-theme="dark"] .sipky-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .sipky-modal-header {
  border-bottom-color: #1e293b;
  background: #090e1a;
}

html[data-theme="dark"] .sipky-modal-title {
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-empty-box {
  background: #090e1a;
  border-color: #1e293b;
  color: #94a3b8;
}

html[data-theme="dark"] .sipky-row-doubles {
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

html[data-theme="dark"] .sipky-subgame-score {
  background: #1e293b !important;
  color: #f8fafc;
}

html[data-theme="dark"] .sipky-btn-detail {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
html[data-theme="dark"] .sipky-btn-detail:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #475569;
}

html[data-theme="dark"] .sipky-footer {
  border-top-color: #1e293b;
  color: #64748b;
}


/* ── Nové třídy pro konzistentní barvy v Light i Dark módu ── */
.sipky-player-nick {
  font-size: 11.5px;
  color: #2563eb;
  font-weight: 600;
}
html[data-theme="dark"] .sipky-player-nick {
  color: #60a5fa !important;
}

.sipky-tour-team-badge {
  display: inline-block;
  font-size: 11px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 6px;
}
html[data-theme="dark"] .sipky-tour-team-badge {
  background: #1e293b;
  color: #93c5fd !important;
  border-color: #334155;
}

.sipky-stat-win {
  color: #15803d;
  font-weight: 700;
}
html[data-theme="dark"] .sipky-stat-win {
  color: #4ade80 !important;
}

.sipky-stat-loss {
  color: #dc2626;
  font-weight: 700;
}
html[data-theme="dark"] .sipky-stat-loss {
  color: #f87171 !important;
}

.sipky-match-winner-text {
  font-weight: 800;
  color: #15803d;
}
html[data-theme="dark"] .sipky-match-winner-text {
  color: #4ade80 !important;
}

.sipky-text-dim {
  color: #94a3b8;
}

.sipky-badge-captain {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}
html[data-theme="dark"] .sipky-badge-captain {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sipky-badge-deputy {
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 700;
}
html[data-theme="dark"] .sipky-badge-deputy {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe !important;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Bronzový zápas v pavouku */
.sipky-bracket-bronze-matches {
  background: #fefce8;
  border-color: #fef08a;
}
html[data-theme="dark"] .sipky-bracket-bronze-matches {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.sipky-bracket-bronze-winner {
  background: #fef08a;
  color: #854d0e;
}
html[data-theme="dark"] .sipky-bracket-bronze-winner {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24 !important;
}

/* Oprava týmu a odznaku umístění */
html[data-theme="dark"] .sipky-team {
  color: #f8fafc !important;
}
html[data-theme="dark"] .sipky-team strong,
html[data-theme="dark"] .sipky-team a,
html[data-theme="dark"] .sipky-team span {
  color: #f8fafc;
}
html[data-theme="dark"] .sipky-badge-place {
  background: #1e293b;
  color: #cbd5e1;
}

/* Oprava subnavigace a záložek turnajů */
html[data-theme="dark"] .sipky-subnav {
  border-bottom-color: #1e293b;
}
html[data-theme="dark"] .sipky-subnav-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
html[data-theme="dark"] .sipky-subnav-btn:hover {
  background: #334155;
  color: #ffffff;
}
html[data-theme="dark"] .sipky-subnav-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
html[data-theme="dark"] .sipky-modal-tabs {
  border-bottom-color: #1e293b;
}
html[data-theme="dark"] .sipky-modal-tab-btn {
  color: #94a3b8;
}
html[data-theme="dark"] .sipky-modal-tab-btn:hover {
  color: #ffffff;
  background: #1e293b;
}
html[data-theme="dark"] .sipky-modal-tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.15);
}

/* Pavouk v tmavém režimu */
html[data-theme="dark"] .sipky-bracket-round-title {
  background: #090e1a;
  color: #93c5fd;
  border: 1px solid #1e293b;
  border-bottom: none;
}
html[data-theme="dark"] .sipky-bracket-round-matches {
  background: #0b1120;
  border-color: #1e293b;
}
html[data-theme="dark"] .sipky-bracket-match-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .sipky-bracket-match-card.is-done {
  border-color: #059669;
}
html[data-theme="dark"] .sipky-bracket-participant {
  background: #131d33;
  color: #e2e8f0;
}
html[data-theme="dark"] .sipky-bracket-participant.is-winner {
  background: rgba(16, 185, 129, 0.18);
  color: #4ade80 !important;
  font-weight: 800;
}
html[data-theme="dark"] .sipky-bracket-participant.is-winner span {
  color: #4ade80 !important;
}
html[data-theme="dark"] .sipky-bracket-score {
  color: #f8fafc;
}


/* Tagy a štítky turnajů */
.sipky-tag-teams {
  background: #fed7aa;
  color: #9a3412;
}
html[data-theme="dark"] .sipky-tag-teams {
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74 !important;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.sipky-tag-singles {
  background: #e0f2fe;
  color: #0369a1;
}
html[data-theme="dark"] .sipky-tag-singles {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc !important;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.sipky-tag-exhibition {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
html[data-theme="dark"] .sipky-tag-exhibition {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Síň slávy barvy textu */
.sipky-hof-winner {
  color: #854d0e;
}
html[data-theme="dark"] .sipky-hof-winner {
  color: #fbbf24 !important;
}

.sipky-hof-third {
  color: #9a3412;
}
html[data-theme="dark"] .sipky-hof-third {
  color: #fdba74 !important;
}

.sipky-hof-stat-lbl.purple {
  color: #6d28d9;
}
html[data-theme="dark"] .sipky-hof-stat-lbl.purple {
  color: #c084fc !important;
}

.sipky-hof-stat-lbl.amber {
  color: #b45309;
}
html[data-theme="dark"] .sipky-hof-stat-lbl.amber {
  color: #fcd34d !important;
}

.sipky-hof-stat-lbl.green {
  color: #047857;
}
html[data-theme="dark"] .sipky-hof-stat-lbl.green {
  color: #6ee7b7 !important;
}
