.results-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 28%, #ffffff 100%);
    color: #0f172a;
}

.results-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dbe3f0;
    backdrop-filter: blur(8px);
}

.results-topbar-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.results-brand {
    font-weight: 800;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 0.95rem;
}

.results-topnav a {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
}

.results-main {
    flex: 1;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0.55rem 0.75rem 0.35rem;
}

.results-footer {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0.45rem 0.75rem 0.8rem;
}

.results-disclaimer {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #94a3b8;
    text-align: center;
}

.results-footer-copy {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: #cbd5e1;
    text-align: center;
}

.results-admin-preview {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

.results-soon {
    padding: 0.35rem 0 0.5rem;
}

.results-soon-card {
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 1.35rem 1.1rem 1.2rem;
    text-align: center;
}

.results-soon-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.results-soon-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
}

.results-soon-card h1 {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #1e3a8a;
}

.results-soon-lead {
    margin: 0 auto 1rem;
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
}

.results-soon-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.results-soon-date {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    padding: 0.65rem 0.55rem;
}

.results-soon-date-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.results-soon-date strong {
    font-size: 0.95rem;
    color: #1d4ed8;
}

.results-soon-schedule {
    margin: 0 auto 1rem;
    max-width: 28rem;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.75rem 0.85rem;
}

.results-soon-schedule h2 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: #0f172a;
}

.results-soon-schedule table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.results-soon-schedule th,
.results-soon-schedule td {
    padding: 0.35rem 0;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.results-soon-schedule tr:last-child th,
.results-soon-schedule tr:last-child td {
    border-bottom: none;
}

.results-soon-schedule th {
    width: 46%;
    color: #64748b;
    font-weight: 600;
    text-align: left;
}

.results-soon-schedule td {
    color: #0f172a;
    font-weight: 700;
}

.results-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.leaderboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.leaderboard-head h1 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.1;
    color: #1e3a8a;
}

.leaderboard-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.lb-countdown strong {
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    position: relative;
}

.leaderboard-list.is-animating {
    overflow: visible;
    z-index: 5;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.38rem 0.55rem;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    position: relative;
    will-change: transform;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item.is-hidden {
    display: none;
}

.leaderboard-item.rank-flash {
    animation: lb-flash 1.4s ease;
}

.leaderboard-item.rank-moving-up {
    z-index: 3;
    background: linear-gradient(90deg, #ecfdf5 0%, #fff 72%);
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.14);
}

.leaderboard-item.rank-moving-down {
    z-index: 2;
    background: linear-gradient(90deg, #fef2f2 0%, #fff 72%);
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.1);
}

.lb-rank {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.leaderboard-item:nth-child(1) .lb-rank,
.leaderboard-item[data-rank="1"] .lb-rank {
    background: #fef3c7;
    color: #b45309;
}

.leaderboard-item:nth-child(2) .lb-rank,
.leaderboard-item[data-rank="2"] .lb-rank {
    background: #e2e8f0;
    color: #334155;
}

.leaderboard-item:nth-child(3) .lb-rank,
.leaderboard-item[data-rank="3"] .lb-rank {
    background: #ffedd5;
    color: #c2410c;
}

.lb-rank.rank-changed-up {
    background: #dcfce7;
    color: #15803d;
    animation: lb-rank-climb 1.4s ease;
}

.lb-rank.rank-changed-down {
    background: #fee2e2;
    color: #b91c1c;
    animation: lb-rank-drop 1.4s ease;
}

.lb-body {
    min-width: 0;
}

.lb-title {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.lb-id {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.lb-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-meta {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-votes {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    min-width: 1.8rem;
    text-align: right;
    transition: transform 0.25s ease, color 0.25s ease;
}

.lb-votes.votes-bump {
    animation: lb-bump 0.55s ease;
    color: #1e3a8a;
}

.leaderboard-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-bottom: 0.2rem;
}

.leaderboard-order-toggle {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.lb-order-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.lb-order-btn.is-active {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.leaderboard-ballot-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.76rem;
    color: #64748b;
}

.leaderboard-ballot-stats strong {
    color: #1e3a8a;
    font-variant-numeric: tabular-nums;
}

.results-concluded-banner {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #86efac;
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
    color: #166534;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.lb-pager-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.lb-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lb-pager-info {
    font-size: 0.78rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    min-width: 4.5rem;
    text-align: center;
}

@keyframes lb-flash {
    0% { background-color: #eff6ff; }
    100% { background-color: #fff; }
}

@keyframes lb-rank-climb {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-3px) scale(1.12); }
    70% { transform: translateY(-1px) scale(1.06); }
}

@keyframes lb-rank-drop {
    0%, 100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(3px) scale(1.12); }
    70% { transform: translateY(1px) scale(1.06); }
}

@keyframes lb-bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.14); }
}

@media (min-width: 768px) {
    .leaderboard-head h1 {
        font-size: 1.35rem;
    }

    .leaderboard-item {
        padding: 0.45rem 0.7rem;
    }

    .lb-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .results-soon-dates {
        grid-template-columns: 1fr;
    }
}
