:root {
  --bg: #040a22;
  --bg-2: #070f2e;
  --panel: rgba(11, 22, 58, 0.72);
  --panel-solid: #0b163a;
  --line: rgba(160, 180, 230, 0.14);
  --line-soft: rgba(160, 180, 230, 0.08);
  --gold: #f5ce5c;
  --gold-2: #d9a93c;
  --gold-soft: rgba(245, 206, 92, 0.14);
  --text: #eef3ff;
  --muted: #98a6c9;
  --muted-2: #7482a6;
  --green: #5ee29a;
  --red: #ff8a8a;
  --silver: #cfd6e6;
  --bronze: #d79a6a;
  --radius: 18px;
  --max: 1180px;
  --font: "Poppins", "Noto Sans Myanmar", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 700px at 88% -12%, rgba(122, 82, 224, 0.24), transparent 62%),
    radial-gradient(900px 620px at 6% 8%, rgba(45, 142, 170, 0.17), transparent 60%),
    radial-gradient(800px 800px at 50% 110%, rgba(245, 206, 92, 0.06), transparent 65%),
    linear-gradient(180deg, #040a22 0%, #050d2a 42%, #04081c 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 34, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 0 rgba(94, 226, 154, 0);
}

.live-dot.on {
  background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}

.live-dot.stale {
  background: var(--gold);
  animation: none;
}

.status-divider {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.countdown {
  color: var(--gold);
  font-weight: 500;
}

.icon-btn {
  width: 30px;
  height: 30px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.icon-btn:hover {
  color: var(--gold);
  border-color: rgba(245, 206, 92, 0.4);
  background: rgba(245, 206, 92, 0.08);
}

.icon-btn.refreshing svg {
  animation: spin 0.9s linear infinite;
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  padding: 42px 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 92% 8%, rgba(157, 107, 235, 0.24), transparent 70%),
    radial-gradient(480px 260px at 8% 100%, rgba(76, 162, 181, 0.18), transparent 72%),
    linear-gradient(135deg, rgba(19, 0, 84, 0.92) 0%, rgba(0, 63, 130, 0.62) 55%, rgba(76, 162, 181, 0.22) 100%);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  font-weight: 300;
  color: #c3cde8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  max-width: 470px;
}

.deadline {
  max-width: 470px;
  margin-top: 20px;
  padding: 12px 16px 13px;
  border: 1px solid rgba(245, 206, 92, 0.28);
  border-radius: 13px;
  background: rgba(4, 10, 34, 0.34);
  backdrop-filter: blur(4px);
}

.deadline-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.deadline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseGold 2.4s ease-out infinite;
}

.deadline-clock {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.cd {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.cd b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.cd small {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cd-sep {
  padding-bottom: 14px;
  font-weight: 600;
  color: var(--gold-2);
}

.deadline-note {
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--muted-2);
}

.deadline.closed .deadline-clock {
  display: none;
}

.deadline.closed .deadline-head {
  color: var(--red);
}

.deadline.closed .deadline-dot {
  background: var(--red);
  animation: none;
}

.stat {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 10, 34, 0.38);
  backdrop-filter: blur(4px);
}

.stat span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.hero-art {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 800 / 414;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(245, 206, 92, 0.38);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.hero-art figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 206, 92, 0.5);
  background: rgba(4, 10, 34, 0.78);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- notice ---------- */

.notice {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  border: 1px solid rgba(245, 206, 92, 0.35);
  background: rgba(245, 206, 92, 0.08);
  color: #f0dca2;
}

.notice.error {
  border-color: rgba(255, 138, 138, 0.35);
  background: rgba(255, 138, 138, 0.08);
  color: #ffc0c0;
}

.hidden {
  display: none !important;
}

/* ---------- category nav ---------- */

.cat-nav {
  position: sticky;
  top: 65px;
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 24px 0 26px;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(4, 10, 34, 0.96), rgba(4, 10, 34, 0.82) 70%, transparent);
  backdrop-filter: blur(8px);
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.pill.active {
  color: #1a1405;
  border-color: var(--gold);
  background: linear-gradient(135deg, #f5ce5c, #e2b03c);
  font-weight: 600;
}

/* ---------- skeleton ---------- */

.skeleton-list {
  display: grid;
  gap: 22px;
}

.skeleton-card {
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.03) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

/* ---------- category card ---------- */

.cat {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
  scroll-margin-top: 92px;
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.28);
}

.cat-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(245, 206, 92, 0.05), transparent 45%);
}

.cat-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(245, 206, 92, 0.35);
  background: linear-gradient(135deg, rgba(245, 206, 92, 0.16), rgba(76, 162, 181, 0.12));
}

.cat-kicker {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.cat-title h2 {
  margin: 4px 0 3px;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cat-en {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.cat-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.cat-total {
  text-align: right;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.cat-total span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-total strong {
  display: block;
  margin-top: 2px;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

/* ---------- nominee rows ---------- */

.rows {
  padding: 6px 8px 10px;
}

.nom {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) 112px 76px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.16s ease;
}

.nom:hover {
  background: rgba(255, 255, 255, 0.035);
}

.nom + .nom {
  border-top: 1px solid var(--line-soft);
}

.nom.rank-1 {
  background: linear-gradient(90deg, rgba(245, 206, 92, 0.075), transparent 58%);
}

.rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-1 .rank {
  border-color: rgba(245, 206, 92, 0.65);
  background: rgba(245, 206, 92, 0.16);
  color: var(--gold);
}

.rank-2 .rank {
  border-color: rgba(207, 214, 230, 0.45);
  background: rgba(207, 214, 230, 0.1);
  color: var(--silver);
}

.rank-3 .rank {
  border-color: rgba(215, 154, 106, 0.45);
  background: rgba(215, 154, 106, 0.1);
  color: var(--bronze);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 206, 92, 0.14), rgba(76, 162, 181, 0.12));
}

.avatar.broken {
  object-fit: contain;
  padding: 10px;
  opacity: 0.35;
}

.who {
  min-width: 0;
}

.nm {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #f2f6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  position: relative;
  height: 4px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 206, 92, 0.55), var(--gold));
}

.rank-1 .bar i {
  background: linear-gradient(90deg, #e2b03c, #ffe89a);
}

.votes {
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.votes strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.votes span {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.delta {
  justify-self: end;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delta.up {
  color: var(--green);
  background: rgba(94, 226, 154, 0.09);
  border-color: rgba(94, 226, 154, 0.22);
}

.delta.down {
  color: var(--red);
  background: rgba(255, 138, 138, 0.09);
  border-color: rgba(255, 138, 138, 0.22);
}

.delta.flat {
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft);
}

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

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 24, 0.6);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted-2);
}

.footer a {
  color: var(--gold-2);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---------- motion ---------- */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 226, 154, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(94, 226, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 226, 154, 0);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 206, 92, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(245, 206, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 206, 92, 0);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .hero-art {
    justify-self: start;
    max-width: 460px;
  }

  .cat-nav {
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
  }

  .nom {
    grid-template-columns: 32px 44px minmax(0, 1fr) 100px 70px;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .status {
    gap: 7px;
    font-size: 11px;
  }

  #updatedAt,
  .countdown-wrap {
    display: none;
  }

  .wrap {
    padding: 18px 16px 44px;
  }

  .hero {
    padding: 26px 22px;
    border-radius: 18px;
  }

  .lede {
    font-size: 12.5px;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 22px;
  }

  .stat {
    padding: 10px 11px;
  }

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

  .deadline {
    margin-top: 16px;
    padding: 11px 13px 12px;
  }

  .cd b {
    font-size: 17px;
  }

  .cat-head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 16px;
  }

  .cat-thumb {
    width: 56px;
    height: 56px;
    border-radius: 11px;
  }

  .cat-total {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 2px;
  }

  .cat-total strong {
    margin: 0;
    font-size: 17px;
  }

  .rows {
    padding: 4px 6px 8px;
  }

  .nom {
    grid-template-columns: 30px 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank avatar who votes"
      ". . who delta";
    gap: 3px 10px;
    padding: 10px 10px;
  }

  .rank {
    grid-area: rank;
    width: 25px;
    height: 25px;
    font-size: 10.5px;
  }

  .avatar {
    grid-area: avatar;
    width: 42px;
    height: 42px;
    align-self: start;
  }

  .who {
    grid-area: who;
    align-self: center;
  }

  .votes {
    grid-area: votes;
    align-self: center;
  }

  .votes strong {
    font-size: 15px;
  }

  .delta {
    grid-area: delta;
    min-width: 0;
    padding: 2px 7px;
    font-size: 10.5px;
  }

  .nm {
    font-size: 13px;
  }

  .wk {
    font-size: 10.5px;
  }

  .bar {
    margin-top: 5px;
  }

  .footer-inner {
    padding: 16px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .status #statusText {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:last-child {
    grid-column: 1 / -1;
  }

  .hero-art figcaption {
    left: 10px;
    bottom: 10px;
  }
}
