/* 
   music_ranking.css 
   Music-specific refinements keeping the premium Player Ranking style
*/

:root {
    --accent-music: #a855f7;
    --accent-music-glow: rgba(168, 85, 247, 0.4);
}

/* Structural Parity with ranking.css */

.rk-music-controls-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.rk-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.rk-tab {
    padding: 6px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9px;
    transition: all 0.3s ease;
}

.rk-tab:hover {
    color: var(--text-primary);
}

.rk-tab.active {
    background: var(--accent-music);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-music-glow);
}

/* Dropdown */
.rk-custom-select {
    position: relative;
    width: 220px;
}

.rk-select-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.rk-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: none;
    z-index: 1000000;
}

.rk-custom-select.active .rk-select-options {
    display: block;
}

.rk-option {
    padding: 10px 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.rk-option:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
}

/* Grid Definition for Music (7 columns) */
.rk-music-grid {
    grid-template-columns: 50px 90px 1fr 180px 150px 80px 60px !important;
    gap: 15px;
}

.rk-col-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0 !important;
}

/* Song Column details */
.rk-music-icon-box {
    width: 75px;
    height: 75px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-music);
    font-size: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rk-song-thumb-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rk-row:hover .rk-song-thumb-small {
    transform: scale(1.1);
}

.rk-song-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rk-badge-new {
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

/* Artist/Editor Column */
.rk-artist-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.rk-editor-name {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Stats Column */
.rk-stats-music {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rk-play-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-highlight);
    font-family: var(--font-display);
}

.rk-col-stats,
.rk-col-action {
    text-align: center;
}

.rk-level-badge {
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid transparent;
    letter-spacing: 0.05em;
}

.rk-level-badge.diff-0 {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.rk-level-badge.diff-1 {
    background: rgba(244, 180, 0, 0.15);
    color: #f4b400;
    border-color: rgba(244, 180, 0, 0.3);
}

.rk-level-badge.diff-2 {
    background: rgba(255, 30, 86, 0.15);
    color: #ff1e56;
    border-color: rgba(255, 30, 86, 0.3);
}

/* New Song Covers for Podium */
.music-cover-podium {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.rk-podium-card:hover .music-cover-podium {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-music);
    box-shadow: 0 0 30px var(--accent-music-glow);
}

.music-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.music-cover-podium:hover .music-cover-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.music-cover-podium:hover .music-cover-overlay i {
    opacity: 1 !important;
}

.rk-podium-center .music-cover-podium {
    width: 120px;
    height: 120px;
}

/* View Button */
.rk-btn-eye {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.rk-btn-eye:hover {
    background: var(--accent-music);
    color: #fff;
    border-color: var(--accent-music);
    box-shadow: 0 0 15px var(--accent-music-glow);
}

/* ──────────────────────────────────────────────────────────────────────────
   NEW SONG HIGHLIGHTS (Gold Lateral Borders & Shadow)
   ────────────────────────────────────────────────────────────────────────── */

/* PODIUM CARDS NEW */
.rk-podium-new {
    border-left: 4px solid var(--accent-highlight) !important;
    border-right: 4px solid var(--accent-highlight) !important;
    position: relative;
}

.rk-podium-new:hover {
    box-shadow: var(--shadow-glow-gold) !important;
}

/* LEADERBOARD ROWS NEW */
.rk-row-new {
    border-left: 4px solid var(--accent-highlight) !important;
    border-right: 4px solid var(--accent-highlight) !important;
    position: relative;
    border-radius: 10px;
    /* Mantener la forma de la fila */
}

.rk-row-new:hover {
    box-shadow: var(--shadow-glow-gold) !important;
}

/* Elegant Pulse Effect (Replacing Vinyl) */
@keyframes playing-pulse {
    0% {
        box-shadow: 0 0 5px var(--accent-music);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 15px var(--accent-music);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-music);
        transform: scale(1);
    }
}

.playing-pulse {
    animation: playing-pulse 2s ease-in-out infinite;
    border: 2px solid var(--accent-music) !important;
    border-radius: 8px !important;
}

.btn-play-music {
    background: none;
    border: none;
    color: var(--accent-music);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-music:hover {
    color: var(--accent-highlight);
    transform: scale(1.2);
}

.btn-play-music.is-playing {
    color: var(--accent-highlight);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}