/* ─── Radio 90 Hit — Puls Activity Feed v7.2 ─── */

.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-chat: #ff4fd8;
    --r90h-newuser: #fbbf24;
    --r90h-login: #38bdf8;
    --r90h-text: #ebebeb;
    --r90h-muted: #7a8599;
    --r90h-accent: #f5a623;
    --r90h-radius: 14px;
    --r90h-cover: 46px;

    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 18px 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: 2px 0; }

/* ─── Base Item ─── */
.r90h-vote-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    transition: background 0.25s, transform 0.2s;
    animation: r90h-slideIn 0.35s ease-out both;
    border-left: 3px solid transparent;
    min-height: 52px;
}

.r90h-vote-item + .r90h-vote-item {
    border-top: 1px solid rgba(255,255,255,0.025);
}

.r90h-vote-item:hover {
    background: rgba(255,255,255,0.03);
}

/* Type hover tints */
.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); }
.r90h-vote--chat:hover    { background: rgba(255, 79, 216, 0.04); }
.r90h-vote--newuser:hover { background: rgba(251, 191, 36, 0.04); }
.r90h-vote--login:hover   { background: rgba(56, 189, 248, 0.03); }

/* Type border accents */
.r90h-vote--chat    { border-left-color: var(--r90h-chat); }
.r90h-vote--newuser { border-left-color: var(--r90h-newuser); }
.r90h-vote--login   { border-left-color: var(--r90h-login); }

@keyframes r90h-slideIn {
    from { opacity: 0; transform: translateY(6px); }
    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 (song events) ─── */
.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.05); }

.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);
}

.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: 2px;
}

/* Meta line: user + action + karma */
.r90h-vote-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.r90h-meta-user {
    font-size: 12px;
    font-weight: 700;
    color: var(--r90h-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.r90h-meta-action {
    font-size: 10.5px;
    color: var(--r90h-muted);
    white-space: nowrap;
}

.r90h-karma-delta {
    font-size: 9.5px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Song info */
.r90h-vote-info { display: flex; flex-direction: column; gap: 0; }

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

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

/* ─── Links & Clickable ─── */
.r90h-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.r90h-link:hover { color: var(--r90h-accent); }

a.r90h-vote-info { display: flex; flex-direction: column; cursor: pointer; }
a.r90h-vote-info:hover .r90h-vote-artist { color: var(--r90h-accent); }

.r90h-clickable { cursor: pointer; }

/* ─── Social items (chat, new user, login) ─── */
.r90h-social-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(109, 92, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.r90h-social-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.r90h-avatar-emoji { font-size: 18px; line-height: 1; }

.r90h-social-text {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.r90h-social-icon {
    font-size: 12px;
    line-height: 1.45;
    flex-shrink: 0;
}

.r90h-social-msg {
    font-size: 11.5px;
    color: var(--r90h-muted);
    line-height: 1.4;
    /* Clamp — needs all 3 for webkit */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* New user special */
.r90h-vote--newuser .r90h-social-msg {
    color: var(--r90h-newuser);
    font-weight: 600;
    font-style: italic;
}

/* ─── Chat expand ─── */
.r90h-chat-toggle { cursor: pointer; }

.r90h-chat-expandable.r90h-expanded .r90h-social-msg {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible;
}

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

.r90h-btn-vote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    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.1); }

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

.r90h-btn-down:hover:not(.r90h-disabled) {
    color: var(--r90h-down);
    border-color: var(--r90h-down);
    background: rgba(255, 82, 82, 0.1);
}

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

.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);
}

.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);
}

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

@keyframes r90h-btnPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    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;
}

/* ─── Mobile: prevent overlap with player footer ─── */
@media (max-width: 768px) {
    .r90h-votes-card {
        max-width: 100%;
        margin-bottom: 80px; /* space for player footer */
    }

    .r90h-vote-item {
        padding: 8px 12px;
        gap: 8px;
    }

    .r90h-vote-cover,
    .r90h-social-avatar {
        width: 38px;
        height: 38px;
    }

    .r90h-vote-cover { --r90h-cover: 38px; }

    .r90h-meta-user { max-width: 90px; font-size: 11px; }
    .r90h-vote-artist { font-size: 11.5px; }
    .r90h-vote-title { font-size: 10.5px; }
    .r90h-social-msg { font-size: 11px; }
}
