/* WUNDERLAND TV — styled after the Wunderland Corporation design language:
   achromatic pearl/graphite palette, square corners, Sora display + DM Sans body,
   uppercase tracked micro-labels, brushed-pearl buttons, grayscale imagery. */
@import url("../assets/fonts/fonts.css");

:root {
  --ink: #1c1c1c; --ink-2: #343434; --ink-3: #656565; --ink-4: #787878; --ink-5: #9a9a97;
  --bg: #f4f4f2; --bg-grad: linear-gradient(135deg, #fdfdfb, #ecece9 48%, #f8f8f6);
  --band: linear-gradient(145deg, #fefefc, #dededb);
  --surface: #ffffff; --surface-2: #fafaf8; --surface-3: #efefec; --hover: rgba(28,28,28,.06); --active: rgba(28,28,28,.1);
  --line: #e2e2df; --line-2: #c9c9c6; --line-3: #b8b8b8; --edge: #6f6f6c;
  --btn: linear-gradient(#fefefc, #d4d4d1); --btn-hover: linear-gradient(#ffffff, #e2e2df); --btn-shadow: inset 0 1px 0 #fff, 0 7px 18px rgba(28,28,28,.12);
  --solid: #1c1c1c; --solid-ink: #fafaf8;
  --nav-bg: linear-gradient(rgba(255,255,253,.97), rgba(226,226,223,.97)); --nav-shadow: 0 8px 26px rgba(28,28,28,.12);
  --card-shadow: 0 8px 24px rgba(32,32,32,.06); --pop-shadow: 0 18px 50px rgba(28,28,28,.2);
  --thumb-filter: grayscale(1) contrast(1.06); --overlay: rgba(20,20,20,.55);
  --display: "Sora", "DM Sans", system-ui, sans-serif; --body: "DM Sans", "Inter", system-ui, sans-serif; --ui: "Inter", "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.23,1,.32,1);
  --top-h: 60px; --side-w: 240px; --rail-w: 76px;
  color-scheme: light;
}
[data-theme="graphite"] {
  --ink: #ececea; --ink-2: #cfcfcc; --ink-3: #a6a6a3; --ink-4: #8a8a87; --ink-5: #6c6c69;
  --bg: #121212; --bg-grad: linear-gradient(135deg, #1a1a1a, #0f0f0f 48%, #171717);
  --band: linear-gradient(145deg, #1f1f1f, #121212);
  --surface: #1a1a1a; --surface-2: #1e1e1e; --surface-3: #262626; --hover: rgba(255,255,255,.07); --active: rgba(255,255,255,.12);
  --line: #2c2c2c; --line-2: #3a3a3a; --line-3: #4a4a4a; --edge: #8a8a87;
  --btn: linear-gradient(#2e2e2e, #1a1a1a); --btn-hover: linear-gradient(#3a3a3a, #242424); --btn-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 7px 18px rgba(0,0,0,.4);
  --solid: #ececea; --solid-ink: #141414;
  --nav-bg: linear-gradient(rgba(34,34,34,.97), rgba(18,18,18,.97)); --nav-shadow: 0 8px 26px rgba(0,0,0,.5);
  --card-shadow: 0 8px 24px rgba(0,0,0,.35); --pop-shadow: 0 18px 50px rgba(0,0,0,.6);
  --thumb-filter: grayscale(1) contrast(1.1) brightness(.92); --overlay: rgba(0,0,0,.7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
.hidden { display: none !important; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
svg.i.fill { fill: currentColor; stroke: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
.label { font-family: var(--display); font-size: 10.4px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 10.4px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--line-3); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.display em { font-style: italic; }
.muted { color: var(--ink-3); }
/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--edge); background: var(--btn); box-shadow: var(--btn-shadow); font-family: var(--display); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: background .2s var(--ease), transform .18s var(--ease), box-shadow .2s; user-select: none; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn svg.i { width: 18px; height: 18px; }
.btn.solid { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); box-shadow: 0 7px 18px rgba(28,28,28,.18); }
.btn.solid:hover { opacity: .88; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.line { background: transparent; box-shadow: none; border-color: var(--line-3); }
.btn.line:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 10px; }
.btn.lg { height: 44px; padding: 0 28px; font-size: 12px; }
.btn.icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; color: var(--ink); transition: background .18s; position: relative; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg.i { width: 18px; height: 18px; }
.chip { height: 32px; padding: 0 14px; border: 1px solid var(--edge); background: var(--btn); box-shadow: var(--btn-shadow); font-family: var(--display); font-size: 10.4px; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { background: var(--btn-hover); }
.chip.on { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); box-shadow: 0 6px 16px rgba(28,28,28,.2); }
.tag { display: inline-block; border: 1px solid var(--line-3); padding: 2px 8px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-family: var(--display); }
.seg { display: inline-flex; border: 1px solid var(--edge); background: var(--btn); box-shadow: var(--btn-shadow); height: 36px; }
.seg > button { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-family: var(--display); font-size: 11.5px; letter-spacing: .06em; }
.seg > button:hover { background: var(--hover); }
.seg > button + button { border-left: 1px solid var(--line-2); }
.seg > button.on svg.i { fill: currentColor; }
.seg svg.i { width: 18px; height: 18px; }
/* ---------- inputs ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-family: var(--display); font-size: 9.6px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); background: var(--surface); padding: 10px 12px; outline: none; transition: border-color .18s, box-shadow .18s; border-radius: 0; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hover); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--edge); background: var(--surface); display: grid; place-items: center; margin: 0; flex: none; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--solid); border-color: var(--solid); }
.check input:checked::after { content: ""; width: 8px; height: 8px; background: var(--solid-ink); }
.check input[type=radio]:checked::after { border-radius: 50%; }
.switch { appearance: none; width: 36px; height: 20px; border: 1px solid var(--edge); background: var(--surface-3); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--ink-3); transition: transform .2s var(--ease), background .2s; }
.switch:checked { background: var(--solid); }
.switch:checked::after { transform: translateX(16px); background: var(--solid-ink); }
/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--nav-bg); box-shadow: var(--nav-shadow); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.tb-left { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-word { display: grid; line-height: 1.1; }
.logo-word b { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .15em; }
.logo-word small { font-family: var(--display); font-size: 7.6px; letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; }
.tb-center { flex: 1; display: flex; justify-content: center; }
.search { position: relative; display: flex; width: 100%; max-width: 640px; }
.search-box { flex: 1; display: flex; align-items: center; border: 1px solid var(--edge); background: var(--surface); height: 40px; box-shadow: inset 0 1px 3px rgba(0,0,0,.06); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 14px; height: 100%; font-size: 14px; min-width: 0; }
.search-box:focus-within { border-color: var(--ink); }
.search-clear { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-3); }
.search-go { width: 64px; height: 40px; border: 1px solid var(--edge); border-left: 0; background: var(--btn); box-shadow: var(--btn-shadow); display: grid; place-items: center; }
.search-go:hover { background: var(--btn-hover); }
.suggest { position: absolute; top: 44px; left: 0; right: 64px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop-shadow); z-index: 60; padding: 8px 0; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 16px; font-size: 14.5px; cursor: pointer; }
.suggest a.sel, .suggest a:hover { background: var(--hover); }
.suggest a svg.i { width: 18px; height: 18px; color: var(--ink-3); }
.suggest a b { font-weight: 600; }
.suggest a .rm { margin-left: auto; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); }
.suggest a .rm:hover { color: var(--ink); text-decoration: underline; }
.tb-right { display: flex; align-items: center; gap: 6px; min-width: 200px; justify-content: flex-end; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--solid); color: var(--solid-ink); font-size: 9.5px; font-family: var(--display); font-weight: 600; display: grid; place-items: center; border: 1px solid var(--bg); }
.avatar-btn { width: 36px; height: 36px; display: grid; place-items: center; margin-left: 6px; }
.m-search-btn { display: none; }
.hex { --s: 36px; width: var(--s); height: var(--s); flex: none; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: linear-gradient(150deg, #fdfdfb, #c9c9c5 55%, #efefec); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .34); letter-spacing: .02em; color: #1c1c1c; position: relative; }
.hex.dark { background: linear-gradient(150deg, #3a3a3a, #111 60%, #2a2a2a); color: #f2f2ef; }
[data-theme="graphite"] .hex.dark { background: linear-gradient(150deg, #f4f4f1, #a9a9a5 60%, #deded9); color: #111; }
.hex.mid { background: linear-gradient(150deg, #e6e6e3, #8f8f8b 60%, #cfcfcb); color: #111; }
.hex img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- layout ---------- */
.sidebar { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--side-w); overflow-y: auto; padding: 12px 12px 40px; z-index: 30; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar:hover { scrollbar-color: var(--line-2) transparent; }
.side-sec { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-sec:last-child { border: 0; }
.side-title { padding: 10px 12px 6px; font-family: var(--display); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }
.side-item { display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 12px; font-size: 14px; color: var(--ink); position: relative; transition: background .15s; white-space: nowrap; overflow: hidden; }
.side-item:hover { background: var(--hover); }
.side-item.on { background: var(--active); font-weight: 600; }
.side-item.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--ink); }
.side-item .hex { --s: 24px; }
.side-item .dot { width: 5px; height: 5px; background: var(--ink); margin-left: auto; }
.side-item span { overflow: hidden; text-overflow: ellipsis; }
.side-foot { padding: 16px 12px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.side-foot b { font-family: var(--display); letter-spacing: .18em; font-size: 10px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.side-signin { padding: 12px; font-size: 13.5px; color: var(--ink-2); }
.side-signin .btn { margin-top: 12px; }
.main { padding-top: var(--top-h); margin-left: var(--side-w); min-height: 100vh; transition: margin-left .25s var(--ease); }
.page { padding: 24px 32px 64px; max-width: 2200px; margin: 0 auto; }
.scrim { position: fixed; inset: 0; background: var(--overlay); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.side-mini .sidebar { width: var(--rail-w); padding: 4px; }
body.side-mini .main { margin-left: var(--rail-w); }
body.side-mini .side-sec:not(.rail-sec), body.side-mini .side-foot, body.side-mini .side-signin { display: none; }
body.side-mini .rail-sec { border: 0; }
body.side-mini .side-item { flex-direction: column; justify-content: center; gap: 6px; height: 72px; padding: 0; font-size: 10px; letter-spacing: .02em; }
body.side-mini .side-item.on::before { display: none; }
body.side-mini .side-item span { max-width: 68px; }
body.watch-page .sidebar, body.shorts-overlay .sidebar { transform: translateX(-100%); background: var(--surface); box-shadow: var(--pop-shadow); transition: transform .25s var(--ease); width: var(--side-w) !important; padding: 12px 12px 40px !important; z-index: 45; }
body.watch-page .main { margin-left: 0 !important; }
body.watch-page .sidebar .side-sec, body.watch-page .sidebar .side-foot, body.watch-page .sidebar .side-signin { display: block !important; }
body.watch-page .sidebar .side-item { flex-direction: row !important; height: 40px !important; justify-content: flex-start !important; font-size: 14px !important; gap: 20px !important; padding: 0 12px !important; }
body.watch-page .sidebar .side-item span { max-width: none !important; }
body.watch-page.drawer-open .sidebar { transform: none; }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); padding: 8px 0; margin: -24px -32px 16px; }
.ticker-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: ticker 70s linear infinite; font-size: 10.4px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.ticker-track span::after { content: "◆"; margin-left: 28px; font-size: 8px; color: var(--ink); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { position: sticky; top: var(--top-h); z-index: 20; margin: 0 -32px; padding: 12px 32px 0; background: linear-gradient(#f4f4f2 78%, rgba(244,244,242,0)); }
[data-theme="graphite"] .chips-wrap { background: linear-gradient(#141414 78%, rgba(20,20,20,0)); }
/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 18px; }
.card { position: relative; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.thumb { position: relative; display: block; aspect-ratio: 16/9; background: #d9d9d6; overflow: hidden; border: 1px solid var(--line); }
[data-theme="graphite"] .thumb { background: #222; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--thumb-filter); transition: filter .5s var(--ease), transform .6s var(--ease); }
.card:hover .thumb img, .rcard:hover .thumb img, .hcard:hover .thumb img, .plitem:hover .thumb img, .thumb:hover img { filter: none; transform: scale(1.03); }
.no-gray .thumb img, .no-gray .sthumb img { filter: none !important; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(17,17,17,.85); color: #fafaf8; font-family: var(--display); font-size: 11px; letter-spacing: .06em; padding: 2px 6px; z-index: 3; }
.thumb .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.45); z-index: 3; }
.thumb .prog i { display: block; height: 100%; background: #111; }
[data-theme="graphite"] .thumb .prog i { background: #fafaf8; }
.thumb .hover-hint { position: absolute; left: 8px; bottom: 8px; z-index: 3; opacity: 0; transition: opacity .2s; background: rgba(17,17,17,.85); color: #fafaf8; font-family: var(--display); font-size: 9.5px; letter-spacing: .18em; padding: 3px 7px; text-transform: uppercase; }
.card:hover .hover-hint { opacity: 1; }
.thumb video.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #000; }
.thumb .pbar { position: absolute; left: 0; bottom: 0; height: 3px; background: #fafaf8; z-index: 4; width: 0; }
.thumb .vis { position: absolute; left: 8px; top: 8px; z-index: 3; background: rgba(17,17,17,.85); color: #fafaf8; font-size: 9.5px; letter-spacing: .18em; padding: 3px 7px; text-transform: uppercase; font-family: var(--display); }
.card-body { display: flex; gap: 12px; padding-top: 12px; position: relative; }
.card-body .hex { --s: 38px; }
.card-text { flex: 1; min-width: 0; padding-right: 20px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.35; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; }
.card-meta { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.card-meta a:hover { color: var(--ink); }
.verified { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-left: 4px; }
.kebab { position: absolute; right: -8px; top: 6px; opacity: 0; transition: opacity .15s; }
.card:hover .kebab, .rcard:hover .kebab, .hcard:hover .kebab, .kebab:focus, .kebab.open { opacity: 1; }
.shelf { margin: 8px 0 44px; border-top: 1px solid var(--line); padding-top: 22px; grid-column: 1 / -1; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.shelf-head h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.04em; margin: 0; display: flex; align-items: center; gap: 10px; }
.shorts-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.scard { display: block; animation: rise .45s var(--ease) both; }
.scard .sthumb { aspect-ratio: 9/16; position: relative; overflow: hidden; border: 1px solid var(--line); background: #ccc; }
.scard .sthumb img { width: 100%; height: 100%; object-fit: cover; filter: var(--thumb-filter); transition: filter .5s var(--ease), transform .6s var(--ease); }
.scard:hover .sthumb img { filter: none; transform: scale(1.04); }
.scard .sthumb .views { position: absolute; left: 10px; bottom: 10px; color: #fff; font-family: var(--display); font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); z-index: 2; }
.scard .sthumb::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.scard h3 { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
/* ---------- menus ---------- */
.menu { position: fixed; z-index: 200; min-width: 220px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop-shadow); padding: 8px 0; animation: pop .16s var(--ease); max-height: calc(100vh - 80px); overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu button, .menu a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 18px; font-size: 14px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.menu svg.i { width: 20px; height: 20px; }
.menu .mh { padding: 8px 18px 12px; display: flex; gap: 14px; align-items: center; }
.menu .mh .hex { --s: 42px; }
.menu .mh b { font-family: var(--display); font-size: 15px; display: block; letter-spacing: -.01em; }
.menu .mh small { color: var(--ink-3); font-size: 13px; }
.menu .mh a { padding: 0; font-size: 13px; text-decoration: underline; display: inline; }
.menu .msec { padding: 6px 18px 4px; font-family: var(--display); font-size: 9.6px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); }
.menu .tick { margin-left: auto; }
.notif-panel { width: 440px; padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.notif-head button { width: auto; padding: 4px 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--display); }
.menu .notif { display: flex; gap: 12px; padding: 12px 16px 12px 20px; align-items: flex-start; position: relative; }
.notif .hex { --s: 44px; }
.notif .ntext { flex: 1; font-size: 13.5px; line-height: 1.45; min-width: 0; }
.notif .ntext small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.notif img { width: 86px; aspect-ratio: 16/9; object-fit: cover; filter: var(--thumb-filter); flex: none; border: 1px solid var(--line); }
.notif.unread::before { content: ""; position: absolute; left: 7px; top: 30px; width: 5px; height: 5px; background: var(--ink); }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 150; background: var(--overlay); display: grid; place-items: center; padding: 20px; animation: fade .2s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop-shadow); width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; animation: rise .3s var(--ease); position: relative; }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; gap: 12px; }
.modal-head h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.04em; font-weight: 700; }
.modal-body { padding: 8px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); position: sticky; bottom: 0; }
.share-row { display: flex; margin-top: 16px; }
.share-row .input { font-size: 13px; }
.share-targets { display: flex; gap: 18px; margin: 8px 0 18px; overflow-x: auto; }
.share-targets a, .share-targets button { display: grid; justify-items: center; gap: 8px; font-size: 10px; color: var(--ink-2); font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; }
.share-targets .hex { --s: 56px; }
.share-targets .hex svg.i { width: 22px; height: 22px; }
.kbd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.kbd-grid div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
kbd { font-family: var(--display); font-size: 11px; border: 1px solid var(--line-2); background: var(--btn); box-shadow: var(--btn-shadow); padding: 1px 7px; min-width: 22px; text-align: center; display: inline-block; }
.toasts { position: fixed; left: 24px; bottom: 24px; z-index: 300; display: grid; gap: 8px; }
.toast { background: var(--solid); color: var(--solid-ink); padding: 12px 16px; min-width: 280px; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; box-shadow: var(--pop-shadow); animation: rise .3s var(--ease); }
.toast button { font-family: var(--display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: inherit; opacity: .85; text-decoration: underline; }
/* ---------- player ---------- */
.wp { position: relative; background: #000; width: 100%; aspect-ratio: 16/9; overflow: hidden; outline: none; user-select: none; color: #fafaf8; font-family: var(--display); }
.wp video { width: 100%; height: 100%; display: block; background: #000; }
.wp .wp-shade { position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; opacity: 0; transition: opacity .25s; }
.wp .wp-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px 4px; opacity: 0; transition: opacity .25s; z-index: 5; }
.wp.show-ui .wp-shade, .wp.show-ui .wp-bottom, .wp.paused .wp-shade, .wp.paused .wp-bottom { opacity: 1; }
.wp:not(.show-ui):not(.paused) { cursor: none; }
.wp-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.wp-track { position: relative; width: 100%; height: 3px; background: rgba(255,255,255,.22); transition: height .12s; }
.wp-progress:hover .wp-track, .wp-progress.drag .wp-track { height: 6px; }
.wp-buf, .wp-play, .wp-hov { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.wp-buf { background: rgba(255,255,255,.42); }
.wp-hov { background: rgba(255,255,255,.28); display: none; }
.wp-progress:hover .wp-hov { display: block; }
.wp-play { background: #fafaf8; }
.wp-gaps i { position: absolute; top: -1px; bottom: -1px; width: 3px; background: #000; z-index: 2; }
.wp-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: #fafaf8; transform: scale(0) rotate(45deg); transition: transform .12s; z-index: 3; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.wp-progress:hover .wp-knob, .wp-progress.drag .wp-knob { transform: scale(1) rotate(45deg); }
.wp-tip { position: absolute; bottom: 24px; transform: translateX(-50%); background: rgba(17,17,17,.92); border: 1px solid rgba(255,255,255,.25); padding: 4px 8px; font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; display: none; text-align: center; pointer-events: none; }
.wp-tip b { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.wp-progress:hover .wp-tip, .wp-progress.drag .wp-tip { display: block; }
.wp-controls { display: flex; align-items: center; height: 46px; gap: 2px; }
.wp-btn { width: 42px; height: 42px; display: grid; place-items: center; color: #fafaf8; opacity: .92; position: relative; flex: none; }
.wp-btn:hover { opacity: 1; }
.wp-btn svg.i { width: 24px; height: 24px; stroke-width: 1.7; }
.wp-btn[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); background: rgba(17,17,17,.92); border: 1px solid rgba(255,255,255,.2); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; white-space: nowrap; pointer-events: none; }
.wp-btn.rt[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.wp-vol { display: flex; align-items: center; }
.wp-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fafaf8; height: 3px; cursor: pointer; }
.wp-vol:hover input, .wp-vol input:focus { width: 72px; opacity: 1; margin-right: 8px; }
.wp-time { font-size: 12.5px; letter-spacing: .06em; padding: 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wp-chap { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; cursor: pointer; }
.wp-chap:not(:empty)::before { content: "◆"; margin: 0 8px 0 2px; font-size: 8px; }
.wp-spacer { flex: 1; min-width: 4px; }
.wp-auto { display: flex; align-items: center; padding: 0 8px; height: 42px; }
.wp-auto .sw { width: 32px; height: 16px; border: 1px solid rgba(255,255,255,.75); position: relative; display: grid; align-items: center; }
.wp-auto .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; background: rgba(255,255,255,.75); transition: transform .2s var(--ease); }
.wp-auto.on .sw { background: #fafaf8; }
.wp-auto.on .sw::after { transform: translateX(16px); background: #111; }
.wp-cc.on::before { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; background: #fafaf8; }
.wp-cc.na { opacity: .35; }
.wp-menu { position: absolute; right: 12px; bottom: 60px; background: rgba(17,17,17,.95); border: 1px solid rgba(255,255,255,.18); min-width: 250px; padding: 8px 0; z-index: 8; font-family: var(--body); font-size: 13.5px; max-height: 70%; overflow: auto; }
.wp-menu button { display: flex; width: 100%; justify-content: space-between; padding: 8px 16px; color: #fafaf8; gap: 20px; }
.wp-menu button:hover { background: rgba(255,255,255,.1); }
.wp-menu .mt { padding: 6px 16px 8px; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 4px; }
.wp-menu button.sel span::before { content: "◆ "; font-size: 9px; }
.wp-caption { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); text-align: center; z-index: 4; pointer-events: none; width: 86%; transition: bottom .25s; }
.wp:not(.show-ui):not(.paused) .wp-caption { bottom: 24px; }
.wp-caption span { background: rgba(8,8,8,.78); padding: 3px 10px; font-family: var(--body); font-size: clamp(13px, 1.8vw, 22px); line-height: 1.55; white-space: pre-line; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wp-flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; background: rgba(0,0,0,.55); display: grid; place-items: center; opacity: 0; pointer-events: none; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.wp-flash.go { animation: flash .6s var(--ease); }
.wp-flash svg.i { width: 30px; height: 30px; }
@keyframes flash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
.wp-osd { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); padding: 8px 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; pointer-events: none; white-space: nowrap; }
.wp-osd.go { animation: fadeout 1.1s; }
@keyframes fadeout { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.wp-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fafaf8; animation: spin .9s linear infinite; display: none; pointer-events: none; }
.wp.loading .wp-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.wp-top { position: absolute; top: 0; left: 0; right: 0; padding: 14px 18px 40px; background: linear-gradient(rgba(0,0,0,.7), transparent); font-size: 18px; letter-spacing: -.02em; font-weight: 600; opacity: 0; transition: opacity .25s; display: none; z-index: 5; }
.wp:fullscreen .wp-top { display: block; }
.wp.show-ui .wp-top, .wp.paused .wp-top { opacity: 1; }
.wp:fullscreen { aspect-ratio: auto; }
.wp-end { position: absolute; inset: 0; background: rgba(0,0,0,.84); display: grid; place-items: center; z-index: 7; text-align: center; padding: 20px; }
.wp-end .next { display: grid; gap: 12px; justify-items: center; max-width: 440px; }
.wp-end img { width: min(280px, 60%); aspect-ratio: 16/9; object-fit: cover; border: 1px solid rgba(255,255,255,.3); }
.wp-end h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.wp-end .count { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.wp-end .row { display: flex; gap: 10px; }
.wp-end .btn { color: #fafaf8; background: transparent; border-color: rgba(255,255,255,.6); box-shadow: none; }
.wp-end .btn.solid { background: #fafaf8; color: #111; border-color: #fafaf8; }
.mini { position: fixed; right: 24px; bottom: 24px; width: 400px; z-index: 90; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop-shadow); display: none; animation: rise .3s var(--ease); }
.mini.on { display: block; }
.mini .wp-top, .mini .wp-menu, .mini .hide-mini, .mini .wp-chap, .mini .wp-vol input { display: none !important; }
.mini .wp-caption span { font-size: 12px; }
.mini-info { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 12px; }
.mini-info div { flex: 1; min-width: 0; cursor: pointer; }
.mini-info b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.mini-info small { color: var(--ink-3); font-size: 12px; }
#player-holder { position: fixed; left: -9999px; top: 0; width: 640px; }
/* ---------- watch page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; grid-template-areas: "player side" "info side"; grid-template-rows: auto 1fr; gap: 0 24px; padding: 24px 24px 64px; max-width: 1754px; margin: 0 auto; align-items: start; }
.watch .player-slot { grid-area: player; min-width: 0; }
.watch .w-info { grid-area: info; min-width: 0; }
.watch .w-side { grid-area: side; min-width: 0; }
.watch.theater { grid-template-areas: "player player" "info side"; grid-template-rows: auto 1fr; padding-top: 0; max-width: none; }
.watch.theater .player-slot { margin: 0 -24px; background: #000; }
.watch.theater .player-slot .wp { aspect-ratio: auto; height: min(56.25vw, calc(100vh - 170px)); }
.player-slot .wp { box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.w-title { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; margin: 16px 0 12px; }
.w-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.w-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w-owner .hex { --s: 44px; }
.w-owner .on-name { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; display: flex; align-items: center; }
.w-owner small { display: block; color: var(--ink-3); font-size: 12.5px; }
.w-owner .btn { margin-left: 14px; }
.w-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desc { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; margin: 14px 0 22px; cursor: pointer; box-shadow: var(--card-shadow); transition: background .2s; }
.desc:hover { background: var(--surface-2); }
.desc.open { cursor: default; }
.desc-top { font-family: var(--display); font-weight: 600; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.desc-top .tagl { color: var(--ink-3); font-weight: 400; }
.desc-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; margin-top: 6px; overflow: hidden; }
.desc:not(.open) .desc-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.desc .more { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 8px; display: inline-block; font-weight: 600; }
.ts { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chap-list { display: flex; gap: 12px; overflow-x: auto; padding: 14px 0 6px; margin-top: 14px; border-top: 1px solid var(--line); }
.chap { flex: none; width: 170px; text-align: left; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s; }
.chap:hover, .chap.on { border-color: var(--ink); }
.chap .ct { aspect-ratio: 16/9; background: #222 center/cover; position: relative; }
.chap .ct::before { content: ""; position: absolute; inset: 0; background: inherit; filter: var(--thumb-filter); }
.chap .ct span { position: absolute; left: 6px; bottom: 6px; background: rgba(17,17,17,.85); color: #fafaf8; font-family: var(--display); font-size: 10.5px; padding: 1px 6px; }
.chap b { display: block; padding: 8px 10px; font-family: var(--display); font-size: 12px; font-weight: 600; line-height: 1.35; }
.desc-ch { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.desc-ch .hex { --s: 52px; }
.upnext-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.upnext-head .auto { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.side-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.side-chips .chip { height: 28px; font-size: 9.6px; padding: 0 10px; }
.rcard { display: grid; grid-template-columns: 168px 1fr; gap: 10px; margin-bottom: 10px; position: relative; animation: rise .45s var(--ease) both; }
.rcard .thumb .dur { font-size: 10px; right: 4px; bottom: 4px; }
.rcard h3 { font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 22px; }
.rcard p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.rcard .kebab { right: -10px; top: -6px; }
.plpanel { border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 18px; box-shadow: var(--card-shadow); }
.plpanel-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); background: var(--band); }
.plpanel-head h3 { margin: 0 0 2px; font-family: var(--display); font-size: 17px; letter-spacing: -.03em; }
.plpanel-head small { color: var(--ink-3); font-size: 12px; }
.plpanel-head .row { display: flex; gap: 4px; margin-top: 6px; }
.plpanel-head .icon-btn.on { background: var(--solid); color: var(--solid-ink); }
.plpanel-list { max-height: 380px; overflow-y: auto; padding: 6px 0; }
.plitem { display: grid; grid-template-columns: 24px 100px 1fr; gap: 8px; align-items: center; padding: 6px 12px 6px 4px; }
.plitem:hover { background: var(--hover); }
.plitem.now { background: var(--active); }
.plitem .n { font-size: 11px; color: var(--ink-3); text-align: center; font-family: var(--display); }
.plitem .thumb .dur { font-size: 9.5px; right: 3px; bottom: 3px; padding: 0 4px; }
.plitem h4 { margin: 0; font-family: var(--display); font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plitem p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
/* ---------- comments ---------- */
.c-head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.c-head h2 { font-family: var(--display); font-size: 19px; letter-spacing: -.035em; margin: 0; }
.c-new { display: flex; gap: 14px; margin-bottom: 28px; }
.c-new .hex { --s: 40px; }
.c-form { flex: 1; min-width: 0; }
.c-input { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 6px 0; outline: none; resize: none; font-size: 14px; line-height: 1.5; overflow: hidden; display: block; }
.c-input:focus { border-bottom: 2px solid var(--ink); padding-bottom: 5px; }
.c-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.c { display: flex; gap: 14px; margin-bottom: 20px; animation: rise .35s var(--ease) both; }
.c .hex { --s: 40px; }
.c.reply { margin-bottom: 14px; }
.c.reply .hex { --s: 26px; }
.c-body { flex: 1; min-width: 0; position: relative; }
.c-pin { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-family: var(--display); letter-spacing: .06em; }
.c-pin svg.i { width: 13px; height: 13px; }
.c-author { font-family: var(--display); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-author .own { background: var(--solid); color: var(--solid-ink); padding: 1px 8px; font-weight: 500; }
.c-author small { color: var(--ink-3); font-weight: 400; font-family: var(--body); font-size: 12px; }
.c-text { font-size: 14px; line-height: 1.55; margin: 3px 0 4px; white-space: pre-wrap; word-wrap: break-word; }
.c-actions { display: flex; align-items: center; gap: 2px; margin-left: -8px; flex-wrap: wrap; }
.c-actions .icon-btn { width: 32px; height: 32px; }
.c-actions .icon-btn svg.i { width: 17px; height: 17px; }
.c-actions .icon-btn.on svg.i { fill: currentColor; }
.c-actions .n { font-size: 12px; color: var(--ink-3); margin-right: 8px; }
.c-actions .btn { height: 30px; font-size: 10px; }
.c-heart { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; }
.c-heart .hex { --s: 20px !important; font-size: 7px; }
.c-heart svg.i { width: 12px; height: 12px; margin-left: -8px; margin-top: 12px; }
.c-replies-toggle { font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 8px 12px; margin-left: -12px; display: inline-flex; gap: 6px; align-items: center; }
.c-replies-toggle:hover { background: var(--hover); }
.c-replies-toggle svg.i { width: 16px; height: 16px; }
.c-replies { margin-top: 8px; }
.c-body .kebab { right: -6px; top: -4px; opacity: 0; }
.c:hover > .c-body > .kebab { opacity: 1; }
/* ---------- search results ---------- */
.results { max-width: 1280px; margin: 0 auto; }
.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 10px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; animation: rise .3s var(--ease); }
.filters h4 { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font-family: var(--display); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.filters button { display: flex; justify-content: space-between; width: 100%; padding: 7px 0; font-size: 13.5px; color: var(--ink-3); text-align: left; }
.filters button:hover { color: var(--ink); }
.filters button.on { color: var(--ink); font-weight: 700; }
.filters button.on::after { content: "×"; font-weight: 400; }
.hcard { display: grid; grid-template-columns: minmax(240px, 480px) 1fr; gap: 18px; margin-bottom: 18px; position: relative; animation: rise .45s var(--ease) both; }
.hcard h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 4px; line-height: 1.3; padding-right: 36px; }
.hcard .meta { font-size: 12.5px; color: var(--ink-3); }
.hcard .ch { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 12.5px; color: var(--ink-3); }
.hcard .ch .hex { --s: 24px; }
.hcard .snip { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.hcard .kebab { right: 0; top: 0; }
.hcard .rm-x { position: absolute; right: 0; top: 0; }
.chcard { display: grid; grid-template-columns: minmax(240px, 480px) 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 10px 0 24px; border-bottom: 1px solid var(--line); }
.chcard .hexwrap { display: grid; place-items: center; }
.chcard .hex { --s: 136px; }
.chcard h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; margin: 0 0 4px; }
.chcard p { margin: 4px 0; color: var(--ink-3); font-size: 12.5px; }
.empty { padding: 72px 20px; text-align: center; color: var(--ink-3); }
.empty .display { font-size: clamp(40px, 6.5vw, 92px); color: var(--ink); margin-bottom: 18px; }
.empty p { max-width: 460px; margin: 0 auto 22px; font-size: 15px; }
/* ---------- channel ---------- */
.ch-banner { height: clamp(120px, 15vw, 210px); position: relative; overflow: hidden; border: 1px solid var(--line); background: #cfcfcc; }
.ch-banner .bn { position: absolute; inset: 0; }
.ch-banner .bn-word { position: absolute; right: 3%; bottom: -10%; font-family: var(--display); font-weight: 800; letter-spacing: -.05em; font-size: clamp(60px, 10vw, 160px); line-height: 1; color: rgba(28,28,28,.12); white-space: nowrap; font-style: italic; }
.ch-banner .bn-word.light { color: rgba(255,255,255,.12); }
.ch-head { display: flex; gap: 24px; align-items: center; padding: 24px 0 8px; }
.ch-head .hex { --s: 150px; font-size: 44px; }
.ch-head h1 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.ch-head .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 8px; }
.ch-head .sub b { color: var(--ink); font-weight: 600; }
.ch-head .about-l { color: var(--ink-3); font-size: 14px; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; margin-bottom: 14px; }
.ch-head .row { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); margin: 10px 0 24px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tabs a { padding: 14px 16px 12px; font-family: var(--display); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs .tab-search { margin-left: auto; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-2); }
.tabs .tab-search input { border: 0; outline: 0; background: transparent; width: 160px; padding: 6px 0; }
.featured { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.featured h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.035em; margin: 0 0 6px; line-height: 1.25; }
.featured p { white-space: pre-wrap; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.about h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.03em; margin: 0 0 12px; }
.about .text { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.stat-list { border-top: 1px solid var(--line); }
.stat-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-list span { font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
/* ---------- shorts ---------- */
.shorts-page { height: calc(100vh - var(--top-h)); overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; position: relative; }
.shorts-page::-webkit-scrollbar { display: none; }
.short { height: calc(100vh - var(--top-h)); scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 0; position: relative; }
.short-frame { position: relative; height: 100%; aspect-ratio: 9/16; max-width: calc(100vw - 32px); background: #000; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); border: 1px solid var(--line-2); }
.short-frame video { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.short-frame .poster { position: absolute; inset: 0; background: #111 center/cover; filter: grayscale(1); }
.short-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 10px; z-index: 3; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.short-top .icon-btn { color: #fff; }
.short-top .icon-btn:hover { background: rgba(255,255,255,.12); }
.short-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); z-index: 3; }
.short-info .who { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.short-info .who .hex { --s: 34px; }
.short-info .who .btn { height: 30px; font-size: 10px; background: #fafaf8; color: #111; border-color: #fafaf8; box-shadow: none; }
.short-info .who .btn.on { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.short-info h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.short-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 4; cursor: pointer; }
.short-prog i { display: block; height: 100%; background: #fafaf8; width: 0; }
.short-rail { display: flex; flex-direction: column; gap: 14px; align-self: flex-end; padding-bottom: 20px; }
.short-rail button, .short-rail a { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-family: var(--display); color: var(--ink); }
.short-rail .circ { width: 50px; height: 50px; display: grid; place-items: center; background: var(--btn); border: 1px solid var(--edge); color: var(--ink); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); transition: background .2s; }
.short-rail button:hover .circ { background: var(--btn-hover); }
.short-rail button.on .circ { background: var(--solid); color: var(--solid-ink); }
.short-rail button.on .circ svg.i { fill: currentColor; }
.short-rail .hex { --s: 44px; }
.short-paused { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.short-paused span { width: 72px; height: 72px; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.short-paused svg.i { width: 30px; height: 30px; }
.shorts-nav { position: fixed; right: 32px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 10; }
.short-drawer { position: fixed; top: calc(var(--top-h) + 16px); bottom: 16px; width: 420px; right: 110px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--pop-shadow); z-index: 35; display: flex; flex-direction: column; animation: rise .3s var(--ease); }
.short-drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.short-drawer .db { overflow-y: auto; padding: 16px; flex: 1; }
/* ---------- library / lists ---------- */
.page-title { font-family: var(--display); font-weight: 800; letter-spacing: -.05em; font-size: clamp(32px, 4vw, 52px); margin: 6px 0 22px; line-height: 1; }
.page-title em { font-style: italic; }
.lib-head { display: flex; gap: 22px; align-items: center; margin-bottom: 28px; }
.lib-head .hex { --s: 110px; font-size: 34px; }
.lib-head h1 { font-family: var(--display); font-size: 36px; letter-spacing: -.045em; margin: 0; }
.lib-head small { color: var(--ink-3); }
.lib-sec { border-top: 1px solid var(--line); padding: 20px 0 30px; }
.lib-sec .shelf-head h2 { font-size: 20px; }
.row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 16px; }
.row-grid .card-title { font-size: 14px; }
.row-grid .card-body .hex { display: none; }
.history { display: grid; grid-template-columns: minmax(0, 860px) 300px; gap: 48px; }
.history h3.day { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; margin: 24px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.history .hcard { grid-template-columns: 246px 1fr; }
.history .hcard h3 { font-size: 16px; }
.h-side { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; display: grid; gap: 4px; }
.search-line { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 8px 0; margin-bottom: 14px; }
.search-line input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.search-line:focus-within { border-bottom-color: var(--ink); }
.h-side button.opt { display: flex; align-items: center; gap: 14px; padding: 10px 8px; font-size: 14px; text-align: left; }
.h-side button.opt:hover { background: var(--hover); }
.plpage { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.plhero { position: sticky; top: calc(var(--top-h) + 24px); padding: 24px; border: 1px solid var(--line-2); background: var(--band); box-shadow: var(--card-shadow); }
.plhero .cover { aspect-ratio: 16/9; background: #333 center/cover; border: 1px solid var(--line); margin-bottom: 18px; position: relative; overflow: hidden; }
.plhero .cover img { width: 100%; height: 100%; object-fit: cover; filter: var(--thumb-filter); }
.plhero h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.04em; line-height: 1.15; margin: 0 0 10px; word-break: break-word; }
.plhero .meta { color: var(--ink-3); font-size: 12.5px; margin-bottom: 4px; }
.plhero .row { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }
.plhero .row .btn { flex: 1; }
.plhero .editrow { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.plhero .pdesc { font-size: 13px; color: var(--ink-2); margin: 8px 0; white-space: pre-wrap; }
.pl-items { min-width: 0; }
.pl-it { display: grid; grid-template-columns: 26px 26px 160px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); transition: background .15s; }
.pl-it:hover { background: var(--hover); }
.pl-it.dragging { opacity: .4; }
.pl-it.over { box-shadow: inset 0 2px 0 var(--ink); }
.pl-it .grip { cursor: grab; color: var(--ink-4); display: grid; place-items: center; }
.pl-it .n { font-family: var(--display); font-size: 12px; color: var(--ink-3); text-align: center; }
.pl-it h3 { margin: 0 0 3px; font-family: var(--display); font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.pl-it p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.pl-it .acts { display: flex; opacity: .55; }
.pl-it:hover .acts { opacity: 1; }
.plcard { animation: rise .45s var(--ease) both; }
.plcard .stack { position: relative; margin-top: 14px; }
.plcard .stack::before, .plcard .stack::after { content: ""; position: absolute; left: 8%; right: 8%; top: -7px; height: 7px; background: var(--line-2); border: 1px solid var(--line-3); border-bottom: 0; }
.plcard .stack::after { left: 14%; right: 14%; top: -13px; height: 6px; background: var(--line); }
.plcard .thumb .count { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; background: rgba(17,17,17,.82); color: #fafaf8; display: grid; place-items: center; align-content: center; gap: 4px; z-index: 3; font-family: var(--display); font-size: 12px; letter-spacing: .1em; }
.plcard .thumb .count svg.i { width: 22px; height: 22px; }
.plcard h3 { font-family: var(--display); font-size: 14.5px; margin: 12px 0 2px; font-weight: 600; letter-spacing: -.01em; }
.plcard p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.plcard p.va { margin-top: 4px; color: var(--ink-2); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--display); }
.subs-strip { display: flex; gap: 22px; overflow-x: auto; padding: 4px 0 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.subs-strip a { display: grid; justify-items: center; gap: 8px; width: 92px; flex: none; font-size: 12px; text-align: center; font-family: var(--display); line-height: 1.3; }
.subs-strip .hex { --s: 64px; }
.manage-list .mrow { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.manage-list .mrow .hex { --s: 72px; }
.manage-list .mrow .t { flex: 1; min-width: 200px; }
.manage-list .mrow b { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; display: block; }
.manage-list .mrow small { color: var(--ink-3); font-size: 12.5px; }
/* ---------- studio ---------- */
.studio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); background: var(--band); margin-bottom: 32px; box-shadow: var(--card-shadow); }
.stats > div { padding: 26px 24px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line-2); }
.stats b { display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; font-weight: 700; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-family: var(--ui); font-size: 10.4px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-4); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--card-shadow); }
.table th { text-align: left; font-family: var(--display); font-size: 9.6px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
.table tr:hover td { background: var(--surface-2); }
.table .vid { display: flex; gap: 14px; align-items: center; min-width: 320px; }
.table .vid .thumb { width: 130px; flex: none; }
.table .vid b { font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; display: block; }
.table .vid small { color: var(--ink-3); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.table .acts { display: flex; gap: 2px; }
.likebar { width: 90px; height: 3px; background: var(--line-2); margin-top: 6px; }
.likebar i { display: block; height: 100%; background: var(--ink); }
.drop { border: 1px dashed var(--edge); padding: 52px 24px; text-align: center; background: var(--band); transition: background .2s, border-color .2s; }
.drop.over { background: var(--active); border-color: var(--ink); }
.drop .hex { --s: 104px; margin: 0 auto 22px; }
.drop .hex svg.i { width: 36px; height: 36px; }
.drop h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; margin: 0 0 6px; }
.drop p { color: var(--ink-3); margin: 0 0 20px; }
.up-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.up-prev { background: var(--surface-2); border: 1px solid var(--line-2); align-self: start; }
.up-prev video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.up-prev .meta { padding: 12px 14px; font-size: 12.5px; word-break: break-all; }
.up-prev .meta span { display: block; color: var(--ink-3); font-family: var(--display); font-size: 9.6px; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; }
.thumbs-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs-pick button { aspect-ratio: 16/9; border: 1px solid var(--line-2); background: var(--surface-3) center/cover; position: relative; display: grid; place-items: center; font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px; }
.thumbs-pick button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.steps { display: flex; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.steps span { flex: 1; text-align: center; padding: 10px 0; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); border-bottom: 2px solid transparent; }
.steps span.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.pbar-line { height: 3px; background: var(--line-2); margin-top: 12px; overflow: hidden; }
.pbar-line i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .3s; }
.settings { max-width: 880px; }
.set-sec { border-top: 1px solid var(--line-2); padding: 24px 0; display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.set-sec h3 { margin: 0; font-family: var(--display); font-size: 17px; letter-spacing: -.03em; }
.set-sec h3 + p { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.set-row:last-child { border: 0; }
.set-row small { display: block; color: var(--ink-3); font-size: 12px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.theme-cards button { border: 1px solid var(--line-2); padding: 0; text-align: left; background: var(--surface); }
.theme-cards button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-cards .sw { height: 70px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.theme-cards b { display: block; padding: 10px 12px; font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.foot { margin-top: 64px; padding: 28px 0 8px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.foot b { font-family: var(--display); letter-spacing: .2em; font-size: 10.5px; color: var(--ink); }
.hero-band { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: 10px 0 22px; }
.hero-band h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.055em; line-height: .92; }
.hero-band h1 em { font-weight: 800; }
.hero-band p { margin: 10px 0 0; color: var(--ink-3); font-style: italic; font-family: var(--display); font-size: 15px; }
/* ---------- responsive ---------- */
@media (max-width: 1312px) {
  body:not(.side-forced):not(.watch-page) .sidebar { width: var(--rail-w); padding: 4px; }
  body:not(.side-forced):not(.watch-page) .main { margin-left: var(--rail-w); }
  body:not(.side-forced):not(.watch-page) .side-sec:not(.rail-sec), body:not(.side-forced):not(.watch-page) .side-foot, body:not(.side-forced):not(.watch-page) .side-signin { display: none; }
  body:not(.side-forced):not(.watch-page) .rail-sec { border: 0; }
  body:not(.side-forced):not(.watch-page) .side-item { flex-direction: column; justify-content: center; gap: 6px; height: 72px; padding: 0; font-size: 10px; }
  body:not(.side-forced):not(.watch-page) .side-item span { max-width: 68px; }
  body:not(.side-forced):not(.watch-page) .side-item.on::before { display: none; }
  body.side-forced:not(.watch-page) .sidebar { background: var(--surface); box-shadow: var(--pop-shadow); z-index: 45; }
  body.side-forced:not(.watch-page) .main { margin-left: 0; }
}
@media (max-width: 1100px) {
  .watch { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "info" "side"; }
  .watch.theater { grid-template-areas: "player" "info" "side"; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .history { grid-template-columns: 1fr; }
  .h-side { position: static; order: -1; }
  .plpage { grid-template-columns: 1fr; }
  .plhero { position: static; }
  .about { grid-template-columns: 1fr; }
  .short-drawer { right: 16px; }
}
@media (max-width: 792px) {
  :root { --top-h: 56px; }
  .topbar { gap: 6px; padding: 0 6px; }
  .sidebar { transform: translateX(-100%); width: var(--side-w) !important; padding: 12px 12px 40px !important; background: var(--surface); box-shadow: var(--pop-shadow); z-index: 45; transition: transform .25s var(--ease); }
  body.drawer-open .sidebar { transform: none; }
  .sidebar .side-sec, .sidebar .side-foot, .sidebar .side-signin { display: block !important; }
  .sidebar .side-item { flex-direction: row !important; height: 40px !important; justify-content: flex-start !important; font-size: 14px !important; gap: 20px !important; padding: 0 12px !important; }
  .sidebar .side-item span { max-width: none !important; }
  .main { margin-left: 0 !important; }
  .page { padding: 12px 12px 80px; }
  .ticker { margin: -12px -12px 12px; }
  .chips-wrap { margin: 0 -12px; padding: 8px 12px 0; }
  .tb-left { min-width: 0; gap: 2px; }
  .logo-word small { display: none; }
  .logo-word b { font-size: 12.5px; letter-spacing: .12em; }
  .tb-right { min-width: 0; gap: 0; }
  .tb-center { display: none; }
  .topbar.searching .tb-center { display: flex; position: absolute; inset: 0; background: var(--nav-bg); padding: 8px; z-index: 2; align-items: center; gap: 6px; }
  .m-search-btn { display: inline-grid; }
  .create-label { display: none; }
  .tb-right .btn.create { width: 40px; padding: 0; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .shorts-row { grid-template-columns: repeat(2, 1fr); }
  .hero-band { grid-template-columns: 1fr; }
  .watch { padding: 0 0 64px; }
  .watch .w-info, .watch .w-side { padding: 0 12px; }
  .w-title { font-size: 18px; }
  .w-actions { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .w-owner { width: 100%; }
  .w-owner .btn { margin-left: auto; }
  .hcard, .history .hcard { grid-template-columns: 1fr; }
  .chcard { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .filters { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .ch-head { flex-direction: column; align-items: flex-start; }
  .ch-head .hex { --s: 90px; font-size: 28px; }
  .tabs .tab-search { display: none; }
  .shorts-nav { display: none; }
  .short { padding: 0; }
  .short-frame { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border: 0; }
  .short-rail { position: absolute; right: 8px; bottom: 96px; z-index: 5; padding: 0; }
  .short-rail button, .short-rail a { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .short-info { padding-right: 76px; }
  .short-drawer { left: 0; right: 0; width: auto; top: 30vh; bottom: 0; }
  .up-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .set-sec { grid-template-columns: 1fr; }
  .pl-it { grid-template-columns: 22px 110px 1fr auto; }
  .pl-it .grip { display: none; }
  .mini { right: 8px; left: 8px; width: auto; bottom: 8px; }
  .notif-panel { width: calc(100vw - 16px); }
  .kbd-grid { grid-template-columns: 1fr; }
  .rcard { grid-template-columns: 150px 1fr; }
  .toasts { left: 8px; right: 8px; bottom: 8px; }
  .toast { min-width: 0; }
  .theme-cards { grid-template-columns: 1fr 1fr 1fr; }
}

/* narrow player: keep the essentials */
@media (max-width: 600px) {
  .wp .wp-th, .wp .wp-auto, .wp .wp-chap, .wp .wp-next, .wp .wp-vol input, .wp .wp-minib { display: none !important; }
  .wp .wp-controls { gap: 0; padding: 0 4px; }
  .wp .wp-btn { width: 38px; }
  .wp .wp-time { font-size: 12px; white-space: nowrap; }
}

/* WUNDERLAND TV wordmark: keep it on one line on small screens */
@media (max-width: 792px) { .logo-word b { font-size: 12px; letter-spacing: .09em; } .logo { gap: 8px; } }
@media (max-width: 380px) { .logo-word b { font-size: 11px; letter-spacing: .05em; } .logo-mark { width: 26px; height: 26px; } .tb-right { gap: 2px; } }
@media (max-width: 340px) { .logo-word b { font-size: 10px; letter-spacing: .03em; } .tb-left { gap: 4px; } }
