/* Ranking Container */
.ranking-container {
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

.section-title {
    font-family: "Cinzel Decorative", serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #f5d76e;
    margin-bottom: 20px;
    word-break: break-word;
}

/* Wrapper para scroll horizontal em mobile */
.table-wrapper {
    overflow-x: auto;
    margin: 0 -15px;
    padding: 0 15px;
}

.ranking-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    color: #eee;
    font-family: 'Trebuchet MS', sans-serif;
}

.ranking-table th {
    background: #1c1c1c;
    color: #f0c674;
    padding: 12px 10px;
    border-bottom: 2px solid #555;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ranking-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.ranking-table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.ranking-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.ranking-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
    transition: background 0.3s;
}

/* Links na tabela */
.link-character a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #867b61;
    padding: 8px 12px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.link-character a:hover {
    color: #f5d76e;
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 768px) {
    .ranking-container {
        padding: 25px 20px;
        margin: 20px auto;
        border-radius: 8px;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .table-wrapper {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .ranking-table {
        min-width: 500px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .link-character a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .ranking-container {
        padding: 20px 15px;
        margin: 15px auto;
        border: 1px solid #444;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .table-wrapper {
        margin: 0 -5px;
        padding: 0 5px;
    }

    .ranking-table {
        min-width: 480px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .link-character a {
        padding: 5px 8px;
        font-size: 13px;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .ranking-container {
        padding: 15px 10px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .ranking-table {
        min-width: 400px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    .link-character a {
        padding: 4px 6px;
        font-size: 12px;
    }
}

/* Scroll suave customizado (opcional) */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}