/* ainetwork.pro · Kevin The Comeback
   Một giao diện tối (kiểu rạp phim, hợp với video), một màu nhấn vàng #F4C25C giống thumbnail kênh.
   Bo góc: ảnh/khung 18px, nút dạng viên thuốc, ô nhập 12px.
   Lớp chồng (z-index): nav 20, dock 25, toast 40, dialog dùng top-layer của trình duyệt. */

:root {
  --bg: #0A1018;
  --surface: #111A25;
  --surface-2: #182432;
  --line: rgba(237, 241, 245, .09);
  --line-2: rgba(237, 241, 245, .16);
  --text: #EDF1F5;
  --muted: #A3B0BF;
  --accent: #F4C25C;
  --accent-ink: #0E1218;
  --danger: #FF8A80;
  --r: 18px;
  --r-in: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
q { quotes: "“" "”"; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(244, 194, 92, .55); }
.btn-accent:hover { background: #F7CE74; }
.btn-ghost { border-color: var(--line-2); background: rgba(237, 241, 245, .04); }
.btn-ghost:hover { border-color: rgba(244, 194, 92, .6); background: rgba(244, 194, 92, .08); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn i { font-size: 1.1em; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 16, 24, .6); font-size: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Menu trên */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 16, 24, .78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: block; box-shadow: 0 0 0 1px rgba(244, 194, 92, .25); }
.brand-text { display: flex; flex-direction: column; font: 650 17px/1.1 var(--display); letter-spacing: -.01em; }
.brand-text small { font: 500 12px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Khung chung */
.section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; }

/* 1. Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; min-height: min(calc(100dvh - 188px), 760px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; font-weight: 750; letter-spacing: -.03em; max-width: 13ch; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { margin: 0; justify-self: end; width: min(100%, 440px); }
.hero-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-frame:hover img { transform: scale(1.03); }
.play-ring { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(10, 16, 24, .55); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 30px; color: var(--accent); transition: transform .35s var(--ease); }
.hero-frame:hover .play-ring { transform: scale(1.08); }
.hero-media figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .hero-media { justify-self: stretch; width: 100%; }
  .hero-frame { aspect-ratio: 4 / 3.4; }
  .hero-frame img { object-position: 50% 20%; }
}

/* 2. Bạn có đang ở đây */
.pain { background: linear-gradient(180deg, var(--bg), #0C141E); }
.pain-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.pain-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px var(--line); }
.pain-img img { width: 100%; height: 100%; object-fit: cover; }
.pain-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; }
.pain-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.pain-list i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 194, 92, .1); color: var(--accent); font-size: 22px; }
.pain-list p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; padding-top: 6px; }
.pain-close { margin-top: 36px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.pain .link-arrow { margin-top: 14px; }
@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-img { aspect-ratio: 16 / 10; order: 2; }
}

/* 3. Video */
.videos-head { display: grid; gap: 12px; margin-bottom: 30px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; scroll-snap-align: start; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-weight: 500; font-size: 15px; transition: all .2s var(--ease); white-space: nowrap; }
.tab:hover { color: var(--text); border-color: rgba(244, 194, 92, .5); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tab .tab-n { opacity: .7; margin-left: 6px; font-size: 13px; }
.chapter-desc { margin: 22px 0 26px; color: var(--muted); font-size: 17px; max-width: 60ch; min-height: 1.6em; }
.ep-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ep { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ep-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: 14px; overflow: hidden;
  aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px var(--line); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.ep-thumb:hover img { transform: scale(1.04); }
.ep.sap .ep-thumb img { filter: saturate(.55) brightness(.62); }
.ep-play { position: absolute; left: 50%; top: 42%; width: 58px; height: 58px; margin-left: -29px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(10, 16, 24, .5); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 22px; opacity: 0; transform: scale(.9);
  transition: opacity .3s, transform .3s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ep-thumb:hover .ep-play, .ep-thumb:focus-visible .ep-play { opacity: 1; transform: none; }
@media (hover: none) { .ep:not(.sap) .ep-play { opacity: .92; transform: none; } }
.ep-lock { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.ep-lock i { font-size: 26px; color: var(--accent); }
.ep-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.ep-meta b { color: var(--accent); font-weight: 600; }
.ep-title { font: 600 15px/1.4 var(--body); color: var(--text); }
.ep-remind { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--accent);
  font-weight: 600; font-size: 14px; }
.ep-remind:hover { text-decoration: underline; text-underline-offset: 3px; }
.ep-grid.extras { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 1024px) { .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ep-grid, .ep-grid.extras { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; max-width: none; }
  .ep-grid::-webkit-scrollbar { display: none; }
  .ep { flex: 0 0 62%; scroll-snap-align: start; }
}

/* 4. Ba trụ cột (bento 3 ô) */
.pillars-title { margin-bottom: 40px; max-width: 18ch; }
.bento { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: 18px; }
.cell { position: relative; border-radius: var(--r); overflow: hidden; min-height: 260px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cell-tall { grid-row: span 2; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell:hover img { transform: scale(1.04); }
.cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 24, 0) 35%, rgba(10, 16, 24, .92) 100%); }
.cell-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 32px); }
.cell h3 { font-size: clamp(24px, 2.6vw, 34px); }
.cell p { margin-top: 8px; color: #D3DBE3; max-width: 38ch; }
.cell-tall h3 { font-size: clamp(30px, 3.4vw, 44px); color: var(--accent); }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .cell-tall { grid-row: auto; min-height: 420px; }
  .cell { min-height: 300px; }
}

/* 5. Cách làm */
.manifesto { background: #0C141E; border-block: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
blockquote { margin: 0; }
blockquote p { font: 650 clamp(28px, 3.8vw, 48px)/1.15 var(--display); letter-spacing: -.02em; max-width: 20ch; }
blockquote footer { margin-top: 16px; color: var(--accent); font-weight: 600; }
.rules { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.rule { border-top: 1px solid var(--line-2); padding-top: 20px; }
.rule i { font-size: 26px; color: var(--accent); }
.rule h3 { margin-top: 12px; font-size: 20px; }
.rule p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.manifesto-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 0 0 1px var(--line); }
.manifesto-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-img { display: none; }
}
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; gap: 24px; } }

/* 6. Sản phẩm */
.products-title { margin-bottom: 40px; max-width: 18ch; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product { display: grid; grid-template-columns: 1fr; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.product-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product-img:hover img { transform: scale(1.03); }
.product-body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.product-brand { font-size: 13px; color: var(--muted); font-weight: 500; }
.product h3 { font-size: 30px; }
.product-body > p:not(.product-brand) { color: #CBD4DD; font-size: 15px; }
.product-cta { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.fine { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 80ch; }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
}

/* 7. Form gia nhập */
.join { background: radial-gradient(90% 60% at 15% 0%, rgba(244, 194, 92, .07), transparent 70%), var(--bg); }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.join-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.join-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: #D3DBE3; }
.join-points i { font-size: 22px; color: var(--accent); margin-top: 2px; }
.join-img { margin-top: 36px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--line); }
.join-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.form-card { position: sticky; top: 92px; background: var(--surface); border-radius: var(--r); padding: clamp(22px, 3.4vw, 36px);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9); }
#form-dk { display: grid; gap: 20px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend, .field .label { font-size: 14px; font-weight: 600; color: #D9E0E7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; }
.field legend { margin-bottom: 8px; }
input:not([type=checkbox]):not([type=radio]), textarea, .combo-btn {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-in); border: 1px solid var(--line-2); background: #0D151F; color: var(--text);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #7E8C9B; }
input:focus, textarea:focus, .combo-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244, 194, 92, .22); }
.field.has-err input, .field.has-err .chips { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; color: #CBD4DD; transition: all .2s var(--ease); }
.chip input:checked + span { background: rgba(244, 194, 92, .14); border-color: var(--accent); color: var(--text); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: #CBD4DD; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.err-form { text-align: center; }
#btn-gui[aria-busy="true"] { opacity: .7; pointer-events: none; }
#btn-gui[aria-busy="true"] i { animation: bay 1s var(--ease) infinite; }
@keyframes bay { 50% { transform: translate(3px, -3px); } }

/* Ô chọn tỉnh có tìm kiếm */
.combo { position: relative; }
.combo-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.combo-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-val.is-empty { color: #7E8C9B; }
.combo-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.combo-btn i { transition: transform .2s; color: var(--muted); }
.combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-in); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); overflow: hidden; min-width: 240px; }
.combo-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.combo-search i { color: var(--muted); }
.combo-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; height: 46px !important; }
.combo-pop ul { list-style: none; margin: 0; padding: 6px; max-height: 248px; overflow-y: auto; }
.combo-pop li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.combo-pop li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.combo-pop li.active, .combo-pop li:hover { background: rgba(244, 194, 92, .12); }
.combo-pop li.empty { color: var(--muted); cursor: default; background: none; }

.done { text-align: center; padding: 28px 8px; }
.done > i { font-size: 56px; color: var(--accent); }
.done h3 { margin-top: 12px; font-size: 26px; }
.done p { margin-top: 10px; color: var(--muted); }
.done-cta { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 960px) {
  .join-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .join-img { display: none; }
}
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* 8. Hỏi đáp */
.faq-wrap { max-width: 860px; }
.faq h2 { margin-bottom: 32px; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px;
  font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary i { flex: none; color: var(--accent); transition: transform .3s var(--ease); }
details[open] summary i { transform: rotate(45deg); }
details p { padding: 0 22px 22px; color: var(--muted); max-width: 70ch; }

/* 9. Link giới thiệu */
.reflink { padding-top: 0; }
.reflink-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.reflink h2 { font-size: clamp(24px, 3vw, 32px); }
.reflink .muted { margin-top: 10px; max-width: 48ch; }
.reflink-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.reflink-out { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: var(--r-in);
  background: rgba(244, 194, 92, .08); border: 1px dashed rgba(244, 194, 92, .5); }
.reflink-out code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--accent); }
@media (max-width: 860px) { .reflink-box { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .reflink-form { grid-template-columns: 1fr; } }

/* Chân trang */
.foot { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.foot-in { display: grid; gap: 16px; }
.foot p { color: var(--muted); font-size: 13px; max-width: 90ch; }
.foot-small { opacity: .8; }
@media (min-width: 861px) { .foot { padding-bottom: 48px; } }

/* Thanh dưới điện thoại */
.dock { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 10px;
  padding: 8px; border-radius: 999px; background: rgba(17, 26, 37, .9); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(140%); transition: transform .45s var(--ease); }
.dock .btn { flex: 1; }
.dock-zalo { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 999px; background: #0068FF; color: #fff; font-size: 24px; }
.dock.show { transform: none; }
@media (max-width: 860px) { .dock { display: flex; } }

/* Trình phát */
.player { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.player::backdrop { background: rgba(5, 8, 12, .9); backdrop-filter: blur(6px); }
.player-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.player-top { width: min(100%, 980px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-top p { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-stage { position: relative; display: grid; place-items: center; max-width: min(100%, 980px); }
.player video { max-height: calc(100dvh - 90px); max-width: 100%; border-radius: 14px; background: #000; }
.player-end { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px;
  background: rgba(10, 16, 24, .88); border-radius: 14px; }
.player-end[hidden] { display: none; }
.player-end-q { font: 650 clamp(22px, 3vw, 30px)/1.2 var(--display); max-width: 18ch; margin-inline: auto; }
.player-end-cta { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Thông báo nhỏ */
.toast { position: fixed; z-index: 40; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 999px; transition: all .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Hiện dần khi cuộn (chỉ khi có JS và người dùng không tắt chuyển động) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.reflink-cta { justify-self: end; }
@media (max-width: 860px) { .reflink-cta { justify-self: start; } }

/* Chỉ một sản phẩm: thẻ ngang, ảnh trái nội dung phải */
.product-grid.mot { grid-template-columns: 1fr; }
.product-grid.mot .product { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.product-grid.mot .product-img { aspect-ratio: auto; min-height: 320px; }
.product-grid.mot .product-body { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.product-grid.mot .product h3 { font-size: clamp(30px, 3.4vw, 40px); }
@media (max-width: 760px) { .product-grid.mot .product { grid-template-columns: 1fr; } .product-grid.mot .product-img { aspect-ratio: 16 / 9; min-height: 0; } }

/* Điểm lấy nét theo khuôn mặt (áp dụng mọi chỗ dùng ảnh, khung nào cắt cũng giữ mặt) */
img[src*="/hero-kevin."] { object-position: 55% 22% !important; }
img[src*="/dem-muon."] { object-position: 50% 42% !important; }
img[src*="/bang-trang."] { object-position: 58% 20% !important; }
img[src*="/dong-hanh."] { object-position: 50% 26% !important; }
img[src*="/tru-cot-suc-khoe."] { object-position: 66% 20% !important; }
img[src*="/tru-cot-kinh-doanh."] { object-position: 45% 14% !important; }
img[src*="/tru-cot-ai."] { object-position: 66% 18% !important; }
img[src*="/u-desk."] { object-position: 45% 30% !important; }

/* Nhận tập mới qua Telegram */
.btn-tg { background: #2AABEE; border-color: #2AABEE; color: #fff; }
.btn-tg:hover { background: #38B6F2; border-color: #38B6F2; }
.tg-sub { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: rgba(42, 171, 238, .08); box-shadow: inset 0 0 0 1px rgba(42, 171, 238, .3); }
.tg-sub > i { font-size: 34px; color: #2AABEE; }
.tg-sub b { font: 650 18px var(--display); } .tg-sub p { color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 640px) { .tg-sub { grid-template-columns: auto 1fr; } .tg-sub .btn { grid-column: 1 / -1; } }
