:root {
  /* Luqi palette: black, blue, gold, orange */
  --black: #05070c;
  --blue: #1f6fff;
  --blue-deep: #0a3fb8;
  --gold: #f7c234;
  --orange: #ff8a1f;
  --bg: var(--black);
  --bg2: #0a1020;
  --card: #0f172b;
  --card2: #16213d;
  --line: #22315a;
  --text: #f5f7ff;
  --muted: #94a2c6;
  --brand: var(--gold);
  --brand2: var(--orange);
  --accent: var(--blue);
  --ok: #2ecc8a;
  --warn: var(--gold);
  --danger: #ff4d4d;
  --radius: 14px;
  --grad: linear-gradient(135deg, var(--gold), var(--orange));
  --grad-blue: linear-gradient(135deg, var(--blue), var(--blue-deep));
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .8rem; }
.hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; background: rgba(5,7,12,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: -.03em; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.logo .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-blue); display: grid; place-items: center; font-size: 1.05rem; font-weight: 900; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(247,194,52,.55); }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .tld { font-size: .75rem; font-weight: 700; color: var(--blue); margin-left: -.15rem; align-self: flex-end; margin-bottom: .2rem; }
.slogan { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.05; margin: .2rem 0 .6rem; }
/* ---------- Luqi Live ---------- */
.ll-head { margin-bottom: 1rem; }
.ll-title { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; margin: 0; display: flex; align-items: center; gap: .6rem; }
.ll-title::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #e0201c; box-shadow: 0 0 0 5px rgba(224,32,28,.25); animation: pulse 1.2s infinite; }
.ll-player { position: relative; aspect-ratio: 16/9; background: #000 radial-gradient(circle at 50% 40%, rgba(31,111,255,.35), #000 70%); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ll-player video, .ll-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.ll-player.big { border-radius: 20px; border-color: rgba(247,194,52,.45); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(247,194,52,.2); }
.ll-main.focus .ll-player.big { max-height: 78vh; aspect-ratio: auto; height: min(78vh, 56.25vw); }
.ll-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; z-index: 3; pointer-events: none; }
.ll-only { position: absolute; top: .7rem; right: .7rem; z-index: 3; background: rgba(5,7,12,.7); backdrop-filter: blur(6px); }
.ll-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); z-index: 2; pointer-events: none; transition: opacity .3s; }
.ll-player.big:hover .ll-caption { opacity: 0; }
.ll-caption-title { font-size: 1.8rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.ll-sound { position: absolute; right: .7rem; bottom: 3.6rem; z-index: 3; }
.ll-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; padding: 1rem; z-index: 1; }
.ll-player.ll-error::after { content: 'Reconnecting…'; position: absolute; inset: auto 0 0 0; text-align: center; padding: .4rem; font-size: .8rem; background: rgba(0,0,0,.6); z-index: 4; }
.ll-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 .7rem; }
.ll-plat { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ll-plat .tiny { margin-right: .2rem; font-weight: 700; }
.pchip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--pc); color: var(--pt); font-weight: 800; font-size: .82rem; border: 1px solid rgba(255,255,255,.12); transition: transform .1s, filter .15s; }
.pchip:hover { filter: brightness(1.12); transform: translateY(-1px); }
.pchip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.ll-plat.sm .pchip { padding: .2rem .55rem; font-size: .72rem; }
.ll-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ll-thumb { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.ll-thumb:hover { border-color: var(--blue); transform: translateY(-2px); }
.ll-thumb .ll-player { border: 0; border-radius: 0; }
.ll-thumb .ll-plat { padding: 0 .8rem .8rem; }
.ll-thumb-body { display: flex; flex-direction: column; padding: .65rem .8rem .55rem; min-width: 0; }
.ll-expand { position: absolute; right: .55rem; bottom: .55rem; z-index: 3; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(5,7,12,.7); opacity: 0; transition: opacity .15s; }
.ll-thumb:hover .ll-expand { opacity: 1; }
.ll-ch-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.plat-row { display: grid; grid-template-columns: 140px 1fr auto; gap: .4rem; margin-bottom: .4rem; }
@media (max-width: 640px) { .ll-title { font-size: 2rem; } .ll-caption-title { font-size: 1.3rem; } .ll-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .ll-thumb .ll-plat { padding: 0 .5rem .6rem; gap: .25rem; } .plat-row { grid-template-columns: 1fr; } .ll-main.focus .ll-player.big { height: auto; aspect-ratio: 16/9; } }

/* top button bar: Watch Luqi Live Now / Podcasts / Entertainment */
.livebar { display: flex; gap: .6rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: .6rem 1.2rem; background: linear-gradient(90deg, rgba(31,111,255,.18), rgba(5,7,12,0) 30%, rgba(5,7,12,0) 70%, rgba(255,138,31,.14)); border-bottom: 1px solid var(--line); }
.livebar .live-now { background: var(--grad); color: #140c00; border: 0; padding: .65rem 1.4rem; font-size: 1rem; font-weight: 900; box-shadow: 0 0 0 1px rgba(247,194,52,.4), 0 6px 22px rgba(255,138,31,.3); }
.livebar .live-now .rec { width: 10px; height: 10px; border-radius: 50%; background: #e0201c; box-shadow: 0 0 0 3px rgba(224,32,28,.25); animation: pulse 1.2s infinite; }
.livebar .toplink { background: var(--card); border-color: rgba(31,111,255,.5); }
.livebar .toplink:hover { border-color: var(--blue); }
body[data-page="swipe"] .livebar, body[data-page="show"] .livebar { display: none; }
body[data-page="podcasts"] [data-toplink="podcasts"], body[data-page="entertainment"] [data-toplink="entertainment"] { background: var(--grad-blue); border-color: var(--gold); }

/* ---------- Podcasts + Entertainment ---------- */
.m-head { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.m-h1 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.m-cats { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .5rem; scrollbar-width: thin; }
.m-cats a { flex: none; padding: .45rem .9rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--muted); }
.m-cats a:hover { color: var(--text); border-color: var(--blue); }
.m-cats a.active { background: var(--grad); color: #140c00; border-color: transparent; }
.m-cats.subs a { padding: .3rem .75rem; font-size: .8rem; background: var(--bg2); }
.m-cats.subs a.active { background: rgba(31,111,255,.25); color: var(--text); border-color: var(--blue); }
.m-list { display: grid; gap: .5rem; }
.m-row { display: grid; grid-template-columns: 2.4rem 120px 1fr auto; gap: .8rem; align-items: center; padding: .55rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.m-row.podium { border-color: rgba(247,194,52,.35); }
.m-rank { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--card2); color: var(--muted); }
.m-rank.r1 { background: var(--grad); color: #140c00; } .m-rank.r2 { background: #cfd6e6; color: #10141f; } .m-rank.r3 { background: #c98a4a; color: #1a0f04; }
.m-rank.sm { width: 1.5rem; height: 1.5rem; font-size: .75rem; }
.m-thumb-btn, .m-title, .m-moment, .m-x { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.m-title { font-weight: 800; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-title:hover { color: var(--gold); }
.m-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--pc) 70%, transparent), #0a1020 75%); }
.m-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-em { font-size: 2rem; }
.m-play { position: absolute; right: .4rem; bottom: .4rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,7,12,.75); font-size: .8rem; transition: transform .15s; }
.m-thumb-btn:hover .m-play, .m-moment:hover .m-play { transform: scale(1.15); background: var(--orange); color: #140c00; }
.m-vote { flex-direction: column; gap: 0; padding: .35rem .7rem; min-width: 3.2rem; line-height: 1.1; }
.m-vote .m-arrow { font-size: .75rem; color: var(--muted); }
.m-vote.on { background: rgba(247,194,52,.16); border-color: var(--gold); color: var(--gold); }
.m-vote.on .m-arrow { color: var(--gold); }
.m-votes { display: flex; flex-direction: column; align-items: center; min-width: 3rem; }
.m-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.m-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.m-card .m-thumb { border-radius: 0; }
.m-card-body { padding: .6rem .75rem .7rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.m-card .m-vote { flex-direction: row; gap: .3rem; min-width: 0; }
.m-moments { background: linear-gradient(90deg, rgba(255,138,31,.10), rgba(31,111,255,.10)); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; }
.m-strip { grid-auto-columns: minmax(220px, 250px); }
.m-moment { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.m-moment:hover { border-color: var(--orange); }
.m-moment .m-thumb { border-radius: 0; }
.m-moment-body { display: flex; flex-direction: column; gap: .2rem; padding: .55rem .7rem .7rem; min-width: 0; align-items: flex-start; }
.m-moment-body b { max-width: 100%; }
.pchip.xs { padding: .12rem .5rem; font-size: .68rem; white-space: nowrap; }
.m-top .section-head, .m-moments .section-head { flex-wrap: wrap; gap: .2rem 1rem; }
.pill.xs { padding: .05rem .45rem; font-size: .65rem; }
.m-best { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.m-best-card { display: flex; flex-direction: column; gap: .15rem; transition: border-color .15s; }
a.m-best-card:hover { border-color: var(--gold); }
.m-ol { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; }
.modal.wide { max-width: 860px; width: calc(100vw - 2rem); }
.m-embed { position: relative; aspect-ratio: 16/9; margin-top: .8rem; border-radius: 12px; overflow: hidden; background: #000; }
.m-embed.audio { aspect-ratio: auto; height: 352px; background: transparent; }
.m-embed.tall { aspect-ratio: 9/16; max-height: 70vh; margin-inline: auto; }
.m-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-admin-list { max-height: 420px; overflow-y: auto; border-top: 1px solid var(--line); margin-top: .5rem; }
.m-admin-cats { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.m-x { font-size: .7rem; color: var(--muted); margin-left: .15rem; }
.m-x:hover { color: var(--text); }
#mcForm input[type=text], #mcForm select, #mdSec, #mdFilter { padding: .45rem .7rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 640px) {
  .m-h1 { font-size: 1.8rem; }
  .m-row { grid-template-columns: 2rem 84px 1fr auto; gap: .5rem; padding: .5rem; }
  .m-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .m-card .m-card-body .row.spread { flex-wrap: wrap; gap: .3rem; }
  .m-moments { padding: .8rem; border-radius: 16px; }
}
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 1rem 2rem; border-top: 1px solid var(--line); }
.footer b { color: var(--gold); }
.search { flex: 1; max-width: 460px; position: relative; }
.search input { width: 100%; padding: .55rem 1rem .55rem 2.2rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); outline: none; }
.search input:focus { border-color: var(--brand); }
.search::before { content: '🔍'; position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; opacity: .7; }
.nav { display: flex; gap: .2rem; }
.nav a { padding: .45rem .8rem; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--card); }
.icons { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 1.05rem; }
.iconbtn:hover { border-color: var(--muted); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #140c00; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.8rem; border-radius: 22px; }
.avatar.sm { width: 26px; height: 26px; font-size: .75rem; }

.menu { position: absolute; right: 1rem; top: 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; padding: .4rem; z-index: 60; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 9px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--card2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 1.4rem 1.2rem 2rem; }
.section { margin: 1.8rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .8rem; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 1.4rem; align-items: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.card.flat { padding: 0; overflow: hidden; }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #140c00; }
.btn.accent { background: var(--accent); border-color: transparent; color: #fff; }
.btn.ok { background: var(--ok); border-color: transparent; color: #04120b; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); border-color: transparent; color: #fff; }
.btn.sm { padding: .35rem .75rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.subbed { background: transparent; color: var(--muted); }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: .65rem .8rem; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(20px); }

.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.pill.live { background: var(--orange); border-color: transparent; color: #140c00; animation: pulse 1.6s infinite; }
.pill.gold { background: rgba(247,194,52,.14); color: var(--gold); border-color: rgba(247,194,52,.4); }
.pill.blue { background: rgba(31,111,255,.16); color: #7fb0ff; border-color: rgba(31,111,255,.45); }
.pill.earn { background: rgba(247,194,52,.14); color: var(--gold); border-color: rgba(247,194,52,.4); }
.pill.warn { background: rgba(255,176,32,.14); color: var(--warn); border-color: rgba(255,176,32,.35); }
.pill.st-paid { color: var(--warn); } .pill.st-shipped { color: #7fb0ff; } .pill.st-delivered, .pill.st-approved { color: var(--ok); } .pill.st-refunded, .pill.st-reversed { color: var(--danger); } .pill.st-pending { color: var(--warn); }
@keyframes pulse { 50% { opacity: .75; } }

/* ---------- product & show cards ---------- */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.pcard:hover { transform: translateY(-3px); border-color: #3d3d55; }
.thumb { aspect-ratio: 1/1; display: grid; place-items: center; font-size: 4.2rem; position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .corner { position: absolute; top: .55rem; left: .55rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.thumb .corner-r { position: absolute; top: .55rem; right: .55rem; }
.pcard .body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcard .title { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 900; font-size: 1.1rem; }
.chan { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.chan i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.scard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; border: 1px solid var(--line); }
.scard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1) 60%); }
.scard > * { position: relative; z-index: 1; }
.scard .top { position: absolute; top: .8rem; left: .8rem; right: .8rem; display: flex; justify-content: space-between; z-index: 1; }
.scard .big { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; opacity: .9; z-index: 0; }
.scard h3 { margin: .3rem 0; }

.chcard { display: flex; gap: .9rem; align-items: center; }
.intcard { border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 140px; }
.intcard .emoji { font-size: 2.2rem; }

/* ---------- hero ---------- */
.hero { border-radius: 22px; padding: 2rem; background: radial-gradient(circle at 12% 18%, rgba(31,111,255,.45), transparent 50%), radial-gradient(circle at 88% 85%, rgba(255,138,31,.30), transparent 50%), radial-gradient(circle at 60% 10%, rgba(247,194,52,.14), transparent 40%), var(--bg2); border: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: center; }
.hero h1 { font-size: 2.3rem; font-weight: 900; }
.hero .steps { display: grid; gap: .6rem; }
.hero .step { display: flex; gap: .7rem; align-items: center; background: rgba(0,0,0,.25); padding: .7rem .9rem; border-radius: 12px; }
.hero .step b { font-size: 1.4rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.stat .v { font-size: 1.45rem; font-weight: 900; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .65rem 1rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--brand); }

/* ---------- live room ---------- */
.live-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 1rem; height: calc(100vh - 110px); min-height: 560px; }
.stage { position: relative; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.stage video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.stage .placeholder .big { font-size: 7rem; }
.stage .hud { position: absolute; top: 0; left: 0; right: 0; padding: .9rem; display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); }
.stage .chatov { position: absolute; left: 0; bottom: 0; width: min(420px, 70%); max-height: 45%; overflow: hidden; padding: .8rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; mask-image: linear-gradient(to top, #000 70%, transparent); pointer-events: none; }
.chatmsg { font-size: .88rem; text-shadow: 0 1px 2px #000; }
.chatmsg b { margin-right: .35rem; }
.chatmsg.sys { color: #ffd166; }
.reactions { position: absolute; right: 1rem; bottom: 1rem; width: 60px; height: 300px; pointer-events: none; }
.floaty { position: absolute; bottom: 0; font-size: 1.8rem; animation: floatup 2.2s ease-out forwards; }
@keyframes floatup { to { transform: translateY(-280px) scale(1.4); opacity: 0; } }
.side { display: flex; flex-direction: column; gap: .8rem; min-height: 0; }
.auction { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.auction.running { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(247,194,52,.25); }
.timer { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.hot { color: var(--danger); animation: pulse .6s infinite; }
.chatbox { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chatbox .msgs { flex: 1; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .35rem; }
.chatbox form { display: flex; gap: .4rem; padding: .5rem; border-top: 1px solid var(--line); }
.chatbox form input { flex: 1; }
.react-bar { display: flex; gap: .3rem; }
.react-bar button { background: var(--card2); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.host-controls { background: rgba(31,111,255,.08); border: 1px dashed var(--accent); border-radius: var(--radius); padding: .9rem; }
.sold-banner { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); z-index: 5; animation: fadeout 3s forwards; }
.sold-banner div { font-size: 2.6rem; font-weight: 900; color: #140c00; background: var(--grad); padding: 1rem 2rem; border-radius: 20px; transform: rotate(-4deg); }
@keyframes fadeout { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
.mini-product { display: flex; gap: .7rem; align-items: center; padding: .55rem; border-radius: 12px; background: var(--card2); }
.mini-product .em { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 1.6rem; flex: none; }

/* ---------- swipe feed ---------- */
.swipe { height: calc(100vh - 62px); overflow-y: auto; scroll-snap-type: y mandatory; margin: -1.4rem -1.2rem -2rem; }
.swipe-item { height: calc(100vh - 62px); scroll-snap-align: start; position: relative; display: grid; place-items: center; overflow: hidden; }
.swipe-item .bgemoji { font-size: 14rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.swipe-item .info { position: absolute; left: 1.2rem; bottom: 1.5rem; right: 6rem; }
.swipe-item .info h2 { font-size: 1.6rem; }
.swipe-item .rail { position: absolute; right: 1rem; bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.rail button, .rail a { width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.rail small { display: block; text-align: center; font-size: .7rem; font-weight: 700; margin-top: .2rem; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; display: grid; place-items: center; padding: 1rem; animation: fadein .15s; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 1.4rem; box-shadow: var(--shadow); }
@keyframes fadein { from { opacity: 0; } }
.linkbox { display: flex; gap: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .35rem .35rem .35rem .8rem; align-items: center; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .78rem; font-weight: 600; }
.share-grid span { font-size: 1.4rem; }
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; }
.toast { background: var(--card2); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: .75rem .9rem; box-shadow: var(--shadow); animation: slidein .25s; cursor: pointer; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--danger); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

.banner { border-radius: var(--radius); padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; background: rgba(46,204,138,.1); border: 1px solid rgba(46,204,138,.3); }
.banner.info { background: rgba(31,111,255,.1); border-color: rgba(31,111,255,.4); }
.banner.gold { background: rgba(247,194,52,.08); border-color: rgba(247,194,52,.4); }
/* daily giveaway */
.give { border-radius: 22px; padding: 1.6rem; border: 1px solid rgba(247,194,52,.45); background: radial-gradient(circle at 85% 20%, rgba(247,194,52,.25), transparent 45%), radial-gradient(circle at 10% 90%, rgba(31,111,255,.35), transparent 50%), var(--bg2); display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.give .prize { aspect-ratio: 1/1; border-radius: 20px; display: grid; place-items: center; font-size: 6rem; background: var(--grad-blue); box-shadow: inset 0 0 0 3px rgba(247,194,52,.6), 0 20px 40px rgba(0,0,0,.4); overflow: hidden; }
.give .prize img { width: 100%; height: 100%; object-fit: cover; }
.give .clock { font-size: 1.6rem; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.give-mini { display: flex; gap: 1rem; align-items: center; border-radius: var(--radius); padding: 1rem; border: 1px solid rgba(247,194,52,.45); background: linear-gradient(120deg, rgba(31,111,255,.25), rgba(247,194,52,.1)); }
.give-mini .em { font-size: 2.6rem; width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-blue); flex: none; }
@media (max-width: 640px) { .give { grid-template-columns: 1fr; } .give .prize { max-width: 200px; margin: 0 auto; } .slogan { font-size: 2rem; } }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: .5rem; }
.notif { display: flex; gap: .8rem; padding: .85rem; border-radius: 12px; }
.notif.unread { background: var(--card); }
.notif .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; flex: none; font-size: 1.2rem; }

.bottomnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two-col, .live-wrap, .hero { grid-template-columns: 1fr; }
  .live-wrap { height: auto; }
  .stage { aspect-ratio: 9/14; max-height: 75vh; }
  .chatbox { min-height: 320px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  main { padding: 1rem 16px 2rem; }
  .footer { padding-bottom: 90px; }
  .livebar { padding: .55rem 16px; gap: .45rem; }
  .livebar .live-now { flex: 1 1 100%; }
  .livebar .toplink { flex: 1; }
  .topbar { padding: .6rem 16px; gap: .5rem; }
  .search { display: none; }
  .logo span.word { display: none; }
  .hero { padding: 1.3rem; } .hero h1 { font-size: 1.7rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .thumb { font-size: 3rem; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(5,7,12,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); justify-content: space-around; padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; color: var(--muted); font-weight: 700; gap: .1rem; }
  .bottomnav a span { font-size: 1.3rem; }
  .bottomnav a.active { color: var(--text); }
  .swipe, .swipe-item { height: calc(100vh - 118px); }
  #toasts { left: 16px; right: 16px; bottom: 80px; max-width: none; }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- social sign-in, contact verification, eligibility ---------- */
.pill.st-held { color: var(--orange); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; margin: .8rem 0 .2rem; }
.btn.social { display: flex; align-items: center; gap: .6rem; justify-content: flex-start; border: 1px solid rgba(255,255,255,.18); font-weight: 700; text-align: left; }
.btn.social:hover { filter: brightness(1.08); }
.social-ic { width: 1.6rem; height: 1.6rem; border-radius: 6px; display: grid; place-items: center; font-weight: 900; background: rgba(127,127,127,.18); flex: none; }
.pill.dev, .dev-banner { background: rgba(255,138,31,.18); color: var(--orange); border: 1px dashed var(--orange); }
.pill.dev { font-size: .62rem; padding: .05rem .4rem; }
.dev-banner { border-radius: 10px; padding: .45rem .7rem; font-weight: 800; margin: .5rem 0; }
.or-sep { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; margin: 1rem 0 .6rem; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.unlock-banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem; margin: .8rem 0; border-radius: var(--radius); border: 1px solid rgba(247,194,52,.45); background: linear-gradient(90deg, rgba(247,194,52,.12), rgba(31,111,255,.10)); }
.badge.lock { background: var(--gold); color: #05070c; }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: #fff; flex: none; }
.social-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.social-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sell page (Luqi catalog) ---------- */
body[data-page="sell"] [data-toplink="sell"] { background: var(--grad-blue); border-color: var(--gold); }
.livebar [data-toplink="sell"] { border-color: rgba(247,194,52,.6); }
.sell-hero { margin-bottom: .4rem; }
.sell-hero:not(:has(.steps)) { grid-template-columns: 1fr; }
.sell-gate { max-width: 560px; margin: 1.2rem auto; text-align: center; }
.sell-gate .row { justify-content: center; }
.sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.sell-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sell-card:hover { border-color: rgba(247,194,52,.5); }
.sell-card .thumb { aspect-ratio: 16/10; font-size: 3.6rem; }
.sell-card .body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pill.luqi { background: rgba(31,111,255,.16); color: #7fb0ff; border-color: rgba(31,111,255,.45); }

/* ---------- personal page + My Feeds hub ---------- */
.me-head { gap: 1rem; margin-bottom: 1rem; }
.fd-settings { padding: 1rem; }
.fd-vis { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.fd-vis select { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; max-width: 100%; }
.switch.big { transform: scale(1.25); transform-origin: right center; margin-right: .3rem; }
.empty-note { padding: 1rem; margin-top: 1rem; }
.fd-add { display: flex; gap: .5rem; flex-wrap: wrap; }
.fd-add input { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; min-width: 0; }
.fd-add input[name="url"] { flex: 3 1 260px; }
.fd-add input[name="tab"] { flex: 1 1 120px; }
.fd-add .btn { flex: 0 0 auto; }
.fd-sugg { margin-top: .5rem; gap: .4rem; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chip { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--text); }
.chip.active, .chip:hover { border-color: var(--gold); color: var(--gold); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; max-width: 100%; }
.seg button { background: none; border: 0; padding: .4rem .8rem; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg button.active { background: var(--grad-blue); color: #fff; }
.fd-bar { margin-bottom: .8rem; gap: .5rem; }
.fd-ico { width: 1.7rem; height: 1.7rem; border-radius: 7px; display: inline-grid; place-items: center; background: var(--pc); color: var(--pt); font-weight: 900; font-size: .8rem; flex: none; border: 1px solid rgba(255,255,255,.15); }
.fd-stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fd-main { background: #000; display: flex; justify-content: center; }
.fd-frame { position: relative; width: 100%; background: #000; }
.fd-frame iframe, .fd-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.fd-frame.video { aspect-ratio: 16 / 9; }
.fd-frame.tall { aspect-ratio: 9 / 16; max-width: min(100%, 420px); max-height: 78vh; margin: 0 auto; }
.fd-frame.post { height: min(680px, 80vh); max-width: 560px; margin: 0 auto; background: #fff; }
.fd-frame.list { height: 352px; }
.fd-frame.audio { height: 160px; }
.fd-frame.media { height: auto; padding: 1rem; background: var(--bg2); }
.fd-frame.media audio { width: 100%; }
.fd-stopped { display: grid; place-items: center; }
.fd-ctrl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem .8rem; }
.fd-now { display: flex; gap: .6rem; align-items: center; min-width: 200px; }
.fd-btns { gap: .35rem; }
.fd-card { width: 100%; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pc) 35%, transparent), var(--bg2) 70%); }
.fd-card-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; }
.fd-why { max-width: 420px; }
.fd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: .8rem; }
.fd-thumb { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 0 .45rem; text-align: left; cursor: pointer; overflow: hidden; color: var(--text); min-width: 0; }
.fd-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.fd-thumb:hover { border-color: var(--pc); }
.fd-thumb-img { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--pc) 45%, transparent), #050810 75%) center / cover; display: grid; place-items: center; margin-bottom: .35rem; }
.fd-thumb-ico { font-size: 1.8rem; font-weight: 900; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.fd-thumb-badge { position: absolute; top: .3rem; left: .3rem; display: flex; gap: .2rem; }
.fd-thumb-badge .pill { font-size: .62rem; padding: .05rem .4rem; }
.fd-thumb-out { position: absolute; top: .3rem; right: .35rem; background: rgba(0,0,0,.6); border-radius: 6px; padding: 0 .3rem; font-size: .8rem; }
.fd-thumb-t, .fd-thumb .tiny { padding: 0 .5rem; }
.fd-thumb-t { font-weight: 700; font-size: .85rem; }
.fd-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .8rem; align-items: start; }
.fd-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.fd-tile-head { display: flex; gap: .4rem; align-items: center; padding: .45rem .55rem; }
.fd-tile .fd-slot { min-height: 120px; background: #000; }
.fd-tile .fd-frame.post { height: 520px; }
.fd-tile .fd-frame.tall { max-height: 560px; }
.fd-row { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; }
.fd-row.off { opacity: .55; }
.fd-move { display: flex; flex-direction: column; gap: .15rem; }
.fd-move .btn { padding: .05rem .4rem; font-size: .65rem; line-height: 1.2; }
.fd-note { margin-top: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.fd-note summary { cursor: pointer; font-weight: 700; }
@media (max-width: 520px) {
  .fd-ctrl { padding: .6rem; }
  .fd-now { min-width: 0; width: 100%; }
  .fd-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-row { flex-wrap: wrap; }
  .fd-row .grow { flex-basis: calc(100% - 7rem); }
  .seg button { padding: .4rem .6rem; }
  .fd-frame.post { height: 70vh; }
}
