/* /live, /live/directory and /live/:deal/:task — a broadcast product in the HeyData design language
   (marketing/site/DESIGN_LANGUAGE.md): light two-tone headlines, mono hairline pills, hairline rules, light cards
   without shadows, calm motion. Builds on /hd.css tokens and /shell.css. Uses --ink-mute from hd.css when present. */
:root { --lv-red: #e11d48; --lv-green: #22E58B; --lv-r: 14px; --lv-ease: cubic-bezier(.2, .7, .2, 1); }
.lv-page { --lv-mute: var(--ink-mute, #6c7c86); }
[data-theme="dark"] .lv-page, [data-theme="original"] .lv-page { --lv-mute: var(--ink-mute, #7f8c95); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- shared type */
.lv-pill { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.lv-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lv-red); }
.lv-h1 { margin: 14px 0 0; font: 400 clamp(32px, 3.8vw, 52px)/1.06 var(--sans); letter-spacing: -.035em; color: var(--ink); }
.lv-h1 .m, .lv-h2 .m { color: var(--lv-mute); }
.lv-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.lv-h2 { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 400 24px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.lv-h2 .n { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.lv-h2 a { margin-left: auto; font: 500 13px var(--sans); color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lv-h2 a:hover { color: var(--ink); }
.lv-h2 a svg { width: 14px; height: 14px; }
.lv-mono { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.lv-note { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.lv-note a { color: var(--ink-2); }

/* page frame: header, hairline rules, section rhythm */
.lv-page { max-width: 1440px; }
.lv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 8px 0 24px; }
.lv-head-stats { display: flex; gap: 24px; }
.lv-head-stats div { display: grid; gap: 4px; text-align: right; }
.lv-head-stats b { font: 400 28px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.lv-rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.lv-sec { padding-top: 40px; }
.lv-sec > .lv-h2 { margin-bottom: 18px; }

/* filter pills */
.lv-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 20px 0 0; }
.lv-filters::-webkit-scrollbar { display: none; }
.lv-filter { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.lv-filter:hover { color: var(--ink); border-color: var(--ink-3); }
.lv-filter[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.lv-filter .c { font: 500 11px var(--mono); opacity: .7; }
.lv-filter i { width: 6px; height: 6px; border-radius: 50%; background: var(--lv-red); }

/* ---------------------------------------------------------------- badges and chips over video */
.lv-badges { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; gap: 6px; }
.lv-live { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--lv-red); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .06em; }
.lv-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: lv-blink 1.6s infinite; }
@keyframes lv-blink { 50% { opacity: .35; } }
.lv-demo { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.35); color: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lv-demo.flat { border-color: var(--line-2); background: transparent; color: var(--ink-2); height: 20px; }
.lv-off { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .03em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lv-corner-tr { position: absolute; z-index: 3; top: 12px; right: 12px; }
.lv-corner-br { position: absolute; z-index: 3; bottom: 10px; right: 10px; }
.lv-corner-bl { position: absolute; z-index: 3; bottom: 10px; left: 10px; }

/* ---------------------------------------------------------------- media: poster + video with crossfade */
.lv-media { position: absolute; inset: 0; background: #0c0c0e; }
.lv-media img, .lv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-media video { opacity: 0; transition: opacity .6s var(--lv-ease); }
.lv-media video.on { opacity: 1; }
.lv-media .ic { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.22); background: var(--box, #18181b); }
.lv-media .ic svg { width: 28%; height: 28%; }

/* ---------------------------------------------------------------- featured: cinematic player + broadcast guide */
.lv-feat { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; padding-top: 24px; }
.lv-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0c0c0e; isolation: isolate; }
.lv-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 38%, transparent 60%), linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%); }
.lv-stage .hit { position: absolute; inset: 0; z-index: 2; }
.lv-stage-copy { position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; pointer-events: none; }
.lv-stage-copy > * { pointer-events: auto; }
.lv-stage-copy h2 { margin: 0; font: 400 clamp(24px, 2.6vw, 36px)/1.1 var(--sans); letter-spacing: -.03em; }
.lv-stage-copy p { margin: 8px 0 0; font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lv-watch { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: #0b0b0c; text-decoration: none; font: 600 14px var(--sans); transition: transform .2s var(--lv-ease); }
.lv-watch:hover { transform: translateY(-1px); }
.lv-watch svg { width: 14px; height: 14px; }
.lv-stage-nav { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; gap: 6px; }
.lv-stage-nav button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lv-stage-nav button:hover { background: rgba(0,0,0,.6); }
.lv-stage-nav svg { width: 14px; height: 14px; }
.lv-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.15); }
.lv-progress i { display: block; height: 100%; width: 0; background: #fff; }
.lv-progress i.run { width: 100%; transition: width 9s linear; }

.lv-guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; min-height: 0; }
.lv-guide-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lv-guide ol { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.lv-gi { width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; position: relative; }
.lv-gi:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lv-gi[aria-current="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lv-gi[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--lv-red); }
.lv-gi .th { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.lv-gi b { display: block; font: 500 14px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-gi span.s { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.lv-gi .p { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.lv-gi .v::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lv-red); margin-right: 5px; vertical-align: 1px; }

/* empty featured state */
.lv-empty { padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: grid; gap: 12px; justify-items: start; }
.lv-empty h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--sans); letter-spacing: -.03em; }
.lv-empty p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.lv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------------------------------------------------------------- channel cards */
.lv-grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.lv-card { min-width: 0; }
.lv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--lv-r); overflow: hidden; background: #0c0c0e; outline-offset: 3px; }
.lv-thumb .lv-media img { transition: transform .6s var(--lv-ease); }
.lv-card:hover .lv-thumb .lv-media img { transform: scale(1.03); }
.lv-card.off .lv-thumb .lv-media img { filter: grayscale(.9) brightness(.6); }
.lv-meta { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.lv-av { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .04em; flex: none; }
.lv-av.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lv-red); }
.lv-meta .t { display: block; font: 500 15px/1.3 var(--sans); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-meta .t:hover { text-decoration: underline; text-underline-offset: 3px; }
.lv-meta .s { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-spec-line { display: block; margin-top: 8px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
a.lv-tag:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------------------------------------------------------------- category tiles */
.lv-cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.lv-cats.row { grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); grid-template-columns: none; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.lv-cats.row::-webkit-scrollbar { display: none; }
.lv-cat { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.lv-cat .art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--lv-r); overflow: hidden; background: #18181b; isolation: isolate; }
.lv-cat .art .ph-pic img { filter: saturate(.75) contrast(1.05); }
.lv-cat .art .ph-pic, .lv-cat .art .ph-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--lv-ease); }
.lv-cat:hover .art .ph-pic img { transform: scale(1.04); }
.lv-cat .art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 55%); }
.lv-cat .art .lbl { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; color: #fff; font: 400 20px/1.15 var(--sans); letter-spacing: -.02em; }
.lv-cat .art .lv-badges { z-index: 2; }
.lv-cat .s { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.lv-cat .s b { font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- skeletons */
.lv-sk { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: var(--lv-r); }
.lv-sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 7%, transparent), transparent); animation: lv-shimmer 1.4s infinite; }
@keyframes lv-shimmer { to { transform: translateX(100%); } }
.lv-sk.vid { aspect-ratio: 16 / 9; }
.lv-sk.tall { aspect-ratio: 4 / 5; }
.lv-sk.line { height: 12px; border-radius: 6px; margin-top: 12px; width: 70%; }
.lv-sk.line.s { width: 45%; margin-top: 8px; }
.lv-sk.guide { min-height: 100%; border-radius: 18px; }
.lv-sk.text { height: 14px; border-radius: 7px; }

/* ---------------------------------------------------------------- channel page */
.lv-ch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - var(--sh-top)); }
.lv-ch-main { min-width: 0; padding: 16px clamp(16px, 2vw, 28px) 48px; }
.lv-player { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--sh-top) - 160px); width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; isolation: isolate; }
.lv-player .lv-media video { object-fit: contain; background: #000; }
.lv-player .lv-media img { filter: blur(0); }
.lv-player .state { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lv-player .state[hidden] { display: none; }
.lv-player .state b { font: 400 24px/1.2 var(--sans); letter-spacing: -.02em; }
.lv-player .state span { font-size: 14px; color: rgba(255,255,255,.75); max-width: 44ch; }
.lv-player .state svg { width: 44px; height: 44px; color: rgba(255,255,255,.5); }
.lv-spin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: lv-rot .9s linear infinite; }
@keyframes lv-rot { to { transform: rotate(360deg); } }
.lv-ctl { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 40px 14px 12px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.lv-player:hover .lv-ctl, .lv-player:focus-within .lv-ctl, .lv-player.idle-off .lv-ctl, .lv-player.paused .lv-ctl { opacity: 1; transform: none; }
.lv-ctl button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.lv-ctl button:hover { background: rgba(255,255,255,.14); }
.lv-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lv-ctl button svg { width: 18px; height: 18px; }
.lv-ctl .sp { flex: 1; }
.lv-ctl .lv-chip { background: rgba(255,255,255,.12); }
.lv-ctl .lv-live { height: 22px; }

.lv-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lv-bar .lv-av { width: 56px; height: 56px; font-size: 18px; }
.lv-bar h1 { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.lv-bar .meta { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.lv-bar .meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.lv-bar .rt { display: grid; justify-items: end; gap: 10px; }
.lv-bar .btns { display: flex; gap: 8px; align-items: center; }
.lv-bar .stats { display: flex; gap: 14px; font: 500 12px var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.lv-bar .stats .v { color: var(--lv-red); }
.lv-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 14px var(--sans); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.lv-btn:hover { border-color: var(--ink-3); }
.lv-btn.go { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
[data-theme="original"] .lv-btn.go { background: var(--lv-red); border-color: var(--lv-red); color: #fff; }
.lv-btn.go:hover { opacity: .9; }
.lv-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lv-btn svg { width: 15px; height: 15px; }
.lv-btn.icon { width: 44px; height: 44px; padding: 0; justify-content: center; }
.lv-btn.done { border-color: var(--lv-green); color: var(--lv-green); }
[data-theme="light"] .lv-btn.done { border-color: #0FA968; color: #0FA968; }

.lv-below { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 24px; }
.lv-card2 { border: 1px solid var(--line); border-radius: var(--lv-r); background: var(--surface); padding: 20px; min-width: 0; }
.lv-card2 > .lv-pill { margin-bottom: 14px; }
.lv-kv { display: grid; margin: 0; }
.lv-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lv-kv div:first-child { border-top: 0; padding-top: 0; }
.lv-kv dt { color: var(--ink-3); } .lv-kv dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.lv-num { list-style: none; margin: 0; padding: 0; display: grid; }
.lv-num li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lv-num li:first-child { border-top: 0; padding-top: 0; }
.lv-num li span { font: 500 12px var(--mono); color: var(--ink-3); padding-top: 2px; }
.lv-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 72px; margin: 4px 0 8px; }
.lv-week i { display: block; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); height: var(--pct, 6%); min-height: 4px; }
.lv-week i.hi { background: var(--lv-green); }
[data-theme="light"] .lv-week i.hi { background: #0FA968; }
.lv-week-lbl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font: 500 10.5px var(--mono); color: var(--ink-3); text-align: center; text-transform: uppercase; }
.lv-clips-sec { padding-top: 32px; }
.lv-clips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.lv-clip { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.lv-clip .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0c0c0e; }
.lv-clip .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-clip span.c { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chat */
.lv-chat { position: sticky; top: var(--sh-top); height: calc(100vh - var(--sh-top)); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg); min-width: 0; }
.lv-chat-head { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.lv-msgs { flex: 1; overflow-y: auto; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.lv-msg { position: relative; padding: 5px 8px; border-radius: 8px; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.lv-msg:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.lv-msg .tm { display: none; margin-right: 6px; font: 500 11px var(--mono); color: var(--ink-3); }
.lv-msg:hover .tm { display: inline; }
.lv-msg b.lv-chat-name { font-weight: 600; color: var(--color, var(--ink)); }
.lv-msg .mod { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-right: 4px; border-radius: 3px; background: var(--lv-green); color: #04130b; font: 700 9px/1 var(--sans); letter-spacing: .05em; vertical-align: 1px; }
.lv-msg.sys { display: flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.lv-msg.sys::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); flex: none; }
.lv-msg .mx { display: none; position: absolute; right: 6px; top: 4px; gap: 4px; }
.lv-msg:hover .mx { display: inline-flex; }
.lv-msg .mx button { height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink-2); font: 500 11px var(--sans); cursor: pointer; }
.lv-chat-empty { margin: auto; padding: 24px; text-align: center; color: var(--ink-3); font-size: 14px; display: grid; gap: 6px; }
.lv-chat-empty b { color: var(--ink-2); font-weight: 500; }
.lv-send { flex: none; padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lv-send textarea { width: 100%; min-height: 44px; max-height: 120px; resize: none; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 14px/1.4 var(--sans); }
.lv-send textarea:focus { outline: none; border-color: var(--ink-3); }
.lv-send .row { display: flex; justify-content: space-between; align-items: center; }
.lv-send .err { font-size: 13px; color: var(--bad, #e5484d); min-height: 0; }
.lv-send .err:empty { display: none; }
.lv-send .lv-btn { height: 34px; }
.lv-send .wide { width: 100%; justify-content: center; }

/* theater mode: player full width, no rail */
body.lv-theater .lv-ch-main { padding: 0 0 48px; }
body.lv-theater .lv-player { border-radius: 0; max-height: calc(100vh - var(--sh-top)); }
body.lv-theater .lv-bar, body.lv-theater .lv-below, body.lv-theater .lv-clips-sec { margin: 0 clamp(16px, 2vw, 28px); }

/* ---------------------------------------------------------------- directory */
.lv-tabs { display: flex; gap: 8px; padding-top: 20px; }

/* focus */
.lv-page a:focus-visible, .lv-page button:focus-visible, .lv-ch a:focus-visible, .lv-ch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* motion */
@media (prefers-reduced-motion: reduce) {
  .lv-live::before, .lv-sk::after, .lv-spin { animation: none; }
  .lv-media video, .lv-thumb .lv-media img, .lv-cat .art .ph-pic img, .lv-progress i.run { transition: none; }
}

/* responsive */
@media (max-width: 1180px) { .lv-feat { grid-template-columns: minmax(0, 1fr) 300px; } .lv-below { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
  .lv-feat { grid-template-columns: 1fr; }
  .lv-guide ol { max-height: 300px; }
  .lv-ch { grid-template-columns: 1fr; }
  .lv-chat { position: static; height: 60vh; border-left: 0; border-top: 1px solid var(--line); }
  .lv-below { grid-template-columns: 1fr; }
  .lv-head-stats { display: none; }
}
@media (max-width: 640px) {
  .lv-stage-copy { left: 16px; right: 16px; bottom: 16px; }
  .lv-stage-copy h2 { font-size: 20px; }
  .lv-watch { height: 38px; padding: 0 14px; }
  .lv-bar { grid-template-columns: auto minmax(0, 1fr); }
  .lv-bar .lv-av { width: 44px; height: 44px; font-size: 15px; }
  .lv-bar .rt { grid-column: 1 / -1; justify-items: start; }
  .lv-player { border-radius: 12px; }
  .lv-ch-main { padding: 0 0 32px; }
  .lv-ch-main .lv-player { border-radius: 0; }
  .lv-bar, .lv-below, .lv-clips-sec { margin: 0 16px; }
}

/* ---------------------------------------------------------------- data spec (channel page) */
.lv-spec { display: grid; gap: 0; margin: 0; }
.lv-spec div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lv-spec div:first-child { border-top: 0; padding-top: 0; }
.lv-spec dt { font: 500 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lv-spec dd { margin: 0; color: var(--ink); }
.lv-spec dd small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.lv-mods { list-style: none; margin: 0; padding: 0; display: grid; }
.lv-mods li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lv-mods li:first-child { border-top: 0; padding-top: 0; }
.lv-mods li::before { content: ""; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--lv-green); }
[data-theme="light"] .lv-mods li::before { background: #0FA968; }
.lv-mods li.req::before { background: transparent; border: 1px solid var(--ink-3); }
.lv-mods small { display: block; color: var(--ink-3); font-size: 12.5px; }
.lv-buy { display: grid; gap: 10px; }
.lv-buy .price { font: 400 30px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.lv-buy .lic { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lv-buy .lv-btn { width: 100%; justify-content: center; }
.lv-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.lv-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lv-checks li::before { content: "✓"; margin-right: 6px; color: var(--lv-green); }
[data-theme="light"] .lv-checks li::before { color: #0FA968; }

/* spec sheet drawer */
.lv-drawer { position: fixed; inset: 0; z-index: 1500; }
.lv-drawer[hidden] { display: none; }
.lv-drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.lv-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; padding: 24px 28px 40px; display: grid; align-content: start; gap: 22px; }
.lv-drawer .panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lv-drawer .panel h2 { margin: 10px 0 0; font: 400 28px/1.1 var(--sans); letter-spacing: -.03em; }
.lv-drawer .panel h3 { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lv-x { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.lv-x svg { width: 16px; height: 16px; }

/* helpers */
.lv-feat.one { grid-template-columns: 1fr; }
.lv-foot-rule { margin-top: 56px; }
.lv-foot { padding: 18px 0 8px; }
.lv-gap { margin: 18px 0 14px; }
.lv-sk-av { width: 56px; height: 56px; border-radius: 10px; }
.lv-sk-w60 { width: 60%; margin-top: 10px; }
.lv-sk-w40 { width: 40%; margin-top: 10px; }
.lv-card2 .lv-sk.text { margin-top: 12px; }
.lv-bar-stats { margin-top: 10px; }
.lv-bar .lv-av { border-radius: 12px; font-size: 15px; }
.lv-ctl .i-play { display: none; }
.lv-player.paused .lv-ctl .i-play { display: block; }
.lv-player.paused .lv-ctl .i-pause { display: none; }
.lv-ctl .lv-live[hidden] { display: none; }

/* badges sit under the picture's corner on cards (the stream's own HUD is at the top) and inline above the stage title */
.lv-thumb .lv-badges { top: auto; bottom: 10px; left: 10px; }
.lv-thumb .lv-corner-bl { left: auto; right: 10px; bottom: 38px; }
.lv-badges.inline { position: static; margin-bottom: 12px; }
.sh-item .ic.plain img.lv-rt { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; display: block; }
.lv-bar .lv-av.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--lv-red); }
@media (max-width: 640px) {
  .lv-stage { aspect-ratio: 4 / 3; }
  .lv-stage-copy { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lv-stage-copy p { font-size: 11px; }
  .lv-badges.inline { margin-bottom: 8px; }
}

/* buyer: full spec sheet link + shortlist state (src/market/buyer.js, public/js/buyer-actions.js) */
.lv-speclink { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.lv-btn[aria-pressed="true"] { border-color: var(--ink); }
.lv-buy .by-note { flex-basis: 100%; }

/* ---- chat: pinned "About this feed", activity summary, empty state, sign-in call to action ---- */
.lv-chat-about { flex: none; margin: 12px 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.lv-chat-about p { margin: 0; color: var(--ink); font-size: 14px; }
.lv-chat-about ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.lv-chat-act { flex: none; margin: 10px 12px 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; gap: 8px; }
.lv-chat-act p { margin: 0; font: 500 12px var(--mono); letter-spacing: .02em; color: var(--ink-2); }
.lv-chat-act p span { color: var(--ink-3); }
.lv-tl { position: relative; height: 10px; border-bottom: 1px solid var(--line); }
.lv-tl i { position: absolute; left: var(--x, 0%); bottom: 0; width: 2px; height: 8px; border-radius: 1px; background: var(--lv-green); transform: translateX(-1px); }
[data-theme="light"] .lv-tl i { background: #0FA968; }
.lv-chat-empty .lv-pill { justify-self: center; }
.lv-chat-empty .rule { font: 500 11.5px var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.lv-chat-cta { display: grid; gap: 10px; }
.lv-chat-cta p { margin: 0; font-size: 13px; color: var(--ink-2); }
.lv-chat-cta .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-chat-cta .lv-btn { height: 44px; justify-content: center; }

/* ---- /live: activity sidebar (a right column on wide screens, a collapsible section on phones) ---- */
.lv-main { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .lv-main:has(.lv-activity:not([hidden])) { grid-template-columns: minmax(0, 1fr) 300px; } }
.lv-activity { order: -1; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 6px 6px 10px; }
@media (min-width: 1100px) { .lv-activity { order: 0; position: sticky; top: calc(var(--sh-top) + 16px); margin-top: 18px; } }
.lv-activity summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 10px; cursor: pointer; list-style: none; }
.lv-activity summary::-webkit-details-marker { display: none; }
.lv-activity ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lv-activity li a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lv-activity li a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lv-activity .ic { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.lv-activity .ic svg { width: 14px; height: 14px; }
.lv-activity .k-live .ic { color: #e11d48; }
.lv-activity .k-clip .ic { color: var(--lv-green); }
[data-theme="light"] .lv-activity .k-clip .ic { color: #0FA968; }
.lv-activity .tx { display: grid; gap: 2px; min-width: 0; }
.lv-activity .tx b { font-weight: 500; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.lv-activity .tx .lv-tag { justify-self: start; }
.lv-activity .lv-note { margin: 8px 10px 0; font-size: 12px; }
.lv-tl-cap { display: flex; justify-content: space-between; font: 500 10px var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
/* the empty state sits at the top of the message list, so it never collides with the pinned cards on short screens */
.lv-msgs:has(.lv-chat-empty) { justify-content: flex-start; }
.lv-chat-empty { margin: 8px auto auto; }
@media (max-width: 960px) { .lv-chat { height: auto; min-height: 420px; max-height: 80vh; } .lv-msgs { min-height: 160px; } }

/* phones: every link and button is at least a 44px tap target */
@media (max-width: 700px) {
  .lv-page a, .lv-page button { min-height: 44px; }
  .lv-page h2 a, .lv-page .lv-h2 a { display: inline-flex; align-items: center; min-height: 44px; }
}
