* {
    box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,197,24,0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(59,130,246,0.08), transparent 40%),
    linear-gradient(135deg, #0b1220, #0a0f1c);
  color: #e5e7eb;
  cursor: url("assets/cursor/cur5.cur"), auto;
}

/* ===== HEADER ===== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(14px);
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(245,197,24,0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  
}

.brand img {
  height: 50px;
}

.menu {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  flex: 1;
  justify-content: center;
  max-width: fit-content;
  margin: 0 auto;
}

.menu a {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  color: #cbd5e1;
  cursor: url("assets/cursor/cur5.cur"), auto;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.menu a:hover {
  background: rgba(245,197,24,0.15);
  color: #f5c518;
}

.menu a.active {
  background: #f5c518;
  color: #0a0f1c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: #374151;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.lang-switch button.active {
  background: #f5c518;
  color: #0a0f1c;
}

.lang-switch button:hover:not(.active) {
  background: #4b5563;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== MAIN ===== */

main {
  margin-top: 70px;
}

.section {
  padding: 10px 4%;
  animation: fadeIn 0.4s ease-in-out;
}

.section > div {
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.section.active {
  display: block;
}

h1, h2 {
  letter-spacing: -0.5px;
}

p {
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */

.hero-landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 20px;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.hero-button {
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  background: #f5c518;
  color: #0a0f1c;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.4);
}

.hero-image img {
  width: 450px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .hero-landing {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .hero-image img {
    width: 100%;
  }
}

img {
  max-width: 100%;
}

.content-img {
  border-radius: 14px;
  margin: 25px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

iframe {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* ===== MOBILE NAV ===== */

@media (max-width: 900px) {
  .menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: #111827;
    padding: 20px;
    border-radius: 0 0 0 12px;
  }
  .menu.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero-text h1 {
    font-size: 34px;
  }
}

/* ===== SCREEN TRANSITION EFFECT ===== */

.transition {
  position: fixed;
  inset: 0;
  background: #0a0f1c;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.transition.active {
  opacity: 1;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #f5c518;
  margin: 10px auto 0;
  border-radius: 2px;
}

.footer {
  margin-top: 80px;
  padding: 30px 8%;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer .socials {
  margin-top: 10px;
}

.footer a {
  color: #f5c518;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-community{

    margin:15px 0 10px;
    color:#ccc;
    font-size:15px;

}

.socials{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    margin-top:18px;
    flex-wrap:wrap;

}

.socials a{

    display:flex;
    align-items:center;
    justify-content:center;
    min-width:170px;
    padding:10px 18px;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.2s;

}

.socials a:hover{

    transform:translateY(-2px);
    text-decoration:none;

}

.discord-btn{

    background:#5865F2;
    color:white !important;
    padding:10px 18px;
    border-radius:8px;
    font-weight:600;
    transition:.2s;
    text-decoration: none;
    grid-column:2;
    justify-self:start;
    margin-top:18px;
    
}

.discord-btn:hover{

    transform:translateY(-2px);
    background:#4752C4;

}

.youtube-btn{

    background:#FF0000;

}

.youtube-btn:hover{

    background:#D90000;

}

/* ===== BANNER ANIMATION ===== */

.portal-banner {
  position: relative;
  padding: 80px 40px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(245,197,24,0.12), rgba(0,0,0,0.6)),
    url('assets/home1.png') center/cover no-repeat;
  overflow: hidden;
  animation: bannerMove 18s ease-in-out infinite alternate;
}

@keyframes bannerMove {
  0% { background-position: center; }
  100% { background-position: center top; }
}

.portal-banner::before {
  content: "";
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.1), transparent 40%);
  animation: lightsMove 20s linear infinite;
}

@keyframes lightsMove {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== DIVISION CARDS ===== */

.divisions {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.division-card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.06);
}

.division-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.division-logo {
  width: 100px;
}

.division-header h3 {
  margin: 0;
  font-size: 24px;
}

.division-table {
  width: 70%;
  border-radius: 10px;
}

.table-embed {
  width: 100%;
  overflow-x: hidden;
}

.table-embed iframe {
  border: none;
  border-radius: 10px;
}

/* ================================
   PLAYERS LAYOUT
================================ */

.players-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.player-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ================================
   LISTA DE JUGADORES
================================ */

.players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ITEM JUGADOR */

.player {
  display: flex;
  align-items: center;
  cursor: url("assets/cursor/cur5.cur"), auto;
  background: linear-gradient(#2f6db5, #1c3f7a);
  border: 2px solid transparent;
  image-rendering: pixelated;
  transition: 0.15s;
}

.player img {
  width: 100%;
}

.player:hover {
  filter: brightness(1.2);
}

/* ================================
   SELECCIÓN ESTILO ISSD
================================ */

.player.selected {
  position: relative;
  background: linear-gradient(#4faeff, #2f6db5);
  animation: issdBlink 0.35s infinite;
  outline: 1px solid black;
}

.player.selected::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid #004cff;
  animation: issdBlinkAlt 0.1s steps(2) infinite;
}

@keyframes issdBlink {
  0% {
    box-shadow: 0 0 0 6px #004cff, 0 0 0 6px #ffd800, 0 0 0 6px #004cff;
  }
  50% {
    box-shadow: 0 0 0 6px #ffbe00, 0 0 0 6px #e7e7e7, 0 0 0 6px #ffbe00;
  }
  100% {
    box-shadow: 0 0 0 6px #0000ff, 0 0 0 6px #ffff00, 0 0 0 6px #0000ff;
  }
}

/* ================================
   PANEL INFO
================================ */

.player-info {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.player-image {
  flex-shrink: 0;
  margin-top: 15%;
}

.player-info img {
  width: 200px;
  height: auto;
  align-self: flex-start;
  image-rendering: pixelated;
}

.player-info h3 {
  margin-top: 10px;
}

.player-info p {
  color: #ccc;
}

/* ===== PLAYER CARD ===== */

.card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(245,197,24,0.15);
  max-width: 100%;
}

.card-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

.card-img {
  width: 10%;
  border-radius: 10px;
}

.card-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.stat {
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.stat span {
  font-size: 12px;
  color: #aaa;
}

.stat strong {
  font-size: 16px;
  color: #f5c518;
}

.stats-group {
  padding-bottom: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 25px;
}

.stats-group:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.stats-group h4 {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-box {
  margin: 3px;
}

.stat-box span {
  font-size: 13px;
  color: #aaa;
}

.stat-box strong {
  font-size: 16px;
  color: #f5c518;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ================================
   MOBILE CARD (inline, en lista)
================================ */

.mobile-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,197,24,0.2);
  padding: 16px;
  border-radius: 12px;
  margin: 6px 0 10px 0;
  animation: fadeIn 0.25s ease;
}

.mobile-img {
  width: 90px;
  display: block;
  margin: 0 auto 12px;
  image-rendering: pixelated;
}

.mobile-card-name {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #f5c518;
  margin-bottom: 12px;
}

.mobile-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px 8px;
}

.mobile-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin: 0 0 8px 0;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  font-size: 12px;
}

.mobile-grid div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 5px 8px;
  line-height: 1.4;
}

.mobile-grid div span {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-grid div strong {
  font-size: 13px;
  color: #f5c518;
  font-weight: 600;
}

/* ================================
   YOUTUBE CHIP
================================ */

.yt-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.2);
  color: #ff4d4d;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.yt-chip:hover {
  background: rgba(255, 0, 0, 0.5);
  transform: translateY(-1px);
}

.hidden {
  display: none;
}

/* ================================
   H2H SECTION
================================ */

.h2h-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 24px;
  box-sizing: border-box;
}

.h2h-section h3 {
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 20px;
}

.h2h-dropdown {
  position: relative;
  width: 260px;
  margin: 10px auto;
  font-size: 14px;
  text-align: center;
}

.h2h-selected {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
}

.h2h-selected:hover {
  background: rgba(255,255,255,0.12);
}

.h2h-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.h2h-options.hidden {
  display: none;
}

.h2h-option {
  padding: 10px 14px;
  cursor: pointer;
}

.h2h-option:hover {
  background: rgba(255,255,255,0.1);
}

.h2h-option.selected {
  background: rgba(255,204,0,0.2);
}

/* Resumen H2H */

.h2h-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0 25px 0;
}

.summary-card {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card .label {
  font-size: 12px;
  color: #aaa;
}

.summary-card .value {
  font-size: 18px;
  font-weight: bold;
  color: #ffcc00;
}

.summary-card.win  { border-bottom: 3px solid #4caf50; }
.summary-card.draw { border-bottom: 3px solid #ccc; }
.summary-card.loss { border-bottom: 3px solid #f44336; }
.summary-card.goals { border-bottom: 3px solid #ffcc00; }

/* Fila de partido H2H */

.h2h-match {
  display: grid;
  grid-template-columns: 0.6fr 0.6fr 0.6fr 0.6fr 0.1fr;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.h2h-left {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.h2h-left span {
  color: #e5e7eb;
  font-weight: 600;
}

.h2h-left small {
  color: #aaa;
  font-size: 13px;
  font-weight: 400;
}

.h2h-center {
  text-align: center;
  color: #e5e7eb;
}

.h2h-center-score {
  text-align: center;
}

.h2h-score-chip {
  display: inline-block;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.h2h-match.win  .h2h-score-chip { color: #6ee87a; }
.h2h-match.loss .h2h-score-chip { color: #f87171; }

.h2h-obs {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

.h2h-rom {
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.h2h-right {
  text-align: right;
}

.h2h-match.win  { background: rgba(76,255,80,0.09); }
.h2h-match.loss { background: rgba(255,67,54,0.09); }

.playLink {
  text-decoration: none;
  color: #f44336;
  font-size: 16px;
  transition: color 0.2s;
}

.playLink:hover {
  color: #ff6b6b;
}

/* ================================
   RESPONSIVE — MOBILE
================================ */

@media (max-width: 768px) {

  /* Layout principal pasa a columna única */
  .players-container {
    display: block;
  }

  /* Lista horizontal en mobile: scroll horizontal */
  .players-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .player {
    width: calc(25% - 4px); /* 4 por fila */
    flex-shrink: 0;
  }

  /* Ocultar columna derecha completa en mobile (stats + h2h desktop) */
  .player-right-col {
    display: none;
  }

  /* Mobile card más compacta */
  .mobile-grid {
    grid-template-columns: 1fr 1fr;
    font-size: 11px;
  }

  /* H2H summary: 2 columnas en mobile */
  .h2h-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  /* H2H match: colapsar columnas en mobile */
  .h2h-match {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 4px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .h2h-left {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .h2h-center:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .h2h-center-score {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .h2h-center:nth-of-type(2) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .h2h-right {
    grid-column: 1 / 3;
    grid-row: 3;
    text-align: center;
  }

  /* stats-grid ya tiene 2 columnas, ok en mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* stats-container a 1 columna en mobile pequeño */
  .stats-container {
    grid-template-columns: 1fr;
  }

  /* section padding reducido */
  .section {
    padding: 8px 3%;
  }

  .section > div {
    padding: 16px;
  }

  .section > .divisions {
    padding: 0;
    background: none;
    border: none;
}

}

@media (max-width: 480px) {

  /* En pantallas muy chicas, 3 jugadores por fila */
  .player {
    width: calc(33.33% - 4px);
  }


}

/* ================================
   H2H DENTRO DE MOBILE CARD
================================ */

.mobile-h2h-section {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}

.mobile-h2h-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin: 0 0 10px 0;
  text-align: center;
}

/* Dropdown ocupa todo el ancho dentro de la card */
.mobile-h2h-section .h2h-dropdown {
  width: 100%;
  margin: 0 0 10px 0;
}

/* Summary cards en 2 columnas dentro de la card mobile */
.mobile-h2h-section .h2h-summary {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 14px 0;
}

/* Fila de partido — versión mobile: layout vertical compacto */
.h2h-match-mobile {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.h2h-match-mobile.win  { background: rgba(76,255,80,0.09); }
.h2h-match-mobile.loss { background: rgba(255,67,54,0.09); }

.hmm-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hmm-torneo {
  font-size: 12px;
  color: #e5e7eb;
  font-weight: 600;
}

.hmm-fase {
  font-size: 11px;
  color: #aaa;
}

.hmm-teams {
  color: #e5e7eb;
  font-size: 12px;
  text-align: center;
}

.hmm-vs {
  color: #aaa;
  margin: 0 4px;
  font-size: 11px;
}

.hmm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.hmm-score {
  display: inline-block;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.h2h-match-mobile.win  .hmm-score { color: #6ee87a; }
.h2h-match-mobile.loss .hmm-score { color: #f87171; }

.hmm-obs {
  font-size: 11px;
  color: #aaa;
}

.hmm-rom {
  font-size: 11px;
  color: #64748b;
}

#titles {
  white-space: pre-line;
}

/* ================================
   HISTORIAL - ACCORDION
================================ */

.accordion {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #f5c518;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.accordion-header:hover {
  background: rgba(245,197,24,0.1);
}

.accordion-header.active {
  background: rgba(245,197,24,0.2);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  padding: 20px;
}

.hist-block {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* ================================
   HISTORIAL — ACCORDION HEADER
================================ */

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-title {
  font-size: 16px;
  font-weight: 700;
  color: #f5c518;
  white-space: nowrap;
}

.acc-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #f5c518;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-header.active .acc-arrow {
  transform: rotate(180deg);
}

/* ================================
   HISTORIAL — INNER WRAPPER
================================ */

.hist-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================
   HISTORIAL — SEASON GRID
   (tarjetas de torneos/divisiones)
================================ */

.hist-season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ================================
   HISTORIAL — CARD
================================ */

.hist-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Copa: borde dorado sutil */
.hist-card--copa {
  border-color: rgba(245,197,24,0.2);
  background: rgba(245,197,24,0.04);
}

.hist-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.hist-card-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.hist-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.3;
}

/* ================================
   PODIO
================================ */

.podio-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.podio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 110px;
  gap: 4px;
}

.podio-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.podio-medal {
  font-size: 22px;
}

/* Base del podio: el rectángulo con la posición */
.podio-base {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 4px 4px;
  padding: 6px 0 5px;
}

.podio-pos {
  font-size: 13px;
  font-weight: 700;
}

/* Alturas y colores por posición */
.podio-h-gold   .podio-base { height: 52px; background: linear-gradient(180deg, rgba(245,197,24,0.25), rgba(245,197,24,0.1)); border: 1px solid rgba(245,197,24,0.35); }
.podio-h-silver .podio-base { height: 38px; background: linear-gradient(180deg, rgba(180,180,200,0.2), rgba(180,180,200,0.08)); border: 1px solid rgba(180,180,200,0.25); }
.podio-h-bronze .podio-base { height: 28px; background: linear-gradient(180deg, rgba(180,100,40,0.2), rgba(180,100,40,0.08)); border: 1px solid rgba(180,100,40,0.3); }

.podio-gold   .podio-pos { color: #f5c518; }
.podio-silver .podio-pos { color: #b0b8c8; }
.podio-bronze .podio-pos { color: #cd7f42; }

.podio-gold   .podio-name { color: #f5e27a; }
.podio-silver .podio-name { color: #d0d8e8; }
.podio-bronze .podio-name { color: #e8b080; }

/* ================================
   ASCENSOS / DESCENSOS
================================ */

.hist-movimientos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mov-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mov-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mov-label--up   { color: #4ade80; }
.mov-label--down { color: #f87171; }

.mov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mov-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.mov-chip--up {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}

.mov-chip--down {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.25);
}

/* ================================
   CONFIG BADGES
================================ */

.hist-config {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.config-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  color: #cbd5e1;
}

.config-icon {
  font-size: 13px;
}

.config-text {
  color: #94a3b8;
}

/* ================================
   LINK AL TORNEO
================================ */

.hist-link {
  display: inline-block;
  font-size: 13px;
  color: #f5c518;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.hist-link:hover {
  color: #fde68a;
  text-decoration: underline;
}

/* ================================
   TABLA / IMAGEN
================================ */

.hist-tabla {
  border-radius: 10px;
  max-width: 100%;
  margin: 0;
}

/* ================================
   ADMINS
================================ */

.hist-admins {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.badge-label {
  font-weight: 600;
  color: #cbd5e1;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {
  .hist-season-grid {
    grid-template-columns: 1fr;
  }

  .acc-meta {
    display: none;
  }

  .podio-name {
    font-size: 11px;
  }
}