/* LilliBlush Videos — public site. Light/dark themes, desktop sidebar, mobile bottom bar. */
:root {
  --bg: #ffffff; --bg2: #f2f2f2; --bg3: #e5e5e5; --text: #0f0f0f; --muted: #606060; --line: #e5e5e5; --card: #ffffff;
  --brand: #e91e63; --brand2: #7b1fa2; --chip: #0f0f0f; --chip-t: #ffffff; --link: #065fd4; --shadow: 0 4px 32px rgba(0,0,0,.12);
  --top: 56px; --side: 240px; --mini: 72px;
  font-family: Roboto, 'Segoe UI', 'Nirmala UI', 'Noto Sans Kannada', Arial, sans-serif; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0f0f0f; --bg2: #272727; --bg3: #3f3f3f; --text: #f1f1f1; --muted: #aaaaaa; --line: #3f3f3f; --card: #212121;
  --chip: #f1f1f1; --chip-t: #0f0f0f; --link: #3ea6ff; --shadow: 0 4px 32px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0f0f0f; --bg2: #272727; --bg3: #3f3f3f; --text: #f1f1f1; --muted: #aaaaaa; --line: #3f3f3f; --card: #212121;
  --chip: #f1f1f1; --chip-t: #0f0f0f; --link: #3ea6ff; --shadow: 0 4px 32px rgba(0,0,0,.6); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 14px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--text); }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.ic.flip { transform: rotate(180deg); }
.ic.big { width: 80px; height: 80px; opacity: .5; }
.ic.brand { fill: var(--brand); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* buttons */
.ib { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.ib:hover { background: var(--bg2); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--bg2); font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--bg3); }
.btn .ic { width: 22px; height: 22px; margin-left: -4px; }
.btn.primary { background: var(--link); color: #fff; } .btn.primary:disabled { background: var(--bg2); color: var(--muted); cursor: default; }
.btn.ghost { background: none; } .btn.ghost:hover { background: var(--bg2); }
.btn.sub { background: var(--chip); color: var(--chip-t); } .btn.sub.on { background: var(--bg2); color: var(--text); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* avatars */
.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.av.xs { width: 24px; height: 24px; font-size: 11px; } .av.sm { width: 28px; height: 28px; font-size: 13px; } .av.md { width: 40px; height: 40px; }
.av.xl { width: 128px; height: 128px; font-size: 56px; } .av.own { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }

/* ── top bar ── */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; background: var(--bg); }
.top-l { display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 6px; padding: 8px 4px; }
.logo img { width: 30px; height: 30px; } .logo b { font-size: 19px; letter-spacing: -.6px; } .logo sup { font-size: 10px; color: var(--muted); align-self: flex-start; margin-top: 2px; }
.srch { flex: 0 1 732px; display: flex; align-items: center; gap: 8px; }
.srch-back { display: none; }
.srch-box { position: relative; flex: 1; display: flex; align-items: center; height: 40px; border: 1px solid var(--bg3); border-right: 0; border-radius: 40px 0 0 40px; padding: 0 4px 0 16px; background: var(--bg); }
.srch-box:focus-within { border-color: var(--link); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.srch-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.srch-x { width: 32px; height: 32px; visibility: hidden; } .srch-x.on { visibility: visible; }
.srch-go { height: 40px; width: 64px; border: 1px solid var(--bg3); border-radius: 0 40px 40px 0; background: var(--bg2); display: grid; place-items: center; margin-left: -8px; }
.mic { background: var(--bg2); }
.sugg { position: absolute; left: -1px; right: -66px; top: 44px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 0; display: none; z-index: 60; }
.sugg.on { display: block; }
.sg { display: flex; gap: 14px; align-items: center; padding: 6px 16px; cursor: pointer; font-size: 16px; font-weight: 500; }
.sg:hover, .sg.sel { background: var(--bg2); } .sg .ic { width: 20px; color: var(--muted); }
.top-r { display: flex; align-items: center; gap: 8px; }
.top-r .create { width: auto; padding: 0 14px 0 10px; border-radius: 18px; background: var(--bg2); gap: 4px; display: inline-flex; height: 36px; font-weight: 500; }
.srch-open { display: none; }

/* ── sidebar / drawer / bottom bar ── */
.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); overflow-y: auto; padding: 12px; z-index: 40; background: var(--bg); scrollbar-width: thin; }
.side a { display: flex; align-items: center; gap: 24px; height: 40px; padding: 0 12px; border-radius: 10px; white-space: nowrap; overflow: hidden; }
.side a:hover { background: var(--bg2); } .side a.on { background: var(--bg2); font-weight: 600; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; } .side h4 { margin: 6px 12px 4px; font-size: 16px; }
.side .dot { width: 24px; display: grid; place-items: center; } .side .dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.side-foot { color: var(--muted); font-size: 12px; padding: 12px; }
main { padding: calc(var(--top) + 8px) 24px 40px calc(var(--side) + 24px); min-height: 100vh; }
body.mini .side { width: var(--mini); padding: 4px; } body.mini .side a { flex-direction: column; gap: 4px; height: 74px; justify-content: center; font-size: 10px; padding: 0; }
body.mini .side hr, body.mini .side h4, body.mini .side #sideCats, body.mini .side-foot { display: none; } body.mini main { padding-left: calc(var(--mini) + 24px); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; display: none; }
.bnav { display: none; }
@media (max-width: 1312px) {
  .side { width: var(--mini); padding: 4px; } .side a { flex-direction: column; gap: 4px; height: 74px; justify-content: center; font-size: 10px; padding: 0; }
  .side hr, .side h4, .side #sideCats, .side-foot { display: none; } main { padding-left: calc(var(--mini) + 24px); }
}
/* watch page: no fixed sidebar, menu opens a drawer */
body[data-page="watch"] .side, body[data-page="shorts"] .side:not(*) { display: none; }
body[data-page="watch"] main { padding-left: 24px; }
body.drawer .side { display: block !important; width: var(--side); padding: 12px; z-index: 55; box-shadow: var(--shadow); }
body.drawer .side a { flex-direction: row; gap: 24px; height: 40px; justify-content: flex-start; font-size: 14px; padding: 0 12px; }
body.drawer .side hr, body.drawer .side h4, body.drawer .side #sideCats, body.drawer .side-foot { display: block; }
body.drawer .scrim { display: block; }
@media (max-width: 792px) {
  .side { display: none; } main { padding: calc(var(--top) + 4px) 0 72px 0; } body.mini main { padding-left: 0; }
  body[data-page="watch"] main { padding: var(--top) 0 72px; }
  .bnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 56px; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); z-index: 50; }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; gap: 2px; } .bnav a.on { font-weight: 700; }
  .srch { display: none; } .srch-open { display: grid; } .mic { display: none; } .top-r .create span { display: none; } .top-r .create { padding: 0 8px; }
  body.srch-on .srch { display: flex; position: fixed; inset: 0 0 auto 0; height: var(--top); background: var(--bg); padding: 0 8px; z-index: 70; }
  body.srch-on .srch-back { display: grid; } .sugg { right: -60px; }
  .logo b { font-size: 18px; } .top { padding: 0 8px; gap: 4px; }
}

/* ── chips ── */
.chips { position: sticky; top: var(--top); z-index: 30; background: var(--bg); display: flex; gap: 12px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg2); display: inline-flex; align-items: center; font-weight: 500; }
.chip:hover { background: var(--bg3); } .chip.on { background: var(--chip); color: var(--chip-t); }
@media (max-width: 792px) { .chips { padding: 10px 12px; } }

/* ── video cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; padding: 12px 0 24px; }
@media (min-width: 2200px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 792px) { .grid { grid-template-columns: 1fr; gap: 24px; } .grid .vc-th { border-radius: 0; } .grid .vc-body { padding: 0 12px; } }
@media (min-width: 560px) and (max-width: 792px) { .grid { grid-template-columns: 1fr 1fr; padding: 12px; gap: 24px 12px; } .grid .vc-th { border-radius: 12px; } .grid .vc-body { padding: 0; } }
.vc { min-width: 0; position: relative; }
.vc-th { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.vc-th img, .vc-pv { width: 100%; height: 100%; object-fit: cover; display: block; transition: border-radius .2s; }
.vc-th.vc-portrait img, .vc-th.vc-portrait .vc-pv { object-fit: contain; background: #000; }
.vc-th.vc-portrait::before { content: ''; position: absolute; inset: -20px; background: var(--blur, none); }
.vc-pv { position: absolute; inset: 0; background: #000; }
.vc-th:hover { border-radius: 0; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 500; padding: 1px 4px; border-radius: 4px; display: flex; align-items: center; gap: 2px; z-index: 2; }
.dur .ic { width: 14px; height: 14px; }
.vc-pr { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.5); z-index: 2; } .vc-pr i { display: block; height: 100%; background: var(--brand); }
.vc-body { display: flex; gap: 12px; padding-top: 12px; position: relative; }
.vc-txt { flex: 1; min-width: 0; padding-right: 24px; }
.vc-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 22px; }
.vc-m { color: var(--muted); font-size: 14px; display: flex; flex-direction: column; margin-top: 4px; }
.vc-ch:hover { color: var(--text); }
.vc-more { position: absolute; right: -8px; top: 6px; opacity: 0; }
.vc:hover .vc-more, .vc-more:focus { opacity: 1; } @media (hover: none) { .vc-more { opacity: 1; } }
.pop { position: absolute; right: 0; top: 44px; z-index: 35; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; padding: 8px 0; min-width: 220px; }
.pop button { display: flex; gap: 16px; align-items: center; width: 100%; padding: 8px 16px; text-align: left; } .pop button:hover { background: var(--bg2); }
/* list (search) */
.results { max-width: 1096px; margin: 0 auto; padding: 16px 0; } @media (max-width: 792px) { .results { padding: 12px; } }
.vc-list { display: flex; gap: 16px; margin-bottom: 16px; }
.vc-list .vc-th { width: min(500px, 45%); flex: none; } .vc-list .vc-body { padding: 0; flex: 1; }
.vc-list .vc-t { font-size: 18px; line-height: 26px; font-weight: 500; } .vc-list .vc-m { gap: 10px; font-size: 12px; margin-top: 2px; }
.vc-list .vc-ch { display: flex; gap: 8px; align-items: center; } .vc-cr { font-size: 12px; }
@media (max-width: 560px) { .vc-list { flex-direction: column; gap: 8px; } .vc-list .vc-th { width: 100%; } .vc-list .vc-t { font-size: 16px; line-height: 22px; } }
/* compact (up next) */
.vc-compact { display: flex; gap: 8px; margin-bottom: 8px; }
.vc-compact .vc-th { width: 168px; flex: none; border-radius: 8px; } .vc-compact .vc-body { padding: 0; flex: 1; }
.vc-compact .vc-t { font-size: 14px; line-height: 20px; } .vc-compact .vc-m { font-size: 12px; } .vc-compact .vc-more { top: -4px; }
/* skeletons */
.sk .vc-th, .sk-l { background: var(--bg2); animation: pulse 1.2s infinite alternate; } .sk-l { height: 16px; border-radius: 6px; margin-top: 12px; width: 90%; } .sk-l.s { width: 60%; } .sk-l.big { height: 26px; width: 70%; }
@keyframes pulse { to { opacity: .5; } }

/* shorts shelf + grid */
.shelf { border-top: 4px solid var(--line); border-bottom: 4px solid var(--line); padding: 16px 0 24px; margin: 8px 0; }
.shelf h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 16px; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 210px); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 8px; padding: 12px 0; }
.sc { display: block; min-width: 0; } .sc img, .sc .noimg { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; display: block; background: var(--bg2); }
.sc-t { padding: 8px 4px; } .sc-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 22px; } .sc-t span { color: var(--muted); }
@media (max-width: 792px) { .shelf { padding: 12px; } .shelf-row { grid-auto-columns: 44%; } }

/* ── watch page ── */
.watch { max-width: 1754px; margin: 0 auto; padding-top: 16px; }
.w-stage { }
.w-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.w-cols { display: flex; gap: 24px; }
.w-main { flex: 1; min-width: 0; }
.w-side { width: 402px; flex: none; }
.watch:not(.theater) { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 0 24px; }
.watch:not(.theater) .w-stage { grid-column: 1; } .watch:not(.theater) .w-cols { display: contents; }
.watch:not(.theater) .w-main { grid-column: 1; } .watch:not(.theater) .w-side { grid-column: 2; grid-row: 1 / span 2; }
.watch.theater { padding-top: 0; max-width: none; } .watch.theater .w-stage { background: #000; margin: 0 -24px; }
.watch.theater .w-player { max-width: calc((100vh - 170px) * 16 / 9); margin: 0 auto; max-height: calc(100vh - 170px); border-radius: 0; }
.watch.theater .w-cols { max-width: 1754px; margin: 0 auto; padding-top: 16px; }
.w-player.w-portrait { }
@media (max-width: 1016px) {
  .watch:not(.theater), .watch.theater { display: block; padding-top: 0; } .watch .w-cols { display: block; } .w-side { width: auto; margin-top: 24px; }
  .w-player { border-radius: 0; } .watch .w-stage { margin: 0 -24px; position: sticky; top: var(--top); z-index: 20; } .watch.theater .w-player { max-height: none; }
}
@media (max-width: 792px) { .watch .w-stage { margin: 0; } .w-main, .w-side { padding: 0 12px; } .w-player.w-portrait { aspect-ratio: 4/5; max-height: 72vh; } }
.w-title { font-size: 20px; line-height: 28px; font-weight: 700; margin: 12px 0 8px; word-break: break-word; }
.w-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.w-chan { display: flex; align-items: center; gap: 12px; min-width: 0; } .w-chan > div { display: flex; flex-direction: column; min-width: 0; margin-right: 12px; }
.w-chan b { font-size: 16px; } .w-chan span { color: var(--muted); font-size: 12px; }
.w-acts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pill { display: flex; align-items: center; background: var(--bg2); border-radius: 18px; height: 36px; flex: none; }
.pill button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; font-weight: 500; }
.pill button:hover { background: var(--bg3); } .pill i { width: 1px; height: 24px; background: var(--bg3); } .pill .ic { width: 22px; }
.pill button.on .ic { fill: var(--text); }
.w-desc { background: var(--bg2); border-radius: 12px; padding: 12px; margin-top: 12px; position: relative; cursor: pointer; }
.w-desc.clamp { max-height: 140px; overflow: hidden; } .w-desc.clamp:hover { background: var(--bg3); }
.w-desc:not(.clamp) { cursor: auto; }
.w-dm { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; margin-bottom: 6px; } .w-dm a { color: var(--link); } .tag { background: var(--bg3); border-radius: 4px; padding: 0 6px; font-weight: 500; }
.w-dt { white-space: pre-wrap; word-break: break-word; } .w-dt a, .cmt-t a { color: var(--link); }
.w-more { font-weight: 600; margin-top: 6px; } .w-desc.clamp .w-more { position: absolute; right: 12px; bottom: 8px; background: inherit; padding-left: 40px; box-shadow: -30px 0 20px -10px var(--bg2); }
.w-desc.clamp:hover .w-more { box-shadow: -30px 0 20px -10px var(--bg3); }
.credits { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 10px 14px; margin: 8px 0; background: var(--bg); border-radius: 10px; border-left: 4px solid var(--brand); }
.credits div { display: flex; flex-direction: column; } .credits span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } .credits b { font-size: 15px; letter-spacing: .02em; }
.w-chaps h4 { margin: 14px 0 8px; } .w-chaps a { display: flex; gap: 12px; padding: 6px 0; } .w-chaps span { color: var(--link); min-width: 48px; }
.up-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.tgl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.tgl input { display: none; } .tgl i { width: 36px; height: 14px; border-radius: 7px; background: var(--bg3); position: relative; }
.tgl i::after { content: ''; position: absolute; left: -2px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: #ccc; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: .2s; }
.tgl input:checked + i { background: color-mix(in srgb, var(--brand) 50%, transparent); } .tgl input:checked + i::after { left: 18px; background: var(--brand); }

/* ── comments ── */
.cm { margin-top: 24px; } .cm-h { display: flex; align-items: center; gap: 24px; } .cm-h h3 { font-size: 20px; margin: 0; }
.cmp { display: flex; gap: 16px; margin: 20px 0 28px; } .cmp-b { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cmp-n, .cmp-t { border: 0; border-bottom: 1px solid var(--line); background: none; outline: 0; padding: 4px 0; resize: none; }
.cmp-n:focus, .cmp-t:focus { border-bottom: 2px solid var(--text); }
.cmp-n { display: none; } .cmp.open .cmp-n { display: block; }
.cmp-a { display: none; justify-content: flex-end; gap: 8px; } .cmp.open .cmp-a { display: flex; }
.cmt { display: flex; gap: 16px; margin-bottom: 16px; } .cmt-b { flex: 1; min-width: 0; position: relative; }
.cmt.reply .av { width: 24px; height: 24px; font-size: 11px; } .replies { margin-left: 52px; }
.cmt-h { display: flex; gap: 6px; align-items: baseline; font-size: 13px; } .cmt-h span { color: var(--muted); font-size: 12px; }
.cmt-h b.own { background: var(--bg3); padding: 0 6px; border-radius: 10px; }
.cmt-pin { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; } .cmt-pin .ic { width: 16px; }
.cmt-t { white-space: pre-wrap; word-break: break-word; margin: 2px 0 4px; }
.cmt-a { display: flex; align-items: center; gap: 8px; position: relative; } .cmt-a > button:not(.ib) { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 16px; font-size: 12px; font-weight: 500; }
.cmt-a > button:hover { background: var(--bg2); } .cmt-a .ic { width: 18px; } .cmt-a .ib { width: 32px; height: 32px; }
.cmt-heart { position: relative; display: inline-flex; } .cmt-heart .ic { position: absolute; right: -6px; bottom: -4px; width: 14px; fill: #e91e63; }

/* ── shorts player ── */
body[data-page="shorts"] main { padding-top: var(--top); padding-bottom: 0; }
.shorts { position: relative; height: calc(100vh - var(--top)); }
.sh-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.sh-feed::-webkit-scrollbar { display: none; }
.sh-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 0; }
.sh-vid { position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.sh-p { position: absolute; inset: 0; }
.sh-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .3s; }
.sh-item.playing .sh-poster { opacity: 0; }
.sh-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 20px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none; z-index: 3; }
.sh-info .btn, .sh-info a { pointer-events: auto; } .sh-info p { margin: 8px 0 0; font-size: 15px; }
.sh-ch { display: flex; align-items: center; gap: 8px; } .sh-info .btn.sub { background: #fff; color: #0f0f0f; } .sh-info .btn.sub.on { background: rgba(255,255,255,.2); color: #fff; }
.sh-mute { position: absolute; top: 12px; right: 12px; z-index: 4; background: rgba(0,0,0,.4); color: #fff; } .sh-mute .ic { fill: #fff; }
.sh-acts { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; padding-bottom: 8px; }
.sh-acts button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.sh-acts button .ic { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--bg2); }
.sh-acts button.on .ic { background: var(--text); fill: var(--bg); }
.sh-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; }
.sh-nav .ib { width: 56px; height: 56px; background: var(--bg2); }
@media (max-width: 792px) {
  body[data-page="shorts"] .top { background: transparent; } body[data-page="shorts"] main { padding: 0 0 56px; }
  .shorts { height: calc(100dvh - 56px); } .sh-item { padding: 0; gap: 0; position: relative; } .sh-vid { border-radius: 0; height: 100%; width: 100%; aspect-ratio: auto; }
  .sh-acts { position: absolute; right: 8px; bottom: 24px; z-index: 5; color: #fff; } .sh-acts button .ic { background: rgba(0,0,0,.35); fill: #fff; width: 44px; height: 44px; padding: 10px; }
  .sh-info { padding-right: 72px; } .sh-nav { display: none; }
  body[data-page="shorts"] .top .ib, body[data-page="shorts"] .logo { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
}
.sheet { position: fixed; right: 0; bottom: 0; top: var(--top); width: min(480px, 100%); background: var(--card); z-index: 60; transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: var(--shadow); border-radius: 12px 0 0 0; }
.sheet.on { transform: none; } .sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-size: 18px; }
.sheet-b { overflow-y: auto; padding: 0 16px; flex: 1; } .sheet-b .cm-h h3 { display: none; }
@media (max-width: 792px) { .sheet { top: auto; height: 70vh; width: 100%; transform: translateY(105%); border-radius: 16px 16px 0 0; } }

/* ── channel ── */
.chan { max-width: 1284px; margin: 0 auto; }
.chan-banner { height: clamp(90px, 16vw, 206px); border-radius: 16px; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.25), transparent 40%), linear-gradient(120deg, #e91e63, #7b1fa2 55%, #3949ab); margin-top: 8px; }
.chan-h { display: flex; gap: 24px; align-items: center; padding: 24px 0; } .chan-h h1 { margin: 0; font-size: 36px; } .chan-h p { margin: 6px 0; }
.chan-bio { color: var(--muted); max-width: 600px; } .chan-h .btn { margin-top: 8px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); } .tabs a { padding: 12px 4px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-color: var(--text); }
.about { max-width: 720px; } .about p { white-space: normal; }
@media (max-width: 792px) { .chan { padding: 0 12px; } .chan-h { gap: 16px; } .chan-h .av.xl { width: 72px; height: 72px; font-size: 32px; } .chan-h h1 { font-size: 24px; } }

/* library */
.lp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; } .lp-h h1 { margin: 0 auto 0 0; font-size: 28px; }
.lib { margin-bottom: 24px; } .lib-h { display: flex; justify-content: space-between; align-items: center; } .lib-h h2 { font-size: 20px; }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.hrow .vc-body .av { display: none; }

/* empty states, modal, toast */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 80px 20px; font-size: 48px; }
.empty b { font-size: 20px; } .empty span { font-size: 14px; color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--card); border-radius: 12px; padding: 24px; width: min(520px, 100%); position: relative; box-shadow: var(--shadow); }
.modal-card h3 { margin: 0 0 20px; font-size: 18px; } .modal-x { position: absolute; top: 12px; right: 12px; }
.share-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.sh { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; flex: none; width: 64px; }
.sh i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 26px; color: #fff; background: #555; font-weight: 700; }
.sh-wa i { background: #25d366; } .sh-fb i { background: #1877f2; } .sh-x i { background: #000; } .sh-tg i { background: #29a9eb; } .sh-mail i { background: #888; } .sh-embed i { background: var(--bg2); color: var(--text); font-size: 18px; }
.copy { display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--bg); margin-top: 8px; }
.copy input { flex: 1; border: 0; background: none; outline: 0; min-width: 0; }
.chk { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.embed-code { width: 100%; height: 96px; margin-top: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); padding: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.voice { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; } .voice b { font-size: 22px; text-align: center; }
.voice-ring { width: 88px; height: 88px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; animation: ring 1.2s infinite; } .voice-ring .ic { fill: #fff; width: 40px; height: 40px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(233,30,99,.5); } 100% { box-shadow: 0 0 0 26px rgba(233,30,99,0); } }
.seg { display: flex; background: var(--bg2); border-radius: 18px; padding: 3px; } .seg button { padding: 6px 16px; border-radius: 16px; } .seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.2); font-weight: 600; }
#lv-toast { position: fixed; left: 16px; bottom: 16px; background: #f1f1f1; color: #0f0f0f; padding: 12px 20px; border-radius: 8px; z-index: 200; opacity: 0; transform: translateY(20px); transition: .2s; pointer-events: none; }
#lv-toast.on { opacity: 1; transform: none; } @media (max-width: 792px) { #lv-toast { bottom: 72px; left: 12px; right: 12px; } }
.gone { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; } .gone-ico { font-size: 56px; } .gone b { font-size: 22px; } .gone span { color: var(--muted); }

/* ── embed ── */
body.embed, body.embed #app { background: #000; height: 100vh; overflow: hidden; } .emb { position: absolute; inset: 0; }
.emb-logo { position: absolute; top: 10px; left: 12px; z-index: 6; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-shadow: 0 1px 3px #000; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.emb-logo img { width: 28px; height: 28px; } body.embed .lvp-idle ~ .emb-logo, .emb:has(.lvp-idle) + .emb-logo { opacity: 0; }

/* ════ player ════ */
.lvp { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; outline: 0; user-select: none; font-family: Roboto, 'Segoe UI', Arial, sans-serif; }
.lvp video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.lvp svg { fill: #fff; width: 24px; height: 24px; }
.lvp-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 4px; background: linear-gradient(transparent, rgba(0,0,0,.65)); transition: opacity .25s; z-index: 4; }
.lvp-idle .lvp-ctrl, .lvp-idle { cursor: none; } .lvp-idle .lvp-ctrl { opacity: 0; pointer-events: none; }
.lvp-row { display: flex; align-items: center; gap: 2px; height: 48px; }
.lvp-b { width: 46px; height: 46px; display: grid; place-items: center; position: relative; opacity: .92; } .lvp-b:hover { opacity: 1; }
.lvp-b svg { width: 26px; height: 26px; } .lvp-play svg { width: 30px; height: 30px; }
.lvp-time { font-size: 13px; margin-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; } .lvp-chap { font-size: 13px; margin-left: 6px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lvp-sp { flex: 1; }
.lvp-volw { display: flex; align-items: center; } .lvp-vol { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; cursor: pointer; }
.lvp-volw:hover .lvp-vol, .lvp-vol:focus { width: 64px; opacity: 1; margin-right: 6px; }
.lvp-hd { position: absolute; top: 9px; right: 6px; font-style: normal; font-size: 8px; font-weight: 700; background: var(--brand); border-radius: 2px; padding: 0 2px; line-height: 11px; display: none; } .lvp-hd.on { display: block; }
.lvp-bar { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.lvp-track { position: relative; width: 100%; height: 3px; background: rgba(255,255,255,.25); transition: height .1s; }
.lvp-bar:hover .lvp-track, .lvp-drag .lvp-track { height: 5px; }
.lvp-buf, .lvp-hov, .lvp-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; } .lvp-buf { background: rgba(255,255,255,.4); } .lvp-hov { background: rgba(255,255,255,.5); } .lvp-prog { background: var(--brand); }
.lvp-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .1s; }
.lvp-bar:hover .lvp-knob, .lvp-drag .lvp-knob { transform: scale(1); }
.lvp-chaps i { position: absolute; top: 50%; width: 3px; height: 7px; margin-top: -3.5px; background: #000; }
.lvp-prev { position: absolute; bottom: 24px; display: none; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.lvp-prev.on { display: flex; } .lvp-prev-img { border: 2px solid #fff; border-radius: 8px; background-repeat: no-repeat; display: none; }
.lvp-prev-ch { font-size: 12px; font-weight: 600; max-width: 200px; text-align: center; text-shadow: 0 1px 2px #000; } .lvp-prev-t { font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.lvp-spin { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; display: none; z-index: 3; }
.lvp-loading .lvp-spin { display: block; } @keyframes spin { to { transform: rotate(360deg); } }
.lvp-flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; opacity: 0; pointer-events: none; z-index: 3; }
.lvp-flash.on { animation: flash .6s; } .lvp-flash svg { width: 36px; height: 36px; } @keyframes flash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
.lvp-bigplay { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px -36px; border-radius: 14px; background: var(--brand); display: none; place-items: center; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.lvp-bigplay svg { width: 34px; height: 34px; } .lvp-paused:not(.lvp-ended) .lvp-bigplay { display: grid; } .lvp-paused.lvp-loading .lvp-bigplay { display: none; }
.lvp-full.lvp-paused .lvp-bigplay { opacity: .9; }
.lvp-toast { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); padding: 8px 16px; border-radius: 6px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 6; white-space: nowrap; }
.lvp-toast.on { opacity: 1; }
.lvp-dbl { position: absolute; top: 0; bottom: 0; width: 38%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; opacity: 0; pointer-events: none; z-index: 3; }
.lvp-dbl-l { left: 0; background: radial-gradient(ellipse at left, rgba(255,255,255,.18), transparent 70%); } .lvp-dbl-r { right: 0; background: radial-gradient(ellipse at right, rgba(255,255,255,.18), transparent 70%); }
.lvp-dbl.on { animation: dbl .7s; } @keyframes dbl { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.lvp-menu { position: absolute; right: 12px; bottom: 64px; width: 280px; max-height: 70%; overflow-y: auto; background: rgba(28,28,28,.92); border-radius: 12px; padding: 8px 0; display: none; z-index: 7; backdrop-filter: blur(8px); }
.lvp-menu.on { display: block; } .lvp-menu button, .lvp-mh { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 16px; font-size: 14px; text-align: left; gap: 12px; }
.lvp-menu button:hover, .lvp-mh:hover { background: rgba(255,255,255,.1); } .lvp-menu em { font-style: normal; opacity: .8; } .lvp-menu b { font-size: 9px; background: var(--brand); padding: 0 3px; border-radius: 2px; vertical-align: super; }
.lvp-mh { border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 600; cursor: pointer; margin-bottom: 4px; }
.lvp-menu button.sel::before { content: '✓'; margin-right: 8px; } .lvp-menu button:not(.sel) { padding-left: 38px; } .lvp-menu[data-view="main"] button { padding-left: 16px; }
.lvp-mnote { font-size: 12px; opacity: .75; padding: 4px 16px; margin: 0; }
.lvp-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; padding: 8px 16px; font-size: 13px; } .lvp-keys kbd { background: rgba(255,255,255,.15); border-radius: 4px; padding: 1px 6px; font-family: inherit; white-space: nowrap; }
.lvp-end { position: absolute; inset: 0; background: rgba(0,0,0,.75); display: none; place-items: center; z-index: 6; }
.lvp-hasend .lvp-end { display: grid; }
.end-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(360px, 80%); text-align: center; } .end-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.end-card > b { font-size: 16px; } .end-card small { opacity: .75; } .end-card div { display: flex; gap: 10px; margin-top: 6px; } .end-card .btn { background: rgba(255,255,255,.15); color: #fff; } .end-card .btn.primary { background: #fff; color: #0f0f0f; }
.lvp-isfs .lvp-row { height: 56px; } .lvp-isfs .lvp-b svg { width: 32px; height: 32px; }
@media (max-width: 600px) { .lvp-vol, .lvp-chap { display: none; } .lvp-b { width: 40px; } .lvp-pipb { display: none; } .lvp-th { display: none; } }
/* shorts mode: tap to pause, thin seek bar */
.lvp-short .lvp-row, .lvp-short .lvp-menu, .lvp-short .lvp-dbl { display: none; }
.lvp-short .lvp-ctrl { padding: 0; background: none; opacity: 1 !important; pointer-events: auto !important; z-index: 6; }
.lvp-short .lvp-bar { height: 12px; } .lvp-short .lvp-track { height: 2px; } .lvp-short .lvp-prev-img { display: none !important; }
.lvp-short video { object-fit: cover; } .lvp-short .lvp-bigplay { background: rgba(0,0,0,.45); width: 72px; height: 72px; margin: -36px; border-radius: 50%; }
@media (min-width: 793px) { .lvp-short video { object-fit: contain; } }
.shelf.top { border-top: 0; padding-top: 4px; }
/* shorts-only site */
.sgrid.home { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 12px; }
@media (max-width: 792px) { .sgrid, .sgrid.home { grid-template-columns: 1fr 1fr; gap: 16px 8px; padding: 8px; } .results .sgrid { padding: 0; } }
.sh-cr { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .92; }
.lvp-short.lvp-land video { object-fit: contain !important; }
