/* ================= Tokens =================
   skin: strict (doramalive-like) | retro (paper / old cinema)
   theme: dark | light                                         */
:root {
  --font: "PT Sans Narrow", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-head: var(--font);
  --fs: 17px;
  --radius: 3px;
  --border-w: 1px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --accent: #d9534f;
  --accent-2: #c9302c;
  --accent-ink: #fff;
  --green: #5c8a1e;
  --gold: #f0ad4e;
  --kp: #f60;
  --imdb: #e0b20f;
}
:root[data-skin="strict"][data-theme="dark"] {
  --page: #2a2027;
  --scene: linear-gradient(180deg, #3b2e3f 0%, #6b4a58 35%, #8d6670 52%, #4a3443 70%, #2a2027 100%);
  --panel: rgba(0, 0, 0, .7);
  --panel-solid: #1c1619;
  --panel-2: rgba(255, 255, 255, .06);
  --text: #dbdbdb;
  --head: #fff;
  --muted: #9a9396;
  --line: rgba(255, 255, 255, .12);
  --hdr: rgba(0, 0, 0, .75);
  --hdr-text: #fff;
  --input: #fff;
  --input-text: #222;
  --link: #fff;
  --hover: rgba(255, 255, 255, .08);
}
:root[data-skin="strict"][data-theme="light"] {
  --page: #efe9ec;
  --scene: linear-gradient(180deg, #f6d9df 0%, #f3e3e6 40%, #efe9ec 75%);
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #fff;
  --panel-2: rgba(0, 0, 0, .04);
  --text: #2b2427;
  --head: #111;
  --muted: #7b7176;
  --line: rgba(0, 0, 0, .1);
  --hdr: rgba(25, 18, 22, .92);
  --hdr-text: #fff;
  --input: #fff;
  --input-text: #222;
  --link: #a8322f;
  --hover: rgba(0, 0, 0, .05);
  --shadow: 0 6px 20px rgba(60, 20, 30, .12);
}
:root[data-skin="retro"] {
  --font: "PT Serif", Georgia, "Times New Roman", serif;
  --font-head: "Courier Prime", "Courier New", monospace;
  --fs: 16px;
  --radius: 0;
  --border-w: 2px;
}
:root[data-skin="retro"][data-theme="light"] {
  --page: #efe4cc;
  --scene: repeating-linear-gradient(0deg, rgba(120, 90, 40, .035) 0 2px, transparent 2px 4px), #efe4cc;
  --panel: #fbf4e2;
  --panel-solid: #fbf4e2;
  --panel-2: #f2e6c9;
  --text: #2d2117;
  --head: #1d140c;
  --muted: #7b664d;
  --line: #2d2117;
  --hdr: #2d2117;
  --hdr-text: #f5e7c4;
  --input: #fffaf0;
  --input-text: #2d2117;
  --link: #8b1e1e;
  --hover: #f2e6c9;
  --accent: #8b1e1e;
  --accent-2: #6a1414;
  --accent-ink: #fbf4e2;
  --green: #3f6b2a;
  --shadow: 4px 4px 0 #2d2117;
}
:root[data-skin="retro"][data-theme="dark"] {
  --page: #17120d;
  --scene: repeating-linear-gradient(0deg, rgba(255, 200, 120, .025) 0 2px, transparent 2px 4px), radial-gradient(ellipse at top, #2c2116, #17120d 70%);
  --panel: #221a12;
  --panel-solid: #221a12;
  --panel-2: #2c2217;
  --text: #ead7b0;
  --head: #f6e6c2;
  --muted: #a58d69;
  --line: #6b5536;
  --hdr: #0f0b07;
  --hdr-text: #f0b44c;
  --input: #120d08;
  --input-text: #ead7b0;
  --link: #f0b44c;
  --hover: #2c2217;
  --accent: #e0a13a;
  --accent-2: #c48420;
  --accent-ink: #17120d;
  --green: #7a9a3a;
  --shadow: 4px 4px 0 #000;
}

/* ================= Base ================= */
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-height: 100vh; font: var(--fs)/1.45 var(--font); color: var(--text); background: var(--scene); background-attachment: fixed; }
:root[data-skin="strict"] body::before {
  /* stylised "landscape" behind content, like doramalive's photo background */
  content: ""; position: fixed; inset: auto 0 0 0; height: 55vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(160, 90, 170, .45), transparent 70%),
    radial-gradient(ellipse 50% 35% at 75% 100%, rgba(190, 110, 160, .35), transparent 70%),
    linear-gradient(170deg, transparent 40%, rgba(0, 0, 0, .25) 41%, transparent 60%);
}
:root[data-skin="strict"][data-theme="light"] body::before { opacity: .35; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); color: var(--head); font-weight: 700; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
:root[data-skin="retro"] h1, :root[data-skin="retro"] h2, :root[data-skin="retro"] h3 { text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 .7em; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.ok { color: #4caf50; } .warn { color: var(--gold); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 18px; padding-bottom: 40px; }
main.wide { max-width: 1440px; }
[hidden] { display: none !important; }

/* ================= Buttons & inputs ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 16px; border: var(--border-w) solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); cursor: pointer; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.dark { background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .15); color: #fff; }
:root[data-theme="light"] .btn.dark { background: #2b2427; }
:root[data-skin="retro"] .btn.dark { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn.danger { color: #e57373; }
.btn.sm { padding: 4px 10px; font-size: 14px; }
.btn.block { display: flex; width: 100%; margin-top: 8px; }
.btn.disabled { opacity: .4; pointer-events: none; }
:root[data-skin="retro"] .btn { box-shadow: 3px 3px 0 var(--line); text-transform: uppercase; font-family: var(--font-head); font-size: 14px; letter-spacing: .03em; }
:root[data-skin="retro"] .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .sel {
  background: var(--input); color: var(--input-text); border: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 7px 10px; min-width: 0;
}
:root[data-skin="strict"][data-theme="dark"] :is(.sel, .filters select, .form-grid input, .form-grid select, .form-grid textarea, .stack input, .cmt-form textarea, .review-form textarea, .review-form select) {
  background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--line);
}
:root[data-skin="strict"][data-theme="dark"] option { background: #222; color: #ddd; }
textarea { width: 100%; resize: vertical; min-height: 80px; }
.sel.sm { padding: 3px 6px; font-size: 14px; }

/* ================= Header ================= */
.hdr { background: var(--hdr); color: var(--hdr-text); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(6px); }
:root[data-skin="retro"] .hdr { border-bottom: 3px double var(--accent); }
.hdr a { color: var(--hdr-text); }
.hdr-top { display: flex; align-items: center; gap: 18px; height: 52px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-size: 14px; }
.logo-text b { background: var(--accent); color: var(--accent-ink); padding: 0 5px; margin-left: 3px; border-radius: 2px; }
:root[data-skin="retro"] .logo-text { text-transform: uppercase; }
.mainnav { display: flex; height: 100%; }
.mainnav a { display: flex; align-items: center; padding: 0 12px; font-size: 16px; }
.mainnav a.on, .mainnav a:hover { background: var(--accent); color: var(--accent-ink); }
.search { flex: 1; display: flex; max-width: 360px; min-width: 200px; }
:root[data-skin="retro"] .mainnav a { padding: 0 9px; font-size: 15px; }
.search input { flex: 1; border-radius: var(--radius) 0 0 var(--radius) !important; border: 0 !important; height: 32px; background: var(--input) !important; color: var(--input-text) !important; }
.search button { border: 0; background: var(--accent); color: var(--accent-ink); width: 40px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 18px; }
.theme-ctl { display: flex; gap: 4px; }
.tbtn { background: rgba(255, 255, 255, .1); color: var(--hdr-text); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 4px 9px; cursor: pointer; font-size: 14px; }
.tbtn:hover { border-color: var(--accent); }
:root[data-skin="strict"] .sk-retro, :root[data-skin="retro"] .sk-strict { display: none; }
:root[data-theme="dark"] .th-light, :root[data-theme="light"] .th-dark { display: none; }
.umenu { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.umenu .btn.ghost { color: var(--hdr-text); border-color: rgba(255, 255, 255, .25); }
.burger { display: none; background: none; border: 0; color: var(--hdr-text); font-size: 24px; cursor: pointer; }
.hdr-sub { background: rgba(0, 0, 0, .35); border-top: 1px solid rgba(255, 255, 255, .06); }
:root[data-skin="retro"] .hdr-sub { background: var(--panel-2); border-bottom: var(--border-w) solid var(--line); }
:root[data-skin="retro"] .hdr-sub a, :root[data-skin="retro"] .hdr-sub summary { color: var(--text); }
.subnav { display: flex; gap: 4px; align-items: center; height: 38px; font-size: 15px; }
.subnav > a, .subnav > .dd > summary { padding: 6px 10px; border-radius: var(--radius); }
.subnav > a:hover, .subnav > .dd > summary:hover { background: rgba(255, 255, 255, .08); }
.sub-r { margin-left: auto; }

/* dropdowns via <details> */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd-body { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 200px; background: var(--panel-solid); border: var(--border-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.dd.right .dd-body { left: auto; right: 0; }
.dd-body a { color: var(--text) !important; padding: 6px 10px; border-radius: var(--radius); }
.dd-body a:hover { background: var(--hover); color: var(--accent) !important; }
.dd-body.cols { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 420px; }
.dd-head { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; color: var(--head); font-weight: 700; }
.dd-head small { display: block; color: var(--muted); font-weight: 400; }

/* ================= Layout blocks ================= */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.block { margin-bottom: 28px; }
.block-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.block-h h1, .block-h h2 { margin: 0; }
.box, .side .box { background: var(--panel); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
:root[data-skin="retro"] .box { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.side { position: sticky; top: 104px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs b { color: var(--text); font-weight: 400; }
.note { background: var(--panel-2); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 10px 0; border-radius: var(--radius); }
.note.warn { border-color: var(--gold); } .note.ok { border-color: #4caf50; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty.big { padding: 80px 10px; }
.empty-ico { font-size: 54px; font-family: var(--font-head); color: var(--accent); }
.big-ico { font-size: 54px; } .big-ico.ok { color: #4caf50; }

/* views switcher / tabs */
.views { display: inline-flex; margin-left: auto; border: var(--border-w) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.views a { padding: 5px 12px; font-size: 15px; color: var(--text); cursor: pointer; }
.views a.on { background: var(--accent); color: var(--accent-ink); }
.small-views a { padding: 3px 10px; font-size: 14px; }
.title-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.tabs, .tabs-inline { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button, .tabs-inline button, .player-tabs button { background: var(--panel); border: var(--border-w) solid transparent; color: var(--text); padding: 6px 14px; cursor: pointer; border-radius: var(--radius); }
.tabs button.on, .tabs-inline button.on, .player-tabs button.on { background: var(--accent); color: var(--accent-ink); }
:root[data-skin="retro"] :is(.tabs, .tabs-inline, .player-tabs) button { border-color: var(--line); font-family: var(--font-head); text-transform: uppercase; font-size: 13px; }

/* ================= Badges ================= */
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 6px; border-radius: 2px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; font-family: var(--font); vertical-align: middle; }
.badge.ok { background: #2e7d32; color: #fff; border-color: transparent; }
.badge.warn { background: #8a6d1d; color: #fff; border-color: transparent; }
.badge.staff { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.badge.crit { background: #6a1b9a; color: #fff; border-color: transparent; }
.badge.lock { background: #333; color: #fff; border-color: transparent; }
.badge.lock.denied { background: #b71c1c; }
.badge.r-common { background: #546e7a; color: #fff; } .badge.r-rare { background: #1565c0; color: #fff; } .badge.r-epic { background: #8e24aa; color: #fff; }
.badge.t-edit { background: #1565c0; color: #fff; } .badge.t-video { background: #2e7d32; color: #fff; } .badge.t-critique { background: #6a1b9a; color: #fff; } .badge.t-setting { background: #ef6c00; color: #fff; } .badge.t-comment { background: #546e7a; color: #fff; }
.st { font-size: 13px; padding: 2px 8px; border-radius: 10px; }
.st.ongoing { background: var(--green); color: #fff; } .st.finished { background: #455a64; color: #fff; } .st.announced { background: #8a6d1d; color: #fff; }
.rbox { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 10px; border: 2px solid; border-radius: var(--radius); font-weight: 700; font-size: 15px; line-height: 1.1; }
.rbox small { font-weight: 400; font-size: 11px; opacity: .8; }
.rbox.kp { border-color: var(--kp); color: var(--kp); } .rbox.imdb { border-color: var(--imdb); color: var(--imdb); } .rbox.site { border-color: var(--green); color: #8bc34a; }
.ratings { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.likes { display: inline-flex; gap: 6px; }
.likes button, .likes i { font-style: normal; background: var(--panel-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: var(--radius); cursor: pointer; font-size: 14px; color: var(--text); }
.likes .up { color: #7cb342; } .likes .down { color: #e57373; }

/* ================= Catalog: tiles (doramalive) ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tile { display: block; color: var(--text); }
.tile-img { position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
:root[data-skin="retro"] .tile-img { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
:root[data-skin="retro"] .tile-img img { filter: sepia(.35) contrast(1.05); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img .badge { position: absolute; border: 0; }
.tile-img .q { display: none; }
.tile-img .ep { right: 4px; bottom: 4px; background: var(--green); color: #fff; }
.tile-img .lock { left: 4px; bottom: 4px; }
.tile-rate { position: absolute; left: 4px; top: 4px; background: var(--green); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 2px; }
.tile-rate::before { content: "☆ "; }
.tile-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.tile:hover .tile-play { opacity: 1; }
.tile-title { margin-top: 7px; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--head); }
.tile:hover .tile-title { color: var(--accent); }
.tile-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* latest episodes strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.ep-card { scroll-snap-align: start; color: var(--text); }
.ep-img { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: #000; }
.ep-img .banner { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ep-voices { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; justify-content: space-between; padding: 4px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); border-top: 2px solid var(--accent); font-size: 12px; color: #fff; }
.ep-img .lock { position: absolute; top: 4px; right: 4px; }
.ep-card b { display: block; margin-top: 6px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-card small { color: var(--muted); }

/* sidebar widgets */
.top { margin: 0; padding: 0; list-style: none; }
.top a { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.top .n { width: 20px; color: var(--accent); font-weight: 700; } .top .tt { flex: 1; } .top b { color: #8bc34a; }
.mini-rev { font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.mini-rev p { color: var(--muted); margin: 4px 0 0; }
.mini { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--text); }
.mini-img { width: 44px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; }
.mini small { display: block; color: var(--muted); }

/* ================= Filters (fanserials) ================= */
.filters { background: var(--panel); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
:root[data-skin="retro"] .filters { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.f-row { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.f-row + .f-row { margin-top: 14px; }
.f-block { min-width: 220px; } .f-block.grow { flex: 1; min-width: 300px; }
.f-label { font-size: 14px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seg input { display: none; } .seg span { cursor: pointer; border-bottom: 1px dashed var(--muted); }
.seg input:checked + span { color: var(--accent); border-color: var(--accent); }
.range-track { position: relative; height: 22px; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.range-fill { position: absolute; top: 10px; height: 2px; background: var(--accent); }
.range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); background: var(--panel-solid); cursor: pointer; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--panel-solid); cursor: pointer; }
.range-marks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.range-val { font-size: 13px; color: var(--muted); }
.range-val b { color: var(--text); }
.msel { position: relative; min-width: 170px; }
.msel > summary { list-style: none; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; padding: 7px 12px; border: var(--border-w) solid var(--line); border-radius: var(--radius); background: var(--panel-2); max-width: 240px; }
.msel > summary::-webkit-details-marker { display: none; }
.msel-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msel-body { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 260px; max-height: 280px; overflow: auto; background: var(--panel-solid); border: var(--border-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.msel-body label { display: flex; gap: 8px; padding: 4px 6px; cursor: pointer; }
.msel-body label:hover { background: var(--hover); }
.filters .btn { min-width: 110px; }

/* ================= Catalog: cards (lordfilm) ================= */
.cards { display: flex; flex-direction: column; gap: 16px; }
.card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; background: var(--panel); padding: 14px; border-radius: var(--radius); }
:root[data-skin="retro"] .card { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.card-img { position: relative; display: block; }
.card-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius); }
.card-img .yr { position: absolute; top: 6px; left: 6px; background: var(--green); color: #fff; border: 0; }
.card-img .lock { position: absolute; top: 6px; right: 6px; }
.card-rate { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #222; background: #fff; border: 3px solid var(--gold); }
.card-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--head); }
.card-orig { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.card-desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 15px; }
.card-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.card-foot .btn { margin-left: auto; }

/* ================= Catalog: compact alphabetical (fanserials) ================= */
.alpha { background: var(--panel); padding: 14px 20px; border-radius: var(--radius); }
:root[data-skin="retro"] .alpha { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.letters { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.letters span { color: var(--muted); opacity: .45; }
.letters .rand { margin-left: auto; color: var(--accent); }
.alpha-cols { columns: 4 220px; column-gap: 28px; }
.alpha-g { break-inside: avoid; display: grid; grid-template-columns: 26px 1fr; margin-bottom: 18px; }
.alpha-g h3 { color: var(--accent); margin: 0; font-size: 18px; grid-row: span 2; }
.alpha-g ul { list-style: none; margin: 0; padding: 0; }
.alpha-g li { font-size: 15px; line-height: 1.65; }
.alpha-g li a { color: var(--text); }
.alpha-g li a:hover { color: var(--accent); }
.alpha-g li a.locked::after { content: " 🔒"; font-size: 11px; }
.alpha-g details summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.alpha-g details[open] summary { display: none; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8bc34a; margin-left: 6px; vertical-align: middle; }

/* ================= Hover preview popup ================= */
.pv { position: fixed; z-index: 100; width: 420px; display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px; background: var(--panel-solid); color: var(--text); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); border: var(--border-w) solid var(--line); pointer-events: none; font-size: 14px; animation: pvin .14s ease-out; }
:root[data-skin="retro"] .pv { box-shadow: 6px 6px 0 var(--line); }
@keyframes pvin { from { opacity: 0; transform: translateY(4px); } }
.pv-img { position: relative; }
.pv-img img { width: 130px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius); }
.pv-img .btn { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 13px; padding: 4px 10px; }
.pv h4 { margin: 0; font-size: 19px; color: var(--accent); font-family: var(--font-head); }
.pv .pv-orig { color: var(--muted); margin-bottom: 8px; }
.pv dl { display: grid; grid-template-columns: 80px 1fr; gap: 3px 8px; margin: 0 0 8px; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv dt { color: var(--muted); } .pv dd { margin: 0; }
.pv p { margin: 0; color: var(--muted); line-height: 1.35; }
.pv .pv-lock { color: #e57373; font-weight: 700; margin-top: 6px; }

/* ================= Pagination ================= */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager b { min-width: 36px; padding: 6px 10px; text-align: center; background: var(--panel); border-radius: var(--radius); color: var(--text); }
.pager b { background: var(--accent); color: var(--accent-ink); }

/* ================= Setting page (doramalive full story) ================= */
.full-h1 { font-size: 26px; }
.full { display: grid; grid-template-columns: 200px 1fr; gap: 22px; margin-bottom: 16px; }
.full-img { position: relative; margin-top: 4px; }
.full-img img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
:root[data-skin="retro"] .full-img img { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); filter: sepia(.3); }
.full-img .badge { position: absolute; border: 0; }
.full-img .st-b { top: 6px; left: 6px; background: var(--accent); color: #fff; }
.full-img .st-b.ongoing { background: var(--green); }
.full-img .age { left: 6px; bottom: 6px; background: #000; color: #fff; }
.full-img .lock { right: 6px; bottom: 6px; }
.stars { display: flex; margin-top: 8px; }
.stars button { background: none; border: 0; padding: 0 1px; color: #666; font-size: 18px; cursor: pointer; }
.stars button.on { color: var(--gold); }
.stars:hover button { color: var(--gold); } .stars button:hover ~ button { color: #666; }
.age-line { display: inline-block; background: rgba(0, 0, 0, .55); color: #fff; padding: 4px 10px; font-size: 13px; margin-bottom: 8px; }
:root[data-skin="retro"] .age-line { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.alt-names { color: var(--muted); text-transform: uppercase; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.full-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.full-cols p { margin: 0 0 6px; }
.full-cols b { color: var(--head); font-weight: 400; }
.rate-g { background: var(--green); color: #fff; padding: 1px 6px; font-size: 14px; }
.progress { display: inline-block; position: relative; width: 140px; height: 18px; background: rgba(255, 255, 255, .1); vertical-align: middle; border-radius: 2px; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.progress span { position: relative; display: block; text-align: center; font-size: 12px; color: #fff; line-height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags a { background: rgba(0, 0, 0, .45); color: #fff; padding: 3px 10px 3px 8px; border-radius: 12px; font-size: 14px; }
.tags a::before { content: "# "; opacity: .6; }
:root[data-theme="light"] .tags a, :root[data-skin="retro"] .tags a { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.desc p { color: var(--text); }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.frames img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
:root[data-skin="retro"] .frames img { filter: sepia(.5) contrast(1.1); border: var(--border-w) solid var(--line); }
.info { width: 100%; border-collapse: collapse; }
.info th { text-align: left; color: var(--muted); font-weight: 400; padding: 3px 12px 3px 0; width: 180px; vertical-align: top; }
.info td { padding: 3px 0; }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.season { color: var(--text); background: var(--panel); border-radius: var(--radius); overflow: hidden; padding-bottom: 10px; position: relative; }
:root[data-skin="retro"] .season { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.season-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.season-img img { width: 100%; height: 100%; object-fit: cover; }
.season-n { position: absolute; right: 10px; bottom: 0; font: 700 56px/1 var(--font-head); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.season b, .season small { display: block; padding: 0 12px; } .season b { margin-top: 8px; color: var(--head); } .season small { color: var(--muted); }
.season .st { position: absolute; top: 8px; left: 8px; }
.season:hover b { color: var(--accent); }

/* lordfilm alt card */
.lf { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: var(--panel); padding: 16px; border-radius: var(--radius); margin-bottom: 22px; }
:root[data-skin="retro"] .lf { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.lf-poster { position: relative; }
.lf-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.lf-poster .yr { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; border: 0; }
.lf-score { position: absolute; left: 50%; top: calc(100% - 60px); transform: translateX(-50%); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #222; font-weight: 700; border: 3px solid var(--gold); }
.lf-poster .likes { display: flex; justify-content: space-between; margin-top: 10px; }
.lf h1 { font-size: 22px; }
.clamp { max-height: 4.4em; overflow: hidden; color: var(--muted); font-size: 15px; }
.clamp.open { max-height: none; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 14px 0; }
.lf-r { display: flex; gap: 8px; }
.lf p { margin: 4px 0; }

/* intermediate: season page (jutsu) */
.season-head { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: var(--panel); padding: 16px; border-radius: var(--radius); margin-bottom: 22px; }
:root[data-skin="retro"] .season-head { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.season-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.season-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border: var(--border-w) solid var(--line); border-radius: 14px; color: var(--text); }
.chip.on, .chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
:root[data-skin="retro"] .chip { border-radius: 0; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ep { position: relative; display: block; padding: 10px 12px; background: var(--panel); border: var(--border-w) solid var(--line); border-radius: var(--radius); color: var(--text); }
.ep b { display: block; color: var(--head); } .ep small { color: var(--muted); }
.ep:hover { border-color: var(--accent); } .ep:hover b { color: var(--accent); }
.ep.seen { opacity: .65; } .ep.soon { opacity: .4; border-style: dashed; }
.seen-mark { position: absolute; right: 10px; top: 10px; color: #8bc34a; font-style: normal; }

/* episode page */
.ep-h1 small { display: block; font-size: 17px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.ep-sub { margin-bottom: 14px; }
.player-wrap { margin-bottom: 14px; }
.player-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.player-tabs button { background: rgba(0, 0, 0, .55); color: #fff; }
:root[data-theme="light"] .player-tabs button { background: #2b2427; }
:root[data-skin="retro"] .player-tabs button { background: var(--panel-2); color: var(--text); }
.player { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: var(--radius); }
:root[data-skin="retro"] .player { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px); }
.player-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 30px; cursor: pointer; }
.player-play:hover { background: var(--accent); }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 8px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); color: #fff; font-size: 13px; }
.pb { flex: 1; height: 4px; background: rgba(255, 255, 255, .25); } .pb i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 20s linear; }
.player.playing .pb i { width: 100%; } .player.playing .player-play { opacity: 0; }
.player-cap { position: absolute; left: 14px; top: 12px; color: #fff; font-size: 15px; text-shadow: 0 1px 4px #000; }
.player.locked { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #1a1a1a 0 14px, #222 14px 28px); color: #ddd; text-align: center; padding: 20px; }
.ep-controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ep-controls .btn:last-child { margin-left: auto; }
.ep-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 24px; }
.ep-strip .n { min-width: 38px; padding: 6px 4px; text-align: center; background: var(--panel); color: var(--text); border-radius: var(--radius); font-size: 14px; }
:root[data-skin="retro"] .ep-strip .n { border: 1px solid var(--line); }
.ep-strip .n.seen { color: var(--muted); } .ep-strip .n.on { background: var(--accent); color: var(--accent-ink); } .ep-strip .n.soon { opacity: .35; }
.ep-info { display: grid; grid-template-columns: 110px 1fr; gap: 16px; background: var(--panel); padding: 14px; border-radius: var(--radius); }
.ep-info-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }

/* setting sidebar */
.kv { display: grid; grid-template-columns: 64px 1fr; gap: 6px; margin-bottom: 10px; font-size: 15px; }
.kv > span { color: var(--muted); }
.avas { display: flex; flex-wrap: wrap; gap: 4px; }

/* ================= People ================= */
.ava { --s: 32px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: hsl(var(--h), 45%, 45%); color: #fff; font-weight: 700; font-size: calc(var(--s) * .45); }
:root[data-skin="retro"] .ava { border-radius: 0; border: 2px solid var(--line); }
.ulink { display: inline-flex; align-items: center; gap: 6px; color: var(--head); }
.vmark { font-style: normal; color: #8bc34a; font-size: 12px; }
.role-tag { font-style: normal; font-size: 11px; background: var(--accent); color: var(--accent-ink); padding: 1px 5px; border-radius: 2px; }

/* comments & reviews */
.cmt { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmt.child { border: 0; padding-bottom: 0; }
.cmt-body { flex: 1; }
.cmt-h { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 4px; }
.cmt-body p { margin: 0 0 4px; }
.cmt-act { display: flex; gap: 12px; }
.cmt-act button { background: none; border: 0; color: var(--muted); padding: 0; cursor: pointer; font-size: 13px; }
.cmt-act button:hover { color: var(--accent); }
.cmt-form { display: grid; grid-template-columns: auto 1fr; gap: 12px; background: var(--panel); padding: 12px; border-radius: var(--radius); margin-bottom: 10px; }
.cmt-form-f { grid-column: 2; display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.review { background: var(--panel); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 10px; border-left: 3px solid var(--line); }
.review.critique { border-left-color: #8e24aa; }
:root[data-skin="retro"] .review { border: var(--border-w) solid var(--line); }
.review-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.score { margin-left: auto; font-weight: 700; } .score.shi { color: #8bc34a; } .score.smid { color: var(--gold); } .score.slo { color: #e57373; }
.review-form { background: var(--panel); padding: 12px; border-radius: var(--radius); display: grid; gap: 10px; }
.review-form .btn { justify-self: end; }

/* ================= Forms / auth ================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; background: var(--panel); padding: 20px; border-radius: var(--radius); }
:root[data-skin="retro"] .form-grid { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.form-grid h2 { margin: 10px 0 0; font-size: 18px; }
.form-grid label, .stack label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.form-grid label input, .form-grid label select, .form-grid label textarea, .stack label input { color: var(--text); }
.span2 { grid-column: span 2; }
.drop { border: 2px dashed var(--line); padding: 30px; text-align: center; border-radius: var(--radius); cursor: pointer; }
.drop input { margin: 10px auto 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
:root[data-skin="retro"] .auth-card { border: var(--border-w) solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--text) !important; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 15px; }
.ach-pop { display: flex; justify-content: center; margin: 14px 0; }

/* switch */
.sw { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: var(--line); border-radius: 22px; cursor: pointer; transition: .2s; }
.sw span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.sw input:checked + span { background: var(--accent); }
.sw input:checked + span::before { transform: translateX(18px); }
:root[data-skin="retro"] .sw span, :root[data-skin="retro"] .sw span::before { border-radius: 0; }

/* ================= Achievements / profile ================= */
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; background: var(--panel); border-radius: var(--radius); border: var(--border-w) solid var(--line); max-width: 220px; }
.ach-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; color: #fff; background: #546e7a; }
.ach.rare .ach-ico { background: #1565c0; } .ach.epic .ach-ico { background: linear-gradient(135deg, #8e24aa, #d81b60); }
:root[data-skin="retro"] .ach-ico { border-radius: 0; border: 2px solid var(--line); }
.ach b { color: var(--head); } .ach small { color: var(--muted); font-size: 13px; }
.ach.locked { opacity: .4; filter: grayscale(1); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.lvl { background: var(--panel); padding: 12px; border-radius: var(--radius); border: var(--border-w) solid var(--line); opacity: .55; }
.lvl.on { opacity: 1; border-color: var(--accent); }
.lvl b { font: 700 32px var(--font-head); color: var(--accent); display: block; }
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; background: var(--panel); padding: 20px; border-radius: var(--radius); margin-bottom: 24px; align-items: start; }
:root[data-skin="retro"] .profile { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.profile h1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats b { font-size: 22px; color: var(--head); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 400; font-size: 14px; background: var(--panel-2); }
.tbl td small { display: block; color: var(--muted); }
.tbl tr.locked td { opacity: .55; }
.tbl tr.hl td { background: var(--hover); }
:root[data-skin="retro"] .tbl { border: var(--border-w) solid var(--line); }
.tbl-scroll { overflow-x: auto; }
.matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix tr.grp td { background: var(--panel-2); color: var(--accent); font-weight: 700; text-align: left; }
.lvl-sel { max-width: 150px; }

/* collections */
.colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.coll { background: var(--panel); padding: 12px; border-radius: var(--radius); color: var(--text); display: flex; flex-direction: column; gap: 4px; }
:root[data-skin="retro"] .coll { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.coll-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 6px; }
.coll-stack img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.coll b { color: var(--head); } .coll small { color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.coll-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }

/* forum */
.forum td:not(:first-child) { width: 110px; color: var(--muted); }
.post { display: grid; grid-template-columns: 160px 1fr; background: var(--panel); border-radius: var(--radius); margin-bottom: 10px; }
:root[data-skin="retro"] .post { border: var(--border-w) solid var(--line); }
.post-u { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border-right: 1px solid var(--line); text-align: center; }
.post-u small { color: var(--muted); font-size: 12px; }
.post-b { padding: 14px; }

/* ================= Admin ================= */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.admin-nav { background: var(--panel); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; position: sticky; top: 104px; }
:root[data-skin="retro"] .admin-nav { border: var(--border-w) solid var(--line); box-shadow: var(--shadow); }
.admin-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--text); border-radius: var(--radius); }
.admin-nav a i { font-style: normal; width: 18px; text-align: center; color: var(--muted); }
.admin-nav a.on { background: var(--accent); color: var(--accent-ink); } .admin-nav a.on i { color: inherit; }
.admin-nav .cnt { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 0 7px; font-size: 13px; }
.admin-nav a.on .cnt { background: rgba(0, 0, 0, .25); }
.admin-main { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: var(--panel); padding: 14px; border-radius: var(--radius); border: var(--border-w) solid var(--line); }
.kpi small { color: var(--muted); display: block; } .kpi b { font-size: 26px; color: var(--head); display: block; } .kpi b.ok { color: #8bc34a; font-size: 20px; } .kpi i { font-style: normal; font-size: 13px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .views { margin-left: 0; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.preset fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; padding: 8px 12px; }
.preset legend { color: var(--muted); padding: 0 6px; }
.preset label.check { display: block; padding: 3px 0; line-height: 1.9; }
.preset label.check > input { margin-right: 6px; vertical-align: middle; }
.chip-check { display: inline-block; margin-left: 3px; }
.preset-name { font: 700 18px var(--font-head) !important; background: transparent !important; border: 0 !important; color: var(--head) !important; padding: 0 !important; flex: 1; }
.preset.add { display: grid; place-items: center; min-height: 200px; border: 2px dashed var(--line); color: var(--muted); cursor: pointer; font-size: 18px; background: transparent; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; min-width: 26px; text-align: center; padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.chip-check input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.queue { display: flex; flex-direction: column; gap: 10px; }
.q-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: start; margin: 0; }
.q-item .badge { justify-self: start; }
.q-body p { margin: 2px 0; }
.q-act { display: flex; flex-direction: column; gap: 6px; }
.diff { background: rgba(0, 0, 0, .3); padding: 8px 10px; font-size: 13px; margin: 8px 0 0; border-radius: var(--radius); white-space: pre-wrap; }
.diff del { color: #e57373; text-decoration: none; } .diff ins { color: #8bc34a; text-decoration: none; }
.ach-ico-cell { font-size: 22px; text-align: center; }

/* ================= Footer, mock bar, toast ================= */
.ftr { background: var(--hdr); color: var(--hdr-text); padding: 28px 0 70px; margin-top: 30px; }
.ftr a { color: var(--hdr-text); opacity: .8; }
.ftr-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.ftr-cols > div { display: flex; flex-direction: column; gap: 6px; }
.ftr .muted { color: var(--hdr-text); opacity: .6; }
.mockbar { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 90; display: flex; gap: 4px; align-items: center; background: #111; color: #aaa; padding: 5px 8px; border-radius: 20px; font: 13px/1 system-ui, sans-serif; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); max-width: calc(100vw - 20px); overflow-x: auto; white-space: nowrap; }
.mockbar span { padding: 0 6px; }
.mockbar a { color: #ddd; padding: 5px 9px; border-radius: 14px; }
.mockbar a.on { background: #d9534f; color: #fff; }
.toast { position: fixed; right: 18px; bottom: 60px; z-index: 110; background: var(--panel-solid); color: var(--text); border-left: 4px solid var(--accent); padding: 12px 18px; box-shadow: var(--shadow); border-radius: var(--radius); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .cols2 { grid-template-columns: 1fr; }
  .side { position: static; }
  .search { max-width: none; }
}
@media (max-width: 900px) {
  .mainnav { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; background: var(--hdr); height: auto; padding: 6px 0; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 10px 16px; }
  .burger { display: block; }
  .hide-sm { display: none; }
  .hdr-top { gap: 10px; }
  .logo-text { display: none; }
  .subnav { overflow-x: auto; white-space: nowrap; }
  .subnav .dd-body { position: fixed; top: 96px; left: 10px; right: 10px; }
  .dd-body.cols { min-width: 0; grid-template-columns: repeat(2, 1fr); }
  .full, .lf, .season-head { grid-template-columns: 120px 1fr; }
  .full-cols, .lf-grid, .card-meta { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: auto 1fr; } .profile-act { grid-column: span 2; }
  .q-item { grid-template-columns: 1fr; }
  .pv { display: none !important; }
}
@media (max-width: 560px) {
  .theme-ctl .tbtn { padding: 4px 6px; font-size: 12px; }
  .search { min-width: 0; }
  .hdr-top { gap: 6px; }
  .umenu .btn { padding: 4px 7px; font-size: 12px; }
  .f-row { gap: 8px; }
  .f-row > .msel, .f-row > .sel, .f-row > .btn { flex: 1 1 45%; min-width: 0; }
  .msel > summary { max-width: none; }
  .full, .lf, .season-head, .ep-info { grid-template-columns: 1fr; }
  .full-poster, .lf-poster { max-width: 200px; }
  .card { grid-template-columns: 100px 1fr; } .card-desc { display: none; }
  .frames { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .post { grid-template-columns: 1fr; } .post-u { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .f-block, .f-block.grow { min-width: 100%; }
}
