body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin: 1rem 0 0.5rem;
  color: #fff;
  animation: rankingFadeZoom 1s ease-out forwards;
}

h1 span {
  color: red;
}

.ranking-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 600px;
  background-color: #000;
  margin: 0;
  padding: 170px 1rem 2rem;
  z-index: 1;
}

.ranking-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ranking-bg .bg-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: rankingFadeZoom 1s ease-out forwards;
  animation-delay: 1s;
}

.ranking-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-content: center;
}

.division {
  background-color: #111;
  padding: 1rem;
  border: 1px solid red;
  border-radius: 10px;
  color: white;
  scroll-margin-top: 100px;
  animation: fadeInUp 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 0.85rem;
}

.campeon {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-direction: column;
  text-align: center;
}

.campeon-img {
  width: 100px;
  height: 100px;
  background-color: #111;
  clip-path: polygon(
    25% 6.7%,
    75% 6.7%,
    100% 50%,
    75% 93.3%,
    25% 93.3%,
    0% 50%
  );
  object-fit: cover;
  border: none;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

.campeon-info {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.titulo-division {
  font-size: 1rem;
  color: red;
  margin: 0;
}

.nombre-campeon {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0.3rem 0;
}

.etiqueta {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #f00;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  font-size: 0.75rem;
}

.ranking-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0;
  list-style: decimal inside;
}

.ranking-list li {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.15);
  font-size: 0.85rem;
  list-style-position: inside;
}

.ranking-list li:hover {
  transform: scale(1.03);
}

.ranking-list a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
}

.ranking-list a:hover {
  color: red;
  text-decoration: underline;
}

@keyframes rankingFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .ranking-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .ranking-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ranking-content {
    grid-template-columns: 1fr;
  }
  .campeon-img {
    width: 80px;
    height: 80px;
  }
  .titulo-division {
    font-size: 1rem;
  }
  .nombre-campeon {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ranking-section {
    min-height: 300px;
    padding-top: 170px;
  }
}

@supports (-webkit-touch-callout: none) {
  .ranking-section {
    height: 100dvh !important;
  }
}
