/* OtakuLoop · Soft Loop theme. Light by default, dark via system setting or the moon button. */
:root {
  --bg: #F7F6FB; --surface: #FFFFFF; --border: #E7E4F2; --text: #1E1B2E; --muted: #5A5672; --subtle: #6E6987;
  --chip: #F2F0F8; --nav-on-bg: #EEEAFD; --nav-on: #3F2FA0; --nav: #4B4760;
  --accent: #5B47C9; --accent-2: #F07A5A; --on-accent: #FFFFFF; --link: #5B47C9; --pill-border: #DCD8EA;
  --sel-bg: #1E1B2E; --sel-text: #FFFFFF; --panel-dark: #1E1B2E;
  --t0: #C9BEF7; --t0i: #2E2170; --t1: #FFC9B5; --t1i: #7A2E10; --t2: #B5E6DA; --t2i: #165445;
  --t3: #FFE3A3; --t3i: #5E4000; --t4: #BFD9FF; --t4i: #173F7A; --t5: #F6C1DA; --t5i: #701C44;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12111A; --surface: #1C1A28; --border: #2D2A3D; --text: #EEEBFA; --muted: #B9B4CF; --subtle: #A09BB8;
    --chip: #262335; --nav-on-bg: #302A5C; --nav-on: #D4CCFF; --nav: #B9B4CF;
    --accent: #8F7EFF; --accent-2: #FF9677; --on-accent: #12111A; --link: #AFA3FF; --pill-border: #3A3750;
    --sel-bg: #EEEBFA; --sel-text: #12111A; --panel-dark: #2A2640;
    --t0: #4E3FA0; --t0i: #E4DEFF; --t1: #9C4E36; --t1i: #FFE1D6; --t2: #2A7363; --t2i: #D2F5EC;
    --t3: #8A6716; --t3i: #FFEFC7; --t4: #2F5A99; --t4i: #DCE9FF; --t5: #8E3A62; --t5i: #FFDDEC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12111A; --surface: #1C1A28; --border: #2D2A3D; --text: #EEEBFA; --muted: #B9B4CF; --subtle: #A09BB8;
  --chip: #262335; --nav-on-bg: #302A5C; --nav-on: #D4CCFF; --nav: #B9B4CF;
  --accent: #8F7EFF; --accent-2: #FF9677; --on-accent: #12111A; --link: #AFA3FF; --pill-border: #3A3750;
  --sel-bg: #EEEBFA; --sel-text: #12111A; --panel-dark: #2A2640;
  --t0: #4E3FA0; --t0i: #E4DEFF; --t1: #9C4E36; --t1i: #FFE1D6; --t2: #2A7363; --t2i: #D2F5EC;
  --t3: #8A6716; --t3i: #FFEFC7; --t4: #2F5A99; --t4i: #DCE9FF; --t5: #8E3A62; --t5i: #FFDDEC;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo span { letter-spacing: -0.03em; }
/* "loop" fades violet → coral like the mark (slightly deeper colours on the light theme so it stays readable on white). */
.logo b { color: var(--logo-loop); font-weight: 800; background: linear-gradient(90deg, var(--logo-g1), var(--logo-g2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .04em; }
:root { --logo-loop: #7458F5; --logo-g1: #6E55E8; --logo-g2: #E9744F; }
:root[data-theme="dark"] { --logo-loop: #9479FF; --logo-g1: #8D6BFA; --logo-g2: #FF9A62; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-loop: #9479FF; --logo-g1: #8D6BFA; --logo-g2: #FF9A62; } }
.logo-sm { font-size: 17px; }
.topbar-in { flex-wrap: nowrap; gap: 8px; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--nav); font-weight: 600; cursor: pointer; list-style: none; }
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover, .dd[open] > .nav-link { background: var(--chip); text-decoration: none; }
.nav-link.on { color: var(--nav-on); background: var(--nav-on-bg); font-weight: 700; }
.chev { transition: transform .15s ease; }
.dd[open] .chev { transform: rotate(180deg); }
.i-burger { display: none; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.dd[open] > .icon-btn { border-color: var(--accent); }

/* Dropdowns (built on <details>, closed by site.js on outside click / Escape) */
.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-pop { position: absolute; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; box-shadow: 0 16px 40px rgba(20, 16, 40, .18); z-index: 20; }
.browse-pop { left: 0; min-width: 270px; display: flex; flex-direction: column; }
.browse-pop a { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 12px; color: var(--text); }
.browse-pop a:hover { background: var(--chip); text-decoration: none; }
.browse-pop a[aria-current="page"] { background: var(--nav-on-bg); }
.browse-pop a[aria-current="page"] b { color: var(--nav-on); }
.browse-pop b { font-size: 15px; }
.browse-pop small { font-size: 12.5px; color: var(--subtle); }
.browse-pop .install-app { display: flex; flex-direction: column; gap: 1px; padding: 10px 14px; border-radius: 12px; color: var(--link); background: none; border: 1px dashed var(--pill-border); font: inherit; text-align: left; cursor: pointer; width: 100%; margin-top: 4px; }
.browse-pop .install-app[hidden] { display: none; }
.browse-pop .install-app:hover { background: var(--chip); }
.mobile-only { display: none; flex-direction: column; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.search-pop { right: 0; width: min(440px, calc(100vw - 32px)); display: flex; gap: 8px; padding: 10px; }
.search-pop input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--chip); color: var(--text); font: 500 15px 'Plus Jakarta Sans', sans-serif; padding: 0 16px; }
.search-pop input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.search-pop { flex-wrap: wrap; }
/* Search-as-you-type results under the header search box */
.search-suggest { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; max-height: min(70vh, 520px); overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); }
.search-suggest a:hover, .search-suggest li[aria-selected="true"] a { background: var(--chip); text-decoration: none; }
.ss-thumb { width: 34px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.ss-member .ss-thumb { width: 36px; height: 36px; border-radius: 50%; }
.ss-text { min-width: 0; display: flex; flex-direction: column; }
.ss-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-text small { font-size: 12px; color: var(--subtle); }
.ss-text mark { background: none; color: var(--link); }
.search-suggest .ss-all a { justify-content: center; font-weight: 700; color: var(--link); font-size: 14px; }
.search-suggest .ss-empty { padding: 10px 8px; color: var(--subtle); font-size: 14px; }

/* Theme switch (header) */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

@media (max-width: 640px) {
  .mainnav { margin-left: auto; order: 2; }
  .nav-community, .browse-label, .chev { display: none; }
  .i-burger { display: block; }
  .browse .nav-link { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--pill-border); }
  .browse-pop { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; max-height: calc(100vh - 80px); overflow-y: auto; }
  .search-pop { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
  .mobile-only { display: flex; }
  .topbar-right { margin-left: 0; order: 1; gap: 6px; }
  .topbar-in { gap: 6px; }
  .icon-btn, .browse .nav-link { width: 40px; height: 40px; min-height: 40px; }
  .usermenu .avatar { width: 40px; height: 40px; font-size: 16px; }
  .logo span { font-size: 19px; }
}
@media (max-width: 380px) { .logo .logo-mark { width: 36px; height: 18px; } .logo span { font-size: 17px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; font: 700 15px 'Plus Jakarta Sans', sans-serif; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-lg { height: 50px; padding: 0 24px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-soft { background: var(--chip); color: var(--text); }
.btn-light { background: #FFFFFF; color: #1E1B2E; }
.btn-disabled { opacity: 0.55; cursor: not-allowed; }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Layout */
.main { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.panel-dark { background: var(--panel-dark); color: #FFFFFF; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.panel-dark h2 { font-size: 18px; }
.panel-dark p { color: #D6D2EA; font-size: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.split-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.block { display: flex; flex-direction: column; gap: 16px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.block-head .more { font-weight: 700; }
.count { font-size: 15px; color: var(--subtle); font-weight: 600; margin-left: 6px; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head.center { align-items: center; text-align: center; padding: 60px 0; gap: 16px; }
.season-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 620px; }
.empty { color: var(--muted); padding: 24px 0; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 36px; border-radius: 28px; }
.hero-text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.08; }
.hero-covers { flex: 1 1 320px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-covers .cover:nth-child(2) { margin-top: 28px; }
.hero-covers .cover:hover, .hero-covers .cover:focus-visible { transform: translateY(-3px); text-decoration: none; }
@media (max-width: 600px) { .hero { padding: 24px; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip.on { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-bg); font-weight: 700; }

/* Cards + placeholder covers */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 18px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.card { display: flex; flex-direction: column; gap: 6px; color: var(--text); min-width: 0; }
.card:hover { text-decoration: none; }
.card:hover .cover { transform: translateY(-3px); }
.card-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--subtle); }
.cover { position: relative; display: flex; align-items: flex-end; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; transition: transform .15s ease; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Titles without cover art yet: a navy "NO IMAGE" placeholder (SVG, so the text scales with the cover). */
.cover:not(:has(img)):not(.ulist-empty), .mini-cover:not(:has(img)) { background: #1E2A4C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 56'%3E%3Cg fill='%234A63A8' font-family='Arial Black,Arial,Helvetica,sans-serif' font-weight='900' font-size='24' text-anchor='middle'%3E%3Ctext x='50' y='24'%3ENO%3C/text%3E%3Ctext x='50' y='52'%3EIMAGE%3C/text%3E%3C/g%3E%3C/svg%3E") center / 68% auto no-repeat; color: #C9D3F2; }
.cover:not(:has(img)) .cover-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.cover-title { padding: 12px; font-weight: 800; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cover .badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.tone-0 { background: var(--t0); color: var(--t0i); } .tone-1 { background: var(--t1); color: var(--t1i); }
.tone-2 { background: var(--t2); color: var(--t2i); } .tone-3 { background: var(--t3); color: var(--t3i); }
.tone-4 { background: var(--t4); color: var(--t4i); } .tone-5 { background: var(--t5); color: var(--t5i); }
.cover-lg { width: 230px; flex: none; border-radius: 20px; }
.cover-lg .cover-title { font-size: 22px; padding: 18px; }

/* Side list */
.side-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--text); }
.side-list a:hover { text-decoration: none; }
.side-list a:hover b { color: var(--link); }
.side-list .rank { width: 20px; font-weight: 800; color: var(--accent); }
.mini-cover { width: 36px; height: 50px; border-radius: 8px; flex: none; overflow: hidden; display: block; }
.mini-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-list b { display: block; font-size: 14px; }
.side-list small { display: block; color: var(--subtle); font-size: 12px; }
.side-list .tiny { margin-top: 10px; }
.ad { border: 2px dashed var(--pill-border); border-radius: 22px; min-height: 250px; display: flex; align-items: center; justify-content: center; color: var(--subtle); font-size: 13px; }
.ad-tall { min-height: 600px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 18px; border-radius: 20px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); flex: 1 1 140px; }
.filters select, .filters input:not([type="checkbox"]) { height: 44px; border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font: 500 15px 'Plus Jakarta Sans', sans-serif; padding: 0 10px; }
.more-filters { flex: 1 1 100%; order: 10; }
.more-filters summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--link); width: max-content; }
.more-filters-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 12px; }
.filters .more-filters .check { flex-direction: row; align-items: center; height: 44px; color: var(--text); font-weight: 600; font-size: 14px; }
.filters .filter-actions { order: 11; }
.filter-actions { display: flex; gap: 8px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 12px; }

/* Title page */
.title-page { display: flex; flex-direction: column; gap: 32px; }
.title-top { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; border-radius: 28px; }
.title-info { flex: 999 1 320px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.alt-main { color: var(--muted); font-weight: 600; }
.alt-native { color: var(--subtle); }
.tags { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; }
.tags a:hover { text-decoration: none; background: var(--nav-on-bg); color: var(--nav-on); }
.score { color: var(--muted); font-size: 14px; }
.score b { color: var(--text); font-size: 18px; margin-left: 4px; }
.synopsis { display: flex; flex-direction: column; gap: 12px; line-height: 1.7; max-width: 760px; }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.facts dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 14px; }
.facts dt { color: var(--subtle); font-weight: 600; }
.facts dd { margin: 0; }
.alts { margin-top: 14px; font-size: 14px; }
.alts summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 32px; }
.alts ul, .ext-links { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.ext-links { padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ext-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pill-border); font-size: 13px; font-weight: 600; }
@media (max-width: 600px) { .title-top { padding: 20px; } .cover-lg { width: 160px; } }

/* Misc pages */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.prose { max-width: 820px; line-height: 1.7; display: flex; flex-direction: column; gap: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Header account area */
.login-link { font-weight: 700; color: var(--text); padding: 10px 6px; white-space: nowrap; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; position: relative; border-radius: 999px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .dot { position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--surface); }
.usermenu-pop { right: 0; min-width: 210px; display: flex; flex-direction: column; }
.usermenu-pop a, .usermenu-pop button { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text); font: 600 14px 'Plus Jakarta Sans', sans-serif; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--chip); text-decoration: none; }
.usermenu-name { padding: 6px 12px 8px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.avatar-lg { width: 88px; height: 88px; font-size: 36px; }
@media (max-width: 640px) { .login-link { display: none; } .join-btn { height: 40px; padding: 0 16px; font-size: 14px; } }

/* Forms */
.flash { background: var(--nav-on-bg); color: var(--nav-on); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.alert { background: #FDE8E4; color: #8A2414; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.alert-info { background: var(--nav-on-bg); color: var(--nav-on); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
:root[data-theme="dark"] .alert:not(.alert-info) { background: #4A1E17; color: #FFD6CC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert:not(.alert-info) { background: #4A1E17; color: #FFD6CC; } }
.auth { max-width: 480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.form > .btn { align-self: flex-start; }
.form-wide { max-width: 860px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
/* Base look for every text box, dropdown and text area (specific components below can still restyle them). */
textarea, select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]) {
  border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text);
  font: 500 15px/1.5 'Plus Jakarta Sans', sans-serif; padding: 9px 12px; min-height: 42px; box-sizing: border-box; }
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--subtle); opacity: 1; font-family: 'Plus Jakarta Sans', sans-serif; }
textarea:focus, select:focus, input:focus:not([type="checkbox"]):not([type="radio"]) { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--nav-on-bg); }
.field input, .field select, .field textarea, .composer textarea, .mod-tools input, .mod-tools select, .mod-bar select {
  min-height: 44px; border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text);
  font: 500 15px/1.5 'Plus Jakarta Sans', sans-serif; padding: 10px 12px; width: 100%; }
.mod-tools input, .mod-tools select, .mod-bar select { width: auto; }
.field textarea, .composer textarea { resize: vertical; min-height: 120px; }
.field input[aria-invalid="true"], .composer textarea[aria-invalid="true"] { border-color: #C2412D; }
.field-hint { font-size: 13px; color: var(--subtle); }
.field-error { font-size: 13px; color: #C2412D; font-weight: 600; }
:root[data-theme="dark"] .field-error { color: #FF9B8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #FF9B8A; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.btn-danger { background: #C2412D; color: #FFFFFF; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Composer */
.composer { display: flex; flex-direction: column; gap: 6px; }
.composer-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-tools button { min-width: 40px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--pill-border); background: var(--chip); color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.composer-tools button:hover { border-color: var(--accent); }

/* Forum */
.forum-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.crumbs { font-size: 14px; color: var(--subtle); margin-bottom: -24px; }
.cat-list, .thread-list, .recent-list, .posts, .activity, .log { list-style: none; margin: 0; padding: 0; }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border-radius: 20px; }
.cat-name { font-weight: 800; font-size: 17px; color: var(--text); }
.cat-row p { grid-column: 1; }
.cat-count { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--subtle); font-weight: 700; font-size: 14px; white-space: nowrap; }
.thread-list { padding: 4px 0; border-radius: 20px; }
.thread-row { display: grid; grid-template-columns: 1fr 90px 120px; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--border); }
.thread-row:first-child { border-top: 0; }
.thread-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.thread-subject { font-weight: 700; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.thread-meta, .thread-last { font-size: 13px; color: var(--subtle); }
.thread-stats { font-size: 13px; color: var(--subtle); text-align: center; }
.thread-stats b { display: block; font-size: 16px; color: var(--text); }
.thread-last { text-align: right; }
@media (max-width: 640px) { .thread-row { grid-template-columns: 1fr auto; } .thread-last { display: none; } }
.flag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--nav-on-bg); color: var(--nav-on); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; vertical-align: middle; }
.flag-muted { background: var(--chip); color: var(--muted); }
.flag-danger { background: #FDE8E4; color: #8A2414; }
.recent-list { display: flex; flex-direction: column; gap: 12px; }
.recent-list a { font-weight: 700; color: var(--text); display: block; overflow-wrap: anywhere; }
.recent-list small { display: block; color: var(--subtle); font-size: 12px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px; border-radius: 20px; }
.post:target { outline: 3px solid var(--accent); }
.post-deleted { opacity: .7; }
.post-author { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
.post-name { font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.post-count { color: var(--subtle); }
.role { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--accent); color: var(--on-accent); vertical-align: middle; }
.role-mod { background: var(--t2); color: var(--t2i); }
.role-bot { background: var(--chip); color: var(--muted); }
.post-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.post-time { color: var(--subtle); }
.post-num { margin-left: auto; color: var(--subtle); }
.post-text { line-height: 1.65; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 10px; }
.post-text code { background: var(--chip); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.q { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--chip); color: var(--muted); }
.q cite { display: block; font-style: normal; font-weight: 700; color: var(--text); font-size: 13px; margin-bottom: 4px; }
.spoiler { background: var(--chip); border-radius: 12px; padding: 8px 14px; }
.spoiler summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 28px; display: flex; align-items: center; }
.spoiler[open] summary { margin-bottom: 6px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 600; padding-top: 4px; }
.post-actions form { display: inline; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .post-author { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .post-author .avatar { width: 36px; height: 36px; font-size: 15px; }
}
.reply-box h2 { margin-bottom: 12px; }
.mod-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 18px; }
.mod-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); margin-right: 4px; }
.profile-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 28px; border-radius: 28px; }
.profile-info { display: flex; flex-direction: column; gap: 8px; flex: 1 1 300px; align-items: flex-start; }
.bio { max-width: 640px; line-height: 1.6; }
.mod-tools { display: flex; flex-direction: column; gap: 12px; }
.activity { display: flex; flex-direction: column; gap: 10px; }
.activity li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; }
.report { display: flex; flex-direction: column; gap: 10px; }
.report-reason { font-weight: 700; }
.note-input { min-height: 44px; border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font: 500 14px 'Plus Jakarta Sans', sans-serif; padding: 0 12px; flex: 1 1 220px; }
.log { padding: 16px 20px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Legal pages */
.legal h2 { font-size: 19px; margin-top: 10px; }
.legal h3 { font-size: 15px; margin: 4px 0 -4px; }
.legal code { background: var(--chip); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.danger-zone { border-color: #E9B3A8; }
:root[data-theme="dark"] .danger-zone { border-color: #6A2D24; }

/* Profile upgrades: avatars, banner, stats, favourites, genres */
img.avatar { object-fit: cover; background: var(--chip); }
.avatar-xl { width: 112px; height: 112px; font-size: 44px; border: 4px solid var(--surface); }
.profile-hero { padding: 0; overflow: hidden; border-radius: 28px; display: flex; flex-direction: column; }
.profile-banner { aspect-ratio: 6 / 1; max-height: 190px; min-height: 110px; width: 100%; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero .profile-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 0 28px; margin-top: -56px; border: 0; border-radius: 0; background: none; }
.profile-hero .profile-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; padding-top: 60px; min-width: 0; }
.profile-edit { align-self: center; margin-top: 56px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin: 20px 0 0; border-top: 1px solid var(--border); background: var(--border); }
.profile-stats div { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column-reverse; gap: 2px; }
.profile-stats dt { font-size: 12px; color: var(--subtle); font-weight: 600; }
.profile-stats dd { margin: 0; font-size: 22px; font-weight: 800; }
@media (max-width: 600px) { .profile-hero .profile-top { padding: 0 18px; } .avatar-xl { width: 88px; height: 88px; font-size: 34px; } .profile-hero .profile-top { margin-top: -44px; } .profile-hero .profile-info { padding-top: 0; flex-basis: 100%; } .profile-edit { margin-top: 0; } }
.fav-btn svg { fill: none; }
.fav-btn.on { color: #E5484D; }
.fav-btn.on svg { fill: currentColor; }
.genre-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.genre-bars li { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; }
.genre-bars a { font-weight: 700; color: var(--text); }
.gbar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.gbar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.images-panel { display: flex; flex-direction: column; gap: 16px; }
.banner-preview { position: relative; aspect-ratio: 4 / 1; border-radius: 16px; overflow: visible; margin-bottom: 30px; }
.banner-preview img:not(.avatar) { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.banner-preview .avatar { position: absolute; left: 16px; bottom: -30px; border: 4px solid var(--surface); }
.image-form input[type=file] { padding: 8px; }

/* Activity feed */
.act-list { list-style: none; margin: 0; padding: 4px 0; border-radius: 20px; }
.act { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.act + .act { border-top: 1px solid var(--border); }
.act .avatar { width: 38px; height: 38px; font-size: 15px; }
.act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.act-line { line-height: 1.45; overflow-wrap: anywhere; }
.act-line a { font-weight: 700; color: var(--text); }
.act-line a:hover { color: var(--link); }
.act-user { color: var(--link) !important; }
.act-score { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: var(--chip); font-weight: 800; font-size: 12px; }
.act-text { color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-text:hover { text-decoration: none; color: var(--text); }
.act-cover { width: 44px; flex: none; border-radius: 8px; }
.act-empty { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 480px) { .act-cover { display: none; } }

/* Forum index: sections of boards */
.board-section { margin-bottom: 26px; }
.board-section-head { margin: 0 0 10px; font-size: 18px; }
.board-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.board-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px minmax(0, 300px); gap: 14px; align-items: center; padding: 14px 16px; }
.board-row + .board-row { border-top: 1px solid var(--border); }
.board-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--nav-on-bg); color: var(--nav-on); }
.board-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.board-name { font-weight: 800; font-size: 16px; color: var(--link); }
/* Sub-forums: indented under their parent board, joined by a connector line */
.board-subs { grid-column: 2 / -1; list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.board-subs li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.board-subs .sub-mark { color: var(--subtle); opacity: .6; flex: none; width: 14px; height: 14px; }
.board-subs .sub-name { font-weight: 600; color: var(--muted); }
.board-subs .sub-name:hover { color: var(--link); }
.board-subs .sub-count { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.board-subs .sub-count::before { content: "·"; margin-right: 6px; }
.board-desc { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.board-stats { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--subtle); }
.board-stats b { color: var(--text); }
.board-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.board-latest li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.board-latest li > div { min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.board-latest li > div > a { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-latest small { color: var(--subtle); }
.board-latest .avatar { width: 28px; height: 28px; font-size: 12px; flex: none; }
.board-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; }
@media (max-width: 900px) { .board-row { grid-template-columns: 36px minmax(0, 1fr); } .board-stats { grid-column: 2; flex-direction: row; gap: 12px; } .board-latest { grid-column: 2; } }
@media (max-width: 480px) { .board-row { grid-template-columns: minmax(0, 1fr); } .board-icon { display: none; } .board-stats, .board-latest, .board-subs { grid-column: 1; } }

/* Series boards */
.series-search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.series-search label { font-weight: 700; }
.series-search input { flex: 1; min-width: 0; }
.series-search .row-gap { flex-wrap: nowrap; }
.series-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.series-chips a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1.3; }
.series-chips a:hover { text-decoration: none; border-color: var(--accent); }
.series-chips .cover { width: 36px; flex: none; border-radius: 6px; }
.series-chips small { display: block; color: var(--subtle); font-weight: 600; font-size: 12px; }
.series-boards { list-style: none; margin: 0; padding: 0; }
.series-boards li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 12px 16px; }
.series-boards li + li { border-top: 1px solid var(--border); }
.series-boards .cover { width: 40px; border-radius: 6px; }
.series-board-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.series-board-main small { color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.series-head .cover { width: 72px; border-radius: 10px; }
.series-head h1 { margin: 2px 0 4px; font-size: 26px; }
@media (max-width: 600px) { .series-head { grid-template-columns: 56px minmax(0, 1fr); } .series-head .cover { width: 56px; } .series-head > .btn { grid-column: 1 / -1; } }
.ep-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 16px; }
.ep-start label { font-weight: 700; }
.ep-start input { width: 100px; }
.sched-discuss { font-size: 12px; font-weight: 700; }

/* List import */
.import-result { margin-bottom: 18px; }
.import-result h2 { margin-top: 0; }
.missing-list { columns: 2 240px; font-size: 13px; color: var(--muted); padding-left: 18px; }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }

/* Forum search */
.forum-quicksearch { position: relative; display: flex; align-items: center; }
.forum-quicksearch svg { position: absolute; left: 14px; color: var(--subtle); pointer-events: none; }
.forum-quicksearch input { width: 240px; max-width: 100%; height: 44px; padding: 0 16px 0 38px; border-radius: 999px; border: 1px solid var(--pill-border);
  background: var(--surface); color: var(--text); font: 500 14px 'Plus Jakarta Sans', sans-serif; outline: none; appearance: none; }
.forum-quicksearch input::placeholder { color: var(--subtle); }
.forum-quicksearch input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--nav-on-bg); }
.forum-quicksearch input::-webkit-search-cancel-button { display: none; }
@media (max-width: 600px) { .forum-head .row-gap { width: 100%; } .forum-quicksearch { flex: 1; } .forum-quicksearch input { width: 100%; } }

/* Watching, reactions, polls, episode ratings, ranks */
.page-head .watch-btn { align-self: flex-start; margin-top: 6px; }
.watch-btn.on { border-color: var(--accent); color: var(--nav-on); background: var(--nav-on-bg); }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--chip); font-size: 14px; cursor: pointer; color: var(--text); }
.react.zero { opacity: .55; } .react.zero:hover { opacity: 1; }
.react:hover:not([disabled]) { border-color: var(--accent); }
.react.on { border-color: var(--accent); background: var(--nav-on-bg); opacity: 1; }
.react[disabled] { cursor: default; }
.react-n { font-size: 12px; font-weight: 700; color: var(--muted); }
.react-n:empty { display: none; }
.ep-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; margin-bottom: 14px; }
.ep-rate > div { display: flex; flex-direction: column; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--pill-border); padding: 0 2px; }
.stars button.on, .stars:hover button { color: #F2B530; }
.stars button:hover ~ button { color: var(--pill-border); }
.poll { padding: 16px 18px; margin-bottom: 14px; }
.poll h2 { margin: 0 0 4px; font-size: 18px; }
.poll-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.poll-results li { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 70px; gap: 10px; align-items: center; font-size: 14px; }
.poll-results li.mine .poll-label { font-weight: 800; }
.poll-bar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.poll-n { text-align: right; font-weight: 700; } .poll-n small { color: var(--subtle); font-weight: 600; }
@media (max-width: 600px) { .poll-results li { grid-template-columns: 1fr 70px; } .poll-bar { grid-column: 1 / -1; grid-row: 2; } }
.poll-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.poll-builder { border: 1px dashed var(--pill-border); border-radius: 14px; padding: 12px 14px; }
.poll-builder summary { cursor: pointer; font-weight: 700; color: var(--link); }
.poll-builder[open] summary { margin-bottom: 10px; }
.poll-days { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rank { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--chip); color: var(--muted); vertical-align: middle; }
.rank-regular { color: #3DB46D; } .rank-enthusiast { color: var(--link); } .rank-veteran { color: #E2B33C; }
.rank-elite { background: var(--nav-on-bg); color: var(--nav-on); } .rank-legend { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.post-author .rank { margin: 2px 0; }
.prank { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.prank .rank { font-size: 13px; padding: 3px 10px; }
.badges { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-weight: 700; cursor: help; }
.points-help { margin-top: 10px; } .points-help summary { cursor: pointer; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.rank-list .cover { width: 46px; flex: none; border-radius: 8px; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-score { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.rank-score b { color: #F2B530; font-size: 16px; }
@media (max-width: 600px) { .rank-list li { flex-wrap: wrap; } .rank-list .btn { width: 100%; } }
.season-rank { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.season-rank li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.season-rank a { flex: 1; min-width: 0; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-pos { width: 20px; color: var(--subtle); font-weight: 800; flex: none; }
.sr-score { color: #F2B530; font-weight: 800; flex: none; }

/* Bulk cover import */
.bulk-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bulk-results li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.bulk-results li b { min-width: 58px; }
.bulk-added b { color: #3DB46D; } .bulk-skipped b { color: var(--subtle); } .bulk-error b { color: #E0565B; }
.bulk-results code { overflow-wrap: anywhere; }

/* Forum sidebar widgets */
.forum-side { display: flex; flex-direction: column; gap: 18px; }
.fw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.fw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.fw-head h2 { margin: 0; font-size: 16px; }
.fw-head a { font-size: 13px; font-weight: 700; }
.fw ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fw-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.fw-item:first-child { padding-top: 0; }
.fw-item:last-child { padding-bottom: 0; }
.fw-item + .fw-item { border-top: 1px solid var(--border); }
.fw-thumb { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; }
.avatar.fw-thumb { font-size: 15px; }
.fw-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fw-title { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-title:hover { color: var(--link); text-decoration: none; }
.fw-series { color: var(--link); }
.fw-body small { font-size: 12px; color: var(--subtle); }
.fw-body small b { color: var(--muted); }
.fw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; }
.fw-stats div { background: var(--chip); border-radius: 10px; padding: 8px 10px; }
.fw-stats dt { font-size: 12px; color: var(--subtle); font-weight: 600; }
.fw-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.forum-search-form { padding: 14px; margin-bottom: 16px; }
.forum-search-form input[name="q"] { flex: 1; min-width: 180px; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.search-results li { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.sr-subject { font-weight: 800; color: var(--text); }
.sr-snippet { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.search-results li.latest-post { flex-direction: row; gap: 12px; align-items: flex-start; }
.latest-post > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-results mark { background: var(--nav-on-bg); color: var(--nav-on); border-radius: 3px; padding: 0 2px; }

/* Characters / cast */
.name-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.name-chips a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; }
.name-chips a:hover { text-decoration: none; border-color: var(--accent); }

/* Custom member lists */
.ulist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ulist-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; color: var(--text); }
.ulist-card:hover { text-decoration: none; border-color: var(--accent); }
.ulist-covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ulist-covers .cover { border-radius: 6px; }
.ulist-empty { background: var(--chip); }
.ulist-title { font-weight: 800; line-height: 1.3; }
.ulist-desc { padding: 14px 16px; margin-bottom: 16px; }
.ulist-items, .ulist-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ulist-items li, .ulist-edit li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; scroll-margin-top: 90px; }
.ulist-items .cover { width: 56px; flex: none; border-radius: 8px; }
.ulist-rank { font-size: 22px; font-weight: 800; color: var(--accent); min-width: 32px; text-align: center; flex: none; }
.ulist-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ulist-item-title { font-weight: 800; color: var(--text); }
.ulist-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ulist-note-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ulist-note-form input { flex: 1; min-width: 160px; }
.ulist-move { display: flex; gap: 4px; flex: none; }
.ulist-move button[disabled] { opacity: .3; }
.ulist-found { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ulist-found li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.ulist-found .cover { width: 32px; flex: none; border-radius: 5px; }
.ulist-found-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; }
.add-to-list select { max-width: 200px; }
@media (max-width: 600px) { .ulist-edit li { flex-wrap: wrap; } }

/* Private messages */
.msg-btn { position: relative; }
.pm-inbox { list-style: none; margin: 0; padding: 0; }
.pm-inbox li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.pm-inbox li + li { border-top: 1px solid var(--border); }
.pm-inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.pm-inbox-main:hover { text-decoration: none; }
.pm-inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.pm-inbox-last { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-inbox li.unread .pm-inbox-last { color: var(--text); font-weight: 600; }
.pm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.pm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pm-head h1 { margin: 0; font-size: 22px; flex: 1; }
.pm-head h1 a { color: var(--text); }
.pm-thread { display: flex; flex-direction: column; gap: 10px; padding: 16px; max-height: 65vh; overflow-y: auto; margin-bottom: 12px; }
.pm-msg { display: flex; flex-direction: column; max-width: 78%; gap: 3px; }
.pm-msg.mine { align-self: flex-end; align-items: flex-end; }
.pm-bubble { padding: 9px 13px; border-radius: 16px; background: var(--chip); overflow-wrap: anywhere; }
.pm-msg.mine .pm-bubble { background: var(--accent); color: var(--on-accent); }
.pm-msg.mine .pm-bubble a { color: inherit; text-decoration: underline; }
.pm-bubble p { margin: 0 0 6px; } .pm-bubble p:last-child { margin: 0; }
.pm-reply { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.pm-reply textarea { width: 100%; resize: vertical; }

/* Profile comments */
.comment-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; margin-bottom: 12px; }
.comment-form textarea { flex: 1; min-height: 46px; }
.pcomments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pcomments li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; scroll-margin-top: 90px; }
.pcomments li:target { box-shadow: 0 0 0 2px var(--accent); }
.pcomment-body { flex: 1; min-width: 0; }
.pcomment-meta { margin: 0 0 2px; font-size: 14px; }
.pcomment-body .post-body p { margin: 0 0 6px; }
.btn-quiet { color: var(--muted); }

/* Followers / following */
.people-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.people-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.people-list li > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.people-name { font-weight: 800; color: var(--text); }
.profile-stats dt a { color: inherit; }

/* Profile: tabs + two-column overview */
.profile-info .muted a { color: inherit; }
.profile-info .muted a b { color: var(--text); }
.profile-tabs { display: flex; gap: 4px; padding: 0 20px; margin-top: 18px; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a { padding: 13px 12px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.profile-tabs a:hover { color: var(--text); text-decoration: none; }
.profile-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.profile-hero { margin-bottom: 22px; }
.profile-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .profile-cols { grid-template-columns: minmax(0, 1fr); } }
.profile-side { display: flex; flex-direction: column; gap: 14px; }
.profile-main { display: flex; flex-direction: column; gap: 26px; }
.profile-main > .block { margin: 0; }
.pside { padding: 16px; }
.pside h2 { font-size: 15px; margin: 0 0 12px; }
.pside .bio { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.pstats div { background: var(--chip); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column-reverse; }
.pstats dt { font-size: 12px; color: var(--subtle); font-weight: 600; }
.pstats dd { margin: 0; font-size: 18px; font-weight: 800; }
.pbreak { display: flex; flex-direction: column; gap: 6px; color: var(--text); padding: 8px 0; }
.pbreak + .pbreak { border-top: 1px solid var(--border); }
.pbreak:hover { text-decoration: none; }
.pbreak-top { display: flex; justify-content: space-between; font-size: 14px; }
.pbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--chip); }
.pbar > span { height: 100%; }
.pbar-current { background: #3DB46D; } .pbar-completed { background: var(--accent); } .pbar-paused { background: #E2B33C; }
.pbar-dropped { background: #E0565B; } .pbar-planning { background: #8A86A0; }
.pbreak-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.genre-bars.compact li { grid-template-columns: 90px 1fr 24px; }
.fav-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.fav-mini .cover { border-radius: 8px; }
.fav-mini .cover-title { font-size: 10px; padding: 6px; }
.fav-mini:hover .cover { box-shadow: 0 0 0 2px var(--accent); }
.pupdates { list-style: none; margin: 0; padding: 0; }
.pupdates li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.pupdates li + li { border-top: 1px solid var(--border); }
.pupdates .cover { width: 36px; flex: none; border-radius: 6px; }
.pupdates li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pupdate-title { font-weight: 700; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pupdates small { flex: none; }
.pcomment-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
.profile-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.avatar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.avatar-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); font-size: 12px; font-weight: 600; }
.avatar-grid a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-tools summary { cursor: pointer; }
.mod-tools[open] summary { margin-bottom: 12px; }
.mod-tools { margin-top: 22px; display: block; }
.mod-tools > form, .mod-tools > div { margin-top: 10px; }

/* Airing schedule */
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sched-bar p { max-width: 760px; line-height: 1.5; }
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.sched-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; scroll-margin-top: 90px; }
.sched-day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sched-day h2 { font-size: 16px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sched-day h2 small { color: var(--subtle); font-weight: 600; font-size: 13px; }
.sched-day.today h2 small { color: var(--accent); }
.sched-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sched-item { display: flex; gap: 10px; align-items: flex-start; }
.sched-item .cover { width: 42px; flex: none; border-radius: 8px; }
.sched-item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.sched-title { font-weight: 700; color: var(--text); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.sched-meta { color: var(--muted); }
.sched-meta time { font-weight: 700; color: var(--text); }
.sched-item .badge, .title-airing .badge { align-self: flex-start; display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--chip); color: var(--text); margin-right: 4px; }
.badge-new { background: var(--accent) !important; color: var(--on-accent) !important; }
.badge-final { background: var(--accent-2) !important; color: #1E1B2E !important; }
.title-airing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.title-airing b { color: var(--text); }

/* Covers to-do */
.cover-progress { display: flex; flex-direction: column; gap: 10px; }
.cover-progress > div { display: grid; grid-template-columns: 150px 1fr 190px; align-items: center; gap: 12px; }
@media (max-width: 600px) { .cover-progress > div { grid-template-columns: 1fr; gap: 4px; } }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.todo-card { display: flex; gap: 14px; padding: 14px; border-radius: 18px; scroll-margin-top: 90px; }
.todo-card .cover { width: 90px; flex: none; border-radius: 12px; }
.todo-card .cover .cover-title { font-size: 11px; padding: 8px; }
.todo-card .cover .badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
.todo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.todo-title { font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.todo-upload { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.todo-upload input[type=file] { font-size: 12px; max-width: 100%; }
.todo-source { min-height: 36px; border-radius: 10px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font: 500 13px 'Plus Jakarta Sans', sans-serif; padding: 0 10px; }
.todo-upload .btn { height: 36px; align-self: flex-start; padding: 0 16px; font-size: 14px; }
.mod-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Edit suggestions */
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.edit-grid .span-2 { grid-column: span 2; }
@media (max-width: 520px) { .edit-grid .span-2 { grid-column: auto; } }
.edit-grid .field.changed input, .edit-grid .field.changed select { border-color: var(--accent); background: var(--nav-on-bg); }
.suggest-edit { display: block; margin-top: 12px; font-weight: 700; }
.dupes { flex-direction: column; align-items: stretch; }
.dupes .grid { margin: 10px 0; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th, .diff td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.diff thead th { font-size: 12px; color: var(--subtle); text-transform: uppercase; letter-spacing: .04em; }
.diff tbody th { color: var(--muted); font-weight: 600; width: 32%; }
.diff .from { color: var(--subtle); text-decoration: line-through; }
.diff .to { font-weight: 700; }

/* Recommendations */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rec-card { display: flex; gap: 14px; padding: 14px; border-radius: 18px; color: var(--text); }
.rec-card:hover { text-decoration: none; border-color: var(--accent); }
.rec-card .cover { width: 80px; flex: none; border-radius: 12px; }
.rec-card .cover .cover-title { font-size: 11px; padding: 8px; }
.rec-card .cover .badge { top: 6px; left: 6px; font-size: 10px; padding: 2px 7px; }
.rec-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; }
.rec-quote { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.rec-list { display: flex; flex-direction: column; gap: 14px; }
.rec-entry { display: flex; gap: 18px; padding: 18px; border-radius: 20px; }
.rec-cover { width: 110px; flex: none; border-radius: 14px; }
.rec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rec-title { font-weight: 800; font-size: 17px; color: var(--text); }
.rec-votes { margin-left: auto; font-size: 13px; color: var(--muted); }
.rec-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rec-reasons li { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--chip); }
.rec-reasons p { line-height: 1.6; overflow-wrap: anywhere; }
.inline-form { display: inline; }
.rec-search { display: flex; flex-direction: column; gap: 10px; }
.rec-search input[type=search] { flex: 1 1 260px; min-height: 44px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--chip); color: var(--text); font: 500 15px 'Plus Jakarta Sans', sans-serif; padding: 0 16px; }
.rec-pair { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rec-side { display: flex; flex-direction: column; gap: 4px; width: 130px; font-size: 14px; }
.rec-side .cover { width: 130px; border-radius: 14px; }
.rec-side small { color: var(--subtle); }
.rec-arrow { font-size: 28px; color: var(--accent); font-weight: 800; }
@media (max-width: 600px) { .rec-entry { flex-direction: column; } .rec-cover { width: 90px; } .rec-votes { margin-left: 0; } }

/* Notifications */
.notifdd summary { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent-2); color: #1E1B2E; font: 800 11px/20px 'Plus Jakarta Sans', sans-serif; text-align: center; border: 2px solid var(--surface); }
.notif-pop { right: 0; width: min(380px, calc(100vw - 32px)); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.notif-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-pop-head form { display: inline; }
.notif-pop .notif-list { max-height: 60vh; overflow-y: auto; }
.notif-empty { padding: 16px; }
.notif-all { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: 14px; border-top: 1px solid var(--border); }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list.panel { padding: 6px 0; border-radius: 20px; }
.notif a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; color: var(--text); }
.notif a:hover { background: var(--chip); text-decoration: none; }
.notif + .notif { border-top: 1px solid var(--border); }
.notif.unread a { background: color-mix(in srgb, var(--nav-on-bg) 55%, transparent); }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--chip); color: var(--muted); }
.ni-reply, .ni-quote, .ni-mention { background: var(--nav-on-bg); color: var(--nav-on); }
.ni-approved { background: var(--t2); color: var(--t2i); } .ni-rejected { background: var(--t1); color: var(--t1i); }
.ni-helpful { background: var(--t3); color: var(--t3i); }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; }
.notif-body small { color: var(--subtle); font-size: 12px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 6px 0 0 auto; flex: none; }
.mention { font-weight: 700; }
@media (max-width: 640px) { .notif-pop { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; } }
/* Phones: the light/dark switch moves into the menu so the header fits */
.menu-theme { display: none; }
@media (max-width: 480px) {
  .topbar-right > .theme-btn { display: none; }
  .browse-pop .menu-theme { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
  .browse-pop .menu-theme:hover { background: var(--chip); }
}
@media (max-width: 400px) { .topbar-right { gap: 4px; } .topbar-in { gap: 4px; } .icon-btn, .browse .nav-link { width: 38px; height: 38px; min-height: 38px; } .usermenu .avatar { width: 38px; height: 38px; } .logo span { font-size: 16px; } .logo .logo-mark { width: 32px; height: 16px; } }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .mini-cover { width: 44px; height: 62px; overflow: hidden; }
.review-head .mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.review-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.review-who a { color: var(--text); }
.review-title-link { font-weight: 800; font-size: 15px; }
.review-score { margin-left: auto; flex: none; display: inline-flex; align-items: baseline; gap: 1px; padding: 6px 12px; border-radius: 12px; background: var(--chip); font-size: 13px; color: var(--muted); }
.review-score b { font-size: 20px; color: var(--text); }
.review-score.s9 b, .review-score.s10 b, .review-score.s8 b { color: #2E8B6A; }
.review-score.s1 b, .review-score.s2 b, .review-score.s3 b, .review-score.s4 b { color: #C2412D; }
:root[data-theme="dark"] .review-score.s9 b, :root[data-theme="dark"] .review-score.s10 b, :root[data-theme="dark"] .review-score.s8 b { color: #6FD6AE; }
:root[data-theme="dark"] .review-score.s1 b, :root[data-theme="dark"] .review-score.s2 b, :root[data-theme="dark"] .review-score.s3 b, :root[data-theme="dark"] .review-score.s4 b { color: #FF9B8A; }
.review-body.clamp { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.review-spoiler summary { color: var(--accent-2); }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.review-actions { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.review-actions form { display: inline; }
.helpful-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.helpful-btn:hover { border-color: var(--accent); }
.helpful-btn.on { background: var(--nav-on-bg); color: var(--nav-on); border-color: transparent; }
.score-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.score-pick legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.score-options { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.score-opt { position: relative; }
.score-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.score-opt span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); font-weight: 800; }
.score-opt input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.score-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .score-options { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Where to watch / read */
.where-to { display: flex; flex-direction: column; gap: 12px; }
.where-to h2 { margin-bottom: 0; }
.watch-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.watch-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pill-border); color: var(--text); font-weight: 700; font-size: 14px; }
.watch-link:hover { text-decoration: none; border-color: var(--accent); background: var(--chip); }
.watch-link svg { margin-left: auto; color: var(--subtle); }
.svc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); flex: none; }
.svc-crunchyroll .svc-dot { background: #F47521; } .svc-netflix .svc-dot { background: #E50914; }
.svc-primevideo .svc-dot { background: #1A98FF; } .svc-hulu .svc-dot { background: #1CE783; }
.svc-disney .svc-dot { background: #113CCF; } .svc-max .svc-dot { background: #002BE7; }
.svc-tubi .svc-dot { background: #FA541C; } .svc-bilibili .svc-dot { background: #00A1D6; }
.svc-inkr .svc-dot { background: #7B61FF; } .svc-comicwalker .svc-dot { background: #E60012; }
.official-site { font-size: 14px; font-weight: 700; }

/* Covers: upload form, title page actions, moderator queue */
.cover-col { display: flex; flex-direction: column; gap: 10px; flex: none; }
.cover-actions { display: flex; justify-content: center; gap: 16px; font-size: 13px; font-weight: 700; }
.cover-actions form { display: inline; }
.danger-link { color: #C2412D; font-weight: 700; }
:root[data-theme="dark"] .danger-link { color: #FF9B8A; }
.cover-upload { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cover-fields { flex: 999 1 320px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cover-fields input[type=file] { padding: 8px; }
.cover-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cover-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cover-review { display: flex; flex-direction: column; gap: 12px; }
.cover-compare { display: flex; gap: 14px; }
.cover-compare figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 12px; color: var(--subtle); }
.cover-compare img, .cover-compare .cover { width: 150px; height: 225px; border-radius: 12px; object-fit: cover; }
@media (max-width: 600px) { .cover-col { align-self: center; } }

/* Synopsis source + submission form */
.synopsis-source { font-size: 14px; font-style: italic; color: var(--muted); }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.choice legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.choice .check input { accent-color: var(--accent); }
form:has(input[name="source_kind"][value="own"]:checked) .official-fields { display: none; }

/* Lists */
.list-widget h2 { margin-bottom: 4px; }
.list-form { gap: 12px; }
.list-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.progress-input { display: flex; align-items: center; gap: 8px; }
.progress-input input { width: 100%; }
.scores { gap: 18px; }
.scores small { color: var(--subtle); font-weight: 500; }
.title-info form { display: inline; }
.chip-n { margin-left: 6px; color: var(--subtle); font-weight: 600; }
.chip.on .chip-n { color: inherit; opacity: .7; }
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--nav); font-weight: 600; font-size: 14px; }
.tabs a:hover { background: var(--chip); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--nav-on-bg); color: var(--nav-on); font-weight: 700; }
.tabs a span { color: var(--subtle); font-weight: 600; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form select { min-height: 40px; border-radius: 12px; border: 1px solid var(--pill-border); background: var(--surface); color: var(--text); font: 500 14px 'Plus Jakarta Sans', sans-serif; padding: 0 10px; }
.list-rows { list-style: none; margin: 0; padding: 4px 0; border-radius: 20px; }
.list-item { display: grid; grid-template-columns: 36px 1fr 120px 130px 50px; gap: 14px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--border); }
.list-item:first-child { border-top: 0; }
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-title { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.list-status { font-size: 13px; font-weight: 700; }
.st-current { color: var(--accent); } .st-completed { color: #2E8B6A; } .st-planning { color: var(--subtle); }
.st-paused { color: #B7791F; } .st-dropped { color: #C2412D; }
:root[data-theme="dark"] .st-completed { color: #6FD6AE; } :root[data-theme="dark"] .st-paused { color: #F2C46D; } :root[data-theme="dark"] .st-dropped { color: #FF9B8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-completed { color: #6FD6AE; } :root:not([data-theme="light"]) .st-paused { color: #F2C46D; } :root:not([data-theme="light"]) .st-dropped { color: #FF9B8A; } }
.list-progress { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.list-progress form { display: inline; }
.list-score { text-align: center; font-size: 15px; }
.plus1 { min-width: 44px; height: 32px; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--chip); color: var(--text); font: 700 13px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.plus1:hover { border-color: var(--accent); }
.plus1:disabled { opacity: .5; }
.plus1-dark { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #FFFFFF; }
@media (max-width: 640px) {
  .list-item { grid-template-columns: 36px 1fr auto; padding: 12px 16px; }
  .list-status { grid-column: 2; grid-row: 2; }
  .list-progress { grid-column: 3; grid-row: 1 / span 2; }
  .list-score { display: none; }
}
.continue ul { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.continue li { display: flex; flex-direction: column; gap: 6px; }
.continue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.continue-top a { color: #FFFFFF; font-weight: 700; font-size: 14px; }
.continue-meta { color: #D6D2EA; font-size: 13px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: #A99BFF; }
.list-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 20px; color: var(--text); }
.stat-card:hover { text-decoration: none; border-color: var(--accent); }
.stat-n { font-size: 30px; font-weight: 800; }
.stat-label { font-weight: 700; }
.sub-h { font-size: 16px; font-weight: 800; margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 36px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--link); }
.footer-links .kofi { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--nav-on-bg); color: var(--nav-on); }
.footer-links .kofi:hover { text-decoration: none; filter: brightness(1.05); }

/* ---- /welcome setup */
.welcome { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.welcome-head.center { padding: 24px 0 0; gap: 12px; }
.welcome-steps { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.welcome-steps a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--pill-border); color: var(--muted); font-weight: 700; font-size: 14px; }
.welcome-steps a span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--text); }
.welcome-steps .on a { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-bg); }
.welcome-steps .on a span { background: var(--surface); color: var(--text); }
.welcome-steps .done a span { background: var(--accent); color: var(--on-accent); }
.welcome-steps a:hover { text-decoration: none; }
.welcome-search { margin: 16px 0; max-width: 460px; }
.welcome-sub { font-size: 15px; margin: 20px 0 12px; }
.welcome-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.welcome-pick { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.welcome-pick .cover { width: 100%; outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s ease; }
.welcome-pick .card-title { font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.welcome-heart { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(18,17,26,.55); color: #FFFFFF; }
.welcome-pick.on .cover { outline-color: var(--coral, #F07A5A); }
.welcome-pick.on .welcome-heart { background: #F07A5A; }
.welcome-pick:focus-visible .cover { outline-color: var(--accent); }
.welcome-msg:empty { display: none; }
.welcome-members { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.welcome-members li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 18px; }
.welcome-member { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.welcome-member .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-weight: 800; object-fit: cover; }
.welcome-member span { display: flex; flex-direction: column; min-width: 0; }
.welcome-member b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-follow { height: 38px; padding: 0 16px; }
.welcome-follow.on { background: var(--accent); color: var(--on-accent); }
.welcome-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 24px; }

/* ---- Homepage rows: 6 across on desktop, swipe sideways on phones */
.row6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; }
@media (max-width: 1000px) and (min-width: 701px) { .row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .row6 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; gap: 14px; scrollbar-width: thin; }
  .row6 > * { scroll-snap-align: start; }
}
.home-row + .home-row, .split + .home-row { margin-top: 8px; }
/* Top list */
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.top-list li { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-radius: 16px; }
.top-rank { width: 44px; flex: none; font-weight: 800; font-size: 20px; color: var(--subtle); text-align: center; }
.top-list li:nth-child(-n+3) .top-rank { color: var(--accent); }
.top-list .mini-cover { width: 44px; height: 62px; }
.top-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.top-title { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 12px; font-weight: 700; }
.tag-chip:hover { text-decoration: none; background: var(--sel-bg); color: var(--sel-text); }
.top-col { flex: 0 0 130px; display: flex; flex-direction: column; gap: 2px; }
.top-col b { font-size: 14px; }
.top-col small { font-size: 12px; color: var(--subtle); }
@media (max-width: 760px) { .top-hide-sm { display: none; } .top-col { flex-basis: 92px; } .top-rank { width: 28px; font-size: 16px; } .top-list li { gap: 10px; padding: 10px 12px; } }
/* Rows inside the narrower main column (next to the sidebar): 3 across when the column is narrow */
.split-main { container-type: inline-size; }
@media (min-width: 701px) { @container (max-width: 720px) { .split-main .row6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } } }

/* Card quick add (list status on the cover, hover / + button menu) */
.card-wrap { position: relative; min-width: 0; }
.card-status { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: rgba(18, 17, 26, .82); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-status.cs-current { background: #5B47C9; } .card-status.cs-completed { background: #2E8B6A; }
.card-wrap:hover .cover, .card-wrap:focus-within .cover { transform: translateY(-3px); }
.qa { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 2; transition: transform .15s ease; }
.card-wrap:hover .qa, .card-wrap:focus-within .qa { transform: translateY(-3px); }
.qa-toggle { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(18,17,26,.62); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s, background .15s; }
.qa-toggle svg { display: block; }
.qa-toggle .qa-i-on, .qa-toggle.on .qa-i-add { display: none; }
.qa-toggle.on .qa-i-on { display: block; }
.qa-toggle:hover, .qa.open .qa-toggle { background: rgba(18,17,26,.85); }
.qa-toggle.on { background: var(--accent); border-color: transparent; color: #fff; }
.qa-toggle:focus-visible, .card-wrap:hover .qa-toggle, .qa.open .qa-toggle { opacity: 1; }
@media (hover: none) { .qa-toggle { opacity: 1; } }
.qa-menu { display: none; flex-direction: column; gap: 2px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.3); min-width: 136px; }
.qa.open .qa-menu { display: flex; }
.qa-menu button, .qa-menu a { display: block; text-align: left; width: 100%; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif; cursor: pointer; }
.qa-menu button:hover, .qa-menu a:hover, .qa-menu button:focus-visible { background: var(--chip); text-decoration: none; }
.qa-menu button[aria-pressed="true"] { background: var(--nav-on-bg); color: var(--nav-on); }
.qa-menu button[aria-pressed="true"]::before { content: "✓ "; }
.qa-menu button[data-do] { border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; }
.qa-menu button:disabled { opacity: .6; cursor: progress; }
/* List page extras (owner only) and the title-page "More details" section */
.list-extra { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--subtle); margin-top: 2px; }
.list-tag { background: var(--chip); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.list-hidden { background: var(--accent-2); color: #1E1B2E; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.list-note { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-more { border-top: 1px solid var(--border); padding-top: 10px; }
.list-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--link); }
.list-more[open] { display: flex; flex-direction: column; gap: 12px; }
.list-more[open] summary { margin-bottom: 2px; }
.qa-menu [hidden], .card-status[hidden] { display: none; }
