/* ECO School Academy – mobile first. Bộ màu theo Design System ECO School */
:root {
  --primary: #046DCE;   /* CTA, nút, điểm nhấn chính */
  --hero: #2193DE;      /* hero, banner */
  --cyan: #248ADC;      /* gradient hero */
  --yellow: #FBCD11;    /* shape, CTA phụ, điểm nhấn */
  --yellow-2: #FCDB4A;  /* gradient, trang trí */
  --navy: #074189;      /* tiêu đề, chữ quan trọng */
  --light: #D0E6F3;     /* badge, nền phụ */
  --bg: #EFF6FB;        /* nền tổng */
  --card: #FEFEFE;      /* thẻ, vùng nội dung */
  --blue: var(--primary); --soft: #E4F0F9; --orange: var(--yellow);
  --ink: #0C2D57; --ink-2: #4A6385; --line: #DCE8F2;
  --ok: #12A150; --r: 18px; --sh: 0 1px 2px rgba(7,65,137,.06), 0 8px 24px rgba(7,65,137,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(254,254,254,.95); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); white-space: nowrap; }
.logo { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(160deg, var(--yellow-2), var(--yellow)); color: var(--navy); display: grid; place-items: center; flex: none; }
.logo .ic { width: 22px; height: 22px; }
.logo.sm { width: 30px; height: 30px; border-radius: 8px; }
.logo.sm .ic { width: 18px; height: 18px; }
.brand-t { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.topnav { display: none; margin-left: 28px; gap: 6px; padding-left: 28px; border-left: 2px solid var(--line); }
.topnav a { color: var(--navy); font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 99px; }
.topnav a:hover { background: var(--soft); }
.topnav a[aria-current] { background: var(--yellow); color: var(--navy); }
.sbtn { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 0; background: var(--light); color: var(--navy); font: inherit; font-size: 14px; border-radius: 99px; padding: 10px 12px; cursor: pointer; }
.sbtn span { display: none; }
.sbtn:hover { background: #C0DCEE; }

/* sóng vàng dưới hero */
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; z-index: 1; pointer-events: none; }

/* hero trang chủ */
.hero, .rhero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, var(--primary) 0%, var(--hero) 55%, var(--cyan) 100%); }
.hero-img { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); opacity: .28; }
.hero-in { position: relative; z-index: 2; padding: 34px 16px 64px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bar { position: relative; padding-left: 14px; }
.bar::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--yellow); }
.hero h1 { margin: 0; font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 b { color: var(--yellow); }
.lead { font-size: 16px; margin: 12px 0 0; max-width: 600px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-search { flex: 1 1 280px; max-width: 470px; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink-2); border: 0; border-radius: 99px; padding: 14px 20px; font: inherit; font-size: 15px; text-align: left; cursor: pointer; box-shadow: 0 10px 28px rgba(4,40,90,.22); }
.hero-search .ic { color: var(--navy); }
.btn-y { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 15px; border-radius: 99px; padding: 13px 22px; box-shadow: 0 10px 28px rgba(4,40,90,.22); }
.btn-y:hover { background: var(--yellow-2); }
.stats { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px 0; }
.stats li { display: flex; align-items: center; gap: 10px; padding-right: 18px; margin-right: 18px; border-right: 1px solid rgba(255,255,255,.35); }
.stats li:last-child { border: 0; margin: 0; padding: 0; }
.stats .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.stats span { font-size: 13px; line-height: 1.25; }
.stats b { display: block; font-size: 21px; font-weight: 800; }

/* khối nội dung */
.block { padding-top: 30px; }
.h2 { font-size: 22px; margin: 0; font-weight: 800; color: var(--navy); letter-spacing: -.01em; line-height: 1.25; }
.sub { margin: 6px 0 18px; color: var(--ink-2); font-size: 15px; }
.h2.bar + .sub { padding-left: 14px; }
.roles { display: grid; gap: 16px; }
.role { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; box-shadow: var(--sh); color: var(--ink); overflow: hidden; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.role:hover { border-color: var(--primary); transform: translateY(-3px); }
.role-t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 12px; }
.role-t b { font-size: 22px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15; }
.pill { background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 15px; border-radius: 99px; padding: 3px 14px; }
.role-t small { color: var(--ink-2); font-size: 14px; }
.role-img { position: relative; display: block; margin-top: auto; }
.role-img img { display: block; width: 100%; aspect-ratio: 326 / 236; object-fit: cover; }
.role-n { position: absolute; left: 14px; top: 10px; background: rgba(7,65,137,.88); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
/* điểm nhấn còn dùng ở trang xem video */
.role-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--light); color: var(--primary); }
.role-ic .ic { width: 28px; height: 28px; }

/* hero trang vai trò */
.rhero-in { position: relative; z-index: 2; padding: 14px 16px 60px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: #fff; opacity: .9; font-size: 14px; font-weight: 600; }
.crumb .ic { width: 16px; height: 16px; }
.badge { display: inline-block; margin: 14px 0 6px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; border-radius: 99px; padding: 5px 16px; }
.rhero h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.rhero .lead { font-size: 15px; margin-top: 6px; }
.prog { height: 8px; background: rgba(255,255,255,.9); border-radius: 9px; margin-top: 18px; overflow: hidden; max-width: 560px; }
.prog span { display: block; height: 100%; background: var(--yellow); border-radius: 9px; }
.prog-t { margin: 8px 0 0; font-size: 13px; }

/* chip lọc + nhóm */
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; align-items: center; }
.toc::-webkit-scrollbar { display: none; }
.filter { display: contents; }
.toc a, .filter button { flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--card); border: 1px solid var(--light); padding: 8px 18px; border-radius: 99px; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 2px rgba(7,65,137,.06); }
.toc a:hover, .filter button:hover { border-color: var(--primary); }
.filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.grp { padding-top: 22px; }
.gh { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.gh small { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--navy); }
.gn { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.grp.empty { display: none; }

/* dòng tính năng */
.list { list-style: none; margin: 0; padding: 4px 0; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.row + .row a { border-top: 1px solid var(--line); }
.row { padding: 0 12px; }
.row a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); }
.row a:hover .rtt { color: var(--primary); }
.rn { display: none; width: 30px; text-align: center; font-weight: 800; font-size: 17px; color: var(--navy); flex: none; }
.rth { position: relative; flex: none; width: 64px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #FFF8DA, #FDEFB4); display: flex; align-items: center; justify-content: center; }
.rth-ic { color: var(--primary); display: grid; }
.rth-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.rth-play { display: none; }
.code { flex: none; font-weight: 800; font-size: 13px; color: var(--navy); background: var(--light); border-radius: 8px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.row .code { display: none; }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rtt { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--navy); }
.rmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); }
.tag .ic { width: 13px; height: 13px; }
.tag.mn { background: #FFF3C4; color: #7A5A00; }
.tag.k12 { background: var(--light); color: var(--navy); }
.tag.both { background: #E3F6EA; color: #0E7A3D; }
.tag.reuse { background: var(--soft); color: var(--primary); }
.tag.seen { display: none; background: #E3F6EA; color: #0E7A3D; }
.is-seen .tag.seen { display: inline-flex; }
.go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; border-radius: 99px; width: 38px; height: 38px; background: var(--primary); color: #fff; }
.go .ic { width: 15px; height: 15px; }
.go span { display: none; }
.go.soon { background: #EEF2F6; color: #6E7F95; font-weight: 600; }
.go.soon .ic { width: 17px; height: 17px; }
.row a:hover .go:not(.soon) { background: var(--navy); }

/* footer */
.foot { position: relative; overflow: hidden; margin-top: 48px; background: linear-gradient(100deg, var(--navy), var(--primary)); color: #fff; padding: 22px 0 24px; font-size: 14px; }
.foot::after { content: ''; position: absolute; right: -120px; top: -40px; width: 420px; height: 160px; border-radius: 50%; border-bottom: 26px solid var(--yellow); transform: rotate(-12deg); opacity: .95; }
.foot-in { position: relative; z-index: 1; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: #fff; }
.foot-brand img[alt="Finviet"] { background: #fff; border-radius: 99px; padding: 4px 12px; height: 34px; }
.foot-brand .sep { width: 1px; height: 26px; background: rgba(255,255,255,.4); }
.foot-brand p { margin: 0; flex-basis: 100%; }
.foot .small { margin: 12px 0 0; font-size: 12px; opacity: .78; max-width: 70%; }

/* hộp tìm kiếm */
.search { position: fixed; inset: 0; z-index: 50; background: rgba(4,30,70,.55); display: flex; justify-content: center; align-items: flex-start; padding: 0; }
.search-box { background: var(--card); width: 100%; max-width: 640px; height: 100%; display: flex; flex-direction: column; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-head > .ic { color: var(--primary); }
.search-head input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 8px 0; background: transparent; color: var(--ink); }
.close { border: 0; background: var(--bg); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.results a { display: flex; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 10px; color: var(--ink); }
.results a:hover, .results a.on { background: var(--soft); }
.results .rt small { color: var(--ink-2); font-size: 12px; }
.results .empty { padding: 24px 12px; color: var(--ink-2); text-align: center; }

/* trang tính năng: chi tiết dùng chung */
.fmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.note { background: var(--soft); border-left: 4px solid var(--primary); padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { font: inherit; font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--light); background: var(--card); color: var(--navy); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.player { position: relative; aspect-ratio: 16 / 9; background: #06224A; overflow: hidden; box-shadow: var(--sh); margin: 0 -16px; border-radius: 0; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.draft { position: absolute; top: 10px; right: 10px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; pointer-events: none; }
.player.empty { display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(120deg, var(--primary), var(--hero)); padding: 20px; }
.player.empty b { display: block; font-size: 17px; margin-top: 10px; }
.player.empty p { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.soon-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: inline-grid; place-items: center; }
.soon-ic .ic { width: 22px; height: 22px; margin-left: 3px; }
.h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.steps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--light); }
.steps b { display: block; font-size: 16px; padding-top: 4px; color: var(--navy); }
.steps em { font-style: normal; color: var(--primary); }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.recap { list-style: none; margin: 0; padding: 14px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.recap li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.recap li + li { border-top: 1px dashed var(--line); }
.recap li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); }
.recap b { color: var(--navy); }
.muted { color: var(--ink-2); }
.cardbox { display: grid; grid-template-columns: auto 1fr; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.cb-ic { width: 44px; height: 44px; border-radius: 12px; background: #FFF3C4; color: var(--navy); display: grid; place-items: center; }
.cardbox b { color: var(--navy); }
.cardbox p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.cardbox .btn { grid-column: 1 / -1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; border-radius: 99px; padding: 12px 16px; border: 0; cursor: pointer; }
.btn.ghost { background: #EEF2F6; color: #6E7F95; cursor: default; }
.pn { display: grid; gap: 10px; margin: 28px 0 8px; }
.pn a { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; color: var(--navy); font-weight: 600; font-size: 14px; line-height: 1.35; border: 1px solid transparent; }
.pn a:hover { border-color: var(--primary); }
.pn small { display: block; font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pn .next { justify-content: space-between; text-align: right; }
.pn .ic { color: var(--primary); }

@media (min-width: 640px) {
  .sbtn span { display: inline; }
  .sbtn { padding: 10px 18px; min-width: 210px; }
  .roles { grid-template-columns: 1fr 1fr; }
  .player { margin: 0; border-radius: var(--r); }
  .pn { grid-template-columns: 1fr 1fr; }
  .search { padding: 8vh 16px; }
  .search-box { height: auto; max-height: 76vh; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
  .hero h1 { font-size: 52px; }
  .hero-in { padding: 44px 16px 80px; }
  .rhero-in { padding: 18px 16px 72px; }
  .rhero h1 { font-size: 40px; }
  .swoosh { height: 64px; }
  .rn { display: block; }
  .row .code { display: inline-block; }
  .rth { width: 112px; height: 54px; justify-content: flex-start; padding-left: 22px; }
  .rth-play { display: grid; place-items: center; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 24px; border-radius: 7px; background: var(--navy); color: #fff; }
  .rth-play .ic { width: 13px; height: 13px; }
  .go { width: auto; height: auto; padding: 8px 18px; }
  .go span { display: inline; }
  .row { padding: 0 18px; }
  .foot-brand p { flex-basis: auto; }
}
@media (min-width: 960px) {
  .topnav { display: flex; }
  .roles { grid-template-columns: repeat(4, 1fr); }
  .hero-img, .rhero .hero-img { opacity: 1; }
  .hero-in .lead, .hero-in h1 { max-width: 640px; }
  .hero-in { padding: 48px 16px 92px; }
  .rhero-in { padding: 20px 16px 70px; max-width: 1240px; }
  .rhero-in > * { max-width: 620px; }
  .rhero h1 { font-size: 46px; }
  .h2 { font-size: 30px; }
  .gh { font-size: 20px; }
  .rtt { font-size: 16px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .topnav { margin-left: 12px; padding-left: 12px; }
  .topnav a { padding: 8px 12px; font-size: 14px; }
  .sbtn { min-width: 0; }
  .sbtn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== trang xem video: video trái, danh sách phải ===== */
.watch { padding-top: 16px; }
.wtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wrole { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.wrole b { display: block; font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.wrole small { color: var(--ac); font-weight: 600; font-size: 13px; }
.role-ic.sm { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--ac) 12%, white); color: var(--ac); }
.role-ic.sm .ic { width: 22px; height: 22px; }
.wcount { color: var(--ink-2); font-size: 13px; text-align: right; flex: none; }
.wgrid { display: grid; gap: 22px; }
.wmain { min-width: 0; }
.weyebrow { margin: 16px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.wtitle { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.wtitle .code { vertical-align: 3px; font-size: 14px; background: var(--ac); color: #fff; margin-right: 4px; }
.watch .fmeta { margin: 10px 0 18px; }
.sharebtn { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; background: var(--navy); color: #fff; }
.sharebtn:hover { background: var(--blue); }
.watch .steps { margin-bottom: 18px; }
.watch .cardbox { margin-top: 20px; }
.watch .note { margin: 0 0 16px; }

.wside { min-width: 0; }
.chips { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; border-radius: 11px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pl { margin-top: 12px; }
.plg + .plg { margin-top: 14px; }
.plh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 2px 8px; }
.plh b { font-size: 16px; font-weight: 800; color: var(--navy); }
.plh span { font-size: 13px; color: var(--ink-2); flex: none; }
.pli { display: flex; gap: 12px; align-items: center; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.pli + .pli { margin-top: 8px; }
.pli:hover { border-color: var(--blue); }
.pli[aria-current] { background: var(--soft); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.th { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #E8EEF7; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .dur { position: absolute; right: 5px; bottom: 5px; background: rgba(7,65,137,.9); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.th .seen { display: none; position: absolute; left: 5px; top: 5px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.is-seen .th .seen { display: block; }
.th.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFF8DA, #FDEFB4); color: #7A879B; }
.th.soon b { font-size: 16px; color: var(--navy); opacity: .55; }
.th.soon span { font-size: 11px; font-weight: 600; }
.plt { min-width: 0; display: flex; flex-direction: column; }
.plt small { font-size: 12px; font-weight: 800; color: var(--blue); }
.plt b { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plt span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row a.is-seen .st.ok::after { content: ' · Đã xem'; }
.watch .player { margin: 0 -16px; }

@media (min-width: 640px) { .watch .player { margin: 0; } .th { width: 150px; } }
@media (min-width: 1024px) {
  .wrap.watch { max-width: 1440px; }
  .wgrid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
  .wside { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
  .pl { overflow-y: auto; padding-right: 4px; flex: 1; overscroll-behavior: contain; }
  .wtitle { font-size: 30px; }
  .wtop { margin-bottom: 18px; }
}

/* tinh chỉnh */
.rhero-in .crumb { display: flex; width: max-content; }
.row .code { min-width: 50px; text-align: center; }
@media (max-width: 959px) { .hero-img { opacity: .18; } }
@media (max-width: 639px) { .stats { display: grid; grid-template-columns: 1fr 1fr; } .stats li { border: 0; margin: 0; padding: 0; } }
/* thẻ vai trò: số clip dưới mô tả, mô tả 1 dòng */
.role-t { padding: 18px 18px 14px; }
.role-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 13.5px; letter-spacing: -.005em; }
.role-n { position: static; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; background: var(--light); color: var(--navy); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.role-n .ic { width: 16px; height: 16px; }
@media (min-width: 960px) and (max-width: 1199px) { .roles { grid-template-columns: 1fr 1fr; } }
/* màn hình rộng / thu nhỏ trình duyệt: giữ ảnh hero gắn với khung nội dung, mờ dần hai bên */
@media (min-width: 1480px) {
  .hero-img { right: calc((100% - 1440px) / 2); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 82%, transparent 100%); }
}
/* ảnh hero không chồng lên chữ */
@media (min-width: 960px) { .hero-img { max-width: calc(100% - 660px); object-fit: cover; object-position: right center; } }
@media (min-width: 1480px) { .hero-img { max-width: 800px; } }
@media (min-width: 960px) and (max-width: 1279px) { .hero-img { max-width: calc(100% - 600px); object-position: 62% center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); } }
