/* =========================================================================
   ShopFlix — Netflix-grade storefront styling
   ========================================================================= */

:root {
  --bg:        #07070a;
  --bg-2:      #0e0e13;
  --surface:   #15151c;
  --surface-2: #1d1d26;
  --surface-3: #262631;
  --line:      #2b2b38;
  --text:      #f4f4f7;
  --muted:     #9a9aab;
  --muted-2:   #6c6c7d;
  --accent:    #ff3b5c;
  --accent-dk: #d81f42;
  --gold:      #ffb020;
  --ok:        #2ee6a8;
  --info:      #5b9dff;
  --radius:    10px;
  --radius-lg: 16px;
  --nav-h:     68px;
  --shadow:    0 18px 48px rgba(0,0,0,.72);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img, video { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #34343f; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #45454f; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- top nav */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; gap: 26px; padding: 0 34px;
  background: linear-gradient(180deg, rgba(7,7,10,.94) 0%, rgba(7,7,10,.55) 62%, transparent 100%);
  transition: background .28s var(--ease), backdrop-filter .28s var(--ease);
}
.topbar.solid {
  background: rgba(9,9,13,.93);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), #ff8a3d);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.5px;
  box-shadow: 0 6px 18px rgba(255,59,92,.4);
}
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -.6px; }
.brand-name span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #cfcfda; white-space: nowrap; transition: color .18s, background .18s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: rgba(255,59,92,.16); }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #e6e6ee; transition: background .18s, transform .18s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot {
  position: absolute; margin: -20px 0 0 18px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #0d0d12;
}
.cart-pill {
  position: relative; display: flex; align-items: center; gap: 8px; height: 38px;
  padding: 0 15px; border-radius: 19px; background: rgba(255,255,255,.08);
  font-weight: 600; font-size: 13.5px; transition: background .18s;
}
.cart-pill:hover { background: rgba(255,255,255,.15); }
.cart-pill svg { width: 17px; height: 17px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.avatar-btn {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; background: linear-gradient(145deg,#4facfe,#00f2fe); color: #06121f;
}
.menu-pop {
  position: absolute; top: calc(var(--nav-h) - 8px); right: 30px; z-index: 950; width: 296px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.menu-head { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.menu-head .who { font-weight: 700; }
.menu-head .code { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.menu-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 16px; font-size: 14px;
  width: 100%; text-align: left; transition: background .15s;
}
.menu-row:hover { background: rgba(255,255,255,.06); }
.menu-row svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.notif {
  display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.45;
}
.notif:last-child { border-bottom: 0; }
.notif .n-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255,59,92,.16); color: var(--accent); font-size: 14px;
}
.notif time { color: var(--muted-2); font-size: 12px; display: block; margin-top: 2px; }

/* ---------------------------------------------------------------- billboard */
.billboard {
  position: relative; height: 88vh; min-height: 560px; margin-bottom: -90px;
  overflow: hidden; background: #000;
}
.billboard video, .billboard .bb-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.billboard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,7,10,.96) 0%, rgba(7,7,10,.72) 38%, rgba(7,7,10,.1) 68%, transparent 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(7,7,10,.5) 26%, transparent 62%);
}
.bb-inner {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 34px 168px; max-width: 700px;
}
.bb-badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  background: rgba(255,59,92,.18); border: 1px solid rgba(255,59,92,.4);
  color: #ff8fa3; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 20px; margin-bottom: 16px;
}
.bb-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.bb-title { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.02; font-weight: 800; letter-spacing: -2px; margin: 0 0 16px; }
.bb-meta { display: flex; align-items: center; gap: 12px; color: #d3d3de; font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.bb-meta .score { color: var(--ok); font-weight: 700; }
.bb-meta .chip { padding: 2px 8px; border: 1px solid #4a4a58; border-radius: 4px; font-size: 11.5px; color: #c9c9d6; }
.bb-desc { color: #cfcfda; font-size: 16.5px; max-width: 580px; margin-bottom: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.bb-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border-radius: 9px; font-weight: 700; font-size: 15px;
  transition: transform .16s var(--ease), background .18s, opacity .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(255,59,92,.34); }
.btn-primary:hover { background: #ff5570; }
.btn-light { background: #f4f4f7; color: #0b0b10; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(109,109,122,.44); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(109,109,122,.68); }
.btn-outline { border: 1.5px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: #4c4c5c; background: rgba(255,255,255,.05); }
.btn-gold { background: linear-gradient(140deg, #ffb020, #ff8a3d); color: #1a1002; box-shadow: 0 8px 24px rgba(255,176,32,.28); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-round { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ---------------------------------------------------------------- rails */
.rails { position: relative; z-index: 5; padding-bottom: 70px; }
.rail { margin-bottom: 40px; }
.rail-head {
  display: flex; align-items: baseline; gap: 12px; padding: 0 34px; margin-bottom: 14px;
}
.rail-title { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin: 0; display: flex; align-items: center; gap: 8px; }
.rail-sub { color: var(--muted-2); font-size: 13px; }
.rail-seeall { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.rail-seeall:hover { color: #fff; }

.rail-wrap { position: relative; }
.rail-track {
  display: flex; gap: 12px; padding: 12px 34px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x proximity;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-arrow {
  position: absolute; top: 12px; bottom: 12px; width: 52px; z-index: 20;
  display: grid; place-items: center; color: #fff; opacity: 0;
  background: linear-gradient(90deg, rgba(7,7,10,.92), rgba(7,7,10,.35));
  transition: opacity .22s;
}
.rail-wrap:hover .rail-arrow { opacity: 1; }
.rail-arrow.left { left: 0; }
.rail-arrow.right { right: 0; background: linear-gradient(270deg, rgba(7,7,10,.92), rgba(7,7,10,.35)); }
.rail-arrow svg { width: 26px; height: 26px; }
.rail-arrow:hover { color: var(--accent); }

/* ---------------------------------------------------------------- card */
.card {
  position: relative; flex: 0 0 auto; width: 296px; scroll-snap-align: start;
  cursor: pointer; transition: transform .26s var(--ease);
}
.card-media {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  transition: box-shadow .26s var(--ease), border-radius .26s;
}
.card:hover .card-media { box-shadow: var(--shadow); }
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.card-media img { transition: opacity .35s; }
.card-media video { opacity: 0; transition: opacity .4s; }
.card-media.playing video { opacity: 1; }
.card-media.playing img { opacity: 0; }

.card-tags { position: absolute; top: 9px; left: 9px; display: flex; gap: 6px; z-index: 3; }
.tag {
  padding: 3px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.tag-hot { background: var(--accent); color: #fff; }
.tag-new { background: var(--ok); color: #04241a; }
.tag-gold { background: var(--gold); color: #221500; }
.tag-glass { background: rgba(12,12,18,.72); color: #eaeaf2; border: 1px solid rgba(255,255,255,.14); }

.card-live {
  position: absolute; top: 9px; right: 9px; z-index: 3; display: flex; align-items: center; gap: 5px;
  background: rgba(12,12,18,.76); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.card-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }

.card-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: 26px 12px 11px;
  background: linear-gradient(0deg, rgba(6,6,10,.95) 8%, rgba(6,6,10,.55) 55%, transparent 100%);
}
.card-name { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #b9b9c8; }
.card-price { color: #fff; font-weight: 800; font-size: 13.5px; }
.card-price s, .card-meta s { color: var(--muted-2); font-weight: 500; font-size: 11.5px; }

.card-actions {
  display: flex; gap: 7px; margin-top: 10px; align-items: center;
  opacity: 0; transform: translateY(7px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  pointer-events: none;
}
.card:hover .card-actions { opacity: 1; transform: none; pointer-events: auto; }
.card:hover { transform: translateY(-4px); }
.mini-btn {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3); transition: background .16s, transform .16s;
}
.mini-btn:hover { background: rgba(255,255,255,.3); }
.mini-btn:active { transform: scale(.88); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn.on { background: var(--accent); border-color: var(--accent); }
.mini-btn.on svg { fill: #fff; }
.mini-btn.buy { width: auto; padding: 0 13px; border-radius: 16px; font-size: 12.5px; font-weight: 700; gap: 5px; display: flex; }
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); z-index: 4; }
.card-progress i { display: block; height: 100%; background: var(--accent); transition: width .4s linear; }
.rail-hero .card { width: 372px; }

/* ---------------------------------------------------------------- section head */
.page { padding-top: calc(var(--nav-h) + 24px); min-height: 100vh; }
.page-pad { padding: 0 34px; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; flex-wrap: wrap; }
.section-title { font-size: 27px; font-weight: 800; letter-spacing: -.8px; margin: 0; }
.section-desc { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.row-spacer { flex: 1; }

/* ---------------------------------------------------------------- channel page */
.channel { padding-top: var(--nav-h); }
.ch-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 30px;
  padding: 22px 34px 60px; align-items: start;
}
@media (max-width: 1180px) { .ch-layout { grid-template-columns: minmax(0,1fr); } }

.player {
  position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-top {
  position: absolute; inset: 0 0 auto 0; padding: 16px 18px; z-index: 4;
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
  opacity: 0; transition: opacity .24s;
}
.player:hover .player-top, .player.paused .player-top { opacity: 1; }
.player-title { font-weight: 700; font-size: 15px; }
.player-by { color: #c8c8d6; font-size: 12.5px; }
.player-center {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4;
  opacity: 0; transition: opacity .24s;
}
.player:hover .player-center, .player.paused .player-center { opacity: 1; }
.big-play {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,.4);
  display: grid; place-items: center; transition: transform .18s, background .18s;
}
.big-play:hover { transform: scale(1.07); background: rgba(255,59,92,.85); }
.big-play svg { width: 30px; height: 30px; }
.player-bottom {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 12px; z-index: 4;
  background: linear-gradient(0deg, rgba(0,0,0,.86), transparent);
  opacity: 0; transition: opacity .24s;
}
.player:hover .player-bottom, .player.paused .player-bottom { opacity: 1; }
.seek { height: 5px; border-radius: 3px; background: rgba(255,255,255,.26); cursor: pointer; position: relative; }
.seek:hover { height: 8px; }
.seek i { display: block; height: 100%; border-radius: 3px; background: var(--accent); position: relative; }
.seek i::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .18s;
}
.seek:hover i::after { opacity: 1; }
.player-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.player-ctrl .time { font-size: 12.5px; color: #d5d5e0; font-variant-numeric: tabular-nums; }
.player-ctrl .sp { flex: 1; }
.pc-btn { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; transition: background .16s; }
.pc-btn:hover { background: rgba(255,255,255,.16); }
.pc-btn svg { width: 18px; height: 18px; }

.ch-head { display: flex; gap: 18px; margin: 22px 0 18px; align-items: flex-start; }
.ch-avatar {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: #fff;
}
.ch-id { flex: 1; min-width: 0; }
.ch-title { font-size: 25px; font-weight: 800; letter-spacing: -.7px; margin: 0 0 5px; line-height: 1.2; }
.ch-handle { color: var(--muted); font-size: 13.5px; }
.ch-stats { display: flex; gap: 20px; margin-top: 11px; flex-wrap: wrap; }
.ch-stat b { display: block; font-size: 16px; font-weight: 800; }
.ch-stat span { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.ch-actions { display: flex; gap: 9px; flex-shrink: 0; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 20px; overflow-x: auto; }
.tab {
  padding: 11px 16px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .18s, border-color .18s;
}
.tab:hover { color: #ddd; }
.tab.active { color: #fff; border-bottom-color: var(--accent); }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 18px; }
.grid-cards .card { width: 100%; }
.rail-title svg { width: 19px; height: 19px; }
.rail-seeall svg { width: 14px; height: 14px; vertical-align: -2px; }
.card-meta svg { vertical-align: -2px; }
.vtile { cursor: pointer; }
.vtile .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.vtile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.vtile:hover .thumb img { transform: scale(1.07); }
.vtile .dur {
  position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,.8); padding: 2px 6px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
}
.vtile .play-badge {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s;
  background: rgba(0,0,0,.35);
}
.vtile:hover .play-badge { opacity: 1; }
.vtile .play-badge svg { width: 42px; height: 42px; color: #fff; }
.vtile h4 { font-size: 13.5px; margin: 9px 0 3px; font-weight: 600; line-height: 1.35; }
.vtile p { margin: 0; font-size: 12px; color: var(--muted-2); }

/* buy box */
.buybox {
  position: sticky; top: calc(var(--nav-h) + 22px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.bb-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bb-price .now { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.bb-price .was { color: var(--muted-2); text-decoration: line-through; font-size: 15px; }
.bb-price .save { background: rgba(46,230,168,.15); color: var(--ok); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.watching { display: flex; align-items: center; gap: 7px; color: #ff8fa3; font-size: 12.5px; font-weight: 600; margin: 11px 0 4px; }
.watching i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.stock-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin: 10px 0 7px; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); }
.small { font-size: 12.5px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 17px 0; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 9px; width: fit-content; overflow: hidden; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px; font-weight: 600; transition: background .15s; }
.qty button:hover { background: var(--surface-2); }
.qty span { width: 46px; text-align: center; font-weight: 700; }
.trust { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.trust div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

.earn-card {
  margin-top: 16px; padding: 16px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(255,176,32,.14), rgba(255,59,92,.1));
  border: 1px solid rgba(255,176,32,.3);
}
.earn-card h4 { margin: 0 0 5px; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.earn-card h4 svg { width: 16px; height: 16px; color: var(--gold); }
.earn-card p { margin: 0 0 12px; font-size: 12.5px; color: #d8d8e2; }
.earn-rate { display: flex; gap: 8px; margin-bottom: 12px; }
.earn-rate div { flex: 1; background: rgba(0,0,0,.28); border-radius: 8px; padding: 8px 10px; }
.earn-rate b { display: block; font-size: 18px; color: var(--gold); }
.earn-rate span { font-size: 11px; color: var(--muted); }

.liveticker { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.liveticker h4 { margin: 0; padding: 12px 15px; font-size: 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.lt-list { max-height: 218px; overflow-y: auto; }
.lt-item { display: flex; gap: 10px; padding: 10px 15px; font-size: 12.5px; align-items: center; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }
.lt-item .av { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #08121c; flex-shrink: 0; }
.lt-item .txt { flex: 1; min-width: 0; line-height: 1.4; }
.lt-item .txt b { font-weight: 600; }
.lt-item time { color: var(--muted-2); font-size: 11px; white-space: nowrap; }


/* ---------------------------------------------------------------- comments */
.cmt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cmt-count { font-size: 15.5px; font-weight: 700; }
.sort-sel {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 11px; font-size: 13px; cursor: pointer;
}
.cmt-box { display: flex; gap: 12px; margin-bottom: 24px; }
.cmt-box .av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #08121c; }
.cmt-input-wrap { flex: 1; }
.cmt-input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); resize: vertical; min-height: 76px; outline: none;
  transition: border-color .18s;
}
.cmt-input:focus { border-color: var(--accent); }
.cmt-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cmt-tools .sp { flex: 1; }
.emoji-row { display: flex; gap: 4px; }
.emoji-row button { font-size: 17px; width: 32px; height: 32px; border-radius: 7px; transition: background .15s, transform .15s; }
.emoji-row button:hover { background: var(--surface-2); transform: scale(1.14); }

.cmt { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: 0; }
.cmt .av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #08121c; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.cmt-name { font-weight: 700; font-size: 13.5px; }
.cmt-badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.badge-creator { background: rgba(255,176,32,.18); color: var(--gold); }
.badge-buyer { background: rgba(46,230,168,.15); color: var(--ok); }
.badge-shop { background: rgba(91,157,255,.16); color: var(--info); }
.cmt-time { color: var(--muted-2); font-size: 12px; }
.cmt-text { font-size: 14.5px; color: #e2e2ea; line-height: 1.55; }
.cmt-acts { display: flex; gap: 6px; margin-top: 9px; align-items: center; }
.cmt-act {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s;
}
.cmt-act:hover { background: var(--surface-2); color: #fff; }
.cmt-act.on { color: var(--accent); }
.cmt-act svg { width: 15px; height: 15px; }
.replies { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line); }
.reply { display: flex; gap: 10px; padding: 10px 0; }
.reply .av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; color: #08121c; }
.reply-form { display: flex; gap: 9px; margin-top: 10px; }
.reply-form input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); outline: none; }
.reply-form input:focus { border-color: var(--accent); }

/* ---------------------------------------------------------------- feed */
.feed { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; background: #000; }
.feed-page { padding-top: 0; }
.feed-item { position: relative; height: 100vh; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
.feed-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.feed-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 4%, transparent 34%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.feed-side {
  position: absolute; right: 26px; bottom: 128px; z-index: 5;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.feed-act { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; }
.feed-act .ring {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(22,22,30,.72); backdrop-filter: blur(9px); border: 1px solid rgba(255,255,255,.12);
  transition: transform .16s, background .18s;
}
.feed-act:hover .ring { transform: scale(1.1); background: rgba(255,255,255,.2); }
.feed-act.on .ring { background: var(--accent); border-color: var(--accent); }
.feed-act.on .ring svg { fill: #fff; }
.feed-act .ring svg { width: 22px; height: 22px; }
.feed-info { position: absolute; left: 30px; bottom: 40px; right: 110px; z-index: 5; max-width: 620px; }
.feed-who { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.feed-who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #08121c; font-size: 15px; }
.feed-who .nm { font-weight: 700; font-size: 15px; }
.feed-who .sb { font-size: 12.5px; color: #b6b6c6; }
.feed-cap { font-size: 14.5px; color: #ececf3; margin-bottom: 14px; line-height: 1.5; }
.feed-buy {
  display: inline-flex; align-items: center; gap: 13px; padding: 9px 10px 9px 9px;
  background: rgba(20,20,28,.86); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
}
.feed-buy img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.feed-buy .t { font-size: 13.5px; font-weight: 700; }
.feed-buy .p { font-size: 12.5px; color: var(--ok); font-weight: 700; }
.feed-top {
  position: absolute; top: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 4px; background: rgba(18,18,26,.8); backdrop-filter: blur(10px);
  padding: 5px; border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
}
.feed-top button { padding: 8px 18px; border-radius: 20px; font-size: 13.5px; font-weight: 700; color: #cfcfdc; transition: background .16s, color .16s; }
.feed-top button.active { background: #fff; color: #0b0b10; }
.feed-hint {
  position: absolute; bottom: 16px; right: 30px; z-index: 5; color: var(--muted);
  font-size: 12px; display: flex; align-items: center; gap: 7px;
}

/* ---------------------------------------------------------------- affiliate */
.aff-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 26px;
  padding: 34px; background: linear-gradient(135deg, #1b1030 0%, #2a1230 45%, #33121c 100%);
  border: 1px solid rgba(255,255,255,.09);
}
.aff-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -170px;
  background: radial-gradient(circle, rgba(255,59,92,.4), transparent 68%); pointer-events: none;
}
.aff-hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; left: 30%; bottom: -220px;
  background: radial-gradient(circle, rgba(255,176,32,.3), transparent 68%); pointer-events: none;
}
.aff-hero-in { position: relative; z-index: 2; }
.aff-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; margin: 10px 0 8px; }
.aff-hero p { color: #d6d6e4; max-width: 620px; margin: 0 0 22px; }
.aff-link-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aff-link {
  display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; max-width: 100%; overflow: hidden;
}
.aff-link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  transition: transform .2s var(--ease), border-color .2s;
}
.stat:hover { transform: translateY(-3px); border-color: #3a3a4a; }
.stat .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }
.stat .val { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 7px 0 3px; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.stat .sub.up { color: var(--ok); }
.stat .sub.down { color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.panel h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.panel .panel-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 10px; border-bottom: 1px solid rgba(43,43,56,.5); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl-thumb { width: 62px; height: 36px; border-radius: 6px; object-fit: cover; }
.tbl-prod { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tbl-prod .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-prod .s { font-size: 11.5px; color: var(--muted-2); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.pill-ok { background: rgba(46,230,168,.15); color: var(--ok); }
.pill-pend { background: rgba(255,176,32,.16); color: var(--gold); }
.pill-paid { background: rgba(91,157,255,.16); color: var(--info); }

.spark { display: flex; align-items: flex-end; gap: 5px; height: 126px; padding-top: 10px; }
.spark .bar { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(255,59,92,.22)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: filter .18s; }
.spark .bar:hover { filter: brightness(1.35); }
.spark .bar:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #000; border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px;
  font-size: 11.5px; white-space: nowrap; z-index: 5;
}
.spark-x { display: flex; gap: 5px; margin-top: 8px; }
.spark-x span { flex: 1; text-align: center; font-size: 9.5px; color: var(--muted-2); }

.leader { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(43,43,56,.5); }
.leader:last-child { border-bottom: 0; }
.rank { width: 26px; font-weight: 800; font-size: 15px; color: var(--muted-2); text-align: center; }
.rank.top { color: var(--gold); }
.leader .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #08121c; }
.leader .info { flex: 1; min-width: 0; }
.leader .info b { display: block; font-size: 14px; }
.leader .info span { font-size: 12px; color: var(--muted-2); }
.leader .amt { font-weight: 800; color: var(--gold); font-size: 14.5px; }

.progress { height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width .6s var(--ease); }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px; }
.tier-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.tier-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,176,32,.3); }
.tier-card h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tier-card .pct { font-size: 27px; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.tier-card ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------------------------------------------------------------- cart */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .cart-layout { grid-template-columns: minmax(0,1fr); } }
.cart-row { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row img { width: 108px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info h4 { margin: 0 0 4px; font-size: 14.5px; }
.cart-row .info .m { font-size: 12.5px; color: var(--muted-2); }
.cart-row .line-price { font-weight: 800; font-size: 15.5px; min-width: 82px; text-align: right; }
.remove { color: var(--muted-2); font-size: 12.5px; margin-top: 6px; }
.remove:hover { color: var(--accent); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: calc(var(--nav-h) + 22px); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-row.total { font-size: 19px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.sum-row .lbl { color: var(--muted); }
.sum-row .disc { color: var(--ok); }
.coupon { display: flex; gap: 8px; margin: 15px 0; }
.coupon input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; color: var(--text); outline: none; }
.coupon input:focus { border-color: var(--accent); }

.empty { text-align: center; padding: 76px 20px; }
.empty svg { width: 62px; height: 62px; color: var(--muted-2); margin-bottom: 18px; }
.empty h3 { font-size: 21px; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

/* ---------------------------------------------------------------- modal + toast */
.scrim {
  position: fixed; inset: 0; z-index: 1000; background: rgba(3,3,6,.82);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 26px;
  animation: fade .2s var(--ease); overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.8); animation: modalIn .26s var(--ease);
}
.modal.wide { max-width: 900px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 3; }
.modal-head h3 { margin: 0; font-size: 17.5px; flex: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #d5d5e0; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; color: var(--text); outline: none; transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 11px; }
.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13px; font-weight: 600; transition: transform .16s, border-color .18s, background .18s;
}
.share-btn:hover { transform: translateY(-3px); border-color: #4a4a5c; background: var(--surface-3); }
.share-btn .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.share-btn .ic svg { width: 20px; height: 20px; }

.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; gap: 11px; max-width: 348px; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 11px;
  padding: 13px 15px; box-shadow: var(--shadow); animation: toastIn .3s var(--ease);
  font-size: 13.5px; line-height: 1.45;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
.toast.out { animation: toastOut .28s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast.ok { border-left-color: var(--ok); }
.toast.gold { border-left-color: var(--gold); }
.toast .ti { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; background: rgba(255,59,92,.16); }
.toast.ok .ti { background: rgba(46,230,168,.16); }
.toast.gold .ti { background: rgba(255,176,32,.16); }
.toast b { display: block; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(7,7,10,.96); backdrop-filter: blur(9px); padding: calc(var(--nav-h) + 30px) 34px 40px; overflow-y: auto; animation: fade .2s; }
.search-bar { display: flex; align-items: center; gap: 13px; max-width: 760px; margin: 0 auto 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.search-bar input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 18px; }
.search-bar svg { width: 21px; height: 21px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; max-width: 760px; margin: 0 auto 26px; }
.chip-btn { padding: 8px 15px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: background .16s, border-color .16s; }
.chip-btn:hover { background: var(--surface-3); border-color: #4a4a5c; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 46px 34px 60px; color: var(--muted-2); font-size: 13px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 26px; margin-bottom: 30px; }
.footer h5 { color: #cfcfda; font-size: 13px; margin: 0 0 12px; }
.footer a { display: block; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------------------------------------------------------------- misc */
.banner-tip {
  display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, rgba(255,176,32,.16), rgba(255,59,92,.09));
  border: 1px solid rgba(255,176,32,.28); border-radius: 12px; padding: 13px 18px; margin-bottom: 20px; font-size: 13.5px;
}
.banner-tip svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.rate-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.up-arrow { color: var(--ok); }
.down-arrow { color: var(--accent); }

@media (max-width: 900px) {
  .topbar { padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .brand-name { font-size: 18px; }
  .rail-head, .rail-track, .page-pad, .ch-layout, .footer { padding-left: 16px; padding-right: 16px; }
  .bb-inner { padding: 0 16px 150px; }
  .billboard { height: 78vh; min-height: 480px; }
  .ch-layout { padding-top: 14px; }
  .buybox { position: static; }
  .card { width: 232px; }
  .rail-hero .card { width: 268px; }
  .feed-side { right: 12px; bottom: 150px; }
  .feed-info { left: 16px; right: 86px; bottom: 26px; }
  .toast-wrap { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .search-overlay { padding: calc(var(--nav-h) + 16px) 16px 30px; }
}
@media (max-width: 560px) {
  .bb-title { font-size: 32px; letter-spacing: -1px; }
  .bb-desc { font-size: 14.5px; }
  .ch-title { font-size: 20px; }
  .stat .val { font-size: 24px; }
}
