/* ==========================================================
   NAP KING GALLERY — design system v2
   Kertas periwinkle · tinta indigo · satu warna blok per halaman
   Dock navigasi melayang · tombol & kartu "ditekan" (bayangan keras)
   ========================================================== */

@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #e8ebf7;
  --card: #ffffff;
  --ink: #16142b;
  --muted: #5d5b7c;
  --line: #d3d7ec;
  --hard: #16142b;

  --yellow: #ffd60a;
  --blue: #3d6bff;
  --red: #ef3b2d;
  --on-color: #16142b;

  --page: #ffd60a;
  --accent: var(--page);

  --r-sm: 12px; --r: 22px; --r-lg: 32px; --pill: 999px;
  --font-display: "Unbounded", "Jakarta", system-ui, sans-serif;
  --font-body: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px; --gutter: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  --paper: #121120; --card: #1d1b33; --ink: #f2f1fb; --muted: #a5a2c6; --line: #302d52; --hard: #ffd60a; --blue: #8aa6ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121120; --card: #1d1b33; --ink: #f2f1fb; --muted: #a5a2c6; --line: #302d52; --hard: #ffd60a; --blue: #8aa6ff; }
}
body[data-page="home"]     { --page: #ffd60a; }
body[data-page="game"]     { --page: #86a8ff; }
body[data-page="collab"]   { --page: #ff8f7a; }
body[data-page="rank"]     { --page: #ffb13d; }
body[data-page="statistik"]{ --page: #6fe3ae; }
body[data-page="song"]     { --page: #c4a5ff; }
body[data-page="channel"]  { --page: #ff9fcb; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; padding: 8px 0 56px; }

/* ---------- topbar ---------- */
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 76px; }
.logo { font-family: var(--font-display); font-weight: 650; font-size: 20px; letter-spacing: -.015em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo em { font-style: normal; background: var(--yellow); color: var(--on-color); padding: 3px 9px 4px; border-radius: 10px; border: 1px solid var(--line); transform: rotate(-4deg); display: inline-block; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn, .search-btn { height: 44px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--card); display: grid; place-items: center; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.icon-btn { width: 44px; }
.search-btn { display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); font-weight: 500; }
.search-btn kbd { font: 600 11px var(--font-body); border: 2px solid var(--line); border-radius: 7px; padding: 0 6px; white-space: nowrap; }
.icon-btn:hover, .search-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.icon-btn:active, .search-btn:active { transform: none; box-shadow: none; }

/* ---------- dock ---------- */
.dock { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; background: var(--ink); border-radius: var(--pill); box-shadow: 0 14px 34px rgba(18, 16, 48, .28); max-width: calc(100vw - 20px); }
.dock a { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--pill); color: var(--paper); opacity: .78; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, opacity .2s; }
.dock a:hover { opacity: 1; background: rgba(128, 128, 160, .28); }
.dock a[aria-current="page"] { background: var(--page); color: var(--on-color); opacity: 1; }
.dock .i { font-size: 18px; }

/* ---------- buttons / controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn.primary { background: var(--yellow); color: var(--on-color); border-color: var(--ink); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn img { width: 20px; height: 20px; border-radius: 6px; }
.input, .select { height: 48px; width: 100%; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); padding: 0 18px; outline: none; font-weight: 500; }
.input:focus, .select:focus { box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.input::placeholder { color: var(--muted); }
.select { width: auto; padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field { position: relative; flex: 1 1 260px; }
.field svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field .input { padding-left: 46px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, transform .15s var(--ease); }
.chip:hover { background: var(--card); transform: translateY(-2px); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--paper); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--pill); background: var(--paper); color: var(--muted); }
.tag.accent { background: var(--page); color: var(--on-color); }
.card { background: var(--card); border-radius: var(--r-lg); }

/* ---------- headings & hero blocks ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.02; }
h1 { font-size: clamp(34px, 6.2vw, 72px); font-weight: 650; }
h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -.015em; }
h3 { font-family: var(--font-body); font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.hero-block, .hero { position: relative; overflow: hidden; background: var(--page); color: var(--on-color); border-radius: var(--r-lg); padding: clamp(26px, 4.5vw, 52px); margin-bottom: 28px; display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.hb-text { position: relative; z-index: 1; max-width: 640px; }
.hero-block .lead { margin-top: 16px; font-size: 17px; font-weight: 500; color: rgba(22, 20, 43, .75); max-width: 46ch; }
.hb-side { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.hb-glyph { position: absolute; right: -30px; top: -40px; width: 300px; height: 300px; color: var(--on-color); opacity: .13; transform: rotate(14deg); pointer-events: none; }
.hb-glyph svg { width: 100%; height: 100%; stroke-width: 1.1; }
.hb-covers { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; }
.hb-covers img { width: 118px; height: 156px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--ink); margin-left: -34px; }
.hb-covers img:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.hb-covers img:nth-child(2) { transform: rotate(2deg) translateY(-12px); z-index: 1; }
.hb-covers img:nth-child(3) { transform: rotate(10deg) translateY(14px); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.link-more:hover { color: var(--blue); border-color: var(--blue); }

/* detail hero */
.hero { align-items: center; justify-content: flex-start; }
.hero .cover { width: 132px; height: 165px; border-radius: 26px; overflow: hidden; background: var(--card); flex: none; border: 1px solid var(--line); box-shadow: 5px 5px 0 var(--ink); transform: rotate(-3deg); }
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.hero .info { flex: 1; min-width: 240px; position: relative; z-index: 1; }
.hero .info > div:first-child { font-weight: 650; font-size: 14px; margin-bottom: 8px; opacity: .72; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero .tag { background: var(--ink); color: var(--paper); }
.hero .tag.accent { background: #fff; color: #16142b; }
:root[data-theme="dark"] .hero .tag { background: #16142b; color: #fff; }
.hero p.desc { margin-top: 14px; max-width: 64ch; font-weight: 500; color: rgba(22, 20, 43, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn:not(.primary) { background: #fff; color: #16142b; border-color: #16142b; }
.hero .btn { border-color: #16142b; }
.hero .btn:hover { box-shadow: 4px 4px 0 #16142b; }
.hero h1 { color: #16142b; font-size: clamp(30px, 4.6vw, 56px); }
.hero .eyebrow { color: #16142b; }
.avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; background: var(--page); color: var(--on-color); border: 1px solid var(--line); display: grid; place-items: center; font: 650 20px var(--font-display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 120px; height: 120px; font-size: 40px; border-color: #16142b; box-shadow: 5px 5px 0 #16142b; background: #fff; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.vids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.vids.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.games { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 22px; }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: 20px; }

/* video card */
.vcard { display: flex; flex-direction: column; text-align: left; width: 100%; background: var(--card); border: 2px solid transparent; border-radius: 26px; padding: 10px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.vcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-radius: 18px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 10px; bottom: 10px; background: #16142b; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.playmark { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(22, 20, 43, .25); }
.playmark span { width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: #16142b; border: 2px solid #16142b; display: grid; place-items: center; font-size: 22px; transform: scale(.7); transition: transform .25s var(--ease); }
.vcard:hover .playmark { opacity: 1; }
.vcard:hover .playmark span { transform: none; }
.vbody { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vtitle { font-weight: 650; font-size: 15.5px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.vfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* featured (home) */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(22px, 4vw, 52px); align-items: center; background: var(--page); color: #16142b; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 48px); margin-bottom: 0; }
.feat h1, .feat h2 { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.04; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 14px 0 18px; }
.feat .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; background: #16142b; color: #fff; padding: 5px 14px 5px 10px; border-radius: var(--pill); }
.feat .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.feat .meta { color: rgba(22, 20, 43, .72); font-size: 14px; }
.feat .cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.feat .btn { border-color: #16142b; }
.feat .btn:not(.primary) { background: #fff; color: #16142b; }
.feat .btn:hover { box-shadow: 4px 4px 0 #16142b; }
.feat-thumb { position: relative; cursor: pointer; border-radius: 28px; overflow: hidden; border: 2px solid #16142b; box-shadow: 8px 8px 0 #16142b; aspect-ratio: 16 / 9; background: #16142b; transform: rotate(1.4deg); transition: transform .3s var(--ease); }
.feat-thumb:hover { transform: rotate(0) scale(1.01); }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-thumb .playmark { opacity: 1; background: transparent; }
.feat-thumb .playmark span { width: 84px; height: 84px; font-size: 32px; transform: none; }
.feat-thumb:hover .playmark span { transform: scale(1.1); }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 44px 0 22px; }

/* ticker (teks berjalan paling atas) */
.ticker { background: var(--ink); color: var(--paper); height: 38px; overflow: hidden; display: flex; align-items: center; }
.ticker .track { display: flex; width: max-content; gap: 22px; align-items: center; animation: slide 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker a { font: 650 13px var(--font-display); letter-spacing: -.01em; white-space: nowrap; opacity: .9; }
.ticker a:hover { color: var(--yellow); opacity: 1; }
.ticker .i { width: 14px; height: 14px; color: var(--yellow); fill: var(--yellow); stroke-width: 2; }
@keyframes slide { to { transform: translateX(-50%); } }

/* game card */
.gcard { position: relative; display: flex; flex-direction: column; gap: 14px; }
.gcover { aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gcover img { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover .gcover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.gcover .tag { position: absolute; left: 12px; top: 12px; background: #16142b; color: #fff; }
.gcover .tag.rank { left: auto; right: 8px; top: 8px; padding: 3px 9px; font-size: 12px; }
.gbody { padding: 0 6px; }
.gbody h3 { font-size: 16.5px; margin-bottom: 3px; }
.gbody p { color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; }

/* partner card */
.pcard { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 20px; background: var(--card); border: 2px solid transparent; border-radius: var(--r-lg); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.pcard .top { display: flex; align-items: center; gap: 14px; }
.pinfo { min-width: 0; flex: 1; }
.pinfo h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo p { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.pcard .ext { position: relative; z-index: 1; align-self: flex-start; padding: 6px; margin: -6px; border-radius: 10px; color: var(--muted); }
.pcard .ext:hover { color: var(--ink); background: var(--paper); }
.pcard .played { border-top: 2px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.played .tot { font: 650 24px var(--font-display); letter-spacing: -.015em; line-height: 1; }
.played .tot small { font: 600 13px var(--font-body); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.played .none { color: var(--muted); font-size: 13px; font-weight: 600; }
.glogos { display: flex; gap: 16px; padding-bottom: 8px; padding-right: 8px; }
.glogo { position: relative; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); flex: none; }
.glogo > img, .glogo > span.init { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; display: grid; place-items: center; font: 650 14px var(--font-display); color: #16142b; }
.glogo b { position: absolute; right: -9px; bottom: -9px; background: var(--yellow); color: #16142b; border: 1px solid var(--line); border-radius: var(--pill); font: 650 10px var(--font-display); padding: 1px 6px; line-height: 1.5; }
.glogo.more > span { background: var(--ink); color: var(--paper); }

/* game tiles on partner / game detail */
.gplay { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.gp { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 10px; background: var(--card); border: 2px solid transparent; border-radius: 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.gp:has(.stretch):hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.gp .pic { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--paper); display: grid; place-items: center; font: 650 34px var(--font-display); color: #16142b; }
.gp .pic img { width: 100%; height: 100%; object-fit: cover; }
.gp .row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 6px; }
.gp b { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.gp .n { font: 650 18px var(--font-display); letter-spacing: -.015em; background: var(--page); color: #16142b; border-radius: var(--pill); padding: 3px 12px; white-space: nowrap; }
.gp a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.mates { display: flex; flex-wrap: wrap; gap: 12px; }
.mate { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--card); border: 2px solid transparent; border-radius: var(--pill); font-weight: 650; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.mate:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.mate .avatar { width: 44px; height: 44px; font-size: 16px; }
.mate small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 24px 26px 26px; background: var(--card); }
.stat .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat .val { font: 650 clamp(24px, 3vw, 36px) var(--font-display); letter-spacing: -.015em; margin-top: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .rk { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat .rk b { display: inline-block; background: var(--ink); color: var(--paper); border-radius: var(--pill); padding: 2px 9px; margin-right: 4px; font-weight: 650; }
.stat.hl .rk { color: rgba(22, 20, 43, .72); }
.stat.hl .rk b { background: #16142b; color: #fff; }
.stat.hl { background: var(--page); color: #16142b; }
.stat.hl .lbl { color: rgba(22, 20, 43, .72); }
.stat .val small { font: 600 13px var(--font-body); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.stat.hl .val small { color: rgba(22, 20, 43, .7); }

/* panels & charts */
.panel { padding: 26px; background: var(--card); border-radius: var(--r-lg); }
.panel h3 { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 6px; }
.panel .sub { color: var(--muted); font-size: 13.5px; font-weight: 500; margin-bottom: 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.chart-box { position: relative; height: 260px; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.two.even { grid-template-columns: 1fr 1fr; }
.legend { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; border: 1px solid var(--line); }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; }
.donut { position: relative; height: 200px; }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut .mid b { font: 650 26px var(--font-display); letter-spacing: -.015em; }
.donut .mid small { color: var(--muted); font-size: 12px; font-weight: 600; }

/* rank rows */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 52px 76px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 22px; border-top: 2px solid var(--paper); text-align: left; width: 100%; transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--paper); }
.row .pos { font: 650 20px var(--font-display); letter-spacing: -.015em; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.row.top .pos { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto; font-size: 17px; color: #16142b; border: 1px solid var(--line); }
.row.top:nth-child(1) .pos { background: var(--yellow); }
.row.top:nth-child(2) .pos { background: #d4d8ec; }
.row.top:nth-child(3) .pos { background: #ffb690; }
.row .rthumb { width: 76px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--paper); }
.row .rthumb.sq { aspect-ratio: 1; width: 58px; border-radius: 50%; border: 1px solid var(--line); }
.row .rthumb.sq.rr { border-radius: 16px; }
.row .rthumb img { width: 100%; height: 100%; object-fit: cover; }
.row .rt { min-width: 0; }
.row .rt b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.bar { height: 8px; border-radius: 4px; background: var(--paper); margin-top: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.row.top .bar i { background: var(--page); box-shadow: inset 0 0 0 2px var(--ink); }
.row .rv { font: 650 20px var(--font-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; text-align: right; }
.row .rv small { display: block; font: 600 12px var(--font-body); color: var(--muted); letter-spacing: 0; }
.row[data-vid] { cursor: pointer; }

/* sidebar leaderboard */
.lb { padding: 24px; background: var(--card); border-radius: var(--r-lg); }
.lb h3 { font: 650 18px var(--font-display); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lb ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.lb li button { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px; margin: 0 -10px; border-radius: 16px; width: calc(100% + 20px); }
.lb li button:hover { background: var(--paper); }
.lb .n { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 650 13px var(--font-display); border: 1px solid var(--line); }
.lb li:first-child .n { background: var(--yellow); color: #16142b; }
.lb b { display: -webkit-box; font-size: 14px; font-weight: 650; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb small { color: var(--muted); font-size: 12px; font-weight: 600; }
.quick { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 12px; background: var(--card); border-radius: var(--r-lg); }
.quick a { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 16px; font-weight: 650; }
.quick a:hover { background: var(--paper); }
.quick a span { display: inline-flex; align-items: center; gap: 10px; }

/* pager */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); font-weight: 650; display: inline-grid; place-items: center; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pager button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.pager button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.pager button:disabled { opacity: .3; cursor: default; }
.pager span { align-self: center; color: var(--muted); font-weight: 650; }

/* states */
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: var(--r-lg); min-height: 120px; opacity: .6; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: sh 1.3s infinite; }
@keyframes sh { to { transform: translateX(100%); } }
.sk-card { aspect-ratio: 16/13; }
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--ink); border-radius: var(--r-lg); color: var(--muted); font-weight: 500; }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-family: var(--font-display); letter-spacing: -.015em; font-size: 20px; }
.empty .btn { margin-top: 18px; }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(18, 16, 40, .7); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal { width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); animation: pop .25s var(--ease); }
.modal .player { aspect-ratio: 16 / 9; background: #000; position: relative; }
.modal .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal .mbody { padding: 22px 26px 26px; }
.modal h2 { font-size: 22px; margin-bottom: 14px; line-height: 1.15; }
.modal .mrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.modal .close { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--yellow); color: #16142b; }
.modal-wrap { position: relative; }
.palette { width: min(620px, 100%); align-self: flex-start; margin-top: 10vh; }
.palette .pin { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.palette input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; font-weight: 600; }
.palette .plist { max-height: 52vh; overflow: auto; padding: 8px; }
.palette .grp { font-size: 12px; font-weight: 650; color: var(--muted); padding: 12px 12px 6px; }
.palette a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-weight: 600; }
.palette a:hover, .palette a.sel { background: var(--paper); }
.palette a small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.palette a .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette .pico { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; overflow: hidden; }
.palette .pico img { width: 100%; height: 100%; object-fit: cover; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: var(--pill); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* song */
.player-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.now { padding: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.now .player { aspect-ratio: 16/9; background: #000; position: relative; }
.now .player > div, .now .player iframe { position: absolute !important; inset: 0; width: 100%; height: 100%; border: 0; }
.now .nbody { padding: 22px 24px 24px; }
.now .nbody h2 { font-size: 22px; line-height: 1.15; margin-top: 4px; }
.ctrl { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.queue { max-height: 540px; overflow: auto; background: var(--card); border-radius: var(--r-lg); }
.queue .row { grid-template-columns: 34px 64px minmax(0, 1fr) auto; padding: 10px 16px; gap: 12px; }
.queue .row.playing { background: var(--page); color: #16142b; }
.queue .row.playing small { color: rgba(22,20,43,.7); }
.queue .row .pos { font-size: 15px; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.add-song { display: flex; gap: 8px; margin-top: 16px; }
.add-song .input { height: 44px; }
.rm { color: var(--muted); padding: 6px; border-radius: 8px; }
.rm:hover { color: var(--red); }
.eyebrow { font-size: 13px; font-weight: 650; color: var(--muted); }

/* channel */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 2px solid transparent; border-radius: var(--r-lg); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.tile .ti { width: 48px; height: 48px; border-radius: 16px; background: #ffd60a; color: #16142b; border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; }
.tile:nth-child(2) .ti { background: #ff8f7a; } .tile:nth-child(3) .ti { background: #ffb13d; } .tile:nth-child(4) .ti { background: #6fe3ae; } .tile:nth-child(5) .ti { background: #c4a5ff; } .tile:first-child .ti { background: #86a8ff; }
.tile p { color: var(--muted); font-size: 14px; font-weight: 500; }
.tile b { font: 650 18px var(--font-display); letter-spacing: -.015em; }
.support { display: flex; align-items: center; gap: 24px; padding: 32px; background: var(--yellow); color: #16142b; border: 1px solid var(--line); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); border-radius: var(--r-lg); flex-wrap: wrap; }
.support img { width: 72px; height: 72px; border-radius: 20px; border: 2px solid #16142b; }
.support div { flex: 1; min-width: 220px; }
.support h2 { margin-bottom: 6px; }
.support p { font-weight: 600; opacity: .75; }
.support .btn { border-color: #16142b; background: #fff; color: #16142b; }
.support .btn:hover { box-shadow: 4px 4px 0 #16142b; }
.navcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.navcard { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--card); border: 2px solid transparent; border-radius: 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.navcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.navcard img { width: 52px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.navcard small { color: var(--muted); display: block; font-size: 12px; font-weight: 600; }
.navcard b { font-weight: 650; display: block; line-height: 1.25; }
.navcard.r { flex-direction: row-reverse; text-align: right; }

.foot { padding: 28px 0 120px; color: var(--muted); font-size: 13px; font-weight: 600; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two, .two.even, .player-grid { grid-template-columns: 1fr; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 44px; padding: 0; justify-content: center; }
  .hb-covers { display: none; }
  .feat { grid-template-columns: 1fr; }
  .grid.vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .stats, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 38px 58px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .row .rv { grid-column: 3; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .row .rv small { display: inline; }
  .row .rthumb { width: 58px; }
}
@media (max-width: 700px) {
  .dock a span { display: none; }
  .dock a[aria-current="page"] span { display: inline; }
  .dock a { padding: 0 13px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .topbar .wrap { height: 64px; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { padding: 0; width: 44px; }
  #refreshBtn { display: none; }
  .grid.vids, .grid.vids.c2 { grid-template-columns: 1fr; }
  .grid.games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .grid.people { grid-template-columns: 1fr; }
  .navcards { grid-template-columns: 1fr; }
  .hero .cover { width: 92px; height: 115px; }
  .avatar.xl { width: 92px; height: 92px; }
  .modal .mbody { padding: 18px; }
  .support { padding: 22px; }
  .hb-glyph { width: 200px; height: 200px; }
}
@media (max-width: 1000px) { .grid.games.home .gcard:nth-child(5) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
  .dock { gap: 0; padding: 5px; bottom: 12px; }
  .dock a { padding: 0 11px; height: 44px; gap: 6px; font-size: 13px; }
}

/* ---------- v3 tambahan ---------- */
.ticker[hidden] { display: none; }
.meta b { font-weight: 600; }
.live-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.live-note i { width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 0 rgba(47,179,109,.6); animation: pulse 2s infinite; }
.live-note.off i { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,179,109,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,109,0); } }
.preview-bar { position: sticky; top: 0; z-index: 70; background: var(--ink); color: var(--paper); display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 16px; font-size: 13px; font-weight: 600; text-align: center; flex-wrap: wrap; }
.preview-bar button, .preview-bar a { background: var(--yellow); color: #16142b; border-radius: var(--pill); padding: 3px 14px; font-weight: 650; }
.progress { height: 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--page); transition: width .3s var(--ease); }
.loadnote { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--card); border-radius: var(--r); font-weight: 600; margin-bottom: 20px; }
.loadnote .progress { flex: 1; }
.gcover .init { width: 100%; height: 100%; display: grid; place-items: center; font: 650 44px var(--font-display); color: #16142b; }
.gcover img { background: var(--paper); }

/* ---- sampul otomatis (bingkai seragam) ---- */
.gcover, .hero .cover, .cv { position: relative; overflow: hidden; }
.ac { position: absolute; inset: 0; background: #1f1b4d; container-type: inline-size; }
.ac-art { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #3a376b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0%200H100V68.3C97.92%2068.98%2091.67%2071.17%2087.5%2072.4C83.33%2073.63%2079.17%2074.75%2075%2075.7C70.83%2076.65%2066.67%2077.52%2062.5%2078.1C58.33%2078.68%2054.17%2079.1%2050%2079.2C45.83%2079.3%2041.67%2079.27%2037.5%2078.7C33.33%2078.13%2029.17%2077.13%2025%2075.8C20.83%2074.47%2016.67%2072.17%2012.5%2070.7C8.33%2069.23%202.08%2067.62%200%2067Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0%200H100V68.3C97.92%2068.98%2091.67%2071.17%2087.5%2072.4C83.33%2073.63%2079.17%2074.75%2075%2075.7C70.83%2076.65%2066.67%2077.52%2062.5%2078.1C58.33%2078.68%2054.17%2079.1%2050%2079.2C45.83%2079.3%2041.67%2079.27%2037.5%2078.7C33.33%2078.13%2029.17%2077.13%2025%2075.8C20.83%2074.47%2016.67%2072.17%2012.5%2070.7C8.33%2069.23%202.08%2067.62%200%2067Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.ac-bar { position: absolute; left: 0; right: 0; top: 0; height: 11.4%; display: flex; align-items: center; justify-content: center; padding: 0 5%; background: rgba(40, 37, 73, .55); color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ac .ac-mark { position: absolute; left: 50%; top: 83%; height: 13%; width: auto; transform: translateX(-50%) !important; opacity: .95; object-fit: contain; background: none !important; border: 0 !important; box-shadow: none !important; filter: none !important; border-radius: 0 !important; }
.ac-artimg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border: 0 !important; border-radius: 0 !important; }
.ac-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 12%; font-family: var(--font-display); font-weight: 650; font-size: 34cqw; letter-spacing: -.015em; color: rgba(255, 255, 255, .55); }
.ac .ac-logo { position: absolute; left: 15%; top: 83%; width: 70% !important; height: 13% !important; object-fit: contain; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.ac .ac-text { position: absolute; left: 15%; top: 83%; width: 70%; height: 13%; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.05; font-family: var(--font-display); font-weight: 650; letter-spacing: -.015em; color: #fff; overflow: hidden; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }


/* ---- kotak kecil + nama di bawah (halaman partner & kartu collab) ---- */
.gplay { grid-template-columns: repeat(auto-fill, minmax(104px, 112px)); gap: 26px 18px; }
.gp { padding: 0; background: none; border: 0; border-radius: 0; gap: 9px; }
.gp:has(.stretch):hover { border: 0; box-shadow: none; transform: none; }
.gp:has(.stretch):hover .pic { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .18); }
.gp .pic { aspect-ratio: 4 / 5; border-radius: 14px; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); font-size: 26px; }
.gp .row2 { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; padding: 0 2px; }
.gp .row2 b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp .row2 .n { font-size: 11px; padding: 1px 8px; }
.glogos { gap: 14px; align-items: flex-start; padding-bottom: 0; }
.glogo { width: 62px; height: auto; border: 0; background: none; display: flex; flex-direction: column; gap: 6px; }
.glogo .mg-pic { position: relative; display: block; width: 62px; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.glogo .mg-pic > img, .glogo .mg-pic > span.init { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font: 650 14px var(--font-display); color: #16142b; border-radius: 0; }
.glogo .mg-pic > b { position: absolute; right: 3px; bottom: 3px; background: var(--yellow); color: #16142b; border: 0; border-radius: var(--pill); font: 650 10px var(--font-display); padding: 1px 6px; line-height: 1.5; z-index: 2; }
.glogo .mg-n { font: 600 11px/1.2 var(--font-body); color: var(--muted); width: 62px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glogo.more { justify-content: flex-start; }
.glogo.more > span.init { width: 62px; aspect-ratio: 4 / 5; height: auto; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 650 15px var(--font-display); }
