:root {
    --hs-gold: #fcd144;
    --hs-gold-dim: #b89531;
    --hs-blue-glow: #00d2ff;
    --hs-text: #f0f0f0;
    --hs-tournament: #00ff9d;
    --twitch-color: #9146ff;
    --bg-dark: #1b1626;
    --card-bg: rgba(27, 22, 38, 0.85);
    --glass-border: rgba(252, 209, 68, 0.3);
    --duel-red: #ff4500;
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--hs-gold);
    outline-offset: 2px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #0b0d12;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--hs-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-bg-premium {
    background-color: var(--bg-dark) !important;
    background-image: radial-gradient(circle at top, #1b1626 0%, #000 100%) !important;
    background-attachment: fixed !important;
}

/* Particles handled by utils.js */

.podium-info {
    width: 100%;
    position: absolute;
    bottom: 35px;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    transition: all 0.4s ease-out;
}

.rank-1 .podium-info {
    bottom: -5px;
}

.rank-2 .podium-info {
    bottom: -5px;
}

.rank-3 .podium-info {
    bottom: -5px;
}

.podium-card:hover .podium-info {
    transform: scale(1.1) translateY(15px);
}

.rank-2 .podium-info,
.rank-3 .podium-info {
    background: none;
}

.podium-name {
    font-family: 'Metamorphic', serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.rank-1 .podium-name {
    color: #fcd144;
}

.rank-2 .podium-name {
    color: #e0e0e0;
}

.rank-3 .podium-name {
    color: #cd7f32;
}

.podium-tag,
.podium-mmr {
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-family: 'Metamorphic', serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--hs-gold);
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(252, 209, 68, 0.6);
    margin: 0;
    letter-spacing: 6px;
}

.subtitle {
    font-family: 'MedievalSharp', cursive;
    color: var(--hs-gold);
    font-size: 2.2rem;
    margin: 40px 0 20px 0;
    letter-spacing: 3px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    display: block;
    text-align: center;
    text-transform: uppercase;
}

.header-banner {
    width: 100vw;
    height: 350px;
    background: url('assets/img/ranking_spanish_flag_banner.gif') center top/contain no-repeat;
    border: none;
    box-shadow: none;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 20px;
    position: relative;
    display: block;
    overflow: hidden;
}

/* Elegant pulsing golden glow animation */
.header-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(252, 209, 68, 0.15) 0%, transparent 50%);
    animation: pulse-glow 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 5;
}

.header-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    animation: sweep 8s infinite linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.banner-title {
    position: relative;
    z-index: 5;
    font-family: 'Metamorphic', serif;
    font-size: 3rem;
    color: var(--hs-gold);
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(252, 209, 68, 0.5);
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.ornate-container {
    display: none;
}

.rune {
    position: absolute;
    font-family: 'Cinzel', serif;
    color: rgba(252, 209, 68, 0.3);
    font-size: 1.5rem;
    pointer-events: none;
    animation: rune-float 20s infinite linear;
}

@keyframes rune-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.season-label {
    font-family: 'Cinzel', serif;
    color: var(--hs-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.season-nav {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.season-nav::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.season-btn {
    background: rgba(43, 29, 48, 0.4);
    border: 1px solid var(--glass-border);
    color: #888;
    padding: 5px 10px;
    font-family: 'Lato', sans-serif;
    /* Cleaner for just numbers */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    min-width: 35px;
}

.season-btn:hover {
    border-color: var(--hs-gold);
    color: #fff;
    background: rgba(252, 209, 68, 0.1);
    transform: translateY(-2px);
}

.season-btn.active {
    background: var(--hs-gold);
    color: #1a0f1f;
    border-color: var(--hs-gold);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(252, 209, 68, 0.5);
    transform: scale(1.05);
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.podium-card {
    background: rgba(27, 22, 38, 0.3);
    border: none;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    min-height: 450px;
    cursor: pointer;
}

.podium-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.podium-card>* {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.podium-badge {
    background: var(--hs-gold);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(252, 209, 68, 0.5);
}

/* Tiered Badges */
.badge-coins {
    background: linear-gradient(135deg, #7f8c8d 0%, #bdc3c7 100%);
    color: #fff;
    border: 1px solid #95a5a6;
}

.badge-apprentice {
    background: linear-gradient(135deg, #cd7f32 0%, #e6aa68 100%);
    color: #fff;
    border: 1px solid #a0522d;
}

.badge-mercenary {
    background: linear-gradient(135deg, #bdc3c7 0%, #ecf0f1 100%);
    color: #333;
    border: 1px solid #7f8c8d;
}

.badge-veteran {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #fff;
    border: 1px solid #d35400;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

.badge-archmage {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: 1px solid #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.badge-titan {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: #fff;
    border: 1px solid #8e44ad;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.7);
}

.badge-legacy {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    border: 1px solid #c0392b;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.8);
}

.badge-primordial {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    background-size: 200% auto;
    color: #000;
    border: 1px solid #B8860B;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 165, 0, 0.6);
    animation: shine 3s linear infinite;
    font-weight: 900;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.duel-checkbox-wrapper {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
}

.duel-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.duel-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: #555;
    transition: all 0.3s;
}

.duel-checkbox-wrapper:hover input~.duel-checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--hs-gold);
}

.duel-checkbox-wrapper input:checked~.duel-checkmark {
    background-color: var(--duel-red);
    border-color: var(--duel-red);
    color: #fff;
    box-shadow: 0 0 15px var(--duel-red);
    transform: scale(1.1) rotate(15deg);
}

.stats-btn {
    background: linear-gradient(180deg, rgba(252, 209, 68, 0.2) 0%, rgba(252, 209, 68, 0.05) 100%);
    border: 2px solid var(--hs-gold-dim);
    border-radius: 8px;
    color: var(--hs-gold);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.stats-btn:hover {
    background: var(--hs-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(252, 209, 68, 0.5);
    transform: scale(1.1);
}

.twitch-link {
    color: var(--twitch-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.twitch-link:hover {
    text-shadow: 0 0 10px var(--twitch-color);
}

.twitch-link.live {
    color: #fff;
    background: var(--twitch-color);
    padding: 4px 10px;
    border-radius: 10px;
    animation: pulse-live 2s infinite;
}

.podium-card.rank-1 {
    width: 320px;
    order: 2;
    z-index: 5;
    transform: scale(1.05);
}

.podium-card.rank-1:hover {
    transform: scale(1.15) translateY(-10px);
}

.podium-card.rank-2 {
    width: 280px;
    order: 1;
}

.podium-card.rank-3 {
    width: 280px;
    order: 3;
}

.rank-medal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 0;
    transition: transform 0.5s;
}

.podium-card:hover .rank-medal {
    transform: scale(1.1);
}

.rank-1 .rank-medal {
    background-image: url('assets/podium/top1.gif');
    height: 100%;
}

.rank-2 .rank-medal {
    background-image: url('assets/podium/top2.gif');
}

.rank-3 .rank-medal {
    background-image: url('assets/podium/top3.gif');
}

.podium-name {
    font-size: 1.4rem;
    color: #fff;
    margin: 10px 0;
}

.podium-mmr {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--hs-gold);
    font-size: 1.2rem;
}

.podium-tag {
    font-size: 0.8rem;
    color: #999;
    margin-top: -5px;
}

.search-container {
    width: 100%;
    max-width: 950px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.search-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 30px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'MedievalSharp', cursive;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    border-color: var(--hs-gold);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(252, 209, 68, 0.3);
}

.table-container {
    width: 100%;
    max-width: 950px;
    background: rgba(27, 22, 38, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s;
}

.table-container:hover {
    border-color: var(--hs-gold);
}

.table-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--hs-gold), transparent);
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    margin-top: 20px;
}

thead {
    background: transparent !important;
    border-bottom: 2px solid var(--glass-border);
}

th {
    font-family: 'Cinzel', serif;
    color: var(--hs-gold) !important;
    padding: 15px 10px !important;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(252, 209, 68, 0.2);
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Sincronización Estricta (PX para evitar variaciones) */
.col-rank-es {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
}

.col-rank-eu {
    width: 70px !important;
    min-width: 70px !important;
    text-align: center !important;
}

.col-mmr {
    width: 110px !important;
    min-width: 110px !important;
    text-align: right !important;
    padding-right: 15px !important;
}

.col-player {
    width: auto !important;
    text-align: left !important;
}

td {
    padding: 8px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
    height: 48px;
    vertical-align: middle;
    background: transparent !important;
}

tr:hover td {
    background: rgba(252, 209, 68, 0.08);
}

.col-rank-es {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--hs-text);
}

.col-rank-eu {
    color: #999;
}

.player-row-content {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.player-info {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    align-items: center;
    gap: 5px;
    min-width: 0;
    /* Permite que el nombre se acorte si es necesario */
    flex: 1;
}

.player-name {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.player-tag {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.col-mmr {
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: var(--hs-gold);
}

.player-avatar {
    width: 24px;
    /* Aún más pequeño */
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    object-fit: cover;
    transition: all 0.3s;
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.player-avatar[src] {
    animation: none;
    background: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.player-avatar.live {
    border: 3px solid #ff4b4b;
    box-shadow: 0 0 15px rgba(255, 75, 75, 0.6), 0 0 30px rgba(255, 75, 75, 0.4);
    animation: live-glow 1.5s infinite alternate ease-in-out;
}

@keyframes live-glow {
    from {
        box-shadow: 0 0 10px rgba(255, 75, 75, 0.6), 0 0 20px rgba(255, 75, 75, 0.3);
    }

    to {
        box-shadow: 0 0 25px #ff4b4b, 0 0 50px rgba(255, 75, 75, 0.7);
    }
}

.player-avatar-link {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.player-avatar-link.live::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    background: #ff4b4b;
    border: 2px solid #1b1626;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
    z-index: 10;
}

.player-avatar-link.live::after {
    content: "LIVE";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4b4b;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.player-avatar-link.live::after::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: live-dot 1s infinite alternate;
}

@keyframes live-dot {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

@keyframes live-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes live-badge-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.player-avatar-link:hover .player-avatar {
    transform: scale(1.15);
    border-color: var(--hs-gold);
}

.twitch-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.twitch-badge.live {
    background: var(--twitch-color);
    color: #fff;
    box-shadow: 0 0 15px var(--twitch-color);
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(145, 70, 255, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(145, 70, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(145, 70, 255, 0);
    }
}

.loading-overlay {
    padding: 60px;
    text-align: center;
    color: var(--hs-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(252, 209, 68, 0.1);
    border-top: 4px solid var(--hs-gold);
    border-right: 4px solid var(--hs-gold-dim);
    border-radius: 50%;
    animation: spin 0.8s infinite cubic-bezier(0.5, 0, 0.5, 1);
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(252, 209, 68, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: 40px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .header-banner {
        height: 200px;
    }

    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-card.rank-1,
    .podium-card.rank-2,
    .podium-card.rank-3 {
        width: 85%;
        max-width: 300px;
        min-height: 350px;
        order: initial;
        margin-bottom: 15px;
    }

    /* Hide non-critical columns on mobile */
    .th-eu,
    .col-rank-eu,
    .player-tag {
        display: none;
    }

    .search-input {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

.table-row-animate {
    animation: row-in 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes row-in {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Staggered animation for the first 20 rows */
tr:nth-child(1) {
    animation-delay: 0.05s;
}

tr:nth-child(2) {
    animation-delay: 0.1s;
}

tr:nth-child(3) {
    animation-delay: 0.15s;
}

tr:nth-child(4) {
    animation-delay: 0.2s;
}

tr:nth-child(5) {
    animation-delay: 0.25s;
}

tr:nth-child(6) {
    animation-delay: 0.3s;
}

tr:nth-child(7) {
    animation-delay: 0.35s;
}

tr:nth-child(8) {
    animation-delay: 0.4s;
}

tr:nth-child(n+9) {
    animation-delay: 0.45s;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0d12;
}

::-webkit-scrollbar-thumb {
    background: var(--hs-gold-dim);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hs-gold);
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark);
    border: 2px solid var(--hs-gold);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.close-modal {
    position: sticky;
    top: 0;
    float: right;
    font-size: 2.2rem;
    color: var(--hs-gold);
    cursor: pointer;
    z-index: 10;
    background: rgba(27, 22, 38, 0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--hs-gold);
    color: #000;
    transform: scale(1.1);
}

.badge {
    font-size: 0.65rem;
    /* Más pequeño */
    padding: 1px 4px;
    /* Más compacto */
    border-radius: 3px;
    margin-left: 3px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.badge-fire {
    background: #ff4500;
    color: #fff;
    box-shadow: 0 0 10px #ff4500;
}

.badge-stream {
    background: var(--twitch-color);
    color: #fff;
    box-shadow: 0 0 10px var(--twitch-color);
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0, #909090);
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.badge-elite {
    background: linear-gradient(135deg, #9400d3, #4b0082);
    color: #fff;
    box-shadow: 0 0 10px rgba(148, 0, 211, 0.5);
}

.badge-eu {
    background: linear-gradient(135deg, #0066cc, #003399);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.badges-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.badge i {
    font-size: 0.9rem;
    margin-right: 3px;
    vertical-align: middle;
}

.badge-stream i {
    color: #fff;
}

.table-row-animate:hover {
    transform: scale(1.005);
    background: rgba(252, 209, 68, 0.1) !important;
}

.compare-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--hs-gold);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    display: none;
}

.compare-fab:hover {
    transform: scale(1.1) rotate(15deg);
}

.compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4500;
    color: #fff;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-pointer {
    cursor: pointer;
}

.comparison-container {
    display: flex;
    gap: 20px;
}

.comparison-col {
    flex: 1;
    text-align: center;
}

.comp-header {
    font-family: 'Cinzel', serif;
    color: var(--hs-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    perspective: 1000px;
}

.tool-btn {
    background: linear-gradient(180deg, #4d3d2a 0%, #2a1f14 100%);
    border: 2px solid #8e6d3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 2px 2px rgba(255, 255, 255, 0.1);
    color: #fce688;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'MedievalSharp';
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tool-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.tool-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #fcd144;
    box-shadow: 0 0 20px rgba(252, 209, 68, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tool-btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-duel {
    background: linear-gradient(180deg, #8b1e1e 0%, #4a0f0f 100%);
    border: 2px solid #ff4500;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    padding: 12px 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 69, 0, 0.4);
}

.btn-duel:hover {
    border-color: #ff8c00;
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px #ff4500;
}

#duel-center-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #ff4500;
    box-shadow: 0 0 50px rgba(255, 69, 0, 0.4);
    max-width: 850px;
}

.duel-stage {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin: 40px 0;
    position: relative;
}

.stats-modal {
    max-width: 900px !important;
    background: linear-gradient(135deg, #0b0d12 0%, #1a1e26 100%);
    overflow: hidden;
    padding: 0 !important;
    border: 2px solid var(--hs-gold);
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(to bottom, rgba(252, 209, 68, 0.1), transparent);
    border-bottom: 1px solid rgba(252, 209, 68, 0.2);
}

.hero-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--hs-gold);
    box-shadow: 0 0 30px rgba(252, 209, 68, 0.4);
    object-fit: cover;
}

.live-indicator-big {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4b4b;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 0 10px #ff4b4b;
    display: none;
    animation: pulse 1s infinite;
}

.hero-info h2 {
    font-size: 3rem;
    color: var(--hs-gold);
    font-family: 'Cinzel', serif;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
}

.metric-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(252, 209, 68, 0.2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(252, 209, 68, 0.05);
}

.m-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-family: 'MedievalSharp';
    margin-bottom: 10px;
}

.m-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Cinzel', serif;
}

.m-sub {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
}

.m-delta {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 5px;
}

.delta-up {
    color: #44ff44;
}

.delta-down {
    color: #ff4444;
}

.chart-container {
    padding: 0 30px 40px 30px;
    height: 300px;
}

.historical-section {
    padding: 0 30px 40px 30px;
}

.historical-section h3 {
    color: var(--hs-gold);
    font-family: 'Cinzel';
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.badges-wrapper {
    display: flex;
    gap: 2px;
    align-items: center;
    overflow-x: auto;
    max-width: fit-content;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.badges-wrapper::-webkit-scrollbar {
    display: none;
}

.trophy-case {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.trophy-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
}

.t-season {
    display: block;
    font-size: 0.7rem;
    color: #888;
}

.t-rank {
    display: block;
    font-size: 1.1rem;
    color: var(--hs-gold);
    font-weight: bold;
    font-family: 'Cinzel';
}

@media (max-width: 768px) {
    .hero-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }

    .hero-info h2 {
        font-size: 2rem;
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.duel-vs-circle {
    width: 80px;
    height: 80px;
    background: #ff4500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: 'Cinzel';
    color: #fff;
    box-shadow: 0 0 30px #ff4500;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

.duel-stat-big {
    font-size: 2.5rem;
    font-family: 'Cinzel';
    color: #fff;
    margin: 15px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.duel-rank-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #d4af37;
    color: #000;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Podium Avatars removed */

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 10px;
    }

    h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .header-banner {
        height: 200px;
        margin-bottom: 10px;
    }

    .season-nav {
        gap: 4px;
        margin-bottom: 20px;
    }

    .season-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        min-width: 30px;
    }

    .podium {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .podium-card {
        width: 100% !important;
        max-width: 300px;
        min-height: 380px;
        transform: scale(1) !important;
        order: unset !important;
    }

    .podium-card:hover {
        transform: translateY(-5px) !important;
    }

    .podium-name {
        font-size: 1.2rem;
    }

    .table-container {
        border-width: 2px;
        overflow-x: auto;
    }

    table {
        min-width: 600px;
        /* Force scroll */
    }

    th,
    td {
        padding: 10px;
    }

    .col-rank-es {
        font-size: 1.1rem;
    }

    .player-avatar {
        width: 32px;
        height: 32px;
    }

    .col-mmr {
        font-size: 1rem;
    }

    /* Modal Mobile */
    .modal-content {
        padding: 15px;
        width: 95%;
        max-height: 85vh;
        margin: 5% auto;
    }

    /* Fix mobile ranking scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-info h2 {
        font-size: 1.5rem;
    }
}

/* --- PROFESSIONAL FOOTER --- */
.professional-footer {
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--hs-gold);
    padding: 60px 20px 30px;
    margin-top: 80px;
    color: #eee;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--hs-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(252, 209, 68, 0.3);
    padding-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-section ul li a:hover {
    color: var(--hs-gold);
    padding-left: 5px;
}

.footer-logo-section {
    flex: 1.5;
    min-width: 250px;
    text-align: right;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hs-gold);
    margin-bottom: 10px;
}

.footer-logo span {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-section {
        text-align: center;
        margin-top: 20px;
    }
}

/* --- HORIZONTAL IMAGES IN NEWS/FORUM --- */
.news-content,
.comment-text,
.post-content {
    display: block;
    width: 100%;
}

.media-container {
    display: inline-block;
    vertical-align: top;
    margin: 10px 1%;
    max-width: 98%;
    transition: transform 0.3s ease;
}

/* Si hay más de uno consecutivo en pantallas grandes */
@media (min-width: 768px) {
    .media-container {
        max-width: 40%;
        margin: 5px 1%;
    }

    /* Si es video o solo hay uno, que use el 100% */
    .media-container:only-child,
    .media-container:has(iframe) {
        max-width: 95%;
        display: block;
        margin: 20px auto;
    }
}

.embedded-img {
    max-width: 100%;
    max-height: 320px;
    /* Tamaño carta ideal */
    object-fit: contain;
    height: auto;
    border: 1px solid rgba(252, 209, 68, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.media-container:hover {
    transform: translateY(-5px);
}

/* --- Quill.js Dark Theme Overrides --- */
.ql-toolbar.ql-snow {
    background: rgba(27, 22, 38, 0.9) !important;
    border: 1px solid var(--glass-border) !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.ql-container.ql-snow {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--glass-border) !important;
    border-top: none !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--hs-text) !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem !important;
}

.ql-snow .ql-stroke {
    stroke: var(--hs-gold) !important;
}

.ql-snow .ql-fill {
    fill: var(--hs-gold) !important;
}

.ql-snow .ql-picker {
    color: var(--hs-gold) !important;
}

.ql-snow .ql-picker-options {
    background-color: var(--bg-dark) !important;
    border-color: var(--glass-border) !important;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.3) !important;
    font-style: normal;
}

/* Modal specific editor adjustments */
#editor-container-new,
#editor-container-edit,
#news-editor-quill {
    height: 300px;
    background: transparent !important;
}

.ql-editor {
    min-height: 150px;
}

/* ============================================================
   PROFESSIONAL POLISH — Visual Overhaul
   ============================================================ */

/* --- 1. Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hs-gold-dim), rgba(252, 209, 68, 0.3));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hs-gold);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--hs-gold-dim) rgba(0, 0, 0, 0.3);
}

/* --- 2. Scroll-Triggered Fade-In Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-in:nth-child(2) {
    transition-delay: 0.08s;
}

.animate-in:nth-child(3) {
    transition-delay: 0.16s;
}

.animate-in:nth-child(4) {
    transition-delay: 0.24s;
}

.animate-in:nth-child(5) {
    transition-delay: 0.32s;
}

.animate-in:nth-child(6) {
    transition-delay: 0.40s;
}

.animate-in:nth-child(7) {
    transition-delay: 0.48s;
}

.animate-in:nth-child(8) {
    transition-delay: 0.56s;
}

.animate-in:nth-child(9) {
    transition-delay: 0.64s;
}

.animate-in:nth-child(10) {
    transition-delay: 0.72s;
}

/* --- 3. Content Skeleton Loaders --- */
.skeleton-block {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    min-height: 120px;
    margin-bottom: 20px;
}

.skeleton-line {
    height: 14px;
    width: 80%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 50%;
}

.skeleton-line.xs {
    width: 30%;
    height: 10px;
}

/* --- 4. Gradient Separator --- */
.gradient-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hs-gold-dim), transparent);
    border: none;
    margin: 30px 0;
    opacity: 0.5;
}

/* --- 5. Enhanced Table Row Hover — Gold Left Border Accent --- */
tbody tr {
    position: relative;
    transition: all 0.25s ease;
}

/* Ghost row indicator removed for stability */
tbody tr::before,
tbody tr:hover::before {
    display: none !important;
    content: none !important;
}

/* --- 6. Glassmorphism Consistency --- */
.news-card,
.forum-category,
.section-item,
.panel-section {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- 7. Toast Notification Styles --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 22px;
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.removing {
    animation: toastOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast.success {
    background: rgba(40, 167, 69, 0.85);
    border-color: rgba(40, 167, 69, 0.4);
}

.toast.error {
    background: rgba(220, 53, 69, 0.85);
    border-color: rgba(220, 53, 69, 0.4);
}

.toast.info {
    background: rgba(27, 22, 38, 0.92);
    border-color: rgba(252, 209, 68, 0.3);
}

.toast.warning {
    background: rgba(255, 152, 0, 0.85);
    border-color: rgba(255, 152, 0, 0.4);
}

.toast i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
}

/* --- 8. Top Loading Bar --- */
#top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--hs-gold), var(--hs-blue-glow), var(--hs-gold));
    background-size: 200% auto;
    z-index: 999999;
    transition: width 0.4s ease;
    animation: barShimmer 2s linear infinite;
    box-shadow: 0 0 10px var(--hs-gold), 0 0 20px rgba(252, 209, 68, 0.3);
}

@keyframes barShimmer {
    to {
        background-position: 200% center;
    }
}

/* --- 9. Tab Fade Transitions --- */
.tab-content {
    animation: tabFadeIn 0.3s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 10. Ripple Effect for Buttons --- */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple-effect:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* --- 11. Player Avatar Animated Gradient Border --- */
.player-avatar {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.player-avatar-link::before {
    content: "" !important;
}

.player-avatar-link:not(.live) {
    position: relative;
}

.player-avatar-link:not(.live) .player-avatar {
    border: 2px solid var(--glass-border);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.player-avatar-link:not(.live):hover .player-avatar {
    border-color: var(--hs-gold);
    box-shadow: 0 0 12px rgba(252, 209, 68, 0.4);
}

/* --- 12. Responsive Hamburger Menu --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--hs-gold);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 1001;
}

.hamburger-btn:hover {
    background: rgba(252, 209, 68, 0.1);
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        position: relative;
        flex-wrap: nowrap !important;
        overflow: hidden;
        max-height: 60px;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.nav-open {
        max-height: 400px;
        flex-wrap: wrap !important;
    }

    .main-nav .nav-link {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .main-nav:not(.nav-open) .nav-link:nth-child(n+4) {
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .main-nav.nav-open .nav-link {
        opacity: 1;
        visibility: visible;
        height: auto;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: opacity 0.3s ease;
    }

    /* Podium vertical on mobile */
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .podium-card {
        width: 90% !important;
        min-height: 300px;
        order: unset !important;
    }

    .podium-card.rank-1 {
        order: -1 !important;
    }

    /* Admin tabs horizontal scroll on mobile */
    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* News header smaller on mobile */
    .news-header {
        font-size: 2rem !important;
    }
}

/* --- 13. Improved Typography --- */
body {
    line-height: 1.7;
}

.news-content,
.post-body,
.topic-latest-info {
    line-height: 1.8;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* --- 14. Gradient Card Border Effect on Hover (Premium) --- */
.news-card::before,
.section-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(252, 209, 68, 0) 40%, rgba(252, 209, 68, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover::before,
.section-item:hover::before {
    opacity: 1;
}

.news-card,
.section-item {
    position: relative;
}