:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: #121219;
  --surface-2: #191921;
  --surface-3: #22222c;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f2f2f6;
  --text-2: #bdbdc9;
  --muted: #858594;
  --accent: #ff6a3d;
  --accent-hi: #ff8257;
  --accent-2: #ffb547;
  --accent-soft: rgba(255, 106, 61, .13);
  --accent-line: rgba(255, 106, 61, .38);
  --on-accent: #1c0a04;
  --grad: #ff6a3d;
  --line-hover: rgba(255, 255, 255, .24);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, .13);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, .13);
  --bad: #ff5d6c;
  --bad-soft: rgba(255, 93, 108, .13);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --max: 1280px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Unbounded, Manrope, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.top { view-transition-name: site-header; }
.tabbar { view-transition-name: site-tabbar; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.display { font-family: var(--display); letter-spacing: -.02em; font-weight: 600; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-hover); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 93, 108, .3); }
.btn.danger:hover { background: rgba(255, 93, 108, .22); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.w { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn.p { background: var(--accent); color: var(--on-accent); }
.btn.p:hover { background: var(--accent-hi); }
.btn.g { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.btn.g:hover { background: rgba(255, 255, 255, .11); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
a.chip:hover, button.chip:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.live { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .3); }
.chip.star { color: var(--accent-2); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(10, 10, 14, .72); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag.new { background: var(--grad); color: var(--on-accent); }
.tag.live { background: rgba(10, 10, 14, .72); color: var(--ok); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font: 700 13px/1 var(--font); vertical-align: middle; }

.avatar {
  --hue: 20;
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, hsl(var(--hue) 80% 64%), hsl(calc(var(--hue) + 40) 72% 44%));
  color: #120a06; font-weight: 800; font-size: 16px;
}
.avatar.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.avatar.xl { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 11, .72);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 800; font-size: 16px; }
.mark {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad); color: var(--on-accent);
  font: 700 16px/1 var(--display); font-style: normal;
}
.logo .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.nav a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface-3); }
.search { position: relative; flex: 1; max-width: 320px; margin-left: auto; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none;
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--line-hover); background: rgba(255, 255, 255, .08); }
.who { display: flex; align-items: center; gap: 8px; flex: none; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { filter: brightness(1.08); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .18s var(--ease);
}
.menu-who { padding: 8px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-who b { display: block; }
.menu-who small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-3); }
.menu-pop form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.foot { margin-top: 96px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
.foot-in p { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--text-2); }
.foot-links a:hover { color: var(--accent-hi); }
.tabbar { display: none; }

.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: 24px; }
.more { color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s; }
.more:hover { color: var(--accent-hi); }
.page { padding-top: 36px; }
.page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty b { color: var(--text); font-size: 17px; }
.empty .btn { margin-top: 12px; }
.empty a:not(.btn) { color: var(--accent-hi); font-weight: 700; }
.empty.small { padding: 28px 16px; }
.guest { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); margin-bottom: 24px; }
.guest a, .hint-line a, .review-form a { color: var(--accent-hi); font-weight: 700; }
.guest a:hover, .hint-line a:hover { text-decoration: underline; }

.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: -40px; z-index: -2; }
.hero-bg > * { width: 100%; height: 100%; object-fit: cover; filter: blur(44px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8, 8, 11, .82) 40%, rgba(8, 8, 11, .35) 75%, rgba(8, 8, 11, .55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; min-height: 520px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; margin-bottom: 10px; text-wrap: balance; }
.hero-orig { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.lead { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-bottom: 22px; max-width: 580px; }
.hero .chips { margin-bottom: 30px; }
.hero-poster {
  position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-poster > * { width: 100%; height: 100%; object-fit: cover; }
.hero-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, transparent 35%); pointer-events: none; }
.empty-hero { padding-top: 96px; padding-bottom: 40px; text-align: center; }
.empty-hero h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 14px; }
.empty-hero p { color: var(--text-2); margin-bottom: 26px; }
.empty-hero .actions { justify-content: center; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: 10px; margin-bottom: -10px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.posters { grid-auto-columns: calc((100% - 5 * 18px) / 6); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 18px; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 18px; }

.pc-poster, .epc-thumb, .hero-poster, .title-poster, .row .th { overflow: hidden; }
.pc-poster > img, .pc-poster > .art, .epc-thumb > img, .epc-thumb > .art,
.hero-poster > img, .hero-poster > .art, .title-poster > img, .title-poster > .art,
.row .th > img, .row .th > .art { transition: transform .7s var(--ease); }
.pc:hover .pc-poster > img, .pc:hover .pc-poster > .art, .pc:focus-visible .pc-poster > img, .pc:focus-visible .pc-poster > .art,
.epc:hover .epc-thumb > img, .epc:hover .epc-thumb > .art, .epc:focus-visible .epc-thumb > img, .epc:focus-visible .epc-thumb > .art,
.hero-poster:hover > img, .hero-poster:hover > .art, .title-poster:hover > img, .title-poster:hover > .art,
.row:hover .th > img, .row:hover .th > .art { transform: scale(1.14); }

.pc { display: block; min-width: 0; }
.pc-poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .35s var(--ease);
}
.pc-poster > img, .pc-poster > .art { width: 100%; height: 100%; object-fit: cover; }
.pc-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 40%); opacity: 0; transition: opacity .3s; }

.pc:hover .pc-poster::after { opacity: 1; }
.pc-tags { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-rates { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.pc-rate { height: 24px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(10, 10, 14, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--accent-2); font-size: 12px; font-weight: 800; }
.pc-rate.dub { color: #9fd2ff; }
.pc-time { position: absolute; right: 10px; top: 10px; z-index: 1; height: 22px; padding: 0 8px; border-radius: 7px; display: grid; place-items: center; background: rgba(10, 10, 14, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; }
.pc-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #0b0b0e;
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease);
}
.pc-play svg { margin-left: 3px; }
.pc:hover .pc-play { opacity: 1; transform: scale(1); }
.pc h3 { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }

.pc-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

.epc { display: block; min-width: 0; }
.epc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease); }
.epc-thumb > img, .epc-thumb > .art { width: 100%; height: 100%; object-fit: cover; }
.epc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 55%); }
.epc-thumb .tag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.epc-num { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 600 13px/1 var(--display); letter-spacing: -.01em; }
.epc-play { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0b0b0e; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease); }
.epc-play svg { margin-left: 2px; }

.epc:hover .epc-play { opacity: 1; transform: scale(1); }
.epc-body { padding-top: 11px; }
.epc-body b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }

.epc-body small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 36px 40px; border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
.band h2 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 8px; }
.band p { color: var(--text-2); max-width: 560px; }
.band .actions { position: relative; }

.filters { display: flex; flex-direction: column; gap: 14px; padding: 18px; margin-bottom: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filter-search { position: relative; display: flex; gap: 10px; }
.filter-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 42px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); outline: none; }
.filter-search input:focus { border-color: var(--line-hover); }
.filter-search .btn { height: 46px; }
.frow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.label { flex: none; width: 72px; color: var(--muted); font-size: 13px; font-weight: 700; }
.chips.scroll { flex-wrap: wrap; min-width: 0; }

.title-hero { position: relative; overflow: hidden; isolation: isolate; }
.title-bg { position: absolute; inset: -60px; z-index: -2; }
.title-bg > * { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) saturate(1.3); opacity: .5; transform: scale(1.15); }
.title-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 2%, rgba(8, 8, 11, .6) 60%, rgba(8, 8, 11, .4)); }
.title-in { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 56px; padding-bottom: 8px; }
.title-poster { aspect-ratio: 2 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.title-poster > * { width: 100%; height: 100%; object-fit: cover; }
.title-info { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-hi); }
.title-info h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; text-wrap: balance; }
.orig { color: var(--muted); font-weight: 600; margin-top: 8px; }
.title-info .chips { margin-top: 20px; }
.genres { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.genres a { position: relative; }
.genres a:hover { color: var(--accent-hi); }
.scores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.score-box { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s; }
.score-box:hover { border-color: var(--line-hover); }
.score-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 181, 71, .14); color: var(--accent-2); font-size: 20px; }
.score-box.dub .score-ico { background: rgba(120, 190, 255, .14); color: #9fd2ff; }
.score-box b { display: block; font: 600 22px/1.1 var(--display); }
.score-box small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.desc { color: var(--text-2); font-size: 16px; line-height: 1.7; margin: 18px 0 24px; max-width: 760px; }
.lists { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-chip { cursor: pointer; }
.hint-line { margin-top: 16px; color: var(--muted); font-size: 14px; }

.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ep { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease); }
a.ep:hover { border-color: var(--line-hover); background: var(--surface-2); }
.ep .n { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-3); font: 600 15px/1 var(--display); }
.ep .t { min-width: 0; flex: 1; }
.ep .t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .t small { display: block; color: var(--muted); font-size: 12px; }
.ep .ok { color: var(--ok); flex: none; }
.ep.seen .n { background: var(--ok-soft); color: var(--ok); }
.ep.next { background: var(--surface-2); }
.ep.next .n { background: var(--grad); color: var(--on-accent); }
.ep.next small { color: var(--text-2); }
.ep.soon { opacity: .5; border-style: dashed; background: transparent; }

.reviews { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.review-form .label { width: auto; margin-bottom: 10px; display: block; }
.review-form textarea { margin: 6px 0 12px; }
.scale-row { margin-bottom: 12px; }
.scale-name { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.review-form .small { margin: 2px 0 8px; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label { height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); font-weight: 800; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.scale label:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.scale input:checked + label { background: var(--grad); color: var(--on-accent); }
.scale input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rv:first-child { padding-top: 0; }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.rv-head .score { color: var(--accent-2); font-weight: 800; font-size: 13px; }
.rv-head .score.dub { color: #9fd2ff; }
.rv-head small { color: var(--muted); }
.rv p { color: var(--text-2); margin-top: 4px; }

.input, .field input, .field select, .field textarea, .search-row input, .addrow input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input, .field textarea { resize: vertical; line-height: 1.5; min-height: 96px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .search-row input:focus, .addrow input:focus { border-color: var(--line-hover); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.help { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-style: normal; }
.errtxt { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--bad-soft); color: #ff8b96; font-size: 14px; font-weight: 600; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23858594' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px !important; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-top: 24px; }
.watch-main { min-width: 0; }
.player-wrap { position: relative; isolation: isolate; }
.player-glow { position: absolute; inset: 8% 4% -6%; z-index: -1; filter: blur(60px) saturate(1.5); opacity: .45; pointer-events: none; }
.player-glow > * { width: 100%; height: 100%; object-fit: cover; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 30px 70px rgba(0, 0, 0, .55); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--text-2); }
.player-empty b { color: var(--text); font-size: 18px; }
.player-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sources .label { width: auto; margin-right: 4px; }
.navbtns { display: flex; gap: 8px; }
.watch-title { margin-top: 22px; }
.watch-title h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.watch-title h1 a:hover { color: var(--accent-hi); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.note b { color: var(--text); }
.ep-side { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ep-side-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ep-side-head span { color: var(--muted); font-weight: 700; font-size: 13px; }
.ep-side-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; max-height: min(560px, calc(100vh - 200px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.ep-side-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background .15s; }
.ep-side-list a:hover { background: var(--surface-2); }
.ep-side-list .n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); font: 600 13px/1 var(--display); }
.ep-side-list .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-side-list a.on { background: var(--surface-3); }
.ep-side-list a.on .n { background: var(--grad); color: var(--on-accent); }

.comments { margin-top: 44px; }
.comments h2 { font-size: 22px; margin-bottom: 18px; }
.cm-form { display: flex; gap: 14px; margin-bottom: 18px; }
.cm-field { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cm { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cm-body { min-width: 0; flex: 1; }
.cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.cm-head small { color: var(--muted); }
.cm p { color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.rep { margin: 0 0 0 auto; }
.rep button { color: var(--muted); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s, color .2s; }
.cm:hover .rep button, .rep button:focus-visible { opacity: 1; }
.rep button:hover { color: var(--bad); }

.day + .day { margin-top: 40px; }
.day-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 800 13px/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.day-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-label span { color: var(--muted); font-weight: 700; }

.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.who-info { flex: 1; min-width: 200px; }
.who-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.stat { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 600 26px/1.2 var(--display); }
.stat small { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.tabs a span { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--surface-3); color: var(--text); }
.tabs a.on span { background: var(--accent-soft); color: var(--accent-hi); }

.auth { padding-top: 48px; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.auth-side { position: relative; overflow: hidden; isolation: isolate; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; background: var(--bg-2); border-right: 1px solid var(--line); }
.auth-glow { display: none; }
.auth-side h2 { font-size: 28px; margin-bottom: 18px; }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.auth-side li { display: flex; gap: 10px; }
.auth-side li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff8257' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.auth-form { padding: 44px 40px; }
.auth-form h1 { font-size: 28px; }
.seg { display: flex; padding: 4px; margin: 20px 0 22px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.seg a.on { background: var(--surface-3); color: var(--text); }
.auth-form .small { margin-top: 16px; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-main h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.about-main p { color: var(--text-2); margin-bottom: 16px; }
.about-main .lead { color: var(--text); }
.about-main .actions { margin-top: 26px; }
.about-cards { display: grid; gap: 12px; }
.about-cards b { display: block; font-size: 17px; margin-bottom: 6px; }
.about-cards p { color: var(--text-2); font-size: 14px; }
.nf { padding-top: 80px; text-align: center; }
.nf-code { font-size: clamp(96px, 16vw, 180px); line-height: 1; color: var(--accent); }
.nf h1 { font-size: 28px; margin: 12px 0 8px; }
.nf .actions { justify-content: center; margin-top: 24px; }

.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; background: var(--bg-2); border-right: 1px solid var(--line); }
.sb .logo { padding: 0 6px; }
.sb .logo span { display: flex; flex-direction: column; line-height: 1.25; }
.sb .logo small { color: var(--muted); font-weight: 600; font-size: 12px; }
.sb nav { display: flex; flex-direction: column; gap: 2px; }
.sb nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 650; font-size: 14px; transition: background .15s, color .15s; }
.sb nav a:hover { background: var(--surface-2); color: var(--text); }
.sb nav a.on { background: var(--accent-soft); color: var(--accent-hi); }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; }
.mtop { display: none; }
.adm main { padding: 32px 40px 80px; max-width: 1120px; }
.a-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.a-head h1 { font: 600 28px/1.2 var(--display); letter-spacing: -.02em; }
.atabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.atabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.atabs a.on { background: var(--surface-3); color: var(--text); }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; border: 1px solid rgba(61, 220, 151, .25); }
.flash.err { background: var(--bad-soft); color: #ff8b96; border-color: rgba(255, 93, 108, .3); }
.toast { margin-top: 16px; }
.hint { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.hint b { color: var(--text); }
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.search-row input { flex: 1; min-width: 200px; width: auto; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.row.dim { opacity: .6; }
.row .th { flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; }
.row .th > * { width: 100%; height: 100%; object-fit: cover; }
.row .main { flex: 1; min-width: 0; }
.row .main > b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.acts form, .inline { margin: 0; display: inline-flex; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.acc { background: var(--accent-soft); color: var(--accent-hi); }
.box { padding: 24px; margin-bottom: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.pposter { aspect-ratio: 2 / 3; display: grid; place-items: center; padding: 16px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--muted); text-align: center; font-size: 13px; overflow: hidden; }
.pposter.has { padding: 0; border-style: solid; }
.pposter img { width: 100%; height: 100%; object-fit: cover; }
.two-f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.box .chips input { position: absolute; opacity: 0; pointer-events: none; }
.box .chips label { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.box .chips label:hover { color: var(--text); border-color: var(--line-hover); }
.box .chips input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.box .chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field > .chips { margin-top: 2px; }
.fact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.confirm { position: relative; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { opacity: .6; }
.ask { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: pop .15s var(--ease); }
.aep { margin-bottom: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.aep > summary { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }
.aep > summary::-webkit-details-marker { display: none; }
.aep > summary .n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font: 600 14px/1 var(--display); }
.aep > summary .t { flex: 1; min-width: 0; }
.aep > summary .t b { display: block; }
.aep > summary .t small { color: var(--muted); }
.aep[open] > summary { border-bottom: 1px solid var(--line); }
.aep[open] > summary .badge { visibility: hidden; }
.aep .body { padding: 14px; }
.src { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.src.broken { border-color: rgba(255, 93, 108, .3); }
.src .ord { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); font-weight: 800; font-size: 13px; }
.src .info { flex: 1; min-width: 0; }
.src .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.src .u { margin-top: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 800; cursor: pointer; transition: background .15s; }
.ib:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.ib:disabled { opacity: .3; cursor: default; }
.addrow { display: flex; gap: 10px; margin-top: 12px; }
.addrow input { flex: 1; min-width: 0; }
.pv { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.pv.ok { border-color: rgba(61, 220, 151, .3); }
.pv.warn { border-color: rgba(255, 181, 71, .3); }
.pv.bad { border-color: rgba(255, 93, 108, .3); }
.pv .note { margin: 8px 0 4px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.pv code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.repc { margin-bottom: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.repc .why { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.quote { display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--bg-2); border-left: 3px solid var(--bad); overflow-wrap: anywhere; }
.quote a { color: var(--accent-hi); }
.adm .empty { margin-top: 8px; }
.adm .avatar { width: 38px; height: 38px; font-size: 15px; }

@media (max-width: 1180px) {
  .rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .rail.posters { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
  .nav a { padding: 7px 11px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; min-height: 0; }
  .watch { grid-template-columns: 1fr; }
  .ep-side { position: static; }
  .ep-side-list { max-height: 320px; }
  .reviews { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .sb { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 30; background: rgba(13, 13, 18, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .adm main { padding: 20px 16px 100px; }
  .fgrid { grid-template-columns: 1fr; }
  .pposter { max-width: 200px; }
  .row { flex-wrap: wrap; }
  .row .acts { width: 100%; padding-left: 60px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding: 32px 28px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .bar { height: 60px; gap: 10px; }
  .logo .name { display: none; }
  .search { max-width: none; }
  .search input { height: 40px; }
  .hide-s { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-top: 36px; padding-bottom: 40px; }
  .hero-poster { display: none; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 11, .75) 55%, rgba(8, 8, 11, .5) 100%); }
  .lead { font-size: 15px; }
  .hero .chips { margin-bottom: 24px; }
  .hero .actions .btn { flex: 1; }
  .sec { margin-top: 40px; }
  .sec-head h2 { font-size: 20px; }
  .rail { grid-auto-columns: 74%; gap: 12px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .rail.posters { grid-auto-columns: 40%; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .egrid { grid-template-columns: 1fr; }
  .band { padding: 26px 22px; }
  .band .actions, .band .actions .btn { width: 100%; }
  .band .actions .btn { flex: 1; }
  .filters { padding: 14px; }
  .frow { flex-direction: column; align-items: stretch; gap: 8px; }
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
  .chips.scroll::-webkit-scrollbar { display: none; }
  .label { width: auto; }
  .title-in { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .title-poster { width: 168px; }
  .title-info .actions .btn { width: 100%; }
  .eps { grid-template-columns: 1fr; }
  .player { border-radius: var(--r); }
  .watch { padding-top: 16px; }
  .player-bar { flex-direction: column; align-items: stretch; }
  .navbtns .btn { flex: 1; }
  .cm-form .avatar { display: none; }
  .rep button { opacity: 1; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 22px; }
  .auth { padding-top: 20px; }
  .auth-side { display: none; }
  .auth-form { padding: 28px 22px; }
  .foot { margin-top: 64px; }
  .foot-in { grid-template-columns: 1fr; gap: 14px; padding-top: 28px; padding-bottom: 28px; }
  .two-f { grid-template-columns: 1fr; }
  .addrow { flex-wrap: wrap; }
  .addrow .btn { width: 100%; }
  .ask { right: auto; left: 0; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 18, .9); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
  .tabbar a.on { color: var(--accent-hi); }
  .tabbar a.on::before { content: ""; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .tabbar .cnt { position: absolute; top: 0; right: calc(50% - 22px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.box-title { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 16px; }
.settings .box { max-width: 760px; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s; }
.check:hover { border-color: var(--line-hover); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check b { display: block; font-size: 14px; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; max-width: 760px; padding: 14px 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); }
@media (max-width: 860px) { .save-bar { bottom: 64px; } }
.ask.wide { flex-direction: column; align-items: stretch; width: min(560px, calc(100vw - 48px)); max-width: none; }
.ask.wide .pv { margin-top: 0; }
.sb-foot { margin-top: auto; display: grid; gap: 8px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 650; font-size: 14px; transition: background .15s, color .15s; }
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sb-who { flex: 1; min-width: 0; line-height: 1.25; }
.sb-who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-who small { color: var(--muted); font-size: 12px; }
.sb-user form, .mtop-acts form { margin: 0; display: flex; }
.sb-user .ib:hover, .mtop-acts button.ib:hover { color: var(--bad); }
.mtop-acts { display: flex; gap: 8px; }
