/* Ranks Panel Styles - Kosmik Dstroyer Radio */

#ranks-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 1rem 0.5rem;
    background-color: #ffb300;
    color: #000000;
    border: 1px solid #ffb300;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1em;
    z-index: var(--z-index-chat-trigger);
    box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    opacity: 1;
}

#ranks-trigger:hover {
    background-color: #e6a100;
}

#ranks-trigger.ranks-panel-open {
    opacity: 0.3;
}

#ranks-trigger.ranks-panel-open:hover {
    opacity: 0.8;
}

#ranks-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #1a1a1a;
    border-right: 2px dashed #ffb300;
    visibility: hidden;
    z-index: var(--z-index-chat-panel);
    padding: 0.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    color: #ffb300;
    transition: left 0.2s ease-in-out, visibility 0s linear 0.2s;
}

#ranks-panel.ranks-panel-visible {
    left: 0;
    visibility: visible;
    transition: left 0.3s ease-in-out, visibility 0s linear 0s;
}

#ranks-panel #ranks-container {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    font-family: 'VT323', monospace;
    color: #ffb300;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#ranks-panel #ranks-header {
    padding: 0.5rem;
    border-bottom: 2px dashed #ffb300;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 2px;
}

#ranks-panel #ranks-timer {
    font-size: 0.75em;
    font-weight: normal;
    color: #888;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

#ranks-panel #ranks-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
}

#ranks-panel #ranks-list::-webkit-scrollbar {
    display: none;
}

#ranks-panel #ranks-list .rank-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px dashed #444;
}

#ranks-panel #ranks-list .rank-item:last-child {
    border-bottom: none;
}

#ranks-panel #ranks-list .rank-position {
    font-weight: bold;
    color: #0ff;
    min-width: 40px;
}

#ranks-panel #ranks-list .rank-nickname {
    flex: 1;
    text-align: left;
    padding: 0 0.5rem;
}

#ranks-panel #ranks-list .rank-score {
    font-weight: bold;
    color: #ffb300;
    min-width: 50px;
    text-align: right;
}

#ranks-panel #ranks-list .rank-item.current-user {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #0f0;
}
