/* ==========================================================
   MAJ 2026 Ranking Styles - Premium Plate Design
   Inspired by classic ranking boards with a modern twist.
   ========================================================== */

/* Container & Board */
.maj-container {
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: #fff;
    max-width: 800px;
}

.maj-header {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 700;
}

.maj-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.maj-date {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.6;
}

/* Rank List */
.maj-rank-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Common Plate Style */
.maj-rank-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    /* Reduced from 0.75rem */
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    /* Reset link underline */
    color: inherit;
    /* Reset link color */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    /* Change to pointer for links */
    overflow: hidden;
}

.maj-rank-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Rank Medals/Numbers */
.maj-medal {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    /* Reduced from 1.5rem */
    z-index: 2;
}

.rank-num {
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    /* Ensure white for all ranks */
}

.maj-rank-meta {
    text-align: right;
    min-width: 70px;
    /* Reduced from 80 */
    opacity: 1;
    /* More prominent */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle bubble */
    padding: 1px 6px;
    /* Reduced padding */
    border-radius: 4px;
}

.rank-diff {
    font-size: 0.7rem;
    /* Reduced from 0.8 */
    font-weight: 800;
    /* Bolder */
    white-space: nowrap;
}

/* Lower Rank Adjustment */
.maj-low-rank .rank-num {
    opacity: 0.35;
    /* Further thinned out for 11+ */
}

.diff-up {
    color: #ff5e62;
}

.diff-down {
    color: #4facfe;
}

.diff-stay {
    color: rgba(255, 255, 255, 0.7);
}

.maj-artist-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Specific Rank Colors */

/* Rank 1: Gold */
.maj-rank-1 {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.maj-rank-1 .maj-medal {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.maj-rank-1 .maj-artist-name {
    color: #ffd700;
    font-size: 1.3rem;
}

/* Rank 2: Silver */
.maj-rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.maj-rank-2 .maj-medal {
    color: #e0e0e0;
}

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

/* Rank 3: Bronze */
.maj-rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.maj-rank-3 .maj-medal {
    color: #cd7f32;
}

/* Rank 4+: Default Plates */
.maj-rank-4-plus {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.maj-rank-4-plus .maj-medal {
    color: #fff;
    font-size: 1rem;
}

.maj-rank-4-plus .maj-artist-name {
    color: #fff;
}

/* Crown Icon SVG adjustment */
.maj-crown {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .maj-container {
        padding: 1rem;
        margin: 1rem;
    }

    .maj-rank-item {
        padding: 0.5rem 1rem;
    }

    .maj-medal {
        width: 35px;
        height: 35px;
        margin-right: 1rem;
    }

    .maj-artist-name {
        font-size: 1rem !important;
    }
}