/* Shared community voting widget */
.neelix-voting-widget {
    margin-top: 1.5rem;
    border-radius: 16px;
    padding: 1rem;
    max-height: none;
    overflow: visible;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.neelix-voting-widget .voting-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.neelix-voting-widget .voting-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 800;
}

.neelix-voting-widget .voting-total {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.neelix-voting-widget .voting-subline {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.neelix-voting-widget .voting-scroll,
.neelix-voting-widget .voting-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.neelix-voting-widget .vote-item {
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.neelix-voting-widget .vote-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.neelix-voting-widget .vote-item.is-just-voted {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.neelix-voting-widget .vote-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.neelix-voting-widget .vote-label {
    display: block;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.neelix-voting-widget .vote-count {
    color: #475569;
    font-size: 0.8rem;
    white-space: nowrap;
}

.neelix-voting-widget .vote-count strong {
    color: #0f172a;
    font-weight: 800;
}

.neelix-voting-widget .vote-track {
    height: 8px;
    width: 100%;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.neelix-voting-widget .vote-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 52%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
    transition: width 0.65s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.neelix-voting-widget .vote-action-btn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid #0ea5e9;
    border-radius: 10px;
    background: linear-gradient(140deg, #f0f9ff, #ecfeff);
    color: #0c4a6e;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.neelix-voting-widget .vote-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.18);
}

.neelix-voting-widget .vote-action-btn.is-pending {
    opacity: 0.8;
}

.neelix-voting-widget .vote-action-btn.is-voted,
.neelix-voting-widget .vote-action-btn:disabled {
    border-color: #10b981;
    background: linear-gradient(140deg, #ecfdf5, #d1fae5);
    color: #065f46;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.neelix-voting-widget .voting-status {
    min-height: 1.2em;
    margin: 10px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f766e;
}

.neelix-voting-widget .voting-status.is-error {
    color: #b91c1c;
}

.neelix-voting-widget .voting-status.is-success {
    color: #0f766e;
}

.neelix-voting-widget .voting-footer-actions {
    margin-top: 10px;
}

.neelix-voting-widget .vote-btn {
    margin-top: 0;
}

.neelix-voting-widget .vote-more-link {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
}

.neelix-voting-widget .vote-more-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .neelix-voting-widget .voting-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .neelix-voting-widget .vote-item-top {
        flex-direction: column;
        gap: 6px;
    }

    .neelix-voting-widget .vote-count {
        white-space: normal;
    }
}
