:root {
  --bg: #f6efe2; --bg-2: #efe5d3; --card: #fffaf0; --text: #2a211b; --muted: #7b6c5d;
  --line: #e2d5bf; --accent: #9e2a2b; --accent-soft: #f3dcd3; --gold: #a97a2c; --gold-soft: #f1e3c4;
  --m: #5b7c99; --f: #b05c6f; --ok: #3f7d4f;
  --serif: "Noto Serif", Cambria, "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --shadow: 0 1px 2px #3b2a1a14, 0 6px 20px #3b2a1a10;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16120e; --bg-2: #1e1914; --card: #231d17; --text: #efe5d6; --muted: #a79682;
    --line: #3a3128; --accent: #da6d5e; --accent-soft: #3d2420; --gold: #d4a857; --gold-soft: #3a2f1c;
    --m: #86a8c6; --f: #d68b9c; --ok: #7cc28d; --shadow: 0 1px 2px #0006, 0 6px 20px #0004;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
         font: 600 18px var(--serif); white-space: nowrap; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .seal { fill: var(--accent); }
.brand .mark { fill: none; stroke: #fff6e6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); white-space: nowrap; font-size: 15px; }
nav a:hover { color: var(--text); background: var(--bg-2); }
nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.who { font-size: 13px; white-space: nowrap; }
.who.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
#aa { font-family: var(--serif); font-weight: 600; padding: 6px 10px; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 6px 10px; }
  .brand { flex: 1; }
  nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 8px; }
}

/* Chung */
main { padding: 24px 0 60px; }
main.full { padding: 0; }
button, .btn { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--gold); }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.ghost { background: transparent; border-color: transparent; }
.ghost:hover { background: var(--bg-2); border-color: transparent; }
.danger { color: #b3261e; }
.small { font-size: 13px; padding: 5px 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.fade-in { animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
/* Hiện dần khi cuộn tới */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in.pcard:hover, .reveal.in.card:hover { transition-delay: 0s; }
.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { box-shadow: 0 2px 4px #3b2a1a14, 0 12px 32px #3b2a1a1a; }
.av img { transition: transform .45s var(--ease); }
.pcard:hover .av img, .chip:hover .av img, .gio:hover .av img { transform: scale(1.12); }
.chip { transition: transform .2s var(--ease), border-color .2s; }
.chip:hover { transform: translateY(-2px); }
.gio { transition: transform .25s var(--ease), border-color .2s; }
.gio:hover { transform: translateX(4px); }
.ornament { animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; letter-spacing: 9px; } }

/* Ảnh đại diện */
.av { flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--serif);
      color: #fff; font-weight: 600; background: var(--m); position: relative; }
.av.f { background: var(--f); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.dead { filter: saturate(.55); }

/* Trang chủ */
.hero-home { text-align: center; padding: 30px 16px 10px; }
.hero-home h1 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 6px; }
.hero-home .origin { color: var(--gold); font-family: var(--serif); font-style: italic; }
.hero-home .intro { max-width: 640px; margin: 16px auto 22px; color: var(--muted); white-space: pre-line; }
.ornament { color: var(--gold); letter-spacing: 6px; margin: 8px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 26px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: 600 28px var(--serif); color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .home-grid { grid-template-columns: 1fr; } }

/* Danh sách người (chip + thẻ) */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px;
        background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.chip:hover { border-color: var(--gold); }
.chip .av { width: 28px; height: 28px; font-size: 13px; }
.chip .x { border: 0; background: none; padding: 0 0 0 4px; color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line);
         border-radius: 14px; text-decoration: none; color: var(--text); transition: transform .2s var(--ease), border-color .2s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--gold); }
.pcard .av { width: 52px; height: 52px; font-size: 20px; }
.pcard b { display: block; font-family: var(--serif); font-weight: 600; }
.pcard span { font-size: 13px; color: var(--muted); }
.gen-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font: 600 16px var(--serif); color: var(--gold); }
.gen-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search { font: inherit; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
          color: var(--text); min-width: 0; width: 280px; max-width: 100%; }

/* Cây gia phả */
.tree-wrap { position: relative; height: calc(100vh - 61px); height: calc(100dvh - 61px); overflow: hidden;
             background: radial-gradient(circle at 50% 0, var(--card), var(--bg) 70%); }
@media (max-width: 760px) { .tree-wrap { height: calc(100dvh - 100px); } }
.tree-wrap svg { width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; display: block; }
.tree-wrap svg.dragging { cursor: grabbing; }
.tree-tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; z-index: 2; }
.tree-tools > * { pointer-events: auto; box-shadow: var(--shadow); }
.zoom { position: absolute; right: 12px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.zoom button { width: 42px; height: 42px; justify-content: center; font-size: 18px; padding: 0; box-shadow: var(--shadow); }
.legend { position: absolute; left: 12px; bottom: 16px; font-size: 12px; color: var(--muted); background: var(--card);
          border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; gap: 12px; z-index: 2; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.node { cursor: pointer; }
.node .inner { animation: nodeIn .55s var(--ease) both; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes nodeIn { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.node .inner { transition: transform .2s var(--ease); }
.node:hover .inner { transform: translateY(-3px); }
.node rect.box { fill: var(--card); stroke: var(--line); stroke-width: 1.2; transition: stroke .2s; }
.node:hover rect.box { stroke: var(--gold); stroke-width: 2; }
.node .stripe { fill: var(--m); }
.node.f .stripe { fill: var(--f); }
.node.link rect.box { stroke-dasharray: 5 4; }
.node .nm { font: 600 13.5px var(--serif); fill: var(--text); }
.node .yr { font: 12px var(--sans); fill: var(--muted); }
.node .ini { font: 600 18px var(--serif); fill: #fff; }
.node .avbg { fill: var(--m); } .node.f .avbg { fill: var(--f); }
.node.dead .avbg, .node.dead image { filter: saturate(.5); }
.node.hl rect.box { stroke: var(--accent); stroke-width: 3; animation: hl 1.2s ease 2; }
@keyframes hl { 50% { stroke-width: 7; } }
.edge { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: .75; }
.couple { stroke: var(--accent); stroke-width: 2; }
.edge, .couple { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease forwards; animation-delay: var(--d, .1s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.band { fill: var(--bg-2); opacity: .55; }
.band-label { font: 600 13px var(--serif); fill: var(--gold); }

/* Trang cá nhân */
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-size: 15px; }
.phero { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.phero .av { width: 128px; height: 128px; font-size: 48px; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--gold); cursor: pointer; }
.phero .av .cam { position: absolute; inset: auto 0 0; background: #0007; font: 12px var(--sans); padding: 4px 0 8px;
                  text-align: center; opacity: 0; transition: .2s; }
.phero .av:hover .cam { opacity: 1; }
.phero h1 { font-size: clamp(26px, 5vw, 36px); margin: 0; }
.phero .other { color: var(--gold); font-family: var(--serif); font-style: italic; }
.phero .life { color: var(--muted); margin-top: 4px; }
.pcols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .pcols { grid-template-columns: 1fr; } }
.pcols > div, .pcols > aside { display: grid; gap: 18px; min-width: 0; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }
.gio-badge { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 8px; background: var(--gold-soft);
             color: var(--text); font-size: 14px; }
.bio { white-space: pre-line; font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.rel h3 { font-size: 14px; font-family: var(--sans); color: var(--muted); font-weight: 600; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.rel h3:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block;
               transition: transform .3s var(--ease); background: var(--bg-2); }
.gallery img:hover { transform: scale(1.03); }

/* Kỷ niệm */
.memory { padding: 14px 0; border-top: 1px solid var(--line); }
.memory:first-child { border-top: 0; padding-top: 0; }
.memory .txt { white-space: pre-line; font-family: var(--serif); font-size: 16.5px; }
.memory .meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.memory img { max-width: 100%; max-height: 360px; border-radius: 10px; margin-top: 8px; cursor: zoom-in; display: block; }
.memory .about { font-size: 13px; }
textarea, input[type=text], input[type=password], select { font: inherit; width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--text); }
textarea { resize: vertical; min-height: 90px; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }

/* Lịch giỗ */
.gio-list { display: grid; gap: 10px; }
.gio { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 1px solid var(--line);
       border-radius: 14px; text-decoration: none; color: var(--text); }
.gio:hover { border-color: var(--gold); }
.gio .cal { flex: none; width: 64px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.gio .cal .mo { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 0; }
.gio .cal .dy { font: 600 24px var(--serif); padding: 2px 0 0; }
.gio .cal .lu { font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.gio .av { width: 46px; height: 46px; font-size: 18px; }
.gio .grow { flex: 1; min-width: 0; }
.gio b { font-family: var(--serif); }
.gio .when { font-size: 14px; color: var(--muted); }
.gio .left { flex: none; text-align: right; font-size: 13px; color: var(--muted); }
.gio .left b { display: block; font-size: 20px; color: var(--accent); }
.gio.soon { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--card) 60%); }

/* Dòng thời gian */
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl .decade { font: 600 20px var(--serif); color: var(--gold); margin: 26px 0 10px -28px; background: var(--bg); position: relative; }
.tl .item { position: relative; margin-bottom: 12px; }
.tl .item::before { content: ""; position: absolute; left: -24px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
                    background: var(--card); border: 2px solid var(--gold); }
.tl .item.birth::before { border-color: var(--ok); }
.tl .item.death::before { border-color: var(--muted); background: var(--muted); }
.tl .item.event::before { border-color: var(--accent); background: var(--accent); }
.tl .item .card { padding: 12px 16px; }
.tl .date { font-size: 13px; color: var(--muted); }
.tl .title { font-family: var(--serif); font-weight: 600; }
.tl .text { white-space: pre-line; margin-top: 4px; }

/* Lịch sử */
.hist { display: grid; gap: 8px; }
.hist .h { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hist .h .grow { flex: 1; min-width: 0; }
.hist .h .t { font-size: 13px; color: var(--muted); }
.hist .h .d { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.tag.them { background: #3f7d4f22; color: var(--ok); } .tag.xoa { background: #b3261e1c; color: #b3261e; }
.tag.sua { background: var(--gold-soft); color: var(--gold); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: #1a120b88; display: grid; place-items: center; padding: 16px;
         animation: fadeIn .2s; backdrop-filter: blur(3px); }
.modal form { background: var(--card); border-radius: 18px; width: min(620px, 100%); max-height: calc(100dvh - 32px);
              display: flex; flex-direction: column; box-shadow: 0 20px 60px #0005; }
.modal .mh { padding: 18px 20px 6px; display: flex; align-items: center; }
.modal .mh h2 { margin: 0; flex: 1; font-size: 20px; }
.modal .mb { padding: 10px 20px; overflow-y: auto; display: grid; gap: 14px; }
.modal .mf { padding: 12px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { padding: 8px 16px; cursor: pointer; margin: 0; color: var(--text); font-size: 15px; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: #0d0906f2; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }
.lb img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lb .bar { position: absolute; top: 0; left: 0; right: 0; padding: 12px; display: flex; gap: 8px; justify-content: flex-end; }
.lb .bar button { background: #fff2; color: #fff; border: 0; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff2; color: #fff; border: 0; width: 46px; height: 60px;
           justify-content: center; font-size: 26px; }
.lb .prev { left: 10px; } .lb .next { right: 10px; }

/* Đăng nhập */
.login { max-width: 380px; margin: 8vh auto; text-align: center; }
.login .card { display: grid; gap: 14px; text-align: left; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg);
         padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .3s var(--ease); pointer-events: none; z-index: 70; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media print {
  .top, .tree-tools, .zoom, .legend, button { display: none !important; }
  .tree-wrap { height: 100vh; background: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .edge, .couple { stroke-dashoffset: 0; }
  .reveal, .node .inner { opacity: 1; transform: none; }
}

/* ===== Chế độ chữ lớn (nút Aa) ===== */
html.big body { font-size: 19px; }
html.big button, html.big .btn { font-size: 18px; padding: 11px 16px; min-height: 46px; }
html.big .small { font-size: 16px; min-height: 40px; }
html.big nav a { font-size: 18px; padding: 9px 14px; }
html.big .who { font-size: 16px; }
html.big .muted { color: var(--text); opacity: .8; }
html.big .pcard span, html.big .stat span, html.big .memory .meta, html.big .gio .when, html.big .gio .left,
html.big .tl .date, html.big .hist .h .t, html.big .hist .h .d, html.big .field label, html.big .field .hint,
html.big .legend, html.big .tag, html.big .memory .about { font-size: 16px; }
html.big .chip { font-size: 17px; } html.big .chip .av { width: 34px; height: 34px; }
html.big dl.info { font-size: 18px; }
html.big .bio, html.big .memory .txt { font-size: 19px; }
html.big textarea, html.big input[type=text], html.big input[type=password], html.big select, html.big .search { font-size: 18px; padding: 12px 14px; }
html.big .node .nm { font-size: 16px; } html.big .node .yr { font-size: 14px; }
html.big .band-label { font-size: 16px; }
html.big .brand { font-size: 21px; }
html.big h2 { font-size: 26px; } html.big h3 { font-size: 20px; }

/* ===== Cây: chế độ xem, thu gọn nhánh, trình chiếu ===== */
.tmode { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tree-tools > .tmode { box-shadow: none; }
.tmode > * { box-shadow: var(--shadow); }
.seg2 { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg2 button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; color: var(--muted); box-shadow: none; font-size: 14px; }
.seg2 button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip.focus { background: var(--card); border-color: var(--accent); }
.toggle { cursor: pointer; }
.toggle circle { fill: var(--card); stroke: var(--gold); stroke-width: 1.5; transition: fill .15s; }
.toggle text { font: 600 12px var(--sans); fill: var(--gold); pointer-events: none; }
.toggle:hover circle { fill: var(--gold-soft); }
.node.focus rect.box { stroke: var(--accent); stroke-width: 2.5; }
.tree-wrap:fullscreen { height: 100vh; background: var(--bg); }
.tree-wrap.tv .tree-tools, .tree-wrap.tv .zoom, .tree-wrap.tv .legend { display: none; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px 18px; z-index: 3; display: flex; gap: 18px; align-items: center;
          background: linear-gradient(transparent, #1a120bd9 35%); color: #fff6e6; animation: fadeIn .3s; }
.tv-bar .av { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 3px #fff6e6; }
.tv-bar h2 { margin: 0 0 4px; color: #fff6e6; font-size: 28px; }
.tv-bar h2 small { font-size: 18px; font-weight: 400; opacity: .85; }
.tv-bar .sub { opacity: .85; font-size: 17px; }
.tv-bar .ctl { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.tv-bar .ctl .cnt { opacity: .7; margin-right: 6px; font-size: 14px; }
.tv-bar .ctl button { background: #fff2; color: #fff; border: 0; font-size: 18px; width: 44px; height: 44px; justify-content: center; padding: 0; }
.tv-bar .ctl button:hover { background: #fff4; }
@media (max-width: 760px) {
  .tv-bar { padding: 14px; gap: 12px; } .tv-bar .av { width: 56px; height: 56px; } .tv-bar h2 { font-size: 20px; } .tv-bar .sub { font-size: 14px; }
  .tv-bar .ctl .cnt { display: none; }
}
