/*!
 * WebEngine CMS - Spectacular Glass Rankings
 * Modern frosted glass effect with animations
 */

/* ========================================
   RANKINGS CONTAINER
   ======================================== */
.rankings-glass-container {
    position: relative;
    padding: 0;
    margin: 8px 0 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   RANKINGS MENU - Glass Pills
   ======================================== */
.rankings-glass-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 28px;
    justify-content: center;
}

.rankings-glass-menu a {
    position: relative;
    padding: 12px 28px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c4b9a0;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(60,20,30,0.8) 0%, rgba(30,15,20,0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(180,130,80,0.2);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(180,130,80,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Removed flashing animation on menu buttons */

.rankings-glass-menu a:hover {
    color: #fff;
    border-color: rgba(180,130,80,0.5);
    box-shadow: 
        0 8px 32px rgba(180,130,80,0.25),
        0 0 20px rgba(180,130,80,0.15),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.rankings-glass-menu a.active {
    background: linear-gradient(135deg, rgba(180,130,80,0.3) 0%, rgba(120,80,50,0.15) 100%);
    border-color: rgba(180,130,80,0.6);
    color: #c9a050;
    box-shadow: 
        0 4px 20px rgba(180,130,80,0.35),
        0 0 30px rgba(180,130,80,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ========================================
   GLASS TABLE WRAPPER
   ======================================== */
.rankings-glass-table-wrap {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(35,20,25,0.95) 0%, rgba(25,15,18,0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(180,130,80,0.15);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.6),
        0 0 80px rgba(120,40,40,0.08),
        inset 0 1px 0 rgba(180,130,80,0.1);
    overflow: hidden;
}

/* Removed top line decoration */

/* ========================================
   GLASS TABLE - Clean Reset with !important
   ======================================== */
table.rankings-glass-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

table.rankings-glass-table thead {
    background: linear-gradient(180deg, rgba(50,25,30,0.95) 0%, rgba(35,20,25,0.9) 100%) !important;
}

table.rankings-glass-table thead tr th {
    padding: 16px 16px !important;
    font-family: 'Cinzel', serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #c9a050 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: none !important;
    background: transparent !important;
    position: static !important;
}

table.rankings-glass-table tbody tr td {
    padding: 15px 16px !important;
    vertical-align: middle !important;
    text-align: center !important;
    border: none !important;
    color: #e0d6c8 !important;
    background: transparent !important;
    position: static !important;
}

/* Left-align specific columns */
table.rankings-glass-table th.col-player,
table.rankings-glass-table td.col-player,
table.rankings-glass-table th.col-guild,
table.rankings-glass-table td.col-guild {
    text-align: left !important;
}

/* Row backgrounds */
table.rankings-glass-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.02) !important;
}

table.rankings-glass-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.08) !important;
}

table.rankings-glass-table tbody tr:hover,
.rankings-glass-table-wrap table tbody tr:hover {
    background: rgba(180,130,80,0.15) !important;
    cursor: pointer;
}

.rankings-glass-table-wrap table tbody tr:hover td {
    background: transparent !important;
}

/* Force no pseudo-elements */
table.rankings-glass-table tbody tr::before,
table.rankings-glass-table tbody tr::after,
table.rankings-glass-table tbody td::before,
table.rankings-glass-table tbody td::after {
    display: none !important;
    content: none !important;
}

/* Guild cell styling */
.guild-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.guild-cell > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.guild-cell img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(180,130,80,0.3);
}

.guild-cell span a {
    color: #c9a050;
    text-decoration: none;
    font-size: 13px;
}

.guild-cell span a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(180,130,80,0.5);
}

.no-guild {
    color: #555;
    font-style: italic;
}

/* ========================================
   VIP BADGES - Metallic Effects
   ======================================== */
.vip-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vip-free {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    color: #888;
    border: 1px solid #555;
}

.vip-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 50%, #cd7f32 100%);
    color: #fff;
    border: 1px solid #daa520;
    box-shadow: 0 0 8px rgba(205,127,50,0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.vip-silver {
    background: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 50%, #e8e8e8 100%);
    color: #333;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(200,200,200,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.vip-gold {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #ffd700 100%);
    color: #1a1a1a;
    border: 1px solid #daa520;
    box-shadow: 0 0 15px rgba(255,215,0,0.5), 0 0 30px rgba(255,215,0,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 15px rgba(255,215,0,0.5), 0 0 30px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.7), 0 0 40px rgba(255,215,0,0.3); }
}

/* ========================================
   STAT ICONS - Small icons for Duel/PK
   ======================================== */
.ico {
    display: inline-block;
    font-style: normal;
    font-size: 10px;
    margin-right: 2px;
    opacity: 0.9;
}

/* ========================================
   TOOLTIPS - Hover descriptions
   ======================================== */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(30,20,25,0.98) 0%, rgba(20,15,18,0.98) 100%);
    color: #e0d6c8;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: 280px;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,160,80,0.3);
    border: 1px solid rgba(201,160,80,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip-trigger::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(30,20,25,0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 1s;
}

.power-wrapper {
    display: block;
}

/* ========================================
   DUEL SCORE - Win/Lose Display
   ======================================== */
.duel-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.duel-win {
    display: inline-flex;
    align-items: center;
    color: #2fd26f;
    text-shadow: 0 0 10px rgba(47,210,111,0.5);
}

.duel-lose {
    display: inline-flex;
    align-items: center;
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231,76,60,0.5);
}

.duel-separator {
    color: #c9a050;
    font-weight: 700;
    font-size: 14px;
}

/* ========================================
   PK STATS - Kills / Deaths Display
   ======================================== */
.pk-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.pk-kills {
    display: inline-flex;
    align-items: center;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255,107,53,0.5);
}

.pk-deaths {
    display: inline-flex;
    align-items: center;
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.pk-separator {
    color: #666;
    font-weight: 400;
}

/* ========================================
   POWER BAR - Animated Progress
   ======================================== */
.power-bar-container {
    position: relative;
    width: 100%;
    height: 16px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(100,100,100,0.3);
}

.power-bar {
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.power-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: powerShine 2s ease-in-out infinite;
}

@keyframes powerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.power-low {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 0 10px rgba(231,76,60,0.5);
}

.power-medium {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 0 10px rgba(243,156,18,0.5);
}

.power-full {
    background: linear-gradient(90deg, #2fd26f 0%, #27ae60 100%);
    box-shadow: 0 0 15px rgba(47,210,111,0.6);
    animation: powerPulse 1.5s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(47,210,111,0.6); }
    50% { box-shadow: 0 0 25px rgba(47,210,111,0.9); }
}

.power-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    z-index: 1;
}

.power-status {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.power-status-low {
    color: #e74c3c;
}

.power-status-medium {
    color: #f39c12;
}

.power-status-full {
    color: #2fd26f;
    text-shadow: 0 0 8px rgba(47,210,111,0.5);
}

/* ========================================
   MINI POWER BAR - Sidebar Widget
   ======================================== */
.mini-power-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
}

.mini-power-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mini-power-fill.power-low {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.mini-power-fill.power-medium {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.mini-power-fill.power-full {
    background: linear-gradient(90deg, #2fd26f 0%, #27ae60 100%);
}

.mini-power-text {
    font-size: 9px;
    font-weight: 600;
    color: #c9a050;
}

.mini-power-wrapper {
    display: block;
    cursor: pointer;
}

/* Custom Guild Tooltip Box */
.guild-tooltip-box {
    display: none;
    position: fixed;
    z-index: 99999;
    background: linear-gradient(135deg, rgba(40,25,30,0.98) 0%, rgba(25,15,20,0.98) 100%);
    color: #e0d6c8;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,160,80,0.4);
    border: 1px solid rgba(201,160,80,0.3);
    pointer-events: none;
}

/* ========================================
   TABLE ROWS - Glass Effect
   ======================================== */
.rankings-glass-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

/* Removed - was causing column shift
.rankings-glass-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.rankings-glass-table tbody tr:hover::before {
    background: linear-gradient(180deg, #c9a050, #8b6914);
}
*/

.rankings-glass-table tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}

.rankings-glass-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.1);
}

.rankings-glass-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(120,60,60,0.15) 0%, rgba(80,40,40,0.05) 100%);
    box-shadow: inset 0 0 30px rgba(180,130,80,0.05);
}

.rankings-glass-table tbody td {
    padding: 15px 16px;
    color: #e0d6c8;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}

.rankings-glass-table tbody td:first-child {
    padding-left: 22px;
}

.rankings-glass-table tbody td.col-guild {
    padding-right: 24px;
}

/* ========================================
   RANK POSITION - Spectacular Badges
   ======================================== */
.rank-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

/* Top 3 Special Ranks */
.rank-position.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 50%, #ffd700 100%);
    color: #1a1a1a;
    box-shadow: 
        0 4px 15px rgba(255,215,0,0.4),
        0 0 30px rgba(255,215,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.3);
    animation: goldPulse 2s ease-in-out infinite;
}

.rank-position.rank-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 50%, #e8e8e8 100%);
    color: #1a1a1a;
    box-shadow: 
        0 4px 15px rgba(192,192,192,0.4),
        0 0 20px rgba(192,192,192,0.2),
        inset 0 2px 0 rgba(255,255,255,0.4);
}

.rank-position.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 50%, #cd7f32 100%);
    color: #fff;
    box-shadow: 
        0 4px 15px rgba(205,127,50,0.4),
        0 0 20px rgba(205,127,50,0.2),
        inset 0 2px 0 rgba(255,255,255,0.2);
}

.rank-position.rank-default {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    color: #888;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 4px 25px rgba(255,215,0,0.6), 0 0 50px rgba(255,215,0,0.3); }
}

/* ========================================
   PLAYER NAME - Glow Effect
   ======================================== */
.player-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-name-cell a {
    color: #e0d6c8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.player-name-cell a:hover {
    color: #c9a050;
    text-shadow: 0 0 20px rgba(180,130,80,0.5);
}

.player-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(180, 130, 80, 0.35);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.player-avatar .rankings-class-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 8px rgba(94, 188, 255, 0.15);
    object-fit: cover;
}

.player-avatar.is-online {
    border-color: rgba(67, 214, 118, 0.92);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 14px rgba(67, 214, 118, 0.34);
}

.player-avatar.is-offline {
    border-color: rgba(210, 76, 76, 0.92);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 14px rgba(210, 76, 76, 0.28);
}

.player-avatar.is-online:hover {
    border-color: rgba(74, 222, 128, 1);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 18px rgba(67, 214, 118, 0.45);
    transform: scale(1.08);
}

.player-avatar.is-offline:hover {
    border-color: rgba(248, 113, 113, 1);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 16px rgba(210, 76, 76, 0.38);
    transform: scale(1.08);
}

.player-avatar:not(.is-online):not(.is-offline):hover {
    border-color: #c9a050;
    transform: scale(1.05);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(180, 130, 80, 0.25);
}

/* ========================================
   STATS - Glass Chips
   ======================================== */
.stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 14px;
    color: #c4b9a0;
    transition: all 0.3s ease;
}

.stat-chip.stat-primary {
    background: linear-gradient(135deg, rgba(180,130,80,0.25) 0%, rgba(120,80,50,0.1) 100%);
    border-color: rgba(180,130,80,0.4);
    color: #c9a050;
}

.stat-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========================================
   GUILD LOGO - Glass Frame
   ======================================== */
.guild-logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.guild-logo-frame:hover {
    border-color: rgba(180,130,80,0.5);
    box-shadow: 0 4px 15px rgba(180,130,80,0.25);
}

.guild-logo-frame img {
    border-radius: 4px;
}

/* ========================================
   ONLINE STATUS INDICATOR
   ======================================== */
.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.online-indicator.is-online {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74,222,128,0.5);
}

.online-indicator.is-offline {
    background: #6b7280;
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ========================================
   COUNTRY FLAG
   ======================================== */
.country-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ========================================
   LOCATION TAG
   ======================================== */
.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    font-size: 12px;
    color: #888;
}

.location-tag::before {
    content: '📍';
    font-size: 10px;
}

/* ========================================
   UPDATE TIME - Footer
   ======================================== */
.rankings-glass-footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 20px;
}

.rankings-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #666;
}

.rankings-update-badge::before {
    content: '🔄';
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .rankings-glass-menu {
        gap: 8px;
    }
    
    .rankings-glass-menu a {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .rankings-glass-table thead th,
    .rankings-glass-table tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .rank-position {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .player-avatar {
        width: 32px;
        height: 32px;
    }

    .player-avatar .rankings-class-image {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   ROW ENTRANCE ANIMATION
   ======================================== */
.rankings-glass-table tbody tr {
    animation: rowFadeIn 0.5s ease forwards;
    opacity: 0;
}

.rankings-glass-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.rankings-glass-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.rankings-glass-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.rankings-glass-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.rankings-glass-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.rankings-glass-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.rankings-glass-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.rankings-glass-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.rankings-glass-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.rankings-glass-table tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Rankings shell — unified outer panel (title + menu + table) ===== */
#content > .col-xs-12:has(.rankings-glass-shell) {
    padding-left: 0;
    padding-right: 0;
    float: none;
}

.rankings-glass-shell {
    width: 1190px;
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 26px 26px;
    box-sizing: border-box;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 900px 320px at 50% -20%, rgba(180, 130, 80, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(30, 18, 22, 0.62), rgba(16, 10, 14, 0.78));
    border: 1px solid rgba(180, 130, 80, 0.18);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rankings-glass-shell .page-title.rankings-module-title {
    margin: 0 0 16px 2px;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent !important;
    box-shadow: none !important;
    font-family: 'Cinzel', Georgia, serif;
    color: #e7dbc4;
}

.rankings-glass-shell .page-title.rankings-module-title::before {
    content: '» ';
    color: #8a7a6a;
}

.rankings-glass-shell .page-title.rankings-module-title span {
    display: inline-block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d7c7b1;
    background: transparent !important;
    box-shadow: none !important;
}

.rankings-glass-shell .rankings-glass-menu {
    margin: 0 0 24px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.rankings-glass-shell .rankings-glass-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.rankings-glass-shell .rankings-glass-footer {
    margin-top: 14px;
    padding: 0;
}

.rankings-glass-pagination {
    margin-top: 18px;
    text-align: center;
}

.rankings-glass-pagination .we-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(33, 28, 29, 0.9);
    border-radius: 6px;
}

.rankings-glass-pagination .we-page-num {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    color: #c4b9a0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.rankings-glass-pagination .we-page-num:hover {
    color: #fff;
    background: rgba(121, 193, 46, 0.2);
}

.rankings-glass-pagination .we-page-active {
    color: #fff;
    background: linear-gradient(180deg, #79c12e, #5a9620);
    font-weight: 600;
}

.rankings-glass-pagination-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #8f8270;
    letter-spacing: 0.03em;
}

.class-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.class-cell .class-name {
    font-size: 11px;
    color: #a9947b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table.rankings-glass-table thead tr th .th-sub {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #8f7a55;
    letter-spacing: 0.04em;
    margin-top: 2px;
    text-transform: none;
}

.rankings-glass-table .col-player a {
    color: #e0d6c8;
    text-decoration: none;
    font-weight: 500;
}

.rankings-glass-table .col-player a:hover {
    color: #c9a050;
    text-shadow: 0 0 12px rgba(180, 130, 80, 0.45);
}

/* Column widths — match RezistMU inline layout */
table.rankings-glass-table .col-rank   { width: 70px; }
table.rankings-glass-table .col-flag   { width: 70px; }
table.rankings-glass-table .col-class  { width: 80px; }
table.rankings-glass-table .col-player { width: auto; min-width: 110px; }
table.rankings-glass-table .col-vip    { width: 72px; }
table.rankings-glass-table .col-duel   { width: 130px; }
table.rankings-glass-table .col-pk     { width: 100px; }
table.rankings-glass-table .col-power  { width: 140px; }
table.rankings-glass-table .col-resets { width: 90px; }
table.rankings-glass-table .col-level  { width: 80px; }
table.rankings-glass-table .col-guild  { width: 150px; min-width: 150px; }
table.rankings-glass-table .col-logo   { width: 60px; }
table.rankings-glass-table .col-members { width: 70px; }
table.rankings-glass-table .col-metric { width: 150px; }
table.rankings-glass-table .col-gr     { width: 110px; }

table.rankings-glass-table thead tr th:first-child,
table.rankings-glass-table tbody tr td:first-child {
    padding-left: 22px !important;
}

table.rankings-glass-table thead tr th.col-guild,
table.rankings-glass-table tbody tr td.col-guild,
table.rankings-glass-table thead tr th.col-metric:last-child,
table.rankings-glass-table tbody tr td.col-metric:last-child {
    padding-right: 24px !important;
}

table.rankings-glass-table .col-power .power-wrapper,
table.rankings-glass-table .col-metric .power-wrapper {
    max-width: 128px;
    margin: 0 auto;
}

.player-name-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .rankings-glass-shell {
        width: 100%;
        padding: 16px 14px 18px;
    }

    .rankings-glass-menu {
        gap: 14px;
        margin-bottom: 22px;
    }

    table.rankings-glass-table {
        table-layout: auto !important;
    }
}
