:root {
  --do: #E03528; --do-dam: #B8261B; --vang: #FFD21F; --muc: #141414; --xam: #6B6B6B; --vien: #E7E2E0;
  --nen: #F6F3F2; --the: #FFFFFF; --xanh: #1E8E5A; --cam: #B45309;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--nen); color: var(--muc); font: 16px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--do-dam); }
.dau { background: linear-gradient(180deg, #E8463A, var(--do) 60%, var(--do-dam)); color: #fff; }
.dau-trong { max-width: 720px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dau img { height: 30px; width: auto; display: block; }
.dau nav { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.dau nav a { color: #fff; text-decoration: none; opacity: .92; white-space: nowrap; }
.dau nav a:hover { opacity: 1; text-decoration: underline; }
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 64px; }
h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 10px; }
.phu { color: var(--xam); font-size: 14px; margin: 0 0 16px; }
.the { background: var(--the); border: 1px solid var(--vien); border-radius: 16px; padding: 18px; margin: 0 0 16px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
textarea, input[type=text], input[type=password], input[type=date], input[type=file] {
  width: 100%; font: inherit; color: inherit; border: 1.5px solid var(--vien); border-radius: 12px; padding: 12px 14px; background: #fff; }
textarea { min-height: 220px; resize: vertical; font-size: 15px; }
textarea:focus, input:focus { outline: none; border-color: var(--do); box-shadow: 0 0 0 3px rgba(224,53,40,.15); }
.hang { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.hang > * { flex: 1 1 200px; }
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 20px;
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; background: var(--do); color: #fff; min-height: 48px; }
.nut:hover { background: var(--do-dam); }
.nut.phu2 { background: #fff; color: var(--muc); border: 1.5px solid var(--vien); }
.nut.phu2:hover { border-color: var(--muc); background: #fff; }
.nut.rong { width: 100%; }
.nut.nho { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.nut:disabled { opacity: .55; cursor: default; }
.goi-y { font-size: 13px; color: var(--xam); margin-top: 8px; }
.ds-job { list-style: none; margin: 0; padding: 0; }
.ds-job li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--vien); text-decoration: none; color: inherit; }
.ds-job li:first-child a { border-top: 0; }
.nhan { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.nhan.xong { background: #E3F4EC; color: var(--xanh); }
.nhan.dang-chay, .nhan.cho { background: #FFF4D6; color: var(--cam); }
.nhan.loi { background: #FDE5E3; color: var(--do-dam); }
.tien-do { height: 12px; background: #EFE9E7; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.tien-do i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--do), #FF7A45); border-radius: 99px; transition: width .6s; }
.buoc { font-weight: 700; }
.canh-bao { background: #FFF8E6; border: 1px solid #F5D68A; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.canh-bao b { color: var(--cam); }
.canh-bao ul { margin: 6px 0 0; padding-left: 18px; }
.loi-hop { background: #FDE5E3; border: 1px solid #F3B4AE; border-radius: 12px; padding: 12px 14px; color: var(--do-dam); font-weight: 600; }
video { width: 100%; max-height: 72vh; background: #111; border-radius: 14px; display: block; }
.nhom-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tin { white-space: pre-wrap; background: #FAF8F7; border: 1px solid var(--vien); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 8px 0 10px; }
.tin-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tin-dau b { font-size: 15px; }
.tin-dau span { color: var(--do-dam); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--muc); color: #fff; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: calc(100% - 32px); z-index: 9; }
.toast.hien { opacity: 1; }
.dang-nhap { max-width: 400px; margin: 9vh auto 0; }
.dang-nhap .the { padding: 24px; }
.lua-chon { display: flex; flex-wrap: wrap; gap: 8px; }
.lua-chon label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1.5px solid var(--vien); border-radius: 99px; padding: 8px 14px; cursor: pointer; margin: 0; }
.lua-chon input { accent-color: var(--do); width: 18px; height: 18px; }
.lua-chon label:has(input:checked) { border-color: var(--do); background: #FFF1EF; }
.bang { width: 100%; border-collapse: collapse; font-size: 14px; }
.bang td, .bang th { text-align: left; padding: 8px 6px; border-top: 1px solid var(--vien); vertical-align: top; }
.thong-bao { background: #E3F4EC; color: var(--xanh); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin: 0 0 16px; }
.so { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { h1 { font-size: 21px; } .nhom-nut { grid-template-columns: 1fr; } .dau nav { gap: 12px; font-size: 13px; } .dau img { height: 22px; } }

/* ===== Trang đăng nhập + hướng dẫn (19/11/2026) ===== */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #F0574A 0%, var(--do) 45%, var(--do-dam) 100%); }
.hero::after { content: ""; position: absolute; inset: auto -10% -1px; height: 64px; background: var(--nen); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.hero-trong { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 44px 16px 104px; }
.logo-doc { width: min(260px, 64vw); height: auto; display: block; margin: 0 auto 26px; filter: drop-shadow(0 6px 18px rgba(80,0,0,.25)); }
.hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.015em; }
.hero p { margin: 0 auto; max-width: 420px; font-size: 16px; opacity: .92; }
.trang-dn { padding-top: 0; }
.the-dn { position: relative; z-index: 2; max-width: 420px; margin: -76px auto 40px; padding: 24px; box-shadow: 0 18px 40px -18px rgba(120,20,10,.35); }
.xem-hd { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; }

.hd { padding: 28px 0; border-top: 1px solid var(--vien); scroll-margin-top: 16px; }
.hd-nhan { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--do); }
.hd h2 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em; }
.hd h3 { font-size: 16px; margin: 0 0 4px; }
.hd p { margin: 0; }
.hd-dan { color: #3D3A39; margin-bottom: 18px !important; }
.tinh-nang { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tn { background: var(--the); border: 1px solid var(--vien); border-radius: 16px; padding: 16px; }
.tn svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #FFF1EF; stroke: var(--do); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; display: block; }
.tn p { font-size: 14px; color: var(--xam); }
.cac-buoc { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.cac-buoc li { counter-increment: b; position: relative; padding: 0 0 22px 52px; }
.cac-buoc li::before { content: counter(b); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--do); color: #fff; font-weight: 800; display: grid; place-items: center; }
.cac-buoc li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--vien); }
.cac-buoc li:last-child { padding-bottom: 0; }
.cac-buoc p { font-size: 15px; color: #3D3A39; }
.vi-du { margin: 10px 0 0; background: var(--muc); color: #F3EFEE; border-radius: 12px; padding: 12px 14px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word; }
.dau-cham { margin: 0; padding: 0; list-style: none; }
.dau-cham li { position: relative; padding: 0 0 10px 22px; font-size: 15px; }
.dau-cham li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--do); transform: rotate(45deg); }
.hai-cot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.o-nho { background: var(--the); border: 1px solid var(--vien); border-radius: 16px; padding: 16px; font-size: 15px; }
.ghi-chu { margin-top: 12px !important; font-size: 13px; color: var(--xam); }
.hoi-dap { margin: 0; }
.hoi-dap dt { font-weight: 700; margin-top: 12px; }
.hoi-dap dt:first-child { margin-top: 0; }
.hoi-dap dd { margin: 2px 0 0; color: #3D3A39; font-size: 15px; }
.chan { text-align: center; padding: 28px 16px 40px; background: var(--muc); color: #BDB6B4; font-size: 13px; }
.chan img { height: 22px; width: auto; margin-bottom: 10px; opacity: .9; }
.chan p { margin: 0; }
.dau-hd { margin-bottom: 8px; }
.dau-hd .nut { margin-top: 4px; }
@media (max-width: 560px) {
  .tinh-nang, .hai-cot { grid-template-columns: 1fr; }
  .hero-trong { padding-top: 36px; }
  .hero h1 { font-size: 25px; }
  .hd h2 { font-size: 20px; }
}

/* ===== Trang tạo video: 3 nguồn tin, phong cách, nhạc, tin bài theo ngày (19/11/2026) ===== */
.buoc-nhap { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.buoc-nhap:first-of-type { margin-top: 0; }
.buoc-nhap h2 { font-size: 17px; margin: 0; }
.buoc-nhap h2 small { font-weight: 500; color: var(--xam); font-size: 13px; }
.so-buoc { width: 26px; height: 26px; border-radius: 50%; background: var(--do); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; flex: none; }
.nguon-them { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.o-link { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--vien); border-radius: 12px;
  padding: 0 12px; background: var(--the); }
.o-link:focus-within { border-color: var(--do); box-shadow: 0 0 0 3px rgba(224,53,40,.15); }
.o-link input { border: 0; padding: 12px 0; flex: 1; min-width: 0; background: transparent; box-shadow: none; outline: none; }
.o-link svg, .nut-tep svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.o-link svg { stroke: var(--xam); }
.nut-tep { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; margin: 0; }
.ten-tep { font-size: 14px; color: var(--xam); overflow-wrap: anywhere; }
.anh-chon { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.anh-chon:empty { display: none; }
.anh-chon li { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--vien); background: #fff; }
.anh-chon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anh-chon .nhan-tep { display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--do); font-size: 13px; }
.anh-chon button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(20,20,20,.72); color: #fff; font-size: 15px; line-height: 22px; cursor: pointer; }
.phong-cach { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.pc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px 40px; border: 1px solid var(--vien);
  border-radius: 12px; background: var(--the); cursor: pointer; margin: 0; font-weight: 400; }
.pc input { position: absolute; left: 13px; top: 14px; accent-color: var(--do); width: 16px; height: 16px; margin: 0; }
.pc:has(input:checked) { border-color: var(--do); background: #FFF4F2; box-shadow: 0 0 0 1px var(--do); }
.pc-ten { font-weight: 700; font-size: 15px; }
.pc-mt { font-size: 13px; color: var(--xam); line-height: 1.4; }
.o-mau { margin-top: 10px; padding: 14px; border: 1px dashed #E8B4AE; border-radius: 12px; background: #FFFAF9;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.o-mau[hidden] { display: none; }
.o-mau .goi-y { flex-basis: 100%; margin: 0; }
.hop-chon { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; flex-basis: 100%; }
.hop-chon input { accent-color: var(--do); width: 16px; height: 16px; }
.thanh-tai { height: 6px; border-radius: 3px; background: var(--vien); margin-top: 12px; overflow: hidden; }
.thanh-tai span { display: block; height: 100%; width: 0; background: var(--do); transition: width .2s; }
.ngay-nhom + .ngay-nhom { margin-top: 18px; }
.ngay-nhom h3 { font-size: 15px; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--vien); }
.ngay-nhom h3 span { font-size: 13px; font-weight: 500; color: var(--xam); }
#xem-them { margin-top: 16px; }
@media (max-width: 560px) {
  .phong-cach { grid-template-columns: 1fr 1fr; }
  .nut-tep { flex: 1 1 auto; justify-content: center; }
}
.tom-tat { margin: 10px 0 12px; padding-left: 18px; font-size: 14px; color: #3D3A39; }
.tom-tat a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .dau-trong { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px; }
  .dau nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 9px; }
  .dau img { height: 24px; }
}
.bang-xoa td:first-child, .bang-xoa th:first-child { width: 34px; }
.bang-xoa input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--do); }
.hang-nut { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nut-xoa { background: var(--do-dam); }
.nut-xoa:disabled { opacity: .45; cursor: not-allowed; }
