/* 📚 Từ vựng – IELTS with Henry */
#tv { padding-bottom: 40px; }
#tv h1 { color: #14285a; margin: 10px 0 6px; line-height: 1.25; }
.tv-h2 { color: #14285a; font-size: 1.2rem; margin: 26px 0 10px; }
.tv-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: 20px; align-items: center; background: linear-gradient(125deg, #14285a, #23397a 60%, #7a1430 130%); color: #fff; border-radius: 22px; padding: 26px 28px; margin: 18px 0; }
.tv-hero h1 { color: #fff !important; font-size: 2rem; }
.tv-hero p { opacity: .94; line-height: 1.6; margin: 0 0 14px; }
.tv-tag { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 4px 12px; font-size: .8rem; }
.tv-hero-n { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: baseline; background: rgba(255,255,255,.1); border-radius: 16px; padding: 16px 18px; }
.tv-hero-n b { font: 900 1.9rem/1 Montserrat, sans-serif; color: #ffd43b; }
.tv-hero-n span { font-size: .9rem; opacity: .9; }
@media (max-width: 760px) { .tv-hero { grid-template-columns: 1fr; padding: 20px 18px; } .tv-hero h1 { font-size: 1.55rem; } }
.tv-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tv-hero .btn:not(.btn-primary) { background: #fff; color: #14285a; }
.tv-c { justify-content: center; text-align: center; }
.tv-res-mini { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; border: 1.5px solid #e4e7f2; border-radius: 16px; padding: 12px 16px; }
.tv-res-mini > div { flex: 1 1 220px; display: grid; }
.tv-res-mini b { color: #14285a; font-size: 1.1rem; }
.tv-k { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #c8102e; }
.tv-lvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tv-lv { position: relative; display: grid; gap: 4px; background: #fff; border: 2px solid #e4e7f2; border-top: 5px solid var(--c); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: #14213d; transition: .15s; }
.tv-lv:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,40,90,.1); }
.tv-lvn { font: 800 1.35rem/1.1 Montserrat, sans-serif; color: var(--c); }
.tv-lv small { color: #5b6384; }
.tv-lv em { font-style: normal; font-size: .85rem; color: #5b6384; font-weight: 600; }
.tv-rec, .tv-skip { position: absolute; top: -11px; right: 12px; font-style: normal; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 3px 10px; color: #fff; background: #c8102e; }
.tv-skip { background: #16a34a; }
.tv-bar { display: block; height: 8px; background: #edf0f7; border-radius: 99px; overflow: hidden; flex: 1; }
.tv-bar i { display: block; height: 100%; background: var(--c, #c8102e); border-radius: 99px; transition: width .3s; }
.tv-bar.big { height: 10px; margin: 8px 0 14px; }
.tv-how { margin-top: 20px; background: #f5f7ff; border-radius: 14px; padding: 12px 16px; line-height: 1.6; }
/* Test */
.tv-test h2 { color: #14285a; margin: 6px 0 4px; font-size: 1.3rem; }
.tv-tt { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tv-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.tv-chip { font: 700 1.08rem "Be Vietnam Pro", sans-serif; background: #fff; border: 2px solid #dfe3ee; border-bottom-width: 4px; border-radius: 12px; padding: 14px 10px; cursor: pointer; color: #14213d; transition: .12s; }
.tv-chip:hover { border-color: #94a3c8; }
.tv-chip.on { background: #fff1f2; border-color: #e11d48; color: #be123c; text-decoration: line-through; }
.tv-tact { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: rgba(255,255,255,.95); padding: 10px 0; }
.tv-tact .spacer { flex: 1; }
/* Kết quả */
.tv-score { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #fff; border: 1.5px solid #e4e7f2; border-radius: 20px; padding: 20px; margin: 12px 0; }
.tv-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(#c8102e, #f59e0b, #16a34a, #0d9488, #14285a, #c8102e); position: relative; }
.tv-ring::before { content: ""; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.tv-ring b, .tv-ring span { position: relative; } .tv-ring b { font: 900 1.6rem Montserrat, sans-serif; color: #14285a; } .tv-ring span { color: #5b6384; font-weight: 700; }
.tv-score h1 { font-size: 2rem; }
.tv-ielts { font-weight: 700; color: #c8102e; margin: 0; }
.tv-warn { background: #fff7e6; border: 1.5px solid #f5b642; color: #7a4b00; border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.tv-reco { background: linear-gradient(135deg, #fff7f8, #fff); border: 2px solid #f1c3cb; border-radius: 16px; padding: 14px 16px; line-height: 1.6; }
.tv-rows { display: grid; gap: 10px; margin: 16px 0; }
.tv-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 130px 150px; gap: 12px; align-items: center; background: #fff; border: 1.5px solid #e4e7f2; border-left: 5px solid var(--c); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: #14213d; }
.tv-row b { color: var(--c); font-size: 1.05rem; } .tv-row em { font-style: normal; color: #5b6384; font-size: .88rem; }
.tv-st { font-style: normal; font-weight: 800; font-size: .82rem; text-align: right; }
.s-done .tv-st { color: #16a34a; } .s-now { box-shadow: 0 0 0 2px #c8102e; } .s-now .tv-st { color: #c8102e; } .s-next .tv-st { color: #d97706; } .s-later .tv-st { color: #94a3b8; }
@media (max-width: 640px) { .tv-row { grid-template-columns: 70px minmax(0, 1fr); } .tv-row em, .tv-st { grid-column: 1 / -1; text-align: left; } }
.tv-save { background: #14285a; color: #fff; border-radius: 16px; padding: 16px; margin: 14px 0; } .tv-save p { opacity: .9; margin: 4px 0 10px; }
.tv-note { font-size: .85rem; }
/* Bộ từ */
.tv-lsg { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.tv-ls { display: grid; text-align: center; background: #fff; border: 2px solid #e4e7f2; border-radius: 12px; padding: 10px; text-decoration: none; color: #14213d; }
.tv-ls b { color: #14285a; } .tv-ls small { color: #5b6384; }
.tv-ls.st { border-color: #fcd34d; } .tv-ls.ok { border-color: #16a34a; background: #f0fdf4; } .tv-ls.ok small { color: #15803d; font-weight: 700; }
/* Bài học */
.tv-lh { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.tv-lh h1 { flex: 1 1 260px; font-size: 1.4rem; margin: 0 !important; }
.tv-best { font-weight: 800; color: #b45309; background: #fff7e6; border-radius: 99px; padding: 4px 12px; font-size: .85rem; } .tv-best.ok { color: #15803d; background: #f0fdf4; }
.tv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; border-bottom: 2px solid #e4e7f2; }
.tv-tabs button { border: 0; background: none; font: 700 .95rem "Be Vietnam Pro", sans-serif; padding: 10px 12px; cursor: pointer; color: #5b6384; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tv-tabs button[aria-selected=true] { color: #14285a; border-color: var(--c, #c8102e); }
.tv-list { display: grid; gap: 8px; }
.tv-w { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1.5px solid #e4e7f2; border-radius: 12px; padding: 10px 12px; }
.tv-w b { font-size: 1.08rem; color: #14285a; }
.tv-say { flex: none; border: 0; background: #eef2ff; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.tv-say:hover { background: #dbe4ff; }
.tv-ipa { color: #5b6384; font-family: "Segoe UI", system-ui, sans-serif; font-size: .92rem; }
.tv-pos { font-style: italic; color: #c8102e; font-size: .85rem; }
.tv-lvb { font-style: normal; font-size: .7rem; font-weight: 800; background: #14285a; color: #fff; border-radius: 6px; padding: 1px 6px; }
.tv-m { margin-top: 2px; }
.tv-ctx { margin-top: 6px; font-size: .9rem; color: #4b5570; background: #f7f8fc; border-left: 3px solid #cbd5f0; padding: 5px 9px; border-radius: 6px; line-height: 1.5; }
.tv-ctx mark { background: #fde68a; color: inherit; padding: 0 2px; border-radius: 3px; }
.tv-card { position: relative; max-width: 440px; height: 240px; margin: 10px auto; cursor: pointer; perspective: 1000px; outline: none; }
.tv-card .f, .tv-card .bk { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; border-radius: 18px; padding: 18px; backface-visibility: hidden; transition: transform .45s; box-shadow: 0 12px 30px rgba(20,40,90,.14); }
.tv-card .f { background: #fff; border: 2px solid #e4e7f2; } .tv-card .f b { font: 800 2.1rem Montserrat, sans-serif; color: #14285a; }
.tv-card .f .tv-say { margin: 0 auto; }
.tv-card .bk { background: #14285a; color: #fff; transform: rotateY(180deg); } .tv-card .bk b { font-size: 1.4rem; } .tv-card .bk .tv-pos { color: #ffd43b; } .tv-card .bk .tv-ctx { background: rgba(255,255,255,.1); color: #e5e9f5; border-color: #ffd43b; }
.tv-card.flip .f { transform: rotateY(180deg); } .tv-card.flip .bk { transform: rotateY(360deg); }
.tv-qh { display: flex; gap: 12px; align-items: center; } .tv-qh b { color: #16a34a; }
.tv-qw { text-align: center; margin: 24px 0 4px; display: grid; justify-items: center; gap: 6px; } .tv-qw b { font: 800 2.1rem Montserrat, sans-serif; color: #14285a; }
.tv-qm { text-align: center; font-size: 1.35rem; font-weight: 700; color: #14285a; margin: 26px 0 6px; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 12px auto; }
@media (max-width: 520px) { .tv-opts { grid-template-columns: 1fr; } }
.tv-opt { font: 600 1rem "Be Vietnam Pro", sans-serif; background: #fff; border: 2px solid #dfe3ee; border-bottom-width: 4px; border-radius: 12px; padding: 14px; cursor: pointer; color: #14213d; text-align: left; }
.tv-opt:hover:not(:disabled) { border-color: #94a3c8; } .tv-opt.ok { background: #dcfce7; border-color: #16a34a; } .tv-opt.no { background: #fee2e2; border-color: #dc2626; }
.tv-hint { text-align: center; font: 700 1.5rem/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: #14285a; }
.tv-type { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; } .tv-type input { flex: 1; font: 600 1.15rem "Be Vietnam Pro", sans-serif; padding: 12px 14px; border: 2px solid #cfd6e6; border-radius: 12px; }
.tv-fbx { max-width: 460px; margin: 12px auto 0; border-radius: 12px; padding: 10px 14px; font-weight: 600; text-align: center; } .tv-fbx.ok { background: #dcfce7; color: #166534; } .tv-fbx.no { background: #fee2e2; color: #991b1b; }
.tv-donebox { background: #fff; border: 1.5px solid #e4e7f2; border-radius: 18px; padding: 20px; text-align: center; margin: 12px 0; }
.tv-donebox .tv-list { text-align: left; margin-top: 12px; }
.tv-big { font: 900 3rem Montserrat, sans-serif; color: #c8102e; }
.tv-rl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.tv-rt { position: relative; display: grid; gap: 3px; background: #fff; border: 1.5px solid #e4e7f2; border-radius: 12px; padding: 10px 12px; text-decoration: none; color: #14213d; }
.tv-rt b { color: #14285a; } .tv-rt small { color: #5b6384; font-size: .8rem; line-height: 1.35; } .tv-rt em { position: absolute; top: 10px; right: 12px; font-style: normal; font-weight: 800; color: #b45309; font-size: .8rem; }
.tv-rt.ok { border-color: #16a34a; } .tv-rt.ok em { color: #15803d; }
.tv-free { font-style: normal; font-size: .68rem; background: #16a34a; color: #fff; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
