/* ============================================================
   IPL 2026 Poll — Public CSS v3.0
   SocaCricket.com — Dark Sports Theme
   Fonts: Rajdhani (display) + Inter (body)
   Palette: #0a0e1a dark navy | #22c55e green | #FFD700 gold
            #1a2744 card bg   | #e2e8f0 text  | #64748b muted
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
    --ipl-bg:         #0a0e1a;
    --ipl-card:       #111827;
    --ipl-card-alt:   #1a2744;
    --ipl-border:     #1e293b;
    --ipl-green:      #22c55e;
    --ipl-green-dim:  rgba(34,197,94,.15);
    --ipl-gold:       #FFD700;
    --ipl-gold-dim:   rgba(255,215,0,.12);
    --ipl-red:        #ef4444;
    --ipl-text:       #e2e8f0;
    --ipl-muted:      #64748b;
    --ipl-subtle:     #1e293b;
    --ipl-radius:     14px;
    --ipl-radius-sm:  8px;
    --ipl-shadow:     0 4px 24px rgba(0,0,0,.4);
    --ipl-font-head:  'Rajdhani', 'Arial Black', sans-serif;
    --ipl-font-body:  'Inter', 'Segoe UI', sans-serif;
}

/* ── Base wrapper ── */
.ipl-poll-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--ipl-font-body);
    color: var(--ipl-text);
    background: var(--ipl-bg);
    border-radius: var(--ipl-radius);
    overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-poll-header {
    position: relative;
    text-align: center;
    padding: 40px 24px 32px;
    background: linear-gradient(160deg, #0d1b3e 0%, #0a0e1a 60%);
    overflow: hidden;
}
.ipl-poll-header::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(34,197,94,.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(255,215,0,.05) 0%, transparent 70%);
    pointer-events: none;
}
.ipl-poll-header::after {
    content: '🏏';
    position: absolute;
    font-size: 180px;
    right: -20px; top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    opacity: .04;
    pointer-events: none;
    line-height: 1;
}
.ipl-poll-header h2 {
    font-family: var(--ipl-font-head);
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
    position: relative;
}
.ipl-poll-header h2 span { color: var(--ipl-gold); }
.ipl-poll-header p {
    color: var(--ipl-muted);
    font-size: 14px;
    margin: 0;
    position: relative;
}
.ipl-header-badge {
    display: inline-block;
    background: var(--ipl-green-dim);
    border: 1px solid rgba(34,197,94,.3);
    color: var(--ipl-green);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-tabs {
    display: flex;
    background: #0d1220;
    border-bottom: 1px solid var(--ipl-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ipl-tabs::-webkit-scrollbar { display: none; }

.ipl-tab {
    flex: 1;
    min-width: 100px;
    padding: 15px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--ipl-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--ipl-muted);
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
    white-space: nowrap;
    letter-spacing: .3px;
}
.ipl-tab:hover  { color: var(--ipl-text); background: rgba(255,255,255,.03); }
.ipl-tab.active { color: var(--ipl-green); border-bottom-color: var(--ipl-green); background: rgba(34,197,94,.04); }
.ipl-tab-count {
    display: inline-block;
    background: var(--ipl-green);
    color: #000;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
.ipl-tab:not(.active) .ipl-tab-count { background: var(--ipl-subtle); color: var(--ipl-muted); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TAB CONTENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-tab-content        { display: none; padding: 24px; background: var(--ipl-bg); }
.ipl-tab-content.active { display: block; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERT BANNERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-alert {
    padding: 14px 18px;
    border-radius: var(--ipl-radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}
.ipl-alert-success { background: rgba(34,197,94,.1);  color: #4ade80; border-left: 3px solid var(--ipl-green); }
.ipl-alert-error   { background: rgba(239,68,68,.1);  color: #f87171; border-left: 3px solid var(--ipl-red); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MATCHES GRID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MATCH CARD
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-match-card {
    background: var(--ipl-card);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius);
    overflow: hidden;
    box-shadow: var(--ipl-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: cardIn .4s ease both;
    position: relative;
}
.ipl-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    border-color: rgba(34,197,94,.25);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Stagger the cards */
.ipl-match-card:nth-child(1)  { animation-delay: .04s; }
.ipl-match-card:nth-child(2)  { animation-delay: .08s; }
.ipl-match-card:nth-child(3)  { animation-delay: .12s; }
.ipl-match-card:nth-child(4)  { animation-delay: .16s; }
.ipl-match-card:nth-child(5)  { animation-delay: .20s; }
.ipl-match-card:nth-child(6)  { animation-delay: .24s; }
.ipl-match-card:nth-child(n+7){ animation-delay: .28s; }

/* Top accent line */
.ipl-match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ipl-green), var(--ipl-gold), var(--ipl-green));
    opacity: 0;
    transition: opacity .2s;
}
.ipl-match-card:hover::before,
.ipl-match-card[data-status="open"]::before { opacity: 1; }
.ipl-match-card[data-status="completed"]::before {
    background: linear-gradient(90deg, var(--ipl-gold), #f59e0b);
    opacity: 1;
}

/* ── Card Header ── */
.ipl-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--ipl-border);
}
.ipl-match-num {
    font-family: var(--ipl-font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--ipl-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ipl-match-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.ipl-status-open      { background: var(--ipl-green-dim); color: var(--ipl-green); border: 1px solid rgba(34,197,94,.3); }
.ipl-status-completed { background: var(--ipl-gold-dim);  color: var(--ipl-gold);  border: 1px solid rgba(255,215,0,.3); }
.ipl-status-locked    { background: rgba(100,116,139,.1); color: var(--ipl-muted); border: 1px solid rgba(100,116,139,.2); }

/* ── Teams Row ── */
.ipl-teams-row {
    display: flex;
    align-items: stretch;
    min-height: 90px;
}
.ipl-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    position: relative;
    gap: 5px;
}
.team-short {
    font-family: var(--ipl-font-head);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}
.team-full {
    font-size: 10px;
    opacity: .75;
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
    max-width: 100px;
}
.trophy-icon {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 14px;
    animation: trophyPulse 2s ease-in-out infinite;
}
@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}
.ipl-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-family: var(--ipl-font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--ipl-muted);
    background: var(--ipl-subtle);
    letter-spacing: 1px;
    flex-shrink: 0;
    min-width: 36px;
}

/* ── Date / Venue ── */
.ipl-match-date,
.ipl-match-venue {
    padding: 4px 16px;
    font-size: 12px;
    color: var(--ipl-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ipl-match-date { padding-top: 10px; }
.ipl-match-venue { padding-bottom: 10px; }

/* ── Winner Banner ── */
.ipl-winner-banner {
    margin: 0 16px 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(245,158,11,.08));
    border: 1px solid rgba(255,215,0,.25);
    border-radius: var(--ipl-radius-sm);
    color: var(--ipl-gold);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ── Vote Progress Bar ── */
.ipl-progress {
    display: flex;
    height: 26px;
    margin: 0 16px 6px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ipl-subtle);
}
.ipl-progress-t1,
.ipl-progress-t2 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 700;
    transition: width .5s ease;
    min-width: 0;
}
.ipl-progress-labels {
    display: flex;
    justify-content: space-between;
    padding: 2px 16px 12px;
    font-size: 11px;
    color: var(--ipl-muted);
    font-weight: 500;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VOTE FORM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-vote-form {
    padding: 16px;
    border-top: 1px solid var(--ipl-border);
    background: rgba(255,255,255,.015);
}
.ipl-vote-form h4 {
    font-family: var(--ipl-font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--ipl-text);
    margin: 0 0 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ipl-form-group { margin-bottom: 10px; }
.ipl-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--ipl-card-alt);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius-sm);
    color: var(--ipl-text);
    font-size: 14px;
    font-family: var(--ipl-font-body);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.ipl-input:focus {
    border-color: var(--ipl-green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.ipl-input::placeholder { color: var(--ipl-muted); }

/* ── Team Pick Buttons ── */
.ipl-pick-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.ipl-pick-btn {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: 2px solid var(--btn-color, #334155);
    border-radius: var(--ipl-radius-sm);
    color: var(--btn-color, var(--ipl-muted));
    font-family: var(--ipl-font-head);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .2s ease;
    text-transform: uppercase;
}
.ipl-pick-btn:hover {
    background: var(--btn-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.ipl-pick-btn.selected {
    background: var(--btn-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transform: translateY(-1px);
}

/* ── Submit Button ── */
.ipl-submit-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--ipl-radius-sm);
    background: linear-gradient(135deg, var(--ipl-green), #16a34a);
    color: #fff;
    font-family: var(--ipl-font-head);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 4px 16px rgba(34,197,94,.2);
}
.ipl-submit-btn:hover    { opacity: .9; transform: translateY(-1px); }
.ipl-submit-btn:active   { transform: scale(.98); }
.ipl-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Vote Message ── */
.ipl-vote-msg {
    padding: 11px 14px;
    border-radius: var(--ipl-radius-sm);
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}
.ipl-vote-msg.success { background: rgba(34,197,94,.1);  color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.ipl-vote-msg.error   { background: rgba(239,68,68,.1);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* ── Poll Closed / Live Banners ── */
.ipl-poll-closed,
.ipl-poll-live-banner {
    margin: 0 16px 16px;
    padding: 12px 16px;
    border-radius: var(--ipl-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.ipl-poll-closed {
    background: rgba(100,116,139,.08);
    color: var(--ipl-muted);
    border: 1px solid rgba(100,116,139,.15);
}
.ipl-poll-live-banner {
    background: rgba(239,68,68,.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.2);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { border-color: rgba(239,68,68,.2); }
    50%       { border-color: rgba(239,68,68,.5); }
}

/* ── Countdown ── */
.ipl-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ipl-card-alt);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
}
.countdown-label {
    font-size: 11px;
    color: var(--ipl-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
}
.countdown-timer {
    font-family: var(--ipl-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--ipl-gold);
    letter-spacing: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VOTER LIST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-voter-list {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--ipl-border);
    background: rgba(255,255,255,.01);
}
.ipl-voter-list h5 {
    font-size: 11px;
    font-weight: 600;
    color: var(--ipl-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}
.ipl-voters { display: flex; gap: 12px; }
.ipl-voter-col {
    flex: 1;
    background: var(--ipl-card-alt);
    border-radius: var(--ipl-radius-sm);
    padding: 10px 12px;
    border-top: 3px solid transparent;
}
.ipl-voter-col strong {
    font-family: var(--ipl-font-head);
    font-size: 14px;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 8px;
}
.ipl-voter-col ul { list-style: none; padding: 0; margin: 0; }
.ipl-voter-col li {
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--ipl-border);
    color: var(--ipl-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ipl-voter-col li:last-child { border-bottom: none; }
.correct-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--ipl-green);
    background: var(--ipl-green-dim);
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION HEADERS (inside tabs)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-section-header {
    text-align: center;
    margin-bottom: 28px;
}
.ipl-section-header h3 {
    font-family: var(--ipl-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--ipl-text);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.ipl-section-header p { color: var(--ipl-muted); font-size: 13px; margin: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCURACY TAB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-accuracy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.ipl-accuracy-card {
    background: var(--ipl-card);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius-sm);
    padding: 14px 12px;
    text-align: center;
    transition: border-color .2s;
}
.ipl-accuracy-card:hover { border-color: rgba(34,197,94,.3); }
.acc-match-num { font-size: 11px; color: var(--ipl-muted); margin-bottom: 4px; letter-spacing: 1px; }
.acc-teams     { font-family: var(--ipl-font-head); font-weight: 700; font-size: 15px; color: var(--ipl-text); margin-bottom: 2px; }
.acc-winner    { font-size: 12px; color: var(--ipl-gold); margin-bottom: 10px; }
.acc-bar-wrap  { height: 6px; background: var(--ipl-subtle); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.acc-bar       { height: 100%; border-radius: 3px; transition: width .6s ease; }
.acc-high      { background: var(--ipl-green); }
.acc-mid       { background: #f59e0b; }
.acc-low       { background: var(--ipl-red); }
.acc-label     { font-size: 11px; color: var(--ipl-muted); }
.acc-date      { font-size: 10px; color: #475569; margin-top: 3px; }
.ipl-accuracy-summary {
    text-align: center;
    padding: 16px;
    background: var(--ipl-card-alt);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius-sm);
    color: var(--ipl-text);
    font-size: 14px;
    font-weight: 500;
}
.ipl-accuracy-summary strong { color: var(--ipl-gold); font-size: 20px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LEADERBOARD TAB
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-leaderboard-tab {}

/* Podium */
.ipl-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 20px;
    min-height: 180px;
}
.ipl-podium-spot {
    text-align: center;
    flex: 1;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.podium-medal { font-size: 28px; margin-bottom: 6px; }
.podium-name  {
    font-family: var(--ipl-font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--ipl-text);
    margin-bottom: 3px;
    letter-spacing: .3px;
}
.podium-pts   {
    font-family: var(--ipl-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--ipl-gold);
    margin-bottom: 2px;
}
.podium-acc   { font-size: 11px; color: var(--ipl-muted); margin-bottom: 10px; }
.podium-block {
    width: 100%;
    border-radius: 6px 6px 0 0;
}
.pos-1-block { height: 90px;  background: linear-gradient(135deg, var(--ipl-gold), #b45309); }
.pos-2-block { height: 65px;  background: linear-gradient(135deg, #94a3b8, #475569); }
.pos-3-block { height: 46px;  background: linear-gradient(135deg, #cd7c2f, #7c3c0a); opacity: .8; }

/* Leaderboard Table */
.ipl-lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ipl-lb-table th {
    padding: 11px 14px;
    background: var(--ipl-card-alt);
    color: var(--ipl-muted);
    font-size: 11px;
    text-align: left;
    border-bottom: 1px solid var(--ipl-border);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.ipl-lb-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--ipl-border);
    color: var(--ipl-text);
}
.ipl-lb-table tbody tr:hover { background: rgba(255,255,255,.02); }
.ipl-lb-table .top-1 td { background: rgba(255,215,0,.04); }
.ipl-lb-table .top-2 td { background: rgba(148,163,184,.03); }
.ipl-lb-table .top-3 td { background: rgba(205,124,47,.04); }
.rank     { font-size: 16px; }
.lb-name  { font-weight: 600; color: var(--ipl-text); }
.lb-pts   { font-family: var(--ipl-font-head); font-size: 16px; font-weight: 700; color: var(--ipl-gold); }
.ipl-lb-note { font-size: 12px; color: var(--ipl-muted); text-align: center; margin-top: 14px; }

/* Accuracy pills */
.acc-pill {
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.acc-good { background: var(--ipl-green-dim); color: var(--ipl-green); }
.acc-ok   { background: rgba(245,158,11,.1);  color: #f59e0b; }
.acc-bad  { background: rgba(239,68,68,.1);   color: var(--ipl-red); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STANDALONE LEADERBOARD SHORTCODE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-leaderboard {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--ipl-font-body);
    color: var(--ipl-text);
    background: var(--ipl-bg);
    border-radius: var(--ipl-radius);
    overflow: hidden;
}
.ipl-leaderboard-header {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(160deg, #0d1b3e 0%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
}
.ipl-leaderboard-header::after {
    content: '🏆';
    position: absolute;
    font-size: 120px;
    right: -10px; top: 50%;
    transform: translateY(-50%);
    opacity: .05;
}
.ipl-leaderboard-header h2 {
    font-family: var(--ipl-font-head);
    font-size: 28px;
    font-weight: 700;
    color: var(--ipl-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 6px;
    position: relative;
}
.ipl-leaderboard-header p {
    color: var(--ipl-muted);
    font-size: 13px;
    margin: 0;
    position: relative;
}
.ipl-leaderboard .ipl-lb-table { background: var(--ipl-card); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY STATE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--ipl-muted);
    font-size: 14px;
    background: var(--ipl-card);
    border-radius: var(--ipl-radius-sm);
    border: 1px dashed var(--ipl-border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 640px) {
    .ipl-tab            { padding: 12px 8px; font-size: 12px; min-width: 72px; }
    .ipl-tab-content    { padding: 16px; }
    .ipl-matches-grid   { grid-template-columns: 1fr; gap: 14px; }
    .ipl-accuracy-grid  { grid-template-columns: repeat(2, 1fr); }
    .ipl-podium         { gap: 8px; padding: 0; }
    .podium-name        { font-size: 12px; }
    .podium-pts         { font-size: 16px; }
    .team-short         { font-size: 20px; }
    .team-full          { font-size: 9px; }
    .ipl-poll-header    { padding: 28px 16px 22px; }
}
@media (max-width: 380px) {
    .ipl-pick-btn  { font-size: 13px; padding: 10px 4px; }
    .ipl-teams-row { min-height: 76px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   THEME INTEGRATION — override light themes
   Force dark styles to always apply
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-poll-container *,
.ipl-leaderboard * {
    box-sizing: border-box;
}
/* Ensure inputs don't get auto-styled white by themes */
.ipl-poll-container input,
.ipl-poll-container button,
.ipl-poll-container select {
    font-family: inherit;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VOTES TAB — accordion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ipl-votes-tab {}

.ipl-votes-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Accordion Item ── */
.ipl-va-item {
    background: var(--ipl-card);
    border: 1px solid var(--ipl-border);
    border-radius: var(--ipl-radius-sm);
    overflow: hidden;
    transition: border-color .2s;
}
.ipl-va-item.open-state  { border-color: rgba(34,197,94,.3); }
.ipl-va-item.completed   { border-left: 3px solid rgba(255,215,0,.4); }

/* ── Accordion Header (the clickable row) ── */
.ipl-va-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
    flex-wrap: wrap;
}
.ipl-va-header:hover { background: rgba(255,255,255,.03); }

.ipl-va-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ipl-va-short {
    font-family: var(--ipl-font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}
.ipl-va-vs {
    font-size: 11px;
    color: var(--ipl-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ipl-va-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ipl-va-date {
    font-size: 12px;
    color: var(--ipl-muted);
}
.ipl-va-winner-pill,
.ipl-va-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.ipl-va-status-pill.ipl-status-open      { background: var(--ipl-green-dim);         color: var(--ipl-green); border: 1px solid rgba(34,197,94,.25); }
.ipl-va-status-pill.ipl-status-completed { background: rgba(255,215,0,.1);            color: var(--ipl-gold);  border: 1px solid rgba(255,215,0,.25); }
.ipl-va-status-pill.ipl-status-locked    { background: rgba(100,116,139,.08);         color: var(--ipl-muted); border: 1px solid rgba(100,116,139,.2); }
.ipl-va-status-pill.ipl-status-live      { background: rgba(239,68,68,.1);            color: var(--ipl-red);   border: 1px solid rgba(239,68,68,.2); }
.ipl-va-count {
    font-size: 12px;
    color: var(--ipl-muted);
    background: var(--ipl-subtle);
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 600;
}
.ipl-va-chevron {
    font-size: 11px;
    color: var(--ipl-muted);
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: 4px;
}
.ipl-va-item.open-state .ipl-va-chevron { transform: rotate(180deg); }

/* ── Accordion Body ── */
.ipl-va-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--ipl-border);
    animation: vaFadeIn .2s ease;
}
.ipl-va-item.open-state .ipl-va-body { display: block; }
@keyframes vaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ipl-va-empty {
    padding: 20px;
    text-align: center;
    color: var(--ipl-muted);
    font-size: 13px;
}

/* ── Mini progress bar inside accordion ── */
.ipl-va-progress {
    display: flex;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0 6px;
    background: var(--ipl-subtle);
}
.ipl-va-bar-t1,
.ipl-va-bar-t2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    transition: width .4s ease;
    min-width: 0;
}
.ipl-va-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Two-column name list ── */
.ipl-va-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ipl-va-col {}
.ipl-va-col-header {
    font-family: var(--ipl-font-head);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 3px solid currentColor;
    padding-left: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ipl-va-col-count {
    font-family: var(--ipl-font-body);
    font-size: 11px;
    font-weight: 700;
    background: var(--ipl-subtle);
    color: var(--ipl-muted);
    padding: 2px 8px;
    border-radius: 10px;
}

.ipl-va-no-votes {
    font-size: 12px;
    color: var(--ipl-muted);
    padding: 8px 0;
    font-style: italic;
}

.ipl-va-names {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ipl-va-names li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--ipl-border);
    transition: background .1s;
}
.ipl-va-names li:last-child { border-bottom: none; }
.ipl-va-names li.correct { background: rgba(34,197,94,.04); border-radius: 4px; padding-left: 6px; }
.ipl-va-names li.wrong   { opacity: .6; }

.ipl-va-name {
    font-size: 13px;
    color: var(--ipl-text);
    font-weight: 500;
}
.ipl-va-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ipl-va-badge.correct { background: var(--ipl-green-dim); color: var(--ipl-green); }
.ipl-va-badge.wrong   { background: rgba(239,68,68,.08);  color: #f87171; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .ipl-va-header   { padding: 12px 14px; }
    .ipl-va-body     { padding: 0 14px 14px; }
    .ipl-va-columns  { grid-template-columns: 1fr; gap: 10px; }
    .ipl-va-short    { font-size: 17px; }
    .ipl-va-meta     { gap: 6px; }
    .ipl-va-date     { display: none; }
}
