/*
Theme Name: THVLi Live
Description: Theme sáng chia sẻ lịch phát sóng truyền hình Vĩnh Long (THVL1–THVL5), không nhúng nội dung bên ngoài.
Version: 2.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thvli-live
*/

:root {
  --bg: #F4F6FA; --panel: #FFFFFF; --ink: #0F172A; --muted: #64748B; --line: #E3E8EF; --soft: #EEF2F7;
  --brand: #2563EB; --brand-ink: #1D4ED8; --brand-tint: #E8F0FF; --live: #EF4444; --soon: #F59E0B;
  --h1: #2563EB; --h2: #10A37F; --h3: #F59E0B; --h4: #EC4899; --h5: #8B5CF6;
  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.05);
  --label: 112px; --ppm: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--f); min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding-bottom: 8px; }
a { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #93B4FF; outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.n { font-variant-numeric: tabular-nums; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.h1 { --h: var(--h1); } .h2 { --h: var(--h2); } .h3 { --h: var(--h3); } .h4 { --h: var(--h4); } .h5 { --h: var(--h5); }

/* ===== Thanh trên ===== */
.bar { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .bar { top: 46px; } }
.bar__in { display: flex; align-items: center; gap: 10px 26px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo__img { height: 40px; width: 40px; object-fit: contain; flex: 0 0 auto; }
.logo__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.logo__mark svg { width: 16px; height: 16px; margin-left: 2px; }
.logo__text b { display: block; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; }
.logo__text small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a, .nav .current-menu-parent > a, .nav .current-post-ancestor > a { color: var(--brand); background: var(--brand-tint); }
.nav li { position: relative; }
.nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.nav .sub-menu { display: none; position: absolute; top: calc(100% - 2px); left: 0; z-index: 40; min-width: 190px; padding: 6px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 32px -8px rgba(15,23,42,.18); }
.nav .sub-menu a { padding: 9px 12px; font-size: .9rem; white-space: nowrap; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .menu-cta { margin-left: auto; }
.nav .menu-cta > a { background: var(--brand); color: #fff; font-weight: 700; padding: 10px 16px; }
.nav .menu-cta > a:hover { background: var(--brand-ink); color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 0; background: var(--soft); border: 0; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 18px 30px rgba(15,23,42,.12); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .sub-menu { display: flex; position: static; min-width: 0; margin: 0 0 4px 14px; padding: 0 0 0 10px; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav .sub-menu a { padding: 10px 12px; font-size: .95rem; }
  .nav .menu-item-has-children > a::after { display: none; }
  .nav .menu-cta { margin: 8px 0 0; }
  .nav .menu-cta > a { text-align: center; }
}
@media (max-width: 520px) { .logo__text small { display: none; } }

/* ===== Chung ===== */
.badge { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 22px; padding: 0 8px; border-radius: 7px; background: var(--h, var(--brand)); color: #fff; font-weight: 800; font-size: .74rem; }
.h3 .badge { color: #3B2A00; }
.badge--lg { height: 52px; min-width: 52px; font-size: 1.5rem; border-radius: 14px; }
.sec { padding-block: 22px 6px; }
.sec__head { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.sec__head h2 { margin: 0; font: 800 1.4rem/1.2 var(--f); letter-spacing: -.02em; }
.sec__head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.page-title { font: 800 clamp(1.6rem, 3.5vw, 2.2rem)/1.2 var(--f); letter-spacing: -.02em; margin: 28px 0 14px; }
.entry-content { color: #334155; }
.entry-content > * { max-width: 860px; }
.entry-content p { margin: 0 0 12px; }
.post-card { border-bottom: 1px solid var(--line); padding: 16px 0; }
.post-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.post-updated { margin: 0 0 12px; font-size: .875rem; color: var(--muted); }
.plain-post { padding-bottom: 24px; }

/* ===== Trang chủ: mở đầu ===== */
.hero { padding-block: 28px 6px; }
.hero__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }
.hero h1 { font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--f); letter-spacing: -.03em; margin: 0 0 6px; }
.hero p { margin: 0; color: var(--muted); max-width: 58ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 16px; font-weight: 700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; }
.pill span { color: var(--muted); font-weight: 500; font-size: .88rem; }

/* ===== Dải đang phát ===== */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-block: 20px 8px; }
.nowcard { text-decoration: none; color: var(--ink); background: var(--panel); border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nowcard:hover { box-shadow: 0 0 0 2px var(--h), var(--shadow); }
.nowcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.onair { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--live); letter-spacing: .03em; }
.onair::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.idle .onair { color: var(--muted); } .idle .onair::before { background: #CBD5E1; }
.nowcard__title { font-weight: 700; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin-top: 6px; }
.nowcard__time { font-size: .78rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 1000px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip .nowcard:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }

/* ===== Bảng EPG ===== */
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 13px; font-weight: 600; font-size: .86rem; }
.tool:hover { background: var(--soft); }
.tool--on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tool--on:hover { background: var(--brand-ink); }
.epg { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); overflow-x: auto; position: relative; overscroll-behavior-x: contain; }
.epg__inner { position: relative; }
.epg__ruler, .epg__row { display: flex; }
.epg__corner, .epg__label { flex: 0 0 var(--label); position: sticky; left: 0; z-index: 4; background: var(--panel); }
.epg__corner { height: 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding-left: 16px; font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.epg__ticks { position: relative; height: 38px; border-bottom: 1px solid var(--line); }
.epg__ticks span { position: absolute; top: 0; bottom: 0; padding: 17px 0 0 8px; font-size: .78rem; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); }
.epg__row { border-bottom: 1px solid var(--soft); }
.epg__row:last-of-type { border-bottom: 0; }
.epg__label { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; height: 74px; border-right: 1px solid var(--line); }
.epg__label .badge { height: 30px; min-width: 30px; font-size: .95rem; border-radius: 9px; }
.epg__label b { font-weight: 700; font-size: .9rem; }
.epg__track { position: relative; height: 74px; flex: 0 0 auto; }
.epg__track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--ppm) * 60 - 1px), var(--soft) calc(var(--ppm) * 60 - 1px), var(--soft) calc(var(--ppm) * 60)); }
.prog { position: absolute; top: 8px; bottom: 8px; border: 0; border-radius: 10px; padding: 7px 10px; text-align: left; background: #F1F5F9; overflow: hidden; display: block; transition: background .15s; }
.prog:hover { background: #E2E8F0; }
.prog b { display: -webkit-box; font-weight: 600; font-size: .8rem; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog small { display: block; font-size: .7rem; color: var(--muted); margin-top: 1px; }
.prog.past { background: #F8FAFC; }
.prog.past b { color: #94A3B8; } .prog.past small { color: #A9B4C3; }
.prog.on { background: color-mix(in srgb, var(--h) 14%, #fff); box-shadow: inset 0 0 0 2px var(--h); }
.prog.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.prog.tiny b, .prog.tiny small { display: none; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--live); z-index: 3; pointer-events: none; left: calc(var(--label) + 0px); }
.nowline::before { content: attr(data-t); position: absolute; top: 2px; left: 50%; transform: translateX(-50%); background: var(--live); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.board-note { margin: 24px auto; max-width: 1200px; padding: 20px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); color: var(--muted); }

/* Khung chi tiết */
.detail { margin-top: 14px; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
.detail .badge { height: 42px; min-width: 42px; font-size: 1.15rem; border-radius: 12px; }
.detail h3 { margin: 4px 0 0; font: 700 1.15rem/1.35 var(--f); }
.detail p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.status { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.status--on { background: #FEE2E2; color: #B91C1C; } .status--next { background: var(--brand-tint); color: var(--brand-ink); }
.detail .go { justify-self: end; font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.detail .go:hover { text-decoration: underline; }

/* Liên kết lịch từng kênh */
.chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding-block: 6px 4px; }
.chan { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.chan:hover { box-shadow: 0 0 0 2px var(--h), var(--shadow); }
.chan .badge { height: 36px; min-width: 36px; font-size: 1.05rem; border-radius: 10px; }
.chan b { display: block; font-weight: 700; line-height: 1.3; }
.chan small { color: var(--muted); }

.about { padding-block: 28px 12px; }
.about h2 { font: 800 1.3rem var(--f); letter-spacing: -.02em; margin: 0 0 10px; }
.about__body p { margin: 0 0 10px; max-width: 74ch; color: #334155; }

/* ===== Bài lịch phát sóng ===== */
.schedule-post { padding-bottom: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 12px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.thvl-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.thvl-tabs::-webkit-scrollbar { display: none; }
.thvl-tabs a { flex: 0 0 auto; padding: 8px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); background: var(--panel); box-shadow: var(--shadow); text-decoration: none; }
.thvl-tabs a:hover { color: var(--ink); }
.thvl-tabs a.is-current { color: #fff; background: var(--ink); }

.schedule-content > p { max-width: none; color: var(--muted); }
.schedule-content h2 { font: 800 1.2rem var(--f); letter-spacing: -.02em; margin: 26px 0 8px; color: var(--ink); }
.schedule-content h3 { font-size: .95rem; margin: 14px 0 8px; color: var(--muted); font-weight: 700; }
.thvl-highlights { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; max-width: none; }
.thvl-highlights li { padding: 8px 14px; background: var(--panel); border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); font-size: .9rem; }

/* Thẻ Đang phát trong bài */
.thvl-now { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--h, var(--brand)), var(--shadow); }
.thvl-now[hidden] { display: none; }
.thvl-now__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.thvl-now__badge { padding: 2px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--live); color: #fff; border-radius: 6px; }
.thvl-now__chan { color: var(--muted); font-size: .85rem; font-weight: 600; }
.schedule-content .thvl-now p { margin: 0; max-width: none; }
.thvl-now .thvl-now__title { font: 800 1.2rem/1.35 var(--f); color: var(--ink); }
.thvl-now .thvl-now__time, .thvl-now .thvl-now__next { color: var(--muted); font-size: .9rem; }
.thvl-now .thvl-bar { display: block; height: 5px; margin: 12px 0 10px; }
.thvl-now__jump { margin-top: 12px; padding: 0; background: none; border: 0; color: var(--brand); font: inherit; font-size: .88rem; font-weight: 600; }
.thvl-now__jump:hover { text-decoration: underline; }
.thvl-bar { display: none; background: var(--soft); border-radius: 999px; overflow: hidden; }
.thvl-bar i { display: block; height: 100%; width: 0; background: var(--h, var(--live)); border-radius: inherit; transition: width .6s; }

/* Lịch chia theo buổi */
.thvl-group { margin: 0 0 22px; }
.thvl-group__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 2px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.thvl-group__title span { color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.thvl-list { list-style: none; margin: 0; padding: 0; max-width: none; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.thvl-row { display: flex; gap: 14px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--soft); }
.thvl-row:last-child { border-bottom: 0; }
.thvl-row__time { flex: 0 0 56px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.thvl-row__body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.thvl-row__title { color: var(--ink); }
.thvl-row__meta { color: var(--muted); font-size: .8rem; }
.thvl-row .thvl-bar { flex: 1 0 100%; height: 4px; margin-top: 6px; }
.thvl-row.is-past { opacity: .55; }
.thvl-row.is-now { opacity: 1; background: color-mix(in srgb, var(--h, var(--brand)) 12%, #fff); box-shadow: inset 0 0 0 2px var(--h, var(--brand)); }
.thvl-row.is-now .thvl-row__title { font-weight: 700; }
.thvl-row.is-now .thvl-bar { display: block; }
.thvl-schedule__live { padding: 1px 8px; font-size: .7rem; font-weight: 800; background: var(--live); color: #fff; border-radius: 6px; }
.thvl-schedule__live[hidden] { display: none; }

/* ===== Chân trang (xanh đêm) ===== */
.foot { margin-top: 30px; background: #0B1220; color: #B6C2D4; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--h1), var(--h2), var(--h3), var(--h4), var(--h5)); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px 40px; padding-block: 44px 30px; }
.foot .logo { color: #fff; }
.foot .logo__text small { color: #8FA0B8; }
.foot__brand p { margin: 14px 0 18px; max-width: 38ch; font-size: .92rem; color: #98A8BE; }
.foot__upd { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #CBD5E1; background: #131C2F; border: 1px solid #223049; border-radius: 10px; padding: 6px 12px; }
.foot__upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
.foot__brand .foot__contact { margin: 14px 0 0; font-size: .9rem; color: #98A8BE; }
.foot__contact a { color: #E2E8F0; font-weight: 600; text-decoration: none; }
.foot__contact a:hover { color: #fff; text-decoration: underline; }
.foot__title { margin: 0 0 14px; font: 700 .78rem var(--f); letter-spacing: .07em; text-transform: uppercase; color: #E2E8F0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #B6C2D4; font-weight: 500; }
.foot ul a:hover { color: #fff; }
.foot ul .badge { height: 22px; min-width: 22px; font-size: .75rem; border-radius: 7px; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; position: relative; padding-block: 20px 28px; color: #8FA0B8; font-size: .84rem; }
.legal::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: #1B263B; }
.legal span a { color: #E2E8F0; font-weight: 600; text-decoration: none; }
.legal span a:hover { color: #fff; text-decoration: underline; }
.legal__top { color: #E2E8F0; text-decoration: none; font-weight: 600; white-space: nowrap; }
.legal__top:hover { color: #fff; text-decoration: underline; }

/* ===== Màn hình hẹp ===== */
@media (max-width: 820px) {
  :root { --label: 70px; }
  .epg__label b { display: none; }
  .epg__label { padding: 0 0 0 14px; }
  .detail { grid-template-columns: auto minmax(0, 1fr); }
  .detail .go { grid-column: 1 / -1; justify-self: start; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .thvl-row { gap: 10px; padding: 10px 12px; }
  .thvl-row__time { flex-basis: 48px; }
  .thvl-group__title { flex-direction: column; gap: 0; }
}

/* Inter rộng hơn nên cân bằng các dòng tiêu đề để không rơi chữ lẻ */
.hero h1, .page-title, .schedule-hero__title, .sec__head h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(1.7rem, 3.8vw, 2.45rem); }

/* ===== Trang phim hôm nay ===== */
.movies-page { max-width: none; }
.mv-20h { display: flex; align-items: center; gap: 22px; margin: 0 0 16px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #E8F0FF 0%, #F3F7FF 100%); box-shadow: 0 0 0 1px #D6E3FF; }
.mv-20h__time { flex: 0 0 auto; font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 var(--f); letter-spacing: -.04em; color: var(--brand); }
.mv-20h__main { min-width: 0; }
.mv-20h p { margin: 0; max-width: none; }
.mv-20h__label { font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.mv-20h__title { margin-top: 2px; font: 800 clamp(1.3rem, 3vw, 1.85rem)/1.25 var(--f); letter-spacing: -.02em; color: var(--ink); }
.mv-20h__title span { margin-left: 6px; padding: 2px 10px; font-size: .55em; font-weight: 700; letter-spacing: 0; color: var(--brand-ink); background: #fff; border-radius: 8px; vertical-align: middle; }
.mv-20h__meta { margin-top: 4px; color: #475569; font-size: .92rem; }

.mv-nowbox { margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.mv-nowbox[hidden] { display: none; }
.mv-nowbox h2 { margin: 0 0 8px; font: 800 .95rem var(--f); color: var(--ink); }
.mv-nowbox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: none; }
.mv-nowbox li { display: flex; gap: 10px; align-items: baseline; }
.mv-nowbox li .badge { flex: 0 0 auto; }
.mv-nowbox small { color: var(--muted); }

.mv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 4px 0 16px; }
.mv-sum { margin: 0; color: var(--muted); max-width: none; flex: 1 1 100%; }
.mv-filter { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.mv-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: .84rem; color: var(--muted); }
.mv-chip:hover { background: var(--soft); color: var(--ink); }
.mv-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mv-jump { flex: 1 1 100%; margin: 0; font-size: .85rem; color: var(--muted); max-width: none; }
.mv-jump a { margin-left: 12px; font-weight: 600; text-decoration: none; }
.mv-jump a:hover { text-decoration: underline; }

.mv-ch { margin: 0 0 26px; scroll-margin-top: 86px; }
.mv-ch[hidden] { display: none; }
.mv-ch__head { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.mv-ch h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.1rem/1.3 var(--f); letter-spacing: -.01em; color: var(--ink); }
.mv-ch h2 .badge { height: 24px; min-width: 24px; font-size: .8rem; border-radius: 8px; }
.mv-ch h2 small { color: var(--muted); font-weight: 500; font-size: .8rem; letter-spacing: 0; }
.mv-ch__link { font-size: .86rem; font-weight: 600; text-decoration: none; }
.mv-ch__link:hover { text-decoration: underline; }

.mv-panel { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 20px; }
.mvl { list-style: none; margin: 0; padding: 0; max-width: none; column-count: 2; column-gap: 44px; }
.mvr { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--soft); break-inside: avoid; }
.mvr[hidden] { display: none; }
.mvr__time { font-weight: 700; font-size: .92rem; color: var(--ink); padding-top: 1px; }
.mvr__main { min-width: 0; }
.mvr__title { font-weight: 600; font-size: .95rem; color: var(--ink); }
.mvr__ep { font-size: .88rem; color: var(--muted); margin-left: 4px; }
.mvr__meta { display: block; margin-top: 1px; font-size: .78rem; color: #8493A6; }
.mvr__live { display: none; align-self: center; padding: 1px 9px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--live); border-radius: 999px; white-space: nowrap; }
.mvr.is-now .mvr__live { display: inline-block; }
.mvr.is-now { background: color-mix(in srgb, var(--h, var(--brand)) 10%, #fff); margin: 0 -12px; padding-inline: 12px; border-radius: 10px; border-bottom-color: transparent; }
.mvr.is-now .mvr__title { font-weight: 700; }
.mvr.is-past .mvr__time, .mvr.is-past .mvr__title { color: #94A3B8; font-weight: 500; }
.mv-empty { margin: 14px 0; color: var(--muted); font-size: .92rem; max-width: none; }
.mv-empty[hidden] { display: none; }
.mv-past { margin: 4px 0 8px; border-top: 1px solid var(--soft); }
.mv-past[hidden] { display: none; }
.mv-past summary { cursor: pointer; padding: 12px 0 8px; font-size: .88rem; font-weight: 600; color: var(--muted); list-style: none; }
.mv-past summary::-webkit-details-marker { display: none; }
.mv-past summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform .15s; }
.mv-past[open] summary::before { transform: rotate(90deg); }
.mv-past summary:hover { color: var(--ink); }
@media (max-width: 900px) { .mvl { column-count: 1; } }

/* Nội dung chữ và hỏi đáp */
.mv-text { margin-top: 8px; }
.mv-text h2 { margin: 30px 0 10px; }
.mv-text > p { max-width: 74ch; color: #334155; }
.mv-text .faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; max-width: none; }
.mv-text .faq > div { padding: 16px 18px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }
.mv-text .faq h3 { margin: 0 0 6px; color: var(--ink); font: 700 1rem/1.4 var(--f); }
.mv-text .faq p { margin: 0; color: #475569; max-width: none; }
.mv-text ol, .mv-text ul { max-width: 74ch; margin: 0 0 14px; padding-left: 22px; color: #334155; }
.mv-text li { margin: 6px 0; }
.mv-text .btn { display: inline-block; padding: 11px 20px; background: var(--brand); color: #fff; font-weight: 700; border-radius: 10px; text-decoration: none; }
.mv-text .btn:hover { background: var(--brand-ink); color: #fff; }
@media (max-width: 640px) {
  .mv-20h { gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
}

/* Menu có 8 mục: ở khổ rộng ẩn dòng phụ dưới logo trong header (vẫn có ở footer) để nút "Xem trực tiếp" không xuống dòng */
@media (min-width: 901px) {
  .bar .logo__text small { display: none; }
  .bar__in { gap: 10px 20px; }
  .nav a { padding: 8px 10px; }
}

/* ===== Tiêu đề trang (không khung): dòng nhãn nhỏ, H1 gọn, dòng thông tin ===== */
.ptitle { margin: 6px 0 18px; }
.ptitle__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ptitle__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--h, var(--brand)); flex: 0 0 auto; }
.ptitle__h1 { margin: 0 0 8px; font: 700 clamp(1.35rem, 2.6vw, 1.7rem)/1.3 var(--f); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.ptitle__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 0; font-size: .86rem; color: var(--muted); max-width: none; }
.ptitle__meta span + span::before, .ptitle__meta span + a::before { content: ""; }
.ptitle__meta a { font-weight: 600; text-decoration: none; }
.ptitle__meta a:hover { text-decoration: underline; }

/* Trang chủ và trang thường: chữ tiêu đề nhỏ lại một chút, bỏ khung ở khối ngày giờ */
.hero h1 { font-size: clamp(1.55rem, 3.1vw, 2.05rem); letter-spacing: -.02em; }
.hero p { font-size: .95rem; }
.pill { background: none; box-shadow: none; padding: 0; font-weight: 700; font-size: .95rem; }
.pill span { font-size: .85rem; }
.page-title { font-size: clamp(1.4rem, 2.8vw, 1.8rem); }

/* ===== Trang hướng dẫn ===== */
.guide-page { padding-bottom: 24px; }
.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; margin-top: 8px; }
.gd-lead { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.7; color: #334155; max-width: 62ch; }
.gd-cta { margin: 0 0 40px; max-width: none; }
.gd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.gd-btn:hover { background: var(--brand-ink); color: #fff; }

.gd-body { max-width: 62ch; }
.gd-sec { margin: 0 0 40px; }
.gd-sec h2 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 700 1.1rem/1.3 var(--f); letter-spacing: -.01em; }
.gd-steps { list-style: none; counter-reset: gd; margin: 0; padding: 0; max-width: none; }
.gd-steps li { counter-increment: gd; position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); color: #475569; margin: 0; }
.gd-steps li::before { content: counter(gd, decimal-leading-zero); position: absolute; left: 0; top: 16px; color: var(--muted); font-weight: 600; font-size: .86rem; font-variant-numeric: tabular-nums; }
.gd-steps li b { color: var(--ink); }
.gd-more { list-style: none; margin: 0; padding: 0; max-width: none; }
.gd-more li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.gd-more a { font-weight: 600; text-decoration: none; }
.gd-more a:hover { text-decoration: underline; }
.gd-more span { color: var(--muted); font-size: .92rem; }
.gd-faq { max-width: none; }
.gd-faq details { border-bottom: 1px solid var(--line); }
.gd-faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; line-height: 1.2; font-weight: 400; }
.gd-faq details[open] summary::after { content: "–"; }
.gd-faq details p { margin: 0 0 16px; color: #475569; max-width: none; }

.gd-aside { position: sticky; top: 96px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 20px 22px 18px; }
.gd-aside h2 { margin: 0 0 6px; font: 700 .78rem/1.3 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gd-aside ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.gd-aside li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft); margin: 0; }
.gd-aside li .badge { height: 26px; min-width: 26px; font-size: .85rem; border-radius: 8px; }
.gd-aside__name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.gd-aside__name a { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); text-decoration: none; }
.gd-aside__name a:hover { color: var(--brand); text-decoration: underline; }
.gd-aside__go { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.gd-aside__go:hover { text-decoration: underline; }
.gd-aside > p { margin: 12px 0 0; font-size: .82rem; color: var(--muted); max-width: none; }
@media (max-width: 960px) {
  .gd-layout { grid-template-columns: 1fr; gap: 28px; }
  .gd-aside { position: static; order: -1; }
  .gd-cta { margin-bottom: 8px; }
}

/* ===== Blog: danh sách, bài viết, phân trang ===== */
.bl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bl-cats { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.bl-cats a { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); text-decoration: none; }
.bl-cats a:hover { color: var(--ink); background: var(--soft); }
.bl-cats a.is-on { background: var(--ink); color: #fff; }
.bl-search { display: flex; gap: 6px; }
.bl-search input { width: 220px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; color: var(--ink); }
.bl-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #DCE8FF; }
.bl-search button { padding: 8px 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.bl-search button:hover { background: var(--brand); }

.bl-list { max-width: 820px; }
.bl-item { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.bl-item:first-child { padding-top: 6px; }
.bl-item__body { min-width: 0; }
.bl-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: .82rem; color: var(--muted); max-width: none; }
.bl-item__cat { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.bl-item h2 { margin: 0 0 8px; font: 700 1.3rem/1.35 var(--f); letter-spacing: -.01em; }
.bl-item h2 a { color: var(--ink); text-decoration: none; }
.bl-item h2 a:hover { color: var(--brand); }
.bl-item__ex { margin: 0; color: #475569; max-width: 62ch; }
.bl-item__img { flex: 0 0 200px; }
.bl-item__img img { display: block; width: 200px; height: 134px; object-fit: cover; border-radius: 12px; }
.bl-empty { max-width: 620px; padding: 28px 0; color: #475569; }
.bl-empty p { margin: 0 0 8px; }
.bl-empty strong { color: var(--ink); }

.navigation.pagination { max-width: 820px; margin: 28px 0 8px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.navigation.pagination .page-numbers { padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; background: var(--panel); box-shadow: var(--shadow); }
.navigation.pagination a.page-numbers:hover { color: var(--brand); }
.navigation.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.navigation.pagination .dots { background: none; box-shadow: none; }

.article { max-width: 760px; }
.article__head .ptitle__eyebrow a { color: inherit; text-decoration: none; }
.article__head .ptitle__eyebrow a:hover { color: var(--brand); }
.article__img { margin: 6px 0 26px; }
.article__img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.article__body { font-size: 1.06rem; line-height: 1.8; color: #1E293B; }
.article__body > * { max-width: none; }
.article__body p { margin: 0 0 1.15em; }
.article__body h2 { margin: 2em 0 .6em; font: 700 1.55rem/1.3 var(--f); letter-spacing: -.015em; color: var(--ink); }
.article__body h3 { margin: 1.7em 0 .5em; font: 700 1.25rem/1.35 var(--f); color: var(--ink); }
.article__body h4 { margin: 1.5em 0 .4em; font: 700 1.05rem/1.4 var(--f); color: var(--ink); }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body li { margin: .35em 0; }
.article__body a { text-underline-offset: 2px; }
.article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: #334155; font-size: 1.1rem; }
.article__body blockquote p:last-child { margin-bottom: 0; }
.article__body img, .article__body figure img { max-width: 100%; height: auto; border-radius: 12px; }
.article__body figure { margin: 1.6em 0; }
.article__body figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); text-align: center; }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; }
.article__body th, .article__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article__body th { background: var(--soft); font-weight: 700; }
.article__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.article__body code { padding: 2px 6px; border-radius: 6px; background: var(--soft); font-size: .92em; }
.article__body pre { overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: #0F172A; color: #E2E8F0; font-size: .9rem; line-height: 1.6; }
.article__body pre code { padding: 0; background: none; color: inherit; }
.article__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; max-width: none; }
.article__tags a { padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; }
.article__tags a:hover { color: var(--brand); }
.article__more { max-width: 760px; margin: 44px 0 8px; }
.article__more h2 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 700 1.05rem/1.3 var(--f); }
.article__more .gd-more a { color: var(--ink); }
.article__more .gd-more a:hover { color: var(--brand); }
@media (max-width: 700px) {
  .bl-item { flex-direction: column-reverse; gap: 14px; }
  .bl-item__img { flex-basis: auto; width: 100%; }
  .bl-item__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .bl-search { width: 100%; } .bl-search input { flex: 1; width: auto; }
  .article__body { font-size: 1rem; }
}

.legal__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.legal__nav a { font-weight: 600; }

/* ===== Hiệu ứng thanh thời gian (thẻ Đang phát, bảng EPG) ===== */
.nowcard { position: relative; transition: box-shadow .2s, transform .2s; }
.nowcard:hover { transform: translateY(-2px); }
.onair::before { animation: tb-blink 1.6s ease-in-out infinite; }
.idle .onair::before { animation: none; }
.soon .onair { color: #B45309; } .soon .onair::before { background: var(--soon); animation-duration: .8s; }
.nowcard__time { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.nowcard__time b { font-weight: 700; color: var(--ink); }
.soon .nowcard__time b { color: #B45309; }
.meter { --p: 0; --mc: var(--h); position: relative; height: 6px; border-radius: 6px; background: var(--soft); margin: 10px 0 2px; }
.soon .meter { --mc: var(--soon); }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 55%, #fff), var(--mc)); overflow: hidden; transition: width 1s linear, background .6s; }
.meter__fill::after { content: ""; position: absolute; inset: 0; width: 60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-120%); animation: tb-sheen 2.8s ease-in-out infinite; }
.meter__head { position: absolute; top: 50%; left: calc(var(--p) * 1%); width: 3px; height: 13px; margin: -6.5px 0 0 -3px; border-radius: 3px; background: color-mix(in srgb, var(--mc) 25%, #fff); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--mc) 40%, transparent); animation: tb-glow 2s ease-in-out infinite; transition: left 1s linear; }
.soon .meter__head, .soon .meter__fill::after { animation-duration: 1s; }
.nowcard.idle .meter__fill, .nowcard.idle .meter__head { opacity: 0; }
.swap .nowcard__title, .swap .nowcard__time { animation: tb-swap .5s ease backwards; }
.swap .meter__fill, .swap .meter__head { transition-duration: 0s; }

.epg__ticks span { transition: color .4s; }
.epg__ticks span.cur { color: var(--live); }
.epg__row { transition: background .25s; }
.epg__row:hover { background: color-mix(in srgb, var(--h) 4%, transparent); }
.prog { --p: 0; transition: background .2s, transform .2s, box-shadow .2s; }
.prog > * { position: relative; }
.prog:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(15,23,42,.3); z-index: 2; }
.prog.on { background: color-mix(in srgb, var(--h) 9%, #fff); }
.prog.on::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); background: color-mix(in srgb, var(--h) 22%, transparent); border-right: 2px solid color-mix(in srgb, var(--h) 60%, transparent); transition: width 1s linear; }
.prog.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: tb-sweep 4.5s ease-in-out infinite; pointer-events: none; }
.prog.on.soon { box-shadow: inset 0 0 0 2px var(--soon); }
.prog.on.soon::before { background: color-mix(in srgb, var(--soon) 24%, transparent); border-right-color: var(--soon); }
.prog.next { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 45%, transparent); }
.prog.sel, .prog.sel:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.nowline { transition: left 1s linear; }
.nowline::before { font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px -2px rgba(239,68,68,.55); }
.nowline::after { content: ""; position: absolute; inset: 38px -5px 0 -5px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--live) 28%, transparent), transparent); animation: tb-breathe 2.4s ease-in-out infinite; }

.board-enter .nowcard { animation: tb-rise .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.board-enter .nowcard .meter__fill { animation: tb-fillin 1.1s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms + 200ms); transition: none; }
.board-enter .nowcard .meter__head { animation: tb-headin 1.1s cubic-bezier(.2,.7,.2,1) backwards, tb-glow 2s ease-in-out infinite 1.3s; animation-delay: calc(var(--i, 0) * 70ms + 200ms), 0s; transition: none; }
.board-enter .epg__row { animation: tb-rise .6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.board-enter .epg__row .prog { animation: tb-grow .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 350ms); transform-origin: left center; }

@keyframes tb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tb-glow { 0%, 100% { box-shadow: 0 0 5px 1px color-mix(in srgb, var(--mc) 35%, transparent); } 50% { box-shadow: 0 0 12px 3px color-mix(in srgb, var(--mc) 70%, transparent); } }
@keyframes tb-sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(260%); } }
@keyframes tb-sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes tb-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes tb-fillin { from { width: 0; } }
@keyframes tb-headin { from { left: 0; } }
@keyframes tb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tb-grow { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: none; } }
@keyframes tb-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nowcard, .nowcard *, .meter__fill::after, .prog, .prog::before, .prog::after, .nowline, .nowline::after, .epg__row, .epg__ticks span { animation: none !important; transition-duration: 0s !important; }
}

/* ===== Tìm giờ chiếu ===== */
.fd { max-width: 980px; --fd-live-tint: #FDE8E8; --fd-live-ink: #B91C1C; --fd-mark: #FEF3C7; --fd-star: #F59E0B; }
.fd-search { position: relative; display: flex; align-items: center; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.fd-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.16), var(--shadow); }
.fd-search svg { flex: none; margin-left: 16px; color: var(--muted); }
.fd-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.08rem var(--f); padding: 16px 12px; outline: none; }
.fd-search input::placeholder { color: var(--muted); font-weight: 400; }
.fd-search button { flex: none; margin-right: 10px; border: 0; background: var(--soft); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 600 .8rem var(--f); cursor: pointer; }
.fd-search button:hover { color: var(--ink); }
.fd-search button[hidden] { display: none; }
.fd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 14px 0 6px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 13px; font: 600 .84rem var(--f); cursor: pointer; }
.fd-chip:hover { color: var(--ink); background: var(--soft); }
.fd-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fd-now { margin: 0; font-size: .84rem; color: var(--muted); max-width: none; }
.fd-now b { color: var(--ink); font-size: .98rem; }
.fd-hint { margin: 18px 0 10px; font-size: .86rem; color: var(--muted); max-width: none; }
.fd-hint b { color: var(--ink); }
.fd-h { margin: 26px 0 10px; font: 700 .78rem/1.3 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fd-sug { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-sug button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 600 .88rem var(--f); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.fd-sug button small { display: block; margin-top: 1px; font-weight: 500; font-size: .74rem; color: var(--muted); }
.fd-sug button:hover { border-color: var(--brand); }
.fd-list { display: grid; gap: 14px; }
.fd-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px 8px; }
.fd-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fd-card__title { margin: 0; font: 700 1.12rem/1.35 var(--f); letter-spacing: -.01em; color: var(--ink); }
.fd-card__title mark { background: var(--fd-mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.fd-card__meta { margin: 2px 0 0; font-size: .84rem; color: var(--muted); max-width: none; }
.fd-fav { flex: none; border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.fd-fav:hover { color: var(--fd-star); border-color: var(--fd-star); }
.fd-fav[aria-pressed="true"] { color: var(--fd-star); border-color: var(--fd-star); background: rgba(245,158,11,.12); }
.fd-fav[aria-pressed="true"] svg { fill: currentColor; }
.fd-day { position: relative; height: 6px; margin: 14px 2px 2px; border-radius: 6px; background: var(--soft); }
.fd-day i { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; border-radius: 3px; background: var(--h); }
.fd-day i.p { opacity: .32; }
.fd-day .now { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.fd-ticks { position: relative; height: 16px; margin: 6px 2px 4px; font-size: .68rem; color: var(--muted); }
.fd-ticks span { position: absolute; transform: translateX(-50%); }
.fd-ticks span:first-child { transform: none; } .fd-ticks span:last-child { transform: translateX(-100%); }
.fd-rows { list-style: none; margin: 4px 0 0; padding: 0; max-width: none; }
.fd-row { display: grid; grid-template-columns: 112px 74px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 11px 0; border-top: 1px solid var(--soft); margin: 0; }
.fd-row__time { font-weight: 700; font-size: .95rem; }
.fd-row__time small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.fd-row__ch { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .86rem; }
.fd-row__ep { font-size: .9rem; color: var(--muted); min-width: 0; }
.fd-row__ep b { color: var(--ink); font-weight: 600; }
.fd-row__act { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.fd-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); }
.fd-st.live { background: var(--fd-live-tint); color: var(--fd-live-ink); }
.fd-st.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.fd-st.next { background: var(--brand-tint); color: var(--brand-ink); }
.fd-row.is-past .fd-row__time, .fd-row.is-past .fd-row__ep, .fd-row.is-past .fd-row__ch { color: #94A3B8; }
.fd-row.is-past .badge { opacity: .45; }
.fd-cal { font-size: .8rem; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.fd-cal:hover { text-decoration: underline; }
.fd-row.is-past .fd-cal { visibility: hidden; }
.fd-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.fd-empty b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.fd-foot { margin-top: 26px; font-size: .8rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 720px) {
  .fd-row { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .fd-row__ep { grid-column: 1 / -1; grid-row: 2; }
  .fd-row__ch { grid-column: 2; }
}
/* Ô tìm kiếm nổi bật ở trang chủ */
.hsearch { margin: 22px 0 6px; padding: 22px 24px 18px; background: var(--panel); border-radius: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 14px 36px -10px rgba(37,99,235,.22); border: 1px solid #DCE6FB; }
.hsearch__title { display: block; margin: 0 0 12px; font: 800 1.35rem/1.3 var(--f); letter-spacing: -.02em; color: var(--ink); }
.hsearch__box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; background: var(--bg); border: 2px solid transparent; border-radius: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.hsearch__box:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 5px rgba(37,99,235,.14); }
.hsearch__box svg { flex: none; color: var(--brand); }
.hsearch__box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.12rem var(--f); padding: 14px 4px; outline: none; }
.hsearch__box input::placeholder { color: var(--muted); font-weight: 400; }
.hsearch__box button { flex: none; padding: 14px 26px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 700 1rem var(--f); cursor: pointer; transition: background .15s, transform .15s; }
.hsearch__box button:hover { background: var(--brand-ink); }
.hsearch__box button:active { transform: translateY(1px); }
.hero .hsearch__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; max-width: none; color: var(--ink); font-size: .88rem; }
.hsearch__chips > span { flex: 1 0 100%; color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.hsearch__chips a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; }
.hsearch__chips a:hover { border-color: var(--h, var(--brand)); background: color-mix(in srgb, var(--h, var(--brand)) 8%, #fff); }
.hsearch__chips .badge { height: 20px; min-width: 20px; padding: 0 6px; font-style: normal; border-radius: 999px; font-size: .72rem; }
.hsearch__chips small { color: var(--muted); font-weight: 500; font-size: .76rem; }
@media (max-width: 640px) {
  .hsearch { padding: 18px 16px 14px; border-radius: 16px; }
  .hsearch__title { font-size: 1.15rem; }
  .hsearch__box { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .hsearch__box input { flex: 1 1 calc(100% - 40px); padding: 10px 2px; font-size: 1.02rem; }
  .hsearch__box button { flex: 1 1 100%; }
}

/* Nút nổi "Tìm giờ chiếu" */
.fab-find { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .92rem var(--f); text-decoration: none; box-shadow: 0 8px 22px -4px rgba(37,99,235,.55), 0 2px 6px rgba(15,23,42,.18); transition: transform .18s, background .18s, box-shadow .18s; }
.fab-find:hover { background: var(--brand-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -4px rgba(37,99,235,.6), 0 2px 6px rgba(15,23,42,.2); }
.fab-find:focus-visible { outline: 3px solid #93B4FF; outline-offset: 3px; }
@media (max-width: 520px) { .fab-find { right: 14px; padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .fab-find { transition: none; } }
@media print { .fab-find { display: none; } }

/* ===== Xem lại lịch (tab trên trang lịch từng kênh) ===== */
.rv-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 16px; border-radius: 12px; background: var(--soft); }
.rv-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 18px; font: 700 .9rem var(--f); cursor: pointer; }
.rv-tabs button:hover { color: var(--ink); }
.rv-tabs button.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.rv-panel[hidden], .schedule-content[hidden] { display: none; }
.rv-h { margin: 0 0 6px; font: 700 1.25rem/1.3 var(--f); letter-spacing: -.01em; }
.rv-lead { margin: 0 0 16px; color: #475569; max-width: 66ch; }
.rv-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.rv-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer; font-family: var(--f); }
.rv-day b { font-size: .78rem; font-weight: 700; color: var(--muted); }
.rv-day span { font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-day:hover { border-color: var(--brand); }
.rv-day.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rv-day.is-on b { color: rgba(255,255,255,.7); }
.rv-empty { margin: 18px 0; color: var(--muted); max-width: none; }
.rv-note { margin: 20px 0 0; font-size: .8rem; color: var(--muted); max-width: 70ch; }
.fd-scope { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 12px; background: var(--soft); }
.fd-scope button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 7px 16px; font: 700 .88rem var(--f); cursor: pointer; }
.fd-scope button:hover { color: var(--ink); }
.fd-scope button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.fd-more { display: block; width: 100%; margin: 2px 0 10px; padding: 9px; border: 0; border-top: 1px solid var(--soft); background: none; color: var(--brand); font: 600 .86rem var(--f); cursor: pointer; }
.fd-more:hover { text-decoration: underline; }
.fd-row[hidden] { display: none; }

/* ===== Bài giới thiệu phim: bảng thông tin, ảnh có chú thích, nguồn ===== */
.film-facts { margin: 0 0 8px; padding-top: 4px; border-top: 2px solid var(--ink); }
.film-facts h2 { margin: 12px 0 4px; font: 700 .78rem/1.3 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article__body dl.film-f { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); max-width: none; }
.article__body dl.film-f dt, .article__body dl.film-f dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.article__body dl.film-f dt { color: var(--muted); font-size: .9rem; }
.article__body dl.film-f dd { font-weight: 500; }
.article__body dl.film-f dd small { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--muted); }
.article__body sup.s { font-size: .68rem; font-weight: 700; margin-left: 2px; line-height: 0; }
.article__body sup.s a { text-decoration: none; }
.article__body .film-today { margin: 18px 0 30px; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); font-size: .96rem; line-height: 1.6; }
.article__body figure.ph { margin: 0 0 26px; }
.article__body figure.ph img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article__body figure.ph figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.5; text-align: left; }
.article__body ul.film-src { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); max-width: none; }
.article__body ul.film-src li { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.article__body ul.film-src span { color: var(--ink); font-weight: 600; margin-right: 6px; }
.article__body p.film-note { margin: 14px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { .article__body dl.film-f { grid-template-columns: 1fr; } .article__body dl.film-f dt { padding-bottom: 0; border-bottom: 0; } }

/* ===== Thanh bên của blog ===== */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.side-main { min-width: 0; }
.with-side .article, .with-side .article__more, .with-side .bl-list, .with-side .navigation.pagination { max-width: none; }
.side { display: grid; gap: 14px; margin-top: 32px; }
.side__box { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px 14px; }
.side__box h2 { margin: 0 0 6px; font: 700 .74rem/1.3 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side__box ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.side__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); margin: 0; }
.side__list li:last-child, .side__now li:last-child { border-bottom: 0; }
.side__list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.45; }
.side__list a:hover { color: var(--brand); }
.side__list small, .side__cats span { flex: none; color: var(--muted); font-size: .78rem; }
.side__list li:has(small) { flex-direction: column; align-items: flex-start; gap: 2px; }
.side__now li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); margin: 0; }
.side__now .badge { height: 22px; min-width: 22px; margin-top: 1px; }
.side__now-t { min-width: 0; line-height: 1.4; }
.side__now-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .88rem; color: var(--ink); }
.side__now-t small { color: var(--muted); font-size: .76rem; }
.side__more { display: inline-block; margin-top: 6px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.side__more:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .with-side { grid-template-columns: 1fr; gap: 32px; }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
}
@media (max-width: 640px) { .side { grid-template-columns: 1fr; } }

/* ===== Liên kết tên phim tới bài giới thiệu ===== */
.film-link { color: inherit; text-decoration: underline dotted color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.film-link:hover { color: var(--brand); text-decoration-style: solid; }
.film-chip { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-ink); font-size: .68rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.film-chip:hover { background: var(--brand); color: #fff; }
.mvr__title .film-link { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.detail__links { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.detail__links .go { justify-self: auto; }
.detail .go--film { color: var(--brand-ink); }
@media (max-width: 720px) { .detail__links { grid-column: 1 / -1; align-items: flex-start; } }

/* ===== Slide phim (trang Phim hôm nay) ===== */
.fs { --fs-gap: 14px; --fs-per: 5; --d1: #12285F; --d2: #0A3B33; --d3: #4A2F07; --d4: #4A1431; --d5: #2B1A57; margin: 4px 0 30px; }
.fs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 8px; }
.fs-head h2 { margin: 0 0 2px; font: 800 1.3rem/1.3 var(--f); letter-spacing: -.02em; color: var(--ink); }
.fs-sub { margin: 0; color: var(--muted); font-size: .88rem; max-width: none; }
.fs-arrows { display: flex; gap: 8px; }
.fs-arrows button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.fs-arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.fs-arrows button:disabled { opacity: .35; cursor: default; }
.fs-track { display: flex; gap: var(--fs-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 20px; margin: 0 -2px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.fs-track::-webkit-scrollbar { display: none; }
.fs-track.drag { cursor: grabbing; scroll-snap-type: none; }
.fs-track.drag a { pointer-events: none; }
.fs-card { --c: var(--h1); --d: var(--d1); position: relative; flex: 0 0 calc((100% - 4px - (var(--fs-per) - 1) * var(--fs-gap)) / var(--fs-per)); aspect-ratio: 2 / 3; scroll-snap-align: start; border-radius: 10px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--d); box-shadow: 0 1px 2px rgba(15,23,42,.12), 0 14px 30px -12px rgba(15,23,42,.45); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.fs-card.h1 { --c: var(--h1); --d: var(--d1); } .fs-card.h2 { --c: var(--h2); --d: var(--d2); } .fs-card.h3 { --c: var(--h3); --d: var(--d3); }
.fs-card.h4 { --c: var(--h4); --d: var(--d4); } .fs-card.h5 { --c: var(--h5); --d: var(--d5); }
.fs-card:hover, .fs-card:focus-visible { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(15,23,42,.12), 0 26px 44px -14px color-mix(in srgb, var(--c) 55%, #0F172A); outline: none; }
.fs-card:focus-visible { box-shadow: 0 0 0 3px #93B4FF, 0 26px 44px -14px rgba(15,23,42,.5); }
.fs-pic { position: absolute; inset: 0 0 auto 0; height: 78%; z-index: -2; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.55) 66%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.55) 66%, transparent 100%); }
.fs-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transform: scale(1.02); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.fs-card:hover .fs-pic img, .fs-card:focus-visible .fs-pic img { transform: scale(1.1); }
.fs-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,.28) 0%, transparent 22%, transparent 44%, color-mix(in srgb, var(--d) 70%, transparent) 62%, var(--d) 86%); }
.fs-tint::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); }
.fs-top { position: absolute; inset: 12px 12px auto 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fs-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 3px; border-radius: 6px; background: rgba(15,23,42,.55); backdrop-filter: blur(6px); font-size: .68rem; font-weight: 700; }
.fs-badge i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--c); font-style: normal; font-weight: 800; font-size: .66rem; }
.fs-card.h3 .fs-badge i { color: #3B2A00; }
.fs-state { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .6rem; font-weight: 800; letter-spacing: .03em; background: rgba(15,23,42,.55); backdrop-filter: blur(6px); }
.fs-state.live { background: var(--live); }
.fs-state.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: fs-blink 1.5s ease-in-out infinite; }
@keyframes fs-blink { 50% { opacity: .35; } }
.fs-info { position: absolute; inset: auto 0 0 0; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.fs-genre { font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 55%, #fff); }
.fs-title { margin: 0; font: 800 1.02rem/1.2 var(--f); letter-spacing: -.015em; color: #fff; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-when { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .74rem; color: rgba(255,255,255,.86); }
.fs-when b { font-size: .92rem; font-weight: 800; color: #fff; }
.fs-when span { white-space: nowrap; }
.fs-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 2px; }
.fs-bar[hidden] { display: none; }
.fs-bar i { display: block; height: 100%; background: var(--c); border-radius: 4px; transition: width 1s linear; }
.fs-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s ease; font-size: .72rem; color: rgba(255,255,255,.88); }
.fs-more ul { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: none; }
.fs-more li { margin: 0; } .fs-more li b { font-weight: 700; color: #fff; }
.fs-more p { margin: 6px 0 0; font-weight: 700; color: color-mix(in srgb, var(--c) 45%, #fff); max-width: none; }
.fs-card:hover .fs-more, .fs-card:focus-visible .fs-more { max-height: 120px; opacity: 1; }
.fs-meter { position: relative; height: 3px; margin: 0 2px; border-radius: 3px; background: var(--line); }
.fs-meter i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--ink); transition: left .12s linear, width .12s linear; }
@media (max-width: 1100px) { .fs { --fs-per: 4; } }
@media (max-width: 860px) { .fs { --fs-per: 3; } }
@media (max-width: 600px) { .fs { --fs-per: 2.15; --fs-gap: 12px; } .fs-title { font-size: .92rem; } .fs-info { padding: 0 11px 12px; } .fs-more { display: none; } .fs-arrows { display: none; } }
@media (prefers-reduced-motion: reduce) { .fs-card, .fs-pic img, .fs-more, .fs-bar i { transition: none !important; } .fs-state.live::before { animation: none; } }
