:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --card: #16161f;
  --line: #262633;
  --text: #f4f4f7;
  --muted: #9a9aae;
  --gold: #f5b301;
  --gold2: #ffd76a;
  --acc: #f5b301;
  --good: #34d399;
  --bad: #f87171;
  --r: 18px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 100% 0%, rgba(124, 58, 237, .14), transparent 70%),
    var(--bg);
  color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px 60px; }
img { display: block; max-width: 100%; }

/* top bar */
.top { width: 100%; max-width: 980px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; }
.logo { font: 800 24px var(--display); text-decoration: none; letter-spacing: -.5px; }
.logo-og {
  background: linear-gradient(135deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-right: 1px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold2), var(--acc)); color: #1a1200;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--acc) 35%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 38px color-mix(in srgb, var(--acc) 50%, transparent); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* home */
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font: 800 clamp(40px, 8vw, 76px)/1 var(--display); letter-spacing: -2px; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 44px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step-ico { font-size: 26px; margin-bottom: 6px; }
.step b { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14px; }
.section-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; }

.bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0 0 48px; }
.bubble { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.bubble .avatar, .bubble-ph { width: 128px; height: 128px; border-radius: 50%; }
.bubble .avatar { font-size: 52px; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--acc), 0 14px 44px color-mix(in srgb, var(--acc) 30%, transparent); }
.bubble:hover .avatar { transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--acc), 0 18px 60px color-mix(in srgb, var(--acc) 50%, transparent); }
.bubble-name { font: 800 20px/1 var(--display); }

/* avatars */
.avatar {
  flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--gold2), var(--acc)); color: #1a1200; font: 800 1em var(--display);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-xl { width: 96px; height: 96px; font-size: 42px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--acc); }
.av-lg { width: 76px; height: 76px; font-size: 34px; }
.av-sm { width: 40px; height: 40px; font-size: 17px; background: #232331; color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.pill-gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #1a1200; }
.pill-dim { background: rgba(255,255,255,.07); color: #d6d6e0; }
.pill-acc { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--gold2); }

/* creator page */
.c-head { display: flex; align-items: center; gap: 22px; padding: 26px 0 22px; }
.c-head h1 { font: 800 clamp(30px, 6vw, 46px)/1.05 var(--display); margin: 8px 0 2px; letter-spacing: -1px; }
.c-head .sub { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font: 800 28px var(--display); }
.stat span { color: var(--muted); font-size: 13px; }

.cta {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 22px; margin-bottom: 30px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 20%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line));
}
.cta .txt { flex: 1; min-width: 0; }
.cta h2 { font: 800 22px/1.15 var(--display); margin: 0 0 3px; }
.cta p { margin: 0; color: var(--muted); }
.cta .rank-big { font: 800 52px/1 var(--display); color: var(--gold2); min-width: 90px; }
.cta .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--card); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 16px; }
.pod {
  position: relative; text-align: center; padding: 18px 12px 16px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); cursor: pointer; transition: transform .15s;
}
.pod:hover { transform: translateY(-3px); }
.pod.p1 { padding-top: 26px; border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, var(--card)), var(--card)); }
.pod.p2 { border-color: #6b7280; }
.pod.p3 { border-color: #9a5b2f; }
.pod .medal { font-size: 30px; line-height: 1; }
.pod .thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; object-position: top; margin: 10px auto 8px; border: 2px solid var(--line); }
.pod.p1 .thumb { width: 78px; height: 78px; border-color: var(--gold); }
.pod .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .sc { color: var(--muted); font-size: 13px; }

/* list */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; text-align: left;
  background: var(--card); border: 1px solid var(--line); width: 100%; transition: background .15s, border-color .15s;
}
.row:hover { background: #1b1b26; border-color: #34344a; }
.row.mine { border-color: color-mix(in srgb, var(--acc) 60%, var(--line)); background: color-mix(in srgb, var(--acc) 8%, var(--card)); }
.row .n { width: 42px; text-align: center; font: 800 18px var(--display); color: var(--muted); flex: none; }
.row .thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; object-position: top; flex: none; background: #222; }
.row .who { flex: 1; min-width: 0; }
.row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .hd { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 4px; }
.row .chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.row .pts { font: 800 18px var(--display); flex: none; }
.row .pts small { display: block; font: 500 11px Inter, sans-serif; color: var(--muted); text-align: right; }
.more { display: flex; justify-content: center; margin-top: 16px; }

.empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); }
.empty .big { font-size: 46px; }
.empty b { display: block; color: var(--text); font: 800 22px var(--display); margin: 8px 0 4px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4,4,8,.72); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 24px; animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-card h2 { font: 800 26px/1.1 var(--display); margin: 0 0 6px; padding-right: 34px; }
.modal-card .lead { color: var(--muted); margin: 0 0 18px; }
.x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 18px; }

/* form */
.field { margin-bottom: 16px; }
.field > label:not(.drop, .toggle), .field > .lbl { display: block; font-weight: 600; margin-bottom: 7px; }
.field small { color: var(--muted); font-weight: 400; }
.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; outline: none;
}
.input:focus { border-color: var(--acc); }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed #3a3a50; border-radius: 16px;
  background: var(--card); cursor: pointer; transition: border-color .15s;
}
.drop:hover, .drop.over { border-color: var(--acc); }
.drop .ph { width: 64px; height: 84px; border-radius: 10px; background: #20202c; display: grid; place-items: center; font-size: 26px; flex: none; overflow: hidden; }
.drop .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.drop b { display: block; }
.drop span { color: var(--muted); font-size: 13px; }
.toggle {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); cursor: pointer; margin-bottom: 8px; user-select: none;
}
.toggle input { display: none; }
.toggle .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #4a4a60; display: grid; place-items: center; flex: none; }
.toggle input:checked + .box { background: var(--acc); border-color: var(--acc); }
.toggle input:checked + .box::after { content: '✓'; color: #1a1200; font-weight: 800; font-size: 14px; }
.toggle .t { flex: 1; }
.toggle .plus { color: var(--gold2); font-weight: 700; font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.seg button { padding: 10px 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.seg button.on { background: var(--acc); color: #1a1200; border-color: var(--acc); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.err { color: var(--bad); font-weight: 600; margin: -6px 0 14px; }
.full { width: 100%; }

/* recap viewer */
.shot { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 16px; background: #000; margin: 4px 0 14px; }
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote .btn { border: 1px solid var(--line); background: var(--card); }
.vote .ok.on { background: color-mix(in srgb, var(--good) 22%, var(--card)); border-color: var(--good); }
.vote .sus.on { background: color-mix(in srgb, var(--bad) 22%, var(--card)); border-color: var(--bad); }
.vote-q { font-weight: 700; margin: 6px 0 10px; }
.counts { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }

/* share */
.share-img { width: 100%; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.share-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 14px;
  background: #1f1f2b; border: 1px solid var(--line); font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.foot { text-align: center; color: #6c6c80; font-size: 13px; padding: 26px 20px 34px; border-top: 1px solid #17171f; }
.foot p { margin: 4px 0; }
.foot a { color: #a3a3b8; }

.skeleton { height: 66px; border-radius: 16px; background: linear-gradient(90deg, #15151d, #1c1c26, #15151d); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
  .c-head { gap: 16px; }
  .av-xl { width: 74px; height: 74px; font-size: 32px; }
  .cta { flex-direction: column; align-items: stretch; text-align: left; }
  .cta .acts { justify-content: stretch; }
  .cta .acts .btn { flex: 1; }
  .podium { gap: 8px; }
  .pod { padding: 14px 6px 12px; }
  .row .chips .pill:nth-child(n+3) { display: none; }
  .row { gap: 10px; padding-right: 12px; }
  .row .n { width: 26px; font-size: 16px; }
  .row .pill { font-size: 11px; padding: 3px 8px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 6px; white-space: nowrap; font-size: 14px; }
  .stat span { font-size: 12px; line-height: 1.3; display: block; }
}

/* verified with YouTube */
.pill-ok { background: color-mix(in srgb, var(--good) 18%, transparent); color: #6ee7b7; }
.thumb-v { display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #6ee7b7;
  background: color-mix(in srgb, var(--good) 14%, #1a1a24) !important; border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.pod .thumb-v { font-size: 30px; }
.verified-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; margin: 4px 0 14px;
  border-radius: 16px; font-weight: 700; color: #6ee7b7; background: color-mix(in srgb, var(--good) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line)); }
.verified-box small { color: var(--muted); font-weight: 500; font-size: 14px; }
.vmark { color: #6ee7b7; font-weight: 800; }
