/* ===== Reels.com.vn ===== */
:root {
  --bg: #000; --panel: #121214; --panel2: #1c1c1f; --line: #26262a;
  --tx: #fff; --mut: #a1a1aa; --dim: #71717a;
  --brand: #ff2d6f; --brand2: #ff9f1a; --grad: linear-gradient(100deg, #ff2d6f, #ff5a3c 55%, #ff9f1a);
  --tab: 56px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --side: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
svg { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscroll { overflow: hidden; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; }
.logo svg { width: 30px; height: 30px; }
.logo b { font-size: 22px; }
.logo small { font-size: 12px; color: var(--mut); font-weight: 600; margin-left: -6px; align-self: flex-end; padding-bottom: 4px; }

/* ---------- Thanh điều hướng dưới ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: #000; border-top: 1px solid #1a1a1d; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8e8e93; font-size: 10.5px; font-weight: 600; position: relative; }
.tabbar a.on { color: #fff; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.on svg { stroke-width: 2.3; }
[data-savedcount][data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Trang lướt ---------- */
.feed-page { height: 100%; overflow: hidden; overscroll-behavior: none; }
.stage { position: fixed; top: 0; left: var(--side); right: 0; bottom: calc(var(--tab) + var(--safe-b)); background: #000; }
.feed { position: absolute; inset: 0; overflow-y: scroll; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; outline: 0; }
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; contain: layout paint; background: #000; }
.media { position: absolute; inset: 0; }
.media .bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(28px) saturate(1.3) brightness(.5); transform: translateZ(0); }
.vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.vid.fill { object-fit: cover; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.18); z-index: 3; }
.vbar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.vplay { position: absolute; left: 50%; top: 45%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(1.3); transition: .2s; pointer-events: none; z-index: 2; }
.vplay svg { width: 38px; height: 38px; fill: #fff; margin-left: 4px; }
.media.paused .vplay { opacity: 1; transform: scale(1); }
/* Lướt ảnh ngang */
.car { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 52px); bottom: 150px; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car::-webkit-scrollbar { display: none; }
.car img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; animation: kb 7s ease-out both; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.segs { position: absolute; top: calc(var(--safe-t) + 50px); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; pointer-events: none; }
.segs i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background .2s; }
.segs i.on { background: #fff; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(transparent, rgba(0,0,0,.25) 35%, rgba(0,0,0,.78)); pointer-events: none; z-index: 1; }
.is-vid .shade { height: 45%; }
.reel::after { content: ""; position: absolute; top: 30%; right: 0; bottom: 20%; width: 90px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.28)); pointer-events: none; z-index: 1; }

/* Thanh trên */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 6px) 6px 0; height: calc(var(--safe-t) + 48px); background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
.top > * { pointer-events: auto; }
.top-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.top-btn svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.top-btn.auto svg { fill: #fff; stroke: #fff; stroke-width: 2; width: 21px; height: 21px; opacity: .8; }
.top-btn.auto.on { background: var(--grad); border-radius: 50%; width: 34px; height: 34px; margin: 4px; }
.top-btn.auto.on svg { opacity: 1; width: 18px; height: 18px; }
.top-right { display: flex; }
.tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 96px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.62); padding: 8px 0; position: relative; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tabs a.on { color: #fff; }
.tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: #fff; }

/* Cột nút phải */
.rail { position: absolute; right: 6px; bottom: 150px; z-index: 4; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rb { width: 56px; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.rb svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.9)) drop-shadow(0 0 6px rgba(0,0,0,.45)); transition: transform .15s; }
.rb:active svg { transform: scale(.86); }
.like.on svg { fill: var(--brand); stroke: var(--brand); }
.like.pop svg { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Thông tin & nút mua */
.info { position: absolute; left: 12px; right: 74px; bottom: 12px; z-index: 4; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.cat { display: inline-block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; opacity: .92; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.tg { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.16); text-shadow: none; }
.tg.mall { background: #d0011b; }
.tg.hot { background: rgba(255,120,0,.85); }
.tg.sale { background: var(--brand); }
.nm { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.meta { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 3px; }
.meta b { color: #ffd43b; font-weight: 700; }
.buy { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 14px; background: var(--grad); background-size: 200% 100%; text-shadow: none; box-shadow: 0 6px 22px rgba(255,45,111,.35); position: relative; overflow: hidden; }
.buy .pr { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.buy .pr b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.buy .pr s { font-size: 12px; opacity: .8; }
.buy .go { display: flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 800; background: rgba(0,0,0,.18); padding: 7px 8px 7px 11px; border-radius: 10px; white-space: nowrap; }
.buy .go svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.8; }
.buy.pulse { animation: glow 1.8s ease-in-out infinite; }
.buy.pulse::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes shine { 0% { left: -50%; } 60%, 100% { left: 120%; } }

/* Tim bay khi nhấn đúp */
.burst { position: fixed; z-index: 60; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; animation: burst .85s ease-out forwards; }
.burst svg { width: 100%; height: 100%; fill: var(--brand); stroke: none; filter: drop-shadow(0 4px 14px rgba(255,45,111,.6)); }
@keyframes burst { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 20% { transform: scale(1.15) rotate(-12deg); opacity: 1; } 45% { transform: scale(.95) rotate(-12deg); } 100% { transform: translateY(-90px) scale(1.25) rotate(-12deg); opacity: 0; } }

/* Gợi ý vuốt */
.hint { position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%); z-index: 8; background: rgba(0,0,0,.6); padding: 10px 16px; border-radius: 22px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.hint i { width: 14px; height: 14px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); animation: up 1.1s ease-in-out infinite; }
@keyframes up { 0%, 100% { transform: translateY(4px) rotate(45deg); } 50% { transform: translateY(-4px) rotate(45deg); } }

/* Thẻ chọn sở thích */
.pick, .empty { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 80% at 20% 0%, #3a0f25, #000 60%), #000; }
.pick-in { width: 100%; max-width: 440px; padding: 70px 20px 20px; text-align: center; }
.pick-k { display: inline-block; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pick-in h2 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.02em; }
.pick-in > p { margin: 0 0 18px; color: var(--mut); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.pick-grid button { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; background: var(--panel2); border: 1.5px solid transparent; font-size: 13.5px; font-weight: 600; text-align: left; }
.pick-grid button i { font-style: normal; font-size: 19px; }
.pick-grid button.on { border-color: var(--brand); background: rgba(255,45,111,.16); }
.pick-go { display: block; width: 100%; padding: 14px; border-radius: 14px; background: var(--grad); font-weight: 800; font-size: 16px; }
.pick-skip { margin-top: 10px; color: var(--mut); font-size: 14px; padding: 6px; }

/* Bảng chi tiết */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; background: var(--panel); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
.sheet-card::before { content: ""; width: 38px; height: 4px; border-radius: 3px; background: #3a3a3f; margin: 8px auto 0; flex: none; }
.sheet-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); z-index: 2; font-size: 14px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding-top: 10px; }
.sh-gal { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-gal::-webkit-scrollbar { display: none; }
.sh-gal img { flex: 0 0 auto; width: 200px; height: 200px; object-fit: cover; border-radius: 12px; background: var(--panel2); scroll-snap-align: start; }
.sh-in { padding: 14px 16px 22px; }
.sh-price { display: flex; align-items: baseline; gap: 8px; }
.sh-price b { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-price s { color: var(--dim); }
.sh-price em { font-style: normal; font-size: 12px; font-weight: 800; background: var(--brand); padding: 2px 6px; border-radius: 5px; }
.sh-in h3 { margin: 6px 0 8px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.sh-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--mut); }
.sh-stats b { color: #fff; }
.sh-stats .mall { color: #fff; background: #d0011b; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.sh-opts { margin-top: 12px; font-size: 13px; color: var(--mut); line-height: 2; }
.sh-opts b { color: #fff; margin-right: 4px; }
.sh-opts span { display: inline-block; background: var(--panel2); border: 1px solid var(--line); padding: 0 9px; border-radius: 8px; margin: 0 5px 4px 0; line-height: 1.9; color: #ddd; }
.sh-buy { display: block; margin: 16px 0 10px; padding: 15px; text-align: center; border-radius: 14px; background: var(--grad); font-weight: 800; font-size: 16.5px; box-shadow: 0 8px 24px rgba(255,45,111,.3); }
.sh-trust { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--mut); line-height: 1.8; }
.sh-row { display: flex; gap: 8px; margin: 14px 0 6px; }
.sh-row > * { flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px; background: var(--panel2); font-size: 13.5px; font-weight: 600; }
.sh-in h4 { margin: 18px 0 10px; font-size: 15px; }
.sh-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-sim button, .sh-sim .sk { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--panel2); display: block; }
.sh-sim img { width: 100%; height: 100%; object-fit: cover; }
.sh-sim b { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 12.5px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.sh-sim .pv, .th .pv { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10px; background: rgba(0,0,0,.55); border-radius: 5px; padding: 1px 5px; }
.sk { animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + var(--safe-b) + 90px); transform: translate(-50%, 20px); background: rgba(40,40,44,.96); padding: 10px 16px; border-radius: 22px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .22s; z-index: 70; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.install { position: fixed; top: calc(var(--safe-t) + 56px); left: 50%; transform: translateX(-50%); z-index: 45; background: #fff; color: #000; font-weight: 700; font-size: 13.5px; padding: 9px 12px 9px 15px; border-radius: 22px; box-shadow: 0 8px 26px rgba(0,0,0,.4); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.install i { font-style: normal; color: #888; }
.updown { display: none; }

/* Bình luận */
.cm { display: flex; flex-direction: column; min-height: 50dvh; }
.cm-head { padding: 2px 52px 10px 16px; border-bottom: 1px solid var(--line); }
.cm-head b { display: block; font-size: 16px; }
.cm-head span { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-list { flex: 1; padding: 6px 16px 10px; }
.cm-empty { text-align: center; color: var(--mut); padding: 40px 10px; line-height: 1.7; }
.cm-it { display: flex; gap: 10px; padding: 10px 0; }
.cm-it img, .cm-it .av, .cm-form img, .cm-form .av { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
.av { display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; background: var(--grad) !important; }
.cm-it b { font-size: 13px; color: var(--mut); }
.cm-it p { margin: 1px 0 2px; font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.cm-it small { font-size: 12px; color: var(--dim); }
.cm-it small button { color: var(--dim); font-size: 12px; text-decoration: underline; }
.cm-form { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.cm-form input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--line); background: var(--panel2); color: #fff; font: inherit; font-size: 16px; padding: 0 14px; outline: 0; }
.cm-form button { padding: 0 16px; height: 40px; border-radius: 20px; background: var(--grad); font-weight: 800; }
.cm-login { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); text-align: center; padding: 4px 0; }
.cm-login #gBtn { min-height: 44px; }

/* ---------- Trang lưới: Khám phá / Tìm / Đã lưu ---------- */
.gpage { min-height: 100vh; padding-bottom: calc(var(--tab) + var(--safe-b) + 20px); background: #0a0a0b; }
.gwrap { max-width: 1100px; margin: 0 auto; padding: calc(var(--safe-t) + 10px) 14px 0; }
.ghead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ghead .logo b { font-size: 20px; }
.sbox { position: relative; flex: 1; }
.sbox input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: #fff; font: inherit; font-size: 16px; padding: 0 44px 0 40px; outline: 0; -webkit-appearance: none; }
.sbox input:focus { border-color: #4a4a50; }
.sbox svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; fill: none; stroke: var(--mut); stroke-width: 2.2; stroke-linecap: round; }
.sbox button { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--grad); font-weight: 700; font-size: 14px; }
.gsec { margin: 22px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.gsec h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.gsec a { font-size: 13.5px; color: var(--mut); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .chips button { white-space: nowrap; flex: none; padding: 7px 13px; border-radius: 20px; background: var(--panel2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.chips a.on, .chips button.on { background: #fff; color: #000; border-color: #fff; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cats a { position: relative; height: 92px; border-radius: 14px; overflow: hidden; background: var(--panel2); display: flex; align-items: flex-end; padding: 10px 12px; }
.cats a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cats a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.75)); }
.cats a span { position: relative; z-index: 1; font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.cats a span small { display: block; font-weight: 600; font-size: 11.5px; color: #ccc; }
.cats a i { position: absolute; top: 8px; left: 10px; z-index: 1; font-style: normal; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -14px; }
.th { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--panel2); display: block; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.th b { position: absolute; left: 6px; bottom: 5px; z-index: 1; font-size: 13px; font-weight: 800; }
.th em { position: absolute; top: 6px; left: 6px; z-index: 1; font-style: normal; font-size: 10.5px; font-weight: 800; background: var(--brand); border-radius: 5px; padding: 1px 5px; }
.th .pv { z-index: 1; }
.more { display: block; width: 100%; margin: 16px 0; padding: 13px; border-radius: 12px; background: var(--panel2); font-weight: 700; }
.gempty { text-align: center; color: var(--mut); padding: 50px 10px; }
.gempty b { display: block; font-size: 40px; margin-bottom: 8px; }
.foot { margin-top: 30px; font-size: 12px; color: var(--dim); line-height: 1.6; }
.foot a { color: var(--mut); text-decoration: underline; }
.hero { margin: 4px 0 6px; padding: 18px 16px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,45,111,.35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255,159,26,.28), transparent 55%), var(--panel); display: flex; align-items: center; gap: 14px; }
.hero h1 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 13px; color: var(--mut); }
.hero a { flex: none; padding: 11px 14px; border-radius: 12px; background: var(--grad); font-weight: 800; font-size: 14px; }

/* ---------- Máy tính ---------- */
.side { display: none; }
@media (min-width: 1000px) {
  :root { --side: 240px; --tab: 0px; }
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 240px; padding: 18px 14px; background: #0a0a0b; border-right: 1px solid #18181b; overflow-y: auto; z-index: 30; }
  .side .logo { margin: 0 6px 18px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; font-weight: 700; color: #d4d4d8; position: relative; }
  .side-nav a:hover { background: var(--panel2); }
  .side-nav a.on { color: #fff; background: var(--panel2); }
  .side-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .side-nav [data-savedcount]::after { top: 9px; left: auto; right: 10px; }
  .side-cats { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1d1d20; display: flex; flex-direction: column; }
  .side-cats p { margin: 0 10px 6px; font-size: 12px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .side-cats a { padding: 7px 10px; border-radius: 9px; font-size: 14px; color: #c4c4cc; display: flex; gap: 10px; }
  .side-cats a:hover, .side-cats a.on { background: var(--panel2); color: #fff; }
  .side-cats i { font-style: normal; }
  .side-foot { margin-top: auto; padding: 16px 8px 0; font-size: 11px; color: var(--dim); line-height: 1.55; }
  .side-foot a { color: var(--mut); }
  /* Khung video 9:16 ở giữa */
  .stage { background: #050505; }
  .feed { left: 50%; right: auto; top: 16px; bottom: 16px; width: min(calc((100vh - 32px) * 9 / 16), 520px); transform: translateX(-50%); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
  .top { left: 50%; right: auto; width: min(calc((100vh - 32px) * 9 / 16), 520px); transform: translateX(-50%); top: 16px; border-radius: 18px 18px 0 0; }
  .rail { right: 8px; }
  .updown { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 12; }
  .updown button { width: 46px; height: 46px; border-radius: 50%; background: var(--panel2); font-size: 20px; font-weight: 700; }
  .updown button:hover { background: #2a2a2e; }
  .sheet-card { left: 50%; right: auto; width: 560px; margin-left: calc(var(--side) / 2 - 280px); }
  .gpage { padding-left: 240px; padding-bottom: 30px; }
  .ghead .gl { display: none; }
  .grid { grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; }
  .th { border-radius: 10px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .toast { bottom: 60px; margin-left: 120px; }
}
@media (min-width: 640px) and (max-width: 999px) { .grid { grid-template-columns: repeat(4, 1fr); } .cats { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .car img, .buy.pulse, .buy.pulse::after, .hint i { animation: none; } }
