/* theme.css — bảng màu: XANH DƯƠNG chủ đạo (#1E5EFF, #1546C8, #0EA5E9) + vàng Lemi (#FFC23D), kèm MÀU NHẤN theo mục cho dễ nhìn
   (theme.js đặt --c): Chấm AI tím #7C3AED · Bài mẫu vàng cam #F59E0B · Chép chính tả xanh ngọc #0D9488 · Blog hồng #E11D48 · Cộng đồng xanh lá #16A34A · Game cam #F97316.
   Kỹ năng: Reading xanh dương · Listening xanh ngọc · Writing tím · Speaking vàng cam.
   Game Zone giữ MÀU RIÊNG của games.js (chủ web yêu cầu 28/11) – KHÔNG ghi đè màu .gz ở file này. */
body{--sc:#1E5EFF;--sc2:#0EA5E9;--acc:#FFC23D;--acc-d:#F5A400}

/* Dải màu dưới thanh menu */
header.top{background-image:linear-gradient(90deg,#1E5EFF,#0EA5E9 72%,#FFC23D);background-size:100% 3px;background-repeat:no-repeat;background-position:bottom}

/* Icon trên menu chính (màn ≥1361px) */
.th-ic{display:none;place-items:center;width:22px;height:22px;border-radius:7px;margin:-4px 5px -4px 0;color:var(--c,#1E5EFF);background:color-mix(in srgb,var(--c,#1E5EFF) 12%,#fff);vertical-align:middle;transition:transform .2s,background .2s,color .2s}
.th-ic svg{width:14px;height:14px}
@media (min-width:1361px){
  .top .wrap{max-width:min(1320px,calc(100vw - 40px))}
  .nav a{padding:8px 9px}
  .th-ic{display:inline-grid}
}
.nav .ni:hover>a .th-ic,.nav>a:hover .th-ic,.nav a.on .th-ic{background:var(--c,#1E5EFF);color:#fff;transform:rotate(-8deg)}
.nav .ni>a,.nav>a{position:relative}
.nav .ni>a.on::after,.nav>a.on::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:3px;border-radius:3px;background:linear-gradient(90deg,#1E5EFF,#0EA5E9)}

/* Icon trong menu thả xuống */
.nav .dd a[data-th]{display:grid;grid-template-columns:26px 1fr;column-gap:10px;align-items:center}
.nav .dd a[data-th] small{grid-column:2}
.th-di{grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;color:var(--c,#1E5EFF);background:color-mix(in srgb,var(--c,#1E5EFF) 12%,#fff);transition:transform .2s}
.th-di svg{width:15px;height:15px}
.nav .dd a:hover .th-di{background:var(--c,#1E5EFF);color:#fff;transform:scale(1.08)}

/* Menu trên điện thoại */
.drawer>a[data-th]{display:flex;align-items:center;gap:10px}
.drawer>a .th-ic{display:inline-grid;width:30px;height:30px;border-radius:9px;margin:0}
.drawer>a .th-ic svg{width:17px;height:17px}
.drawer>a.on .th-ic{background:var(--c,#1E5EFF);color:#fff}
.dr-sub a[data-th]{display:flex;align-items:center;gap:8px}
.dr-sub a .th-dot{width:6px;height:6px;border-radius:50%;background:#9DB8FF;flex:none}

/* Đầu trang mỗi mục */
.phead{position:relative;overflow:hidden;background:linear-gradient(115deg,#E9F0FF 0%,#fff 55%,#E6F6FD 100%);border-bottom:1px solid #DCE6FF}
.phead::before{content:"";position:absolute;right:-70px;top:-110px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(30,94,255,.16) 0%,transparent 68%);pointer-events:none}
.phead::after{content:"";position:absolute;right:9%;bottom:16px;width:150px;height:70px;background-image:radial-gradient(rgba(245,164,0,.55) 1.7px,transparent 2px);background-size:14px 14px;pointer-events:none}
.phead .wrap{position:relative;z-index:1}
.ph-row{display:flex;align-items:center;gap:14px}
.ph-row h1{margin:0}
.ph-ic{position:relative;flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:15px;color:#fff;background:linear-gradient(135deg,var(--c,#1E5EFF),color-mix(in srgb,var(--c,#1E5EFF) 55%,#0EA5E9));box-shadow:0 10px 22px -8px color-mix(in srgb,var(--c,#1E5EFF) 60%,transparent);transform:rotate(-6deg)}
.ph-ic::after{content:"";position:absolute;right:-4px;top:-4px;width:12px;height:12px;border-radius:50%;background:#FFC23D;border:2px solid #fff}
.ph-ic svg{width:26px;height:26px}
.phead p{margin-top:10px}
@media (max-width:640px){.ph-ic{width:40px;height:40px;border-radius:12px}.ph-ic svg{width:21px;height:21px}.phead::after{display:none}}

/* Tab chọn (Tất cả / Reading / Listening …) */
.th-si{display:inline-grid;place-items:center;margin-right:6px;vertical-align:-3px;transition:transform .2s}
.th-si svg{width:15px;height:15px}
.seg>button.on,.seg>a.on,.cp-tabs>button.on{color:#1546C8!important;background:#fff!important;box-shadow:0 1px 2px rgba(12,30,71,.08),inset 0 -2px 0 #1E5EFF}
.seg>button.on .th-si,.seg>a.on .th-si{color:#1E5EFF}
.seg>button:not(.on):hover .th-si,.seg>a:not(.on):hover .th-si{transform:scale(1.15)}

/* Thẻ đề: viền trái xanh theo kỹ năng (xanh dương / xanh trời) */
.row[data-th]{border-left:4px solid var(--c,#1E5EFF)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--c,#1E5EFF) 8%,#fff),#fff 42%)!important}
.row[data-th]:hover{box-shadow:0 10px 24px -14px rgba(30,94,255,.55)}

/* Bài mẫu: nhãn band chuyển xuống góc dưới để không bị nút tim/lưu che */
.smp-thumb .smp-band{top:auto!important;bottom:10px}

/* Tiêu đề nhóm bài mẫu */
.smp-head h2{position:relative;padding-left:16px}
.smp-head h2::before{content:"";position:absolute;left:0;top:.18em;bottom:.18em;width:5px;border-radius:4px;background:linear-gradient(180deg,#1E5EFF,#0EA5E9)}

/* Đưa các chỗ tím/hồng lẻ về xanh thương hiệu */
.tz-bar{background:linear-gradient(90deg,#1546C8,#1E5EFF 60%,#0EA5E9)!important}
.lemi-name{color:#1E5EFF!important}
.lemi-voice{color:#1546C8!important;background:#EBF1FF!important}

