/* Bigg Boss Voting Poll - mobile first */
:root {
    --p: #5D3FD3;
    --p-dark: #3E27A3;
    --p-soft: #EEEAFD;
    --pink: #E8459B;
    --gold: #FFC94D;
    --green: #2FB36D;
    --red: #E5484D;
    --bg: #F7F5FF;
    --card: #fff;
    --text: #1C1633;
    --muted: #6B6490;
    --line: #E7E2FA;
    --grad: linear-gradient(120deg, #5D3FD3 0%, #7B3FE4 35%, #C2409F 70%, #5D3FD3 100%);
    --radius: 18px;
    --shadow: 0 6px 24px rgba(61, 39, 163, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--p); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; padding-bottom: 90px; }
h1, h2, h3 { line-height: 1.25; }
h2 { font-size: 1.35rem; margin: 0 0 .6em; }
h3 { font-size: 1.1rem; }
.small { font-size: .85rem; color: var(--muted); }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-size: 1.02rem; }
.brand b { color: var(--p); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(93, 63, 211, .3); }
.voted-pill { font-size: .75rem; font-weight: 700; color: var(--p); background: var(--p-soft); padding: 5px 10px; border-radius: 30px; }
.nav { border-top: 1px solid var(--line); }
.nav-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 7px; padding-bottom: 7px; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a { flex: none; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; padding: 5px 12px; border-radius: 30px; }
.nav a.on, .nav a:hover { background: var(--p); color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--grad); background-size: 300% 300%; animation: grad 14s ease infinite; padding: 34px 0 30px; }
.hero-sm { padding: 26px 0 22px; }
.hero-xs { padding: 22px 0 14px; }
.hero-xs h1 { margin: 0; }
.hero-in { position: relative; z-index: 2; }
.hero h1 { font-size: 1.85rem; margin: .25em 0 .35em; letter-spacing: -.01em; }
.hero h1 span { display: inline-block; color: var(--gold); }
.hero-sub { max-width: 640px; opacity: .93; margin: 0 0 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .16); padding: 5px 11px; border-radius: 30px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4CFF9A; box-shadow: 0 0 0 0 rgba(76, 255, 154, .7); animation: ping 1.6s infinite; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; z-index: 1; animation: float 12s ease-in-out infinite; }
.orb-1 { width: 220px; height: 220px; background: #FF7AC6; top: -60px; right: -40px; }
.orb-2 { width: 180px; height: 180px; background: #6EE7F9; bottom: -70px; left: -50px; animation-delay: -4s; }
.orb-3 { width: 120px; height: 120px; background: var(--gold); top: 40%; left: 55%; animation-delay: -8s; opacity: .3; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; max-width: 520px; }
.hero-stats div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 8px; text-align: center; }
.hero-stats b { display: block; font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .72rem; opacity: .85; }

.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lang { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 72px; text-decoration: none; color: var(--text); background: #fff; border-radius: 14px; padding: 8px 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .2s; }
.lang:active { transform: scale(.96); }
.lang-native { font-size: 1.05rem; font-weight: 800; color: var(--ed); }
.lang-en { font-size: .72rem; color: var(--muted); font-weight: 600; }
.lang-live { position: absolute; top: -6px; right: -4px; font-size: .58rem; font-weight: 800; color: #fff; background: var(--red); padding: 1px 6px; border-radius: 10px; animation: pulse 1.8s infinite; }
.lang.voted::after { content: "✓"; position: absolute; top: 4px; left: 6px; font-size: .75rem; color: var(--green); font-weight: 800; }

.jump { display: flex; gap: 6px; overflow-x: auto; margin-top: 16px; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 30px; background: rgba(255, 255, 255, .16); }

/* blocks */
.block { background: var(--card); border-radius: var(--radius); padding: 20px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.block p:last-child { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.trend-line { margin: 16px 0 0; background: #FFF8E1; border: 1px solid #FFE7A3; border-radius: 14px; padding: 10px 14px; font-size: .92rem; }
.tip { background: var(--p-soft); border-radius: 12px; padding: 10px 14px; font-size: .93rem; }
.more-link { text-align: right; font-weight: 600; font-size: .92rem; }
.answer { background: var(--p-soft); border-left: 4px solid var(--p); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.answer b { color: var(--p-dark); }
.answer p { margin: .3em 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--p); color: #fff; box-shadow: 0 6px 16px rgba(93, 63, 211, .3); }
.btn-light { background: #fff; color: var(--p); }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn-wa { background: #25D366; color: #fff; }
.btn-ghost { background: var(--p-soft); color: var(--p); }
.pulse { animation: pulse 2s infinite; }

/* poll */
.poll { --ed: var(--p); background: var(--card); border-radius: var(--radius); padding: 18px 14px 16px; margin: 16px 0; box-shadow: var(--shadow); border-top: 5px solid var(--ed); scroll-margin-top: 110px; }
.poll-head { margin-bottom: 8px; }
.poll-title { font-size: 1.18rem; margin: 0 0 6px; }
.poll-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .84rem; color: var(--muted); }
.poll-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 20px; }
.chip-live { background: #FFE3E3; color: var(--red); }
.chip-live::before { content: "● "; animation: blink 1.4s infinite; }
.chip-off { background: var(--p-soft); color: var(--p); }
.poll-hint { margin: 4px 0 10px; font-size: .9rem; color: var(--muted); }
.poll-result { margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: #E6FCF5; color: #087F5B; }

.poll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 9px 10px; background: #FAF9FF; border: 1.5px solid var(--line); border-radius: 15px; transition: border-color .3s, transform .3s; }
.opt-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(93, 63, 211, .14), rgba(194, 64, 159, .14)); transition: width 1s cubic-bezier(.22, 1, .36, 1); z-index: 0; }
.opt > *:not(.opt-bar) { position: relative; z-index: 1; }
.opt-rank { font-size: .75rem; font-weight: 800; color: var(--muted); min-width: 22px; }
.opt-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); background-size: 200% 200%; }
.opt-av { overflow: hidden; }
.opt-av img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.opt:first-child .opt-av { box-shadow: 0 0 0 3px var(--gold); }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt-name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.opt-meta { font-size: .75rem; color: var(--muted); }
.opt-pct { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--p-dark); }
.vote-btn { flex: none; border: 0; border-radius: 11px; padding: 10px 16px; font: inherit; font-weight: 800; font-size: .9rem; color: #fff; background: var(--p); cursor: pointer; box-shadow: 0 4px 12px rgba(93, 63, 211, .35); transition: transform .15s, background .2s; }
.vote-btn:active { transform: scale(.93); }
.vote-btn[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.opt.mine { border-color: var(--green); background: #F0FDF6; }
.opt.mine .vote-btn { background: var(--green); opacity: 1; }
.dv-btn { text-decoration: none; background: linear-gradient(120deg, #E8459B, #5D3FD3) !important; animation: pulse 1.6s infinite; white-space: nowrap; }
.dv-link { font-weight: 800; color: var(--pink); }
.opt.loading .vote-btn { opacity: .6; }
.opt.pop { animation: pop .5s ease; }
.is-voted .vote-btn:not(.mine-btn) { background: #C9C2EA; box-shadow: none; }
.is-closed .opt-bar { background: rgba(107, 100, 144, .12); }

.poll-extra { display: grid; gap: 10px; margin-top: 14px; }
.danger-box, .trend-box { border-radius: 14px; padding: 12px 14px; }
.danger-box { background: #FFF1F1; border: 1px solid #FFD6D6; }
.danger-box h3, .trend-box h3 { margin: 0 0 6px; font-size: .95rem; }
.danger-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.danger-box li { background: #fff; border-radius: 30px; padding: 3px 11px; font-size: .86rem; }
.danger-box li b { color: var(--red); }
.trend-box { background: var(--p-soft); }
.trend-days { display: flex; gap: 12px; align-items: flex-end; height: 90px; }
.trend-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.trend-bars { display: flex; gap: 3px; align-items: flex-end; height: 70px; }
.trend-bars i { display: block; width: 14px; border-radius: 5px 5px 0 0; background: var(--p); transition: height .8s; }
.trend-bars i + i { background: var(--pink); }
.trend-day span { font-size: .7rem; color: var(--muted); }
.trend-legend { display: flex; gap: 12px; font-size: .78rem; margin-top: 6px; }
.trend-legend b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--p); margin-right: 5px; }
.trend-legend b + b::before { background: var(--pink); }

.share-row { display: flex; gap: 8px; margin-top: 14px; }
.share-row .btn { flex: 1; padding: 10px; font-size: .9rem; }

/* after vote */
.next-up { background: var(--grad); background-size: 300% 300%; animation: grad 10s ease infinite; color: #fff; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.next-up h3 { margin: 0 0 8px; }
.next-up .row { display: flex; gap: 8px; flex-wrap: wrap; }
.next-up a { background: #fff; color: var(--p); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 30px; font-size: .9rem; }

.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 999; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }

/* result cards on home */
.res-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -4px; scrollbar-width: thin; }
.res-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: #FAF9FF; border: 1.5px solid var(--line); border-top: 4px solid var(--ed); border-radius: 16px; padding: 12px 14px; }
.res-lang { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--ed); letter-spacing: .05em; }
.res-show { font-weight: 700; font-size: .95rem; }
.res-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 6px; align-items: center; font-size: .9rem; }
.res-row i { font-style: normal; font-size: .72rem; color: var(--muted); }
.res-row em { font-style: normal; font-weight: 800; color: var(--green); }
.res-row.danger em { color: var(--red); }
.res-foot, .res-empty { font-size: .78rem; color: var(--muted); }

.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); background: #FAF9FF; border: 1.5px solid var(--line); border-left: 4px solid var(--ed); border-radius: 14px; padding: 10px 12px; }
.ed-native { font-weight: 800; color: var(--ed); }
.ed-show { font-weight: 700; font-size: .92rem; }
.ed-sub { font-size: .74rem; color: var(--muted); }
.ed-card .chip { align-self: flex-start; margin-top: 4px; }

/* lists / tables */
.table-wrap { overflow-x: auto; margin: 0 -4px 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 440px; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tbl tr:first-child td b { color: var(--p); }

.steps { list-style: none; counter-reset: s; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 2px 46px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }
.steps span { color: var(--muted); font-size: .92rem; }
.num-list li { margin-bottom: 6px; }
.tick-list, .cross-list { list-style: none; padding: 0; }
.tick-list li, .cross-list li { padding-left: 28px; position: relative; margin-bottom: 7px; }
.tick-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.cross-list li::before { content: "✕"; position: absolute; left: 4px; color: var(--red); font-weight: 800; }

.rank-list { padding-left: 22px; }
.rank-list li { padding: 5px 0; }
.rank-list li span { font-weight: 600; }
.rank-list li b { margin-left: 8px; color: var(--p-dark); }
.rank-list li em { margin-left: 8px; font-style: normal; font-size: .7rem; font-weight: 800; color: var(--red); background: #FFE3E3; padding: 2px 7px; border-radius: 10px; }
.nominee-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.nominee-chips li { background: var(--p-soft); color: var(--p-dark); font-weight: 700; font-size: .88rem; padding: 5px 12px; border-radius: 30px; }

.feat-grid { display: grid; gap: 10px; }
.feat { background: #FAF9FF; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.feat span { font-size: 1.4rem; }
.feat b { display: block; margin: 2px 0; }
.feat p { margin: 0; font-size: .9rem; color: var(--muted); }
.promo-grid { display: grid; gap: 10px; }
.promo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #fff; background: var(--grad); background-size: 300% 300%; animation: grad 12s ease infinite; border-radius: 16px; padding: 16px; }
.promo span { font-size: .9rem; opacity: .9; }

.idle-card { text-align: center; }
.idle-ico { font-size: 2.2rem; }
.idle-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 26px 10px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.3rem; color: var(--p); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details div { padding: 0 0 10px; color: #3c3560; }

.hi { border-left: 4px solid var(--pink); }

/* comments */
.c-form { display: grid; gap: 8px; margin-bottom: 14px; }
.c-form input, .c-form textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #FAF9FF; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--p); }
.hp { position: absolute !important; left: -9999px; }
.c-list { list-style: none; padding: 0; margin: 0; }
.c-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.c-list time { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.c-list p { margin: 3px 0 0; }
.c-list li.new { animation: pop .6s ease; }

.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }

/* footer */
.foot { background: #17122B; color: #C9C3E6; padding: 30px 0 100px; font-size: .9rem; }
.foot a { display: block; color: #C9C3E6; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 18px; }
.foot-brand { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.foot-brand b { color: var(--gold); }
.foot-h { color: #fff; font-weight: 700; margin: 0 0 4px; }
.copy { margin-top: 20px; font-size: .8rem; opacity: .7; }

/* sticky mobile bar */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s ease; }
.sticky-bar.show { transform: none; }
.sticky-bar .btn-main { flex: 1; font-size: 1rem; }
.btn-wa-sq { width: 50px; padding: 0; background: #25D366; color: #fff; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 30px); opacity: 0; z-index: 100; background: #1C1633; color: #fff; padding: 10px 18px; border-radius: 30px; font-weight: 600; font-size: .92rem; transition: all .3s; pointer-events: none; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.ad-slot { margin: 16px 0; min-height: 100px; }

/* animations */
@keyframes grad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 25px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(76, 255, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 255, 154, 0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

@media (max-width: 420px) {
    .opt { gap: 8px; padding: 8px; }
    .opt-rank { display: none; }
    .opt-av { width: 40px; height: 40px; font-size: .9rem; }
    .vote-btn { padding: 9px 12px; }
    .opt-pct { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (min-width: 700px) {
    .hero { padding: 54px 0 46px; }
    .hero h1 { font-size: 2.6rem; }
    .lang-grid { grid-template-columns: repeat(7, 1fr); }
    .block { padding: 26px 28px; }
    .poll { padding: 22px 24px; }
    .res-scroll { grid-auto-columns: 31%; }
    .ed-grid { grid-template-columns: repeat(3, 1fr); }
    .feat-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-grid { grid-template-columns: 1fr 1fr; }
    .poll-extra { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
    .foot { padding-bottom: 30px; }
    .sticky-bar { display: none; }
    .c-form { grid-template-columns: 1fr 2fr auto; align-items: start; }
}

.cst { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--p-soft); }
.cst img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.cst h3 { margin: 0 0 6px; }
.cst p { margin: 0 0 8px; }
.cst-vote { font-weight: 700; font-size: .92rem; }
