/* StreamLumi — Tournaments as a product (Tier-2 #5): home rail + standings. */

.sl-tournament-rail {
  margin: 16px 4px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(1200px 120px at 0% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(180deg, #0e0b06, #0a0a0a);
  color: #f4f4f5;
}

.sl-tournament-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sl-tournament-rail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sl-tournament-rail-title > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sl-tournament-rail-title strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sl-tournament-badge,
.sl-tournament-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1a1204;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  font-size: 18px;
  flex: none;
}

.sl-tournament-season {
  font-size: 12px;
  color: #d4b483;
  font-weight: 600;
}

.sl-tournament-countdown {
  font-variant-numeric: tabular-nums;
  color: #fbbf24;
  font-weight: 800;
}

.sl-tournament-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #1a1204;
  text-decoration: none;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.sl-tournament-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
  color: #1a1204;
}

.sl-tournament-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.sl-tournament-strip::-webkit-scrollbar { height: 6px; }
.sl-tournament-strip::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.4); border-radius: 6px; }

.sl-tournament-competitor {
  flex: 0 0 auto;
  width: 92px;
}

.sl-tournament-competitor a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.sl-tourn-avatar {
  position: relative;
  display: inline-block;
}

.sl-tourn-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: #1a1a1a;
}

.sl-tourn-live {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

.sl-tourn-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
}

.sl-tourn-rank--gold { color: #1a1204; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.sl-tourn-rank--silver { color: #1f2937; background: linear-gradient(135deg, #f1f5f9, #cbd5e1); }
.sl-tourn-rank--bronze { color: #2a1a0a; background: linear-gradient(135deg, #fcd9a8, #d97706); }

.sl-tourn-name {
  font-size: 12px;
  font-weight: 700;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.sl-tourn-tokens {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.sl-tournament-empty {
  padding: 10px 4px;
  color: #a1a1aa;
  font-size: 13px;
}

/* ---- Standings landing page ---- */

.sl-tournament-standings {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px 40px;
  color: #f4f4f5;
}

.sl-tournament-hero {
  text-align: center;
  padding: 28px 16px 20px;
}

.sl-tournament-hero-badge {
  width: 60px;
  height: 60px;
  font-size: 26px;
  margin: 0 auto 12px;
}

.sl-tournament-hero h1 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.sl-tournament-hero-season {
  color: #d4b483;
  font-weight: 700;
  margin: 0 0 8px;
}

.sl-tournament-hero-prize {
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
}

.sl-tournament-empty--lg {
  text-align: center;
  font-size: 15px;
  padding: 32px 16px;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  margin-top: 16px;
}

.sl-tournament-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.sl-tournament-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 150px;
  padding: 18px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sl-tournament-podium-slot.sl-tourn-rank--gold {
  order: 0;
  transform: translateY(-14px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.sl-tournament-podium-slot .sl-tourn-avatar img {
  width: 88px;
  height: 88px;
}

.sl-tournament-podium-slot .sl-tourn-name { font-size: 15px; max-width: 140px; }
.sl-tournament-podium-slot .sl-tourn-tokens { font-size: 14px; }

.sl-tournament-table {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sl-tournament-table li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.sl-tournament-table a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.14s ease;
}

.sl-tournament-table a:hover { background: rgba(255, 255, 255, 0.06); }

.sl-tourn-table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sl-tournament-table .sl-tourn-name {
  flex: 1;
  text-align: left;
  max-width: none;
}

.sl-tourn-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
  vertical-align: middle;
}

@media (max-width: 640px) {
  .sl-tournament-podium-slot { width: 44%; }
  .sl-tournament-hero h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-tournament-cta { transition: none; }
  .sl-tournament-podium-slot.sl-tourn-rank--gold { transform: none; }
}
