/* Estilos para o Sistema de Votação do Ranking */

/* Itens do ranking */
.ranking-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efeito hover para itens votáveis */
.ranking-item.votavel {
    cursor: pointer;
}

.ranking-item.votavel:hover {
    background: #e9ecef !important;
    transform: translateY(-3px) !important;
    border-color: #667eea !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

.ranking-item.votavel:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    pointer-events: none;
}

.ranking-item.votavel:active {
    transform: translateY(-1px) !important;
    transition: transform 0.1s ease;
}

/* Posições especiais no ranking */
.ranking-item .posicao-1 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    animation: pulse-gold 2s infinite;
}

.ranking-item .posicao-2 {
    background: linear-gradient(45deg, #C0C0C0, #A0A0A0);
    animation: pulse-silver 2s infinite;
}

.ranking-item .posicao-3 {
    background: linear-gradient(45deg, #CD7F32, #8B4513);
    animation: pulse-bronze 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

@keyframes pulse-silver {
    0%, 100% { box-shadow: 0 0 5px rgba(192, 192, 192, 0.3); }
    50% { box-shadow: 0 0 15px rgba(192, 192, 192, 0.6); }
}

@keyframes pulse-bronze {
    0%, 100% { box-shadow: 0 0 5px rgba(205, 127, 50, 0.3); }
    50% { box-shadow: 0 0 15px rgba(205, 127, 50, 0.6); }
}

/* Animação de loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Efeito de clique para votar */
.ranking-item.votavel .icon-heart-empty {
    transition: all 0.3s ease;
}

.ranking-item.votavel:hover .icon-heart-empty {
    transform: scale(1.2);
    color: #e74c3c !important;
}

/* Contadores de votos */
.votos-count {
    transition: all 0.3s ease;
}

.ranking-item.votavel:hover .votos-count {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Status de votação */
.status-votacao {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notificações */
.notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

/* Efeitos para dispositivos móveis */
@media (max-width: 768px) {
    .ranking-item {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .ranking-item .posicao {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .ranking-item img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .votos-count {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }
}

/* Hover disabled para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    .ranking-item.votavel:hover {
        background: #f8f9fa !important;
        transform: none !important;
        border-color: #e9ecef !important;
        box-shadow: none !important;
    }
    
    .ranking-item.votavel:active {
        background: #e9ecef !important;
        transform: scale(0.98) !important;
    }
}

/* Indicador visual para item selecionado */
.ranking-item.voting {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    background: #f0f3ff !important;
}

/* Estilo para itens não votáveis */
.ranking-item:not(.votavel) {
    opacity: 0.85;
    cursor: default !important;
}

.ranking-item:not(.votavel) .icon-lock,
.ranking-item:not(.votavel) .icon-check {
    opacity: 0.7;
}

/* ====================================================================
   NOVO LAYOUT — SORTEIO RANKING v2
   ==================================================================== */

/* ── Visual global da página de evento ── */
.header1#header1-f {
    padding-bottom: 32px;
}

#div_dashbord {
    align-items: flex-start;
}

#principal_render {
    display: flex;
    justify-content: center;
    padding: 22px 20px 42px;
}

#principal_render > .modal_users {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto !important;
    padding: 0 8px;
}

.mp-event-page {
    --event-accent: #667eea;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 6px 0 48px;
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

.mp-ranking-column,
.mp-sidebar-column {
    min-width: 0;
}

/* ── Sidebar Esquerda ── */
.mp-eventos-sidebar {
    padding: 12px 8px 20px 0;
    border-right: 1px solid rgba(255,255,255,.06);
    min-height: 60vh;
}

.mp-sidebar-section {
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-bottom: 12px;
}

.mp-sidebar-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(230,235,245,.5);
    padding: 4px 8px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mp-sidebar-count {
    margin-left: auto;
    background: rgba(255,255,255,.1);
    color: #e6ebf5;
    font-size: 10px;
    border-radius: 999px;
    padding: 0 6px;
}

.mp-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(220,230,255,.75);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.mp-sidebar-nav-item:hover,
.mp-sidebar-nav-active {
    background: rgba(102,126,234,.18);
    color: #e6ebf5;
    text-decoration: none;
}

.mp-sidebar-nav-disabled {
    opacity: .6;
    cursor: default;
}

.mp-sidebar-nav-past {
    opacity: .7;
}

.mp-results-announcement {
    border: 1px solid rgba(255,255,255,.08);
}

.mp-results-layout {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 18px;
}

.mp-results-featured {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(90, 94, 248, .22), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255,255,255,.08);
}

.mp-results-featured h2 {
    margin: 0;
}

.mp-results-featured p {
    margin: 0;
    color: rgba(226, 232, 240, .82);
}

.mp-results-prize {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .28);
}

.mp-results-prize span {
    color: rgba(226, 232, 240, .78);
}

.mp-results-podium {
    display: grid;
    gap: 12px;
}

.mp-results-podium-item {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.mp-results-podium-item span {
    color: rgba(226, 232, 240, .72);
    font-size: 13px;
}

.mp-sidebar-badge {
    font-size: 8px;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

.mp-sidebar-badge-ativo   { color: #22c55e; }
.mp-sidebar-badge-agendado { color: #60a5fa; }

.mp-sidebar-ev-thumb {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-sidebar-ev-ico {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}

.mp-sidebar-ev-ico-past {
    background: rgba(148,163,184,.3) !important;
}

.mp-sidebar-date {
    margin-left: auto;
    font-size: 10px;
    color: rgba(220,230,255,.45);
    flex-shrink: 0;
}

.mp-sidebar-type-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: rgba(220,230,255,.65);
    padding: 4px 8px;
}

.mp-sidebar-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    font-size: 11px;
    color: rgba(220,230,255,.7);
}

.mp-sidebar-stat-n {
    font-weight: 700;
    color: var(--event-accent, #667eea);
    font-size: 14px;
    min-width: 28px;
}

.mp-sidebar-social {
    display: flex;
    gap: 6px;
    padding: 4px 8px;
    flex-wrap: wrap;
}

.mp-sidebar-soc-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    transition: opacity .2s, transform .2s;
}

.mp-sidebar-soc-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* ── Section headers ── */
.mp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 4px 8px;
    flex-wrap: wrap;
}

.mp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102,126,234,.18);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(165,180,252,.2);
}

.mp-section-badge-past {
    background: rgba(251,191,36,.12);
    color: #fbbf24;
    border-color: rgba(251,191,36,.2);
}

.mp-section-badge-upcoming {
    background: rgba(96,165,250,.12);
    color: #60a5fa;
    border-color: rgba(96,165,250,.2);
}

.mp-section-sub {
    font-size: 12px;
    color: rgba(220,230,255,.58);
    margin: 0;
    max-width: 720px;
}

.mp-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    margin: 10px 0 0;
}

/* ── Hero do evento ── */
.mp-event-hero {
    padding: 46px 34px 34px;
    border-radius: 20px;
    background:
        radial-gradient(1200px 380px at 20% 0%, rgba(255,255,255,.06), transparent),
        radial-gradient(800px 380px at 80% 0%, rgba(255,255,255,.10), transparent),
        linear-gradient(135deg, #18183d, #2d2a6e);
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.mp-event-badge {
    display: inline-block;
    background: var(--event-accent, #667eea);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.mp-event-badge.alt {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
}

.mp-event-subtitle {
    color: rgba(240,246,255,.75);
    font-size: 14px;
    line-height: 1.65;
    max-width: 700px;
    margin: 8px 0 16px;
}

.mp-event-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-event-meta-row span {
    font-size: 11px;
    background: rgba(255,255,255,.1);
    color: rgba(240,246,255,.8);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Stats grid ── */
.mp-event-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.mp-stat-card {
    padding: 16px 16px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.mp-stat-card strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.mp-stat-card span {
    font-size: 11px;
    color: rgba(220,230,255,.6);
}

.mp-stat-card.gold   strong { color: #fbbf24; }
.mp-stat-card.silver strong { color: #e2e8f0; }
.mp-stat-card.bronze strong { color: #fb923c; }
.mp-stat-card.accent strong { color: var(--event-accent, #667eea); }

/* ── Vote status banner ── */
.mp-vote-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.04);
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.mp-vote-status h3 { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.mp-vote-status p  { font-size: 12px; margin: 0; opacity: .8; }

.mp-vote-status.is-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
.mp-vote-status.is-success h3 { color: #bbf7d0; }
.mp-vote-status.is-warning { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.22); }
.mp-vote-status.is-warning h3 { color: #fde68a; }
.mp-vote-status.is-neutral { background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.18); }
.mp-vote-status.is-neutral h3 { color: #cbd5e1; }

.mp-vote-status-link {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: #e6ebf5;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

.mp-vote-status-link:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Surface cards ── */
.mp-surface-card {
    background: linear-gradient(180deg, rgba(24,28,46,.78), rgba(15,18,31,.82));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    min-width: 0;
    overflow: hidden;
}

.mp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.mp-card-head h3, .mp-card-head h4 { margin: 0; font-size: 15px; font-weight: 700; }
.mp-card-head.compact h4 { font-size: 13px; }

.mp-head-chip {
    font-size: 10px;
    background: rgba(255,255,255,.08);
    color: rgba(220,230,255,.7);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Ranking items (new style) ── */
.mp-ranking-item {
    display: grid;
    grid-template-columns: 36px 48px 1fr 80px 88px;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .18s;
    margin-bottom: 8px;
    min-width: 0;
}

.mp-ranking-item.votavel { cursor: pointer; }
.mp-ranking-item.votavel:hover {
    background: rgba(102,126,234,.1);
    border-color: rgba(102,126,234,.25);
    transform: translateX(3px);
}

.mp-rank-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: rgba(220,230,255,.8);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-rank-pill.pos-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.mp-rank-pill.pos-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
.mp-rank-pill.pos-3 { background: linear-gradient(135deg, #fb923c, #c2410c); color: #fff; }

.mp-rank-cover {
    width: 48px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-rank-copy h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-rank-copy p {
    font-size: 11px;
    color: rgba(220,230,255,.6);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}

.mp-rank-copy p a {
    color: rgba(165,180,252,.85);
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
}
.mp-rank-copy p a:hover { color: #a5b4fc; text-decoration: underline; }

.mp-rank-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(220,230,255,.35);
    display: inline-block;
}

.mp-rank-votes {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--event-accent, #667eea);
    white-space: nowrap;
    min-width: 0;
}

.mp-rank-action {
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    background: var(--event-accent, #667eea);
    color: #fff;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}

.mp-rank-action:hover:not(:disabled) { opacity: .85; transform: scale(1.03); }
.mp-rank-action:disabled { opacity: .45; cursor: not-allowed; background: rgba(148,163,184,.3); }

/* ── Vote feed ── */
.mp-vote-feed { display: flex; flex-direction: column; gap: 8px; }

.mp-feed-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    min-width: 0;
}

.mp-feed-item small {
    color: rgba(220,230,255,.55);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-feed-item span  {
    color: rgba(220,230,255,.4);
    font-size: 10px;
    white-space: nowrap;
}

.mp-feed-item strong {
    color: #e6ebf5;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-feed-empty { font-size: 12px; color: rgba(220,230,255,.4); padding: 8px; text-align: center; }

/* ── Rule list ── */
.mp-rule-list {
    padding-left: 16px;
    margin: 0;
    font-size: 12px;
    color: rgba(220,230,255,.7);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Empty state ── */
.mp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(220,230,255,.45);
}

.mp-empty-state i { font-size: 36px; display: block; margin-bottom: 10px; opacity: .4; }
.mp-empty-state h4 { font-size: 15px; margin: 0 0 6px; }
.mp-empty-state p  { font-size: 12px; }

/* ── Artist CTA ── */
.mp-artist-cta {
    padding: 4px 0 18px;
}

.mp-artist-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(900px 280px at 0% 0%, rgba(255,255,255,.06), transparent),
        linear-gradient(135deg, rgba(102,126,234,.15), rgba(118,75,162,.1));
    border: 1px solid rgba(165,180,252,.15);
    border-radius: 18px;
    padding: 24px 28px;
    flex-wrap: wrap;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.mp-artist-cta-inner h2 { font-size: 18px; font-weight: 800; margin: 8px 0 6px; }
.mp-artist-cta-inner p  { font-size: 13px; color: rgba(220,230,255,.7); margin: 0; max-width: 540px; }

.mp-artist-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.mp-artist-cta-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--event-accent, #667eea);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.mp-artist-cta-link:hover { opacity: .88; color: #fff; transform: translateY(-1px); }
.mp-artist-cta-link.is-secondary {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

/* ── Partners ── */
.mp-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mp-partner-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #e6ebf5;
    transition: background .2s, transform .18s;
    min-width: 140px;
    min-width: 0;
}

.mp-partner-card:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); color: #fff; }
.mp-partner-card img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; }
.mp-partner-card strong { font-size: 13px; font-weight: 700; display: block; overflow-wrap: anywhere; }
.mp-partner-card span { font-size: 11px; color: rgba(220,230,255,.55); overflow-wrap: anywhere; }
.mp-partner-fallback { width: 40px; height: 40px; border-radius: 8px; background: var(--event-accent,#667eea); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #fff; flex-shrink: 0; }

/* ── Past events grid ── */
.mp-past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding-bottom: 10px;
}

.mp-past-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(24,28,46,.78), rgba(16,19,34,.88));
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.mp-past-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }

.mp-past-card-cover {
    padding: 20px 18px 16px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    background-size: cover;
    background-position: center;
    position: relative;
}

.mp-past-card-cover h3 {
    font-size: 15px;
    font-weight: 800;
    color: #e6ebf5;
    margin: 8px 0 4px;
}

.mp-past-card-cover small {
    font-size: 10px;
    color: rgba(220,230,255,.55);
}

.mp-past-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.mp-past-winner {
    padding: 12px 16px;
    background: rgba(251,191,36,.07);
    border-top: 1px solid rgba(251,191,36,.15);
    flex: 1;
}

.mp-past-winner-label {
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 8px;
}

.mp-past-winner-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-past-winner-img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.mp-past-winner-row strong { font-size: 13px; color: #e6ebf5; }
.mp-past-winner-row small  { font-size: 11px; color: rgba(220,230,255,.55); display: block; }

.mp-past-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 11px;
    color: rgba(220,230,255,.55);
}

.mp-past-view-btn {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(165,180,252,.25);
    border-radius: 6px;
    transition: background .18s;
}

.mp-past-view-btn:hover {
    background: rgba(165,180,252,.12);
    color: #c7d2fe;
}

/* ── Upcoming events grid ── */
.mp-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding-bottom: 10px;
}

.mp-upcoming-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(24,28,46,.78), rgba(16,19,34,.88));
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #e6ebf5;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.mp-upcoming-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.28); color: #fff; }

.mp-upcoming-card-top {
    position: relative;
    height: 90px;
    overflow: hidden;
}

.mp-upcoming-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
}

.mp-upcoming-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.mp-upcoming-countdown {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(0,0,0,.45);
    color: #fde68a;
    padding: 3px 9px;
    border-radius: 999px;
}

.mp-upcoming-card-body {
    padding: 12px 14px;
    flex: 1;
}

.mp-upcoming-card-body h4 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e6ebf5;
}

.mp-upcoming-card-body p {
    font-size: 11px;
    color: rgba(220,230,255,.55);
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-upcoming-tipo {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    color: rgba(220,230,255,.7);
    padding: 2px 7px;
    border-radius: 999px;
    margin-right: 5px;
}

.mp-upcoming-date {
    font-size: 10px;
    color: rgba(220,230,255,.45);
}

/* ── Estado badges ── */
.mp-badge-ativo     { background: rgba(34,197,94,.2);  color: #86efac; }
.mp-badge-agendado  { background: rgba(96,165,250,.2); color: #93c5fd; }
.mp-badge-encerrado { background: rgba(148,163,184,.15); color: #94a3b8; }
.mp-badge-arquivado { background: rgba(100,116,139,.15); color: #94a3b8; }
.mp-badge-rascunho  { background: rgba(251,191,36,.15); color: #fde68a; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .mp-eventos-sidebar { display: none; }
    .mp-event-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-ranking-item { grid-template-columns: 32px 42px 1fr 64px; }
    .mp-rank-action { display: none; }
    #principal_render {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #render_lateral {
        display: none;
    }
}

@media (max-width: 768px) {
    .mp-event-hero { padding: 28px 16px 20px; }
    .mp-artist-cta-inner { flex-direction: column; text-align: center; }
    .mp-artist-cta-actions { justify-content: center; }
    .mp-past-events-grid { grid-template-columns: 1fr; }
    .mp-upcoming-grid { grid-template-columns: 1fr; }
    .mp-ranking-item {
        grid-template-columns: 30px 42px minmax(0, 1fr);
        grid-template-areas:
            "pill cover copy"
            "pill votes votes";
        align-items: start;
        row-gap: 8px;
    }
    .mp-rank-pill { grid-area: pill; }
    .mp-rank-cover { grid-area: cover; }
    .mp-rank-copy { grid-area: copy; min-width: 0; }
    .mp-rank-votes {
        grid-area: votes;
        text-align: left;
        padding-left: 42px;
        white-space: normal;
    }
    .mp-vote-status { flex-direction: column; align-items: flex-start; }
    .mp-results-layout { grid-template-columns: 1fr; }
    .mp-feed-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
    .mp-feed-item small,
    .mp-feed-item strong,
    .mp-feed-item span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
}

/* ── Navbar event-specific items ── */
.mp-nav-section-lbl {
    list-style: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(230,235,245,.4);
    padding: 14px 16px 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.mp-nav-section-lbl + li { margin-top: 0; }

.mp-nav-count {
    background: rgba(255,255,255,.1);
    color: rgba(230,235,245,.7);
    font-size: 10px;
    border-radius: 999px;
    padding: 0 6px;
    margin-left: 4px;
}

.mp-nav-dot-ativo {
    color: #22c55e;
    font-size: 8px;
}

.mp-nav-ev-thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 2px;
}

.mp-nav-ev-ico {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    margin-right: 2px;
    flex-shrink: 0;
}

.mp-nav-ev-ico-past {
    background: rgba(148,163,184,.3) !important;
}

.mp-nav-badge {
    font-size: 8px;
    line-height: 1;
}

.mp-nav-date {
    font-size: 10px;
    color: rgba(220,230,255,.4);
}

.mp-nav-disabled .nav-link,
.mp-nav-disabled span.nav-link {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.mp-nav-past .nav-link,
a.nav-link.mp-nav-past {
    opacity: .7;
}

.mp-nav-type a.nav-link,
.mp-nav-stat a.nav-link {
    opacity: .82;
    cursor: pointer;
    pointer-events: auto;
    font-size: 12px !important;
}

.mp-nav-type span.nav-link,
.mp-nav-stat span.nav-link {
    font-size: 12px !important;
    cursor: default;
    pointer-events: none;
}

.mp-nav-stat a.nav-link {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.mp-nav-type-active a.nav-link,
.mp-nav-stat-active a.nav-link {
    opacity: 1;
    color: var(--event-accent, #667eea);
    font-weight: 800;
}

.mp-nav-stat-n {
    font-weight: 800;
    font-size: 16px;
    min-width: 26px;
    display: inline-block;
}

.mp-nav-social {
    display: flex;
    gap: 8px;
    padding: 4px 16px 8px;
    flex-wrap: wrap;
}

.mp-render-view-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
    gap: 18px;
    align-items: center;
    padding: 26px;
    border-radius: 20px;
    background:
        radial-gradient(900px 300px at 10% 0%, rgba(255,255,255,.05), transparent),
        linear-gradient(180deg, rgba(24,28,46,.84), rgba(16,19,34,.92));
}

.mp-render-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mp-render-kpi {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.mp-render-kpi strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: var(--event-accent, #667eea);
}

.mp-render-kpi span {
    font-size: 11px;
    color: rgba(220,230,255,.62);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mp-render-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.mp-render-type-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(28,33,57,.78), rgba(18,21,38,.84));
    text-decoration: none;
    color: #e6ebf5;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 12px 26px rgba(0,0,0,.15);
}

.mp-render-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    border-color: rgba(102,126,234,.35);
    color: #fff;
}

.mp-render-type-card.is-active {
    border-color: rgba(102,126,234,.45);
    box-shadow: inset 0 0 0 1px rgba(102,126,234,.25);
}

.mp-render-type-card i {
    font-size: 18px;
    color: var(--event-accent, #667eea);
}

.mp-render-type-card strong {
    font-size: 14px;
    font-weight: 800;
}

.mp-render-type-card span {
    font-size: 11px;
    color: rgba(220,230,255,.62);
}

.anuncio_largo {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4px;
    padding-right: 4px;
}

@media (min-width: 1250px) {
    #principal_render {
        padding-left: 28px;
        padding-right: 24px;
    }

    #principal_render > .modal_users {
        padding-left: 10px;
        padding-right: 14px;
    }
}

@media (max-width: 991px) {
    .mp-render-view-hero {
        grid-template-columns: 1fr;
    }

    #principal_render {
        padding: 18px 14px 34px;
    }

    #principal_render > .modal_users {
        padding: 0;
    }

    .mp-event-page {
        max-width: 100%;
        --bs-gutter-x: 14px;
        --bs-gutter-y: 14px;
    }

    .mp-event-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-ranking-column,
    .mp-sidebar-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #principal_render {
        padding: 14px 10px 30px;
    }

    .mp-event-page {
        padding: 0 0 34px;
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .mp-section-header {
        padding: 14px 2px 6px;
    }

    .mp-event-hero {
        padding: 26px 16px 20px;
        border-radius: 16px;
    }

    .mp-surface-card,
    .mp-artist-cta-inner,
    .mp-render-view-hero,
    .mp-render-type-card,
    .mp-past-card,
    .mp-upcoming-card,
    .mp-vote-status {
        border-radius: 14px;
    }

    .mp-surface-card,
    .mp-render-view-hero {
        padding: 16px;
    }

    .mp-render-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mp-card-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mp-card-head h3,
    .mp-card-head h4,
    .mp-head-chip {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .mp-stat-card strong {
        font-size: 18px;
    }

    .mp-stat-card span,
    .mp-section-sub,
    .mp-event-subtitle,
    .mp-artist-cta-inner p {
        overflow-wrap: anywhere;
    }

    .mp-artist-cta-link {
        width: 100%;
        text-align: center;
    }

    .mp-partners-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mp-partner-card {
        align-items: flex-start;
    }

    #resultPesquisa.mostrar {
        width: calc(100% - 16px);
        left: 8px;
        right: 8px;
        transform: none;
    }

    #resultPesquisa .item_pesq {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    #resultPesquisa .item_pesq .b {
        grid-column: 2;
        justify-self: start;
    }

    .mp-upcoming-grid,
    .mp-past-events-grid,
    .mp-render-type-grid {
        grid-template-columns: 1fr;
    }

    .anuncio_largo {
        padding-left: 0;
        padding-right: 0;
    }

    #div_dashbord {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .mp-event-stats-grid,
    .mp-render-kpi-grid {
        grid-template-columns: 1fr;
    }

    .mp-event-hero {
        padding: 22px 14px 18px;
    }

    .mp-vote-status,
    .mp-surface-card,
    .mp-render-view-hero,
    .mp-artist-cta-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mp-ranking-item {
        grid-template-columns: 26px 38px minmax(0, 1fr);
        padding: 10px 8px;
    }

    .mp-rank-pill {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .mp-rank-cover {
        width: 38px;
        height: 38px;
    }

    .mp-rank-copy h4 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mp-rank-votes {
        padding-left: 38px;
        font-size: 12px;
    }
}
