:root {
  --bg-color: #020617;
  --bg-gradient: radial-gradient(circle at top, #4a0c12 0, #020617 55%);
  --card-bg: rgba(10, 16, 32, 0.95);
  --card-border: rgba(244, 63, 94, 0.35);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #f43f5e;
  --accent-soft: rgba(244, 63, 94, 0.4);
  --radius-xl: 18px;
  --transition-fast: 0.2s ease-out;
  --shadow-strong: 0 0 38px rgba(244, 63, 94, 0.85);
  --nav-height: 72px;
  --max-width: 1200px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
}

body {
  display: flex;
  flex-direction: column;
}

/* NAV */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), transparent);
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
}

/* Logo: solo imagen, sin borde ni filtro */
.site-nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.site-nav__brand span {
  opacity: 0.95;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
}

.site-nav__link {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  cursor: pointer;
  text-decoration: none;
  color: #e5e7eb;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--transition-fast), opacity var(--transition-fast),
    border-color var(--transition-fast);
}

.site-nav__link:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(244, 63, 94, 0.7);
}

/* LAYOUT GENERAL */

.page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 40px 16px 80px;
}

/* HERO HOME */

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero__title {
  font-size: 2.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero__summary {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 26px var(--accent-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.hero-pill__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, var(--accent), #020617);
}

.hero-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-pill__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.hero-pill__amount {
  font-weight: 700;
}

/* VOD GRIDS (RECENT STREAMS & HIGHLIGHTS) */

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vod-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 18px var(--accent-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), filter var(--transition-fast);
}

.vod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(238, 34, 34, 0.9);
  filter: brightness(1.05);
}

.vod-card__thumb {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}

.vod-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vod-card__title {
  padding: 10px 14px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* GRID DE SITES (HOME y LISTA) */

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.site-card-link {
  text-decoration: none;
  color: inherit;
}

.site-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  padding: 18px 18px 16px;
  box-shadow: 0 0 24px var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast),
    background var(--transition-fast);
  min-height: 260px;              /* <- MISMA ALTURA MÍNIMA PARA TODAS */
  justify-content: space-between; /* reparte contenido arriba/abajo */
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(184, 148, 148, 0.8);
  background: rgba(15, 23, 42, 0.98);
}

.site-card__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  margin-bottom: 4px;
}

.site-card__logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.site-card__logo-img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* info */

.site-card__info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-card__info-code {
  letter-spacing: 0.12em;
}

.site-card__info-code span {
  color: #e5e7eb;
  font-weight: 600;
}

/* ============================
   Kick floating live indicator
   ============================ */

.kick-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 22px rgba(0,0,0,0.35);

  color: rgba(255,255,255,0.9);
  text-decoration: none;

  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}

.kick-float:hover{
  transform: translateY(-2px);
  border-color: rgba(252, 125, 125, 0.35);
}

.kick-float__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  box-shadow: none;
}

.kick-float__text{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* estados */
.kick-float--loading .kick-float__dot{
  background: rgba(252, 125, 125, 0.6);
  box-shadow: 0 0 0 0 rgba(252, 125, 125, 0);
  animation: kickPulse 1.1s infinite ease-in-out;
}

.kick-float--live .kick-float__dot{
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.14);
}

.kick-float--offline .kick-float__dot{
  background: rgba(255,255,255,0.35);
  box-shadow: none;
}

@keyframes kickPulse{
  0%{ box-shadow: 0 0 0 0 rgba(125,211,252,0.25); }
  70%{ box-shadow: 0 0 0 8px rgba(125,211,252,0.0); }
  100%{ box-shadow: 0 0 0 0 rgba(125,211,252,0.0); }
}

/* descripción: un punto azul por línea */

.site-card__desc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-card__desc-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.site-card__dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* botón */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  border: none;
  outline: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #0f172a);
  box-shadow: 0 0 20px var(--accent-soft);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* FOOTER SOCIALS */

.socials {
  text-align: center;
  margin-top: 20px;
}

.socials__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.socials__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-pill {
  min-width: 150px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    box-shadow var(--transition-fast);
}

.social-pill:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.7);
}

.social-pill__icon {
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(148, 163, 184, 0.65);
  border-radius: 999px;
  padding: 4px;
}

.social-pill__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* LEADERBOARD PAGE */

.lb-hero {
  text-align: center;
  margin-bottom: 34px;
}

.lb-hero__subtitle {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.lb-hero__title {
  font-size: 1.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.lb-hero__description {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 22px;
}

.lb-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* top nav para todas las leaderboards en la parte superior */

.lb-top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.lb-top-nav__item {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast),
    opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lb-top-nav__item--active {
  border-color: rgba(244, 63, 94, 0.9);
  opacity: 1;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.9);
  background: rgba(15, 23, 42, 0.98);
}

/* icono dentro de la pill de leaderboard (similar al de la home) */
.lb-top-nav__icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0%, var(--accent), #020617);
  flex-shrink: 0;
}

.lb-top-nav__icon img {
  width: 18px;     /* tamaño fijo para todos los logos */
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

/* top 3 cards */

/* disposición tipo podio (1º centrado, 2º izq, 3º dcha) */
.lb-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  justify-items: center;
  gap: 24px;
  margin-bottom: 42px;
  position: relative;
}

.lb-top-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  padding: 18px 16px 16px;
  text-align: center;
  box-shadow: 0 0 22px var(--accent-soft);
  width: 100%;
  max-width: 240px;
  transition: transform 0.2s ease-in-out;
}

/* 1º (oro) más alto y centrado */
.lb-top-card:nth-child(1) {
  order: 2;
  transform: translateY(-20px);
  border-color: gold;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
}

/* 2º (plata) a la izquierda */
.lb-top-card:nth-child(2) {
  order: 1;
  border-color: silver;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

/* 3º (bronce) a la derecha */
.lb-top-card:nth-child(3) {
  order: 3;
  border-color: #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

.lb-top-card__avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: rgb(42, 15, 15);
  border: 1px dashed rgba(184, 148, 148, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
}

.lb-top-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-top-card__name {
  margin-bottom: 4px;
  font-weight: 600;
}

.lb-top-card__wagered-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
  margin-bottom: 3px;
}

.lb-top-card__wagered-amount {
  font-weight: 700;
  margin-bottom: 6px;
}

.lb-top-card__reward {
  font-size: 0.9rem;
  font-weight: 700;
}

/* countdown */

.lb-countdown {
  text-align: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 18px;
}

/* tabla resto de leaderboard */

.lb-table-wrap {
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 24px var(--accent-soft);
  overflow: hidden;
}

.lb-table-header,
.lb-table-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 160px;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.76rem;
}

.lb-table-header {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.98);
}

/* separadores y alternancia sutil */
.lb-table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-table-row:nth-child(even) {
  background: rgba(15, 23, 42, 0.96);
}

.lb-table-row:nth-child(odd) {
  background: rgba(20, 30, 50, 0.98);
}

.lb-table-place {
  color: var(--accent);
  font-weight: 600;
}

/* LISTA DE LEADERBOARDS ( /leaderboards ) */

.lb-list-title {
  text-align: center;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 26px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero__title {
    font-size: 1.7rem;
  }

  .lb-hero__title {
    font-size: 1.5rem;
  }

  .lb-table-header,
  .lb-table-row {
    grid-template-columns: 60px 1fr 120px 140px;
    font-size: 0.7rem;
  }

  /* Ajuste podio en tablet/móvil mediano */
  .lb-top3 {
    gap: 16px;
  }
  .lb-top-card:nth-child(1) {
    transform: translateY(-12px);
  }
}

@media (max-width: 600px) {
  .lb-table-header,
  .lb-table-row {
    grid-template-columns: 52px 1.2fr 0.9fr 0.9fr; /* Place | User | Wagered | Reward */
    font-size: 0.68rem;
  }

  /* Ajuste podio en móvil */
  .lb-top-card {
    max-width: 200px;
  }
  .lb-top-card:nth-child(1) {
    transform: translateY(-8px);
  }
}
/* Igualar altura de todas las cards manteniendo su anchura */
.available-leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 40px;
  align-items: stretch; /* <- hace que todas tengan la altura de la mayor */
}

.available-leaderboard-card {
  height: 100%;
}
