/* ─── Radio 90 Hit — Latest Votes Card v6.0 ─── */

.r90h-votes-card {
    --r90h-bg: rgba(15, 15, 30, 0.92);
    --r90h-surface: rgba(255,255,255,0.04);
    --r90h-up: #00e676;
    --r90h-down: #ff5252;
    --r90h-request: #7c4dff;
    --r90h-text: #ebebeb;
    --r90h-muted: #7a8599;
    --r90h-accent: #f5a623;
    --r90h-radius: 14px;
    --r90h-cover: 48px;

    background: var(--r90h-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--r90h-radius);
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    width: 100%;
    max-width: 520px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.3),
        0 12px 40px rgba(0,0,0,0.2);
}

.r90h-votes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px 11px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.r90h-votes-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--r90h-accent);
}

.r90h-votes-badge {
    font-size: 20px;
    line-height: 1;
    color: var(--r90h-up);
    animation: r90h-pulse 2.5s ease-in-out infinite;
}

@keyframes r90h-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(0.85); }
}

.r90h-votes-list { padding: 4px 0; }

/* ─── Item ─── */
.r90h-vote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    transition: background 0.25s, transform 0.2s;
    animation: r90h-slideIn 0.35s ease-out both;
}

.r90h-vote-item:hover {
    background: rgba(255,255,255,0.035);
    transform: translateX(3px);
}

.r90h-vote--up:hover      { background: rgba(0, 230, 118, 0.03); }
.r90h-vote--down:hover    { background: rgba(255, 82, 82, 0.03); }
.r90h-vote--request:hover { background: rgba(124, 77, 255, 0.04); }

@keyframes r90h-slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes r90h-flash {
    0%  { background: rgba(245, 166, 35, 0.15); }
    100% { background: transparent; }
}
.r90h-vote-flash { animation: r90h-flash 0.6s ease-out; }

/* ─── Cover ─── */
.r90h-vote-cover {
    position: relative;
    flex-shrink: 0;
    width: var(--r90h-cover);
    height: var(--r90h-cover);
}

.r90h-vote-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: var(--r90h-surface);
    transition: transform 0.25s;
}

.r90h-vote-item:hover .r90h-vote-cover img { transform: scale(1.06); }

.r90h-vote-cover .r90h-vote-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid rgba(15,15,30,0.95);
    transition: transform 0.2s;
}

.r90h-vote-item:hover .r90h-vote-icon { transform: scale(1.15); }
.r90h-vote--up .r90h-vote-icon      { background: var(--r90h-up); color: #0a1a0a; }
.r90h-vote--down .r90h-vote-icon    { background: var(--r90h-down); color: #fff; }
.r90h-vote--request .r90h-vote-icon { background: var(--r90h-request); color: #fff; font-size: 10px; }

/* ─── Body ─── */
.r90h-vote-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.r90h-vote-info { display: flex; flex-direction: column; }

.r90h-vote-artist {
    font-size: 13px;
    font-weight: 600;
    color: var(--r90h-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.r90h-vote-title {
    font-size: 11.5px;
    color: var(--r90h-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.r90h-vote-stats {
    display: flex;
    gap: 10px;
    margin-top: 1px;
}

.r90h-stat {
    font-size: 10px;
    color: var(--r90h-muted);
    opacity: 0.7;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.r90h-vote-item:hover .r90h-stat { opacity: 1; }

/* ─── Request Badge (between body and vote buttons) ─── */
.r90h-request-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.r90h-req-tag {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--r90h-request);
    background: rgba(124, 77, 255, 0.12);
    border: 1px solid rgba(124, 77, 255, 0.25);
    border-radius: 4px;
    padding: 2px 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.r90h-req-user {
    font-size: 9.5px;
    color: var(--r90h-muted);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* ─── Vote Buttons ─── */
.r90h-vote-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.r90h-btn-vote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: transparent;
    color: var(--r90h-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    outline: none;
}

.r90h-btn-vote:hover:not(.r90h-disabled) { transform: scale(1.12); }

.r90h-btn-up:hover:not(.r90h-disabled) {
    color: var(--r90h-up);
    border-color: var(--r90h-up);
    background: rgba(0, 230, 118, 0.1);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

.r90h-btn-down:hover:not(.r90h-disabled) {
    color: var(--r90h-down);
    border-color: var(--r90h-down);
    background: rgba(255, 82, 82, 0.1);
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.2);
}

.r90h-btn-vote.r90h-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.r90h-btn-up.r90h-my-vote {
    opacity: 1;
    color: var(--r90h-up);
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.12);
    animation: r90h-btnPop 0.3s ease-out;
}

.r90h-btn-down.r90h-my-vote {
    opacity: 1;
    color: var(--r90h-down);
    border-color: rgba(255, 82, 82, 0.4);
    background: rgba(255, 82, 82, 0.12);
    animation: r90h-btnPop 0.3s ease-out;
}

.r90h-btn-vote.r90h-voting {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes r90h-btnPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ─── Refresh ─── */
.r90h-votes-card.r90h-refreshing .r90h-votes-list {
    opacity: 0.4;
    transition: opacity 0.15s;
}

.r90h-votes-card .r90h-votes-list {
    opacity: 1;
    transition: opacity 0.3s;
}
