/* =========================
   RANKING FANS
   Neo Anime Radio
========================= */

.nav-menu a.active {
    color: #22d3ee;
    text-shadow: 0 0 18px rgba(34, 211, 238, .65);
}

/* =========================
   HERO RANKING
========================= */

.ranking-hero,
.games-hero {
    width: min(1200px, calc(100% - 30px));
    margin: 70px auto 50px;
    min-height: 410px;
    padding: 55px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(0, 12, 30, 0.94), rgba(45, 0, 55, 0.75)),
        url("https://i.imgur.com/YDYcJel.png");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 195, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ranking-hero::after,
.games-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 195, 255, 0.08)),
        radial-gradient(circle at right, rgba(255, 0, 180, 0.20), transparent 40%);
    pointer-events: none;
}

.ranking-hero-content,
.games-hero-content,
.ranking-status-card,
.games-status-card {
    position: relative;
    z-index: 2;
}

.ranking-hero h2,
.games-hero h2 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(42px, 6vw, 76px);
    max-width: 850px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00c3ff, #ffffff, #ff4fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranking-hero p,
.games-hero p {
    max-width: 720px;
    color: #d4f7ff;
    line-height: 1.7;
    font-size: 17px;
}

.ranking-hero-actions,
.games-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.ranking-status-card,
.games-status-card {
    min-height: 210px;
    border-radius: 28px;
    background:
        radial-gradient(circle at center, rgba(0, 217, 255, 0.18), transparent 55%),
        rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(0, 217, 255, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(0, 217, 255, 0.08);
    text-align: center;
}

.ranking-status-card span,
.games-status-card span {
    color: #00d9ff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ranking-status-card strong,
.games-status-card strong {
    font-family: "Orbitron", sans-serif;
    font-size: 34px;
    margin: 10px 0;
    color: #ffffff;
}

.ranking-status-card small,
.games-status-card small {
    color: #9bdff0;
    line-height: 1.6;
}

/* =========================
   SECCIONES GENERALES
========================= */

.ranking-main-section {
    width: min(1200px, calc(100% - 30px));
    margin: 50px auto 80px;
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading span {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: "Orbitron", sans-serif;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
}

/* =========================
   TOP 3 SEMANAL
========================= */

.weekly-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.weekly-podium-card {
    position: relative;
    overflow: hidden;
    padding: 34px 24px 30px;
    border-radius: 34px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .99));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    isolation: isolate;
    transition: .28s ease;
}

.weekly-podium-card:hover {
    transform: translateY(-6px) scale(1.015);
}

.weekly-podium-aura {
    position: absolute;
    inset: -35%;
    z-index: -3;
    opacity: .95;
    filter: blur(30px);
    pointer-events: none;
    animation: weeklyAuraPulse 4.5s ease-in-out infinite;
}

.weekly-podium-card::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -90%;
    width: 70%;
    height: 240%;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, .04) 35%,
        rgba(255, 255, 255, .20) 50%,
        rgba(255, 255, 255, .04) 65%,
        transparent 100%
    );
    transform: rotate(10deg);
    animation: weeklyCardShine 5.5s ease-in-out infinite;
}

.weekly-podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .55;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.18) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 22%, rgba(255,255,255,.14) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 76%, rgba(255,255,255,.13) 0 1px, transparent 2px),
        radial-gradient(circle at 28% 82%, rgba(255,255,255,.10) 0 1px, transparent 2px);
    animation: weeklyParticles 6s ease-in-out infinite;
}

.weekly-top-1 {
    border-color: rgba(250, 204, 21, .70);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .42),
        0 0 42px rgba(250, 204, 21, .24),
        0 0 90px rgba(250, 204, 21, .13),
        inset 0 0 34px rgba(250, 204, 21, .06);
    background:
        radial-gradient(circle at top, rgba(250, 204, 21, .24), transparent 42%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, .14), transparent 46%),
        linear-gradient(135deg, rgba(24, 17, 4, .94), rgba(2, 6, 23, .99));
}

.weekly-top-1 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(250, 204, 21, .52) 0%, rgba(236, 72, 153, .18) 38%, transparent 70%);
}

.weekly-top-2 {
    border-color: rgba(203, 213, 225, .58);
    box-shadow:
        0 28px 82px rgba(0, 0, 0, .38),
        0 0 40px rgba(203, 213, 225, .18),
        0 0 76px rgba(34, 211, 238, .10),
        inset 0 0 30px rgba(203, 213, 225, .05);
    background:
        radial-gradient(circle at top, rgba(203, 213, 225, .19), transparent 44%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, .13), transparent 46%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .99));
}

.weekly-top-2 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(203, 213, 225, .40) 0%, rgba(34, 211, 238, .15) 38%, transparent 70%);
}

.weekly-top-3 {
    border-color: rgba(251, 146, 60, .60);
    box-shadow:
        0 28px 82px rgba(0, 0, 0, .38),
        0 0 40px rgba(251, 146, 60, .20),
        0 0 76px rgba(236, 72, 153, .10),
        inset 0 0 30px rgba(251, 146, 60, .05);
    background:
        radial-gradient(circle at top, rgba(251, 146, 60, .21), transparent 44%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, .13), transparent 46%),
        linear-gradient(135deg, rgba(30, 14, 5, .94), rgba(2, 6, 23, .99));
}

.weekly-top-3 .weekly-podium-aura {
    background:
        radial-gradient(circle, rgba(251, 146, 60, .42) 0%, rgba(236, 72, 153, .14) 38%, transparent 70%);
}

.weekly-podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    font-size: .82rem;
    font-weight: 900;
    margin-bottom: 18px;
    backdrop-filter: blur(14px);
}

.weekly-podium-medal {
    position: relative;
    font-size: 3.3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(255,255,255,.16));
    animation: medalPulse 3.2s ease-in-out infinite;
}

.weekly-top-1 .weekly-podium-medal {
    position: relative;
    font-size: 0;
    line-height: 1;
    min-height: 72px;
    margin-bottom: 14px;
    filter: none;
    animation: none;
}

.weekly-top-1 .weekly-podium-medal::before {
    content: "👑";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    line-height: 1;
    filter:
        drop-shadow(0 0 10px rgba(250, 204, 21, .85))
        drop-shadow(0 0 24px rgba(250, 204, 21, .45))
        drop-shadow(0 0 42px rgba(250, 204, 21, .25));
    animation: crownFloat 2.6s ease-in-out infinite;
}

.weekly-account-avatar {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 22px;
    font-size: 2.25rem;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, .24), transparent 58%),
        linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(15, 23, 42, .88));
    border: 1px solid rgba(34, 211, 238, .26);
    box-shadow: 0 0 28px rgba(34, 211, 238, .14);
}

.weekly-podium-card h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.weekly-podium-card h3 a {
    color: inherit;
    text-decoration: none;
}

.weekly-podium-card h3 a:hover {
    text-decoration: underline;
}

.weekly-podium-label {
    color: #cbd5e1;
    font-weight: 800;
    margin-bottom: 20px;
}

.weekly-podium-score {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.weekly-podium-score strong,
.weekly-podium-score span {
    min-width: 100px;
    padding: 13px 15px;
    border-radius: 20px;
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.weekly-top-1 .weekly-podium-score strong,
.weekly-top-1 .weekly-podium-score span {
    color: #fde68a;
    background: rgba(250, 204, 21, .13);
    border: 1px solid rgba(250, 204, 21, .38);
}

.weekly-top-2 .weekly-podium-score strong,
.weekly-top-2 .weekly-podium-score span {
    color: #e2e8f0;
    background: rgba(203, 213, 225, .10);
    border: 1px solid rgba(203, 213, 225, .30);
}

.weekly-top-3 .weekly-podium-score strong,
.weekly-top-3 .weekly-podium-score span {
    color: #fdba74;
    background: rgba(251, 146, 60, .11);
    border: 1px solid rgba(251, 146, 60, .32);
}

.weekly-podium-card small {
    display: block;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 700;
}

/* =========================
   ESTADÍSTICAS
========================= */

.ranking-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.ranking-stat-card {
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.10), transparent 35%),
        linear-gradient(145deg, rgba(0, 20, 45, 0.92), rgba(0, 8, 20, 0.94));
    border: 1px solid rgba(0, 195, 255, 0.16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.ranking-stat-card span {
    display: block;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 8px;
}

.ranking-stat-card strong {
    display: block;
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
}

.ranking-stat-card small {
    color: #cbd5e1;
}

/* =========================
   RANKING GENERAL
========================= */

.ranking-full-list {
    display: grid;
    gap: 14px;
}

.ranking-full-item {
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
    display: grid;
    grid-template-columns: 80px 64px 1fr 150px;
    gap: 16px;
    align-items: center;
}

.ranking-full-item.podium {
    border-color: rgba(250, 204, 21, .28);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .24),
        0 0 28px rgba(250, 204, 21, .08);
}

.ranking-full-position {
    color: #67e8f9;
    font-family: "Orbitron", sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
}

.ranking-full-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.8rem;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, .22), transparent 58%),
        linear-gradient(135deg, rgba(236, 72, 153, .16), rgba(15, 23, 42, .88));
    border: 1px solid rgba(34, 211, 238, .24);
}

.ranking-full-player strong a {
    color: #f8fafc;
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
}

.ranking-full-player strong a:hover {
    color: #67e8f9;
    text-decoration: underline;
}

.ranking-full-player small {
    display: block;
    color: #94a3b8;
    margin-top: 5px;
    font-weight: 700;
    line-height: 1.5;
}

.ranking-full-score {
    text-align: right;
}

.ranking-full-score strong {
    display: block;
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
}

.ranking-full-score span {
    display: block;
    color: #67e8f9;
    font-weight: 900;
    margin-top: 4px;
}

.ranking-full-score small {
    display: block;
    margin-top: 4px;
    color: #fef3c7;
    font-weight: 900;
}

/* =========================
   ESTADO VACÍO
========================= */

.ranking-empty-big {
    text-align: center;
    padding: 34px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 0, 180, 0.10), transparent 35%),
        linear-gradient(145deg, rgba(0, 20, 45, 0.92), rgba(0, 8, 20, 0.94));
    border: 1px solid rgba(0, 195, 255, 0.16);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.ranking-empty-big span {
    display: block;
    font-size: 3rem;
    margin-bottom: 12px;
}

.ranking-empty-big h3 {
    color: #f8fafc;
    font-family: "Orbitron", sans-serif;
    margin-bottom: 10px;
}

.ranking-empty-big p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =========================
   CALLOUT FINAL
========================= */

.ranking-callout,
.games-callout {
    width: min(1200px, calc(100% - 30px));
    margin: 55px auto 80px;
    padding: 38px 42px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 0, 180, 0.14), transparent 36%),
        radial-gradient(circle at bottom left, rgba(0, 217, 255, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(0, 20, 45, 0.94), rgba(0, 8, 20, 0.97));
    border: 1px solid rgba(0, 195, 255, 0.18);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.36),
        0 0 34px rgba(0, 195, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.ranking-callout::before,
.games-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent, rgba(255,255,255,.04), transparent);
    pointer-events: none;
}

.ranking-callout-content,
.ranking-callout > div,
.games-callout > div {
    position: relative;
    z-index: 2;
}

.ranking-callout h2,
.games-callout h2 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    color: #f8fafc;
    margin: 14px 0 12px;
    line-height: 1.15;
    text-shadow: 0 0 24px rgba(34, 211, 238, .14);
}

.ranking-callout p,
.games-callout p {
    color: #c9eef7;
    line-height: 1.7;
    max-width: 760px;
    font-weight: 600;
}

.ranking-callout .btn,
.games-callout .btn {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes weeklyAuraPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: .72;
    }

    50% {
        transform: scale(1.08) rotate(6deg);
        opacity: 1;
    }
}

@keyframes weeklyCardShine {
    0% {
        left: -95%;
        opacity: 0;
    }

    18% {
        opacity: .85;
    }

    38% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

@keyframes weeklyParticles {
    0%, 100% {
        opacity: .38;
        transform: translateY(0);
    }

    50% {
        opacity: .75;
        transform: translateY(-6px);
    }
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-50%) translateY(-8px) scale(1.06);
    }
}

@keyframes medalPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .ranking-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .ranking-hero,
    .games-hero {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

    .weekly-podium-grid {
        grid-template-columns: 1fr;
    }

    .ranking-full-item {
        grid-template-columns: 70px 56px 1fr;
    }

    .ranking-full-score {
        grid-column: 3;
        text-align: left;
    }

    .ranking-callout,
    .games-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .ranking-callout .btn,
    .games-callout .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .ranking-hero,
    .games-hero {
        margin-top: 35px;
        border-radius: 26px;
        padding: 30px 24px;
    }

    .ranking-hero-actions .btn,
    .games-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ranking-stats-grid {
        grid-template-columns: 1fr;
    }

    .ranking-full-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ranking-full-avatar,
    .ranking-full-position {
        margin: 0 auto;
    }

    .ranking-full-score {
        grid-column: auto;
        text-align: center;
    }

    .ranking-callout,
    .games-callout {
        border-radius: 26px;
        padding: 24px;
    }
}

.weekly-account-avatar.has-image,
.ranking-full-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.weekly-account-avatar-img,
.ranking-full-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.weekly-account-avatar-emoji,
.ranking-full-avatar-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}