:root {
  --bg: #ffffff;
  --bg-soft: #f5f4f1;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e4df;
  --accent: #d6331f;
  --accent-ink: #ffffff;
  --high: #1f9d55;
  --mid: #e0a100;
  --low: #d6331f;
  --music: #8b5cf6;
  --games: #0ea5e9;
  --movies: #ef4444;
  --shows: #f59e0b;
  --radius: 10px;
  --wrap: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
main { min-height: 70vh; padding-bottom: 48px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.main-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.main-nav a { padding: 20px 0; border-bottom: 3px solid transparent; color: var(--ink-2); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--accent); }
.header-search { margin-left: auto; }
.header-search input { width: 220px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); font: inherit; font-size: 14px; }
.admin-bar { background: var(--ink); color: #ddd; font-size: 13px; }
.admin-bar .wrap { display: flex; gap: 18px; align-items: center; height: 34px; }
.admin-bar a, .admin-bar .linklike { color: #fff; font-weight: 600; }
.admin-bar span { margin-right: auto; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #b52a18; border-color: #b52a18; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.danger { color: var(--low); }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; font-family: var(--font); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-on:hover { color: var(--bg); }
.chip-sm { padding: 2px 9px; font-size: 12px; }
.chip-x { background: var(--bg); border-color: var(--ink); color: var(--ink); }

/* category colours */
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.cat-dot.cat-music, .cover-placeholder.cat-music { background: var(--music); }
.cat-dot.cat-games, .cover-placeholder.cat-games { background: var(--games); }
.cat-dot.cat-movies, .cover-placeholder.cat-movies { background: var(--movies); }
.cat-dot.cat-shows, .cover-placeholder.cat-shows { background: var(--shows); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.creator { color: var(--ink-2); font-size: 14px; }
.creator.lg { font-size: 18px; }

/* scores */
.score { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 16px var(--display);
  color: #fff; background: var(--ink); flex: none; box-shadow: 0 0 0 3px var(--bg); }
.score-high { background: var(--high); }
.score-mid { background: var(--mid); }
.score-low { background: var(--low); }
.score-xs { width: 34px; height: 34px; font-size: 13px; box-shadow: none; }
.score-sm { width: 42px; height: 42px; font-size: 15px; }
.score-md { width: 56px; height: 56px; font-size: 20px; }
.score-lg { width: 68px; height: 68px; font-size: 26px; }
.score-xl { width: 96px; height: 96px; font-size: 38px; box-shadow: none; }
.score-word { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }

/* covers */
.cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9); font: 800 42px var(--display); }

/* cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-link { display: block; }
.card-cover { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-cover .cover-frame { transition: transform .3s; }
.card-link:hover .card-cover .cover-frame { transform: scale(1.03); }
.card-cover .score { position: absolute; left: 10px; bottom: 10px; }
.card-body { padding-top: 12px; }
.card-body h3 { margin-bottom: 2px; font-size: 18px; }
.card-link:hover h3 { text-decoration: underline; }
.verdict { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 12px; margin: 48px 0 20px; }
.section-head a { font-weight: 600; font-size: 14px; color: var(--accent); }

/* home */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-cover { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-text h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 8px; }
.hero-text h1 a:hover { text-decoration: underline; }
.hero-verdict { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 16px 0 24px; }
.hero-meta { display: flex; align-items: center; gap: 16px; }
.hero-meta .btn { margin-left: 12px; }
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.cat-tile { position: relative; padding: 18px 20px; border-radius: var(--radius); color: #fff; font: 800 20px var(--display); display: flex; flex-direction: column; overflow: hidden; }
.cat-tile small { font: 500 13px var(--font); opacity: .85; }
.cat-tile:hover { filter: brightness(1.08); }
.cat-tile.cat-music { background: var(--music); }
.cat-tile.cat-games { background: var(--games); }
.cat-tile.cat-movies { background: var(--movies); }
.cat-tile.cat-shows { background: var(--shows); }
.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list a { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-list a:hover .rank-title { text-decoration: underline; }
.rank { font: 800 22px var(--display); color: var(--line); width: 22px; }
.rank-title { flex: 1; font-weight: 600; line-height: 1.3; }
.rank-title small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.staff-mini { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.staff-mini img, .staff-mini .avatar-fallback { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.staff-mini small { display: block; color: var(--muted); font-size: 13px; }
.avatar-fallback { display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 20px var(--display); }

/* reviews list page */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--accent); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--bg); }
.filter-bar label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.filter-search { flex: 1 1 260px; }
.filter-platform { flex: 0 1 240px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tag-row-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.clear-all { font-size: 13px; color: var(--accent); font-weight: 600; margin-left: 6px; }
.list { border-top: 1px solid var(--line); margin-top: 16px; }
.list-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-cover { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.list-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-cover .cover-placeholder { font-size: 30px; }
.list-body h2 { margin-bottom: 2px; }
.list-body h2 a:hover { text-decoration: underline; }
.list-body .verdict { font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.list-score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 90px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.pagination a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state.small { padding: 48px 20px; }

/* single review */
.review-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.review-head-inner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.review-cover { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.review-cover img { width: 100%; height: 100%; object-fit: cover; }
.review-title h1 { font-size: clamp(30px, 4.5vw, 52px); }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 18px 0 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts a { text-decoration: underline; text-decoration-color: var(--line); }
.owner-actions { margin-top: 20px; }
.review-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 40px; align-items: start; }
.prose { font-size: 18px; line-height: 1.7; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 21px; font-style: italic; color: var(--ink-2); }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose a:not(.chip) { color: var(--accent); text-decoration: underline; }
.review-tags { margin-top: 32px; }
.verdict-box { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.verdict-score { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.verdict-word { font: 800 24px var(--display); }
.verdict-box p { color: var(--ink-2); margin-top: 0; }
.verdict-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 18px; }
.pros, .cons { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.pros li, .cons li { padding: 4px 0 4px 24px; position: relative; }
.pros li::before { content: '+'; position: absolute; left: 4px; color: var(--high); font-weight: 800; }
.cons li::before { content: '−'; position: absolute; left: 4px; color: var(--low); font-weight: 800; }

/* staff */
.staff { display: grid; grid-template-columns: 1fr 360px; gap: 48px; margin-top: 20px; }
.staff-card { display: flex; gap: 32px; align-items: flex-start; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.avatar-fallback { font-size: 64px; }
.avatar-sm { width: 56px; height: 56px; }
.staff-role { color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.bio { font-size: 17px; }
.staff-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.staff-side h3 { margin-top: 24px; }
.stat-row { display: flex; gap: 12px; margin-bottom: 12px; }
.stat { flex: 1; background: var(--bg-soft); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat strong { display: block; font: 800 32px var(--display); }
.stat span { font-size: 13px; color: var(--muted); }
.stat-sm strong { font-size: 22px; }
.stat-sm:hover { background: var(--line); }
.favorites { padding-left: 20px; margin: 0; }
.favorites li { padding: 3px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-weight: 600; }

/* admin */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice, .alert { padding: 12px 16px; border-radius: 8px; background: #e9f7ef; color: #14532d; font-weight: 500; }
.alert { background: #fdecea; color: #7f1d1d; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--ink); }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table .thumb { width: 64px; }
.admin-table .thumb .cover-frame, .admin-table .thumb .cover-placeholder { width: 48px; height: 48px; border-radius: 6px; font-size: 16px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions a { margin-right: 12px; font-weight: 600; text-decoration: underline; }
.row-actions form { display: inline; }

.form, .editor { font-size: 14px; }
.form label, .editor label { display: block; font-weight: 600; margin-bottom: 16px; }
.form input:not([type=checkbox]):not([type=file]), .form textarea, .editor input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .editor textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 15px var(--font); background: var(--bg); }
.form input:focus, .form textarea:focus, .editor input:focus, .editor textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 16px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.auth-box { max-width: 420px; padding-top: 64px; }
.profile-form { max-width: 880px; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-weight: 400; }
.avatar-row .check { margin: 0; }

.editor { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-top: 16px; }
.seg { display: flex; border: 0; padding: 0; margin: 0 0 16px; gap: 8px; }
.seg-item { margin: 0 !important; }
.seg-item input { position: absolute; opacity: 0; }
.seg-item span { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg-item input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg-item input:focus-visible + span { outline: 2px solid var(--accent); }
.editor .title-input:focus { outline: none !important; border-bottom-color: var(--ink) !important; }
.editor .title-input { font: 800 30px var(--display) !important; border: 0 !important; border-bottom: 2px solid var(--line) !important; border-radius: 0 !important; padding: 8px 0 !important; margin: 0 0 20px !important; }
.body-field { margin-bottom: 16px; }
.body-toolbar { display: flex; gap: 4px; align-items: center; font-weight: 600; margin-bottom: 6px; }
.body-toolbar span { margin-right: auto; }
.body-toolbar button { min-width: 32px; height: 30px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; cursor: pointer; font-size: 14px; }
.body-toolbar button:hover { border-color: var(--ink); }
.body-toolbar .preview-toggle { padding: 0 12px; margin-left: 8px; font-weight: 600; }
.editor textarea[name=body] { font-size: 16px !important; line-height: 1.6; min-height: 340px; resize: vertical; }
.body-preview { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; min-height: 340px; font-size: 16px; }
.editor-side { position: sticky; top: 88px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.score-picker { display: flex; align-items: center; gap: 16px; }
.score-picker > div { flex: 1; }
.score-picker input[type=range] { width: 100%; accent-color: var(--ink); }
.dropzone { display: grid !important; place-items: center; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 8px; cursor: pointer; overflow: hidden; text-align: center; color: var(--muted); font-weight: 500 !important; padding: 0; margin-bottom: 12px !important; background: var(--bg-soft); }
.dropzone.over { border-color: var(--accent); }
.dropzone[hidden] { display: none !important; }
.dropzone img { width: 100%; height: 100%; object-fit: cover; }
.dropzone span { padding: 20px; }
.small-label { font-size: 12px; color: var(--muted); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: text; margin-bottom: 6px; }
.tag-input input[type=text] { flex: 1; min-width: 120px; border: 0 !important; padding: 4px !important; margin: 0 !important; outline: none !important; }
.publish-actions { display: flex; gap: 8px; margin-top: 8px; }
.publish-actions .btn { flex: 1; }

/* responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .home-grid, .review-layout, .staff, .editor { grid-template-columns: 1fr; }
  .verdict-box, .editor-side { position: static; }
  .hero-inner { grid-template-columns: 260px 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .header-inner { gap: 16px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
  .header-search { order: 3; width: 100%; margin: 0 0 10px; }
  .header-search input { width: 100%; }
  .main-nav a { padding: 10px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 16px; }
  .hero-inner, .review-head-inner { grid-template-columns: 1fr; }
  .hero-cover, .review-cover { max-width: 280px; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .list-item { grid-template-columns: 88px 1fr; gap: 16px; }
  .list-score { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .staff-card { flex-direction: column; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3), .admin-table th:nth-child(6), .admin-table td:nth-child(6) { display: none; }
}
.form-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

[hidden] { display: none !important; }
.tabbar { display: none; }

/* phones: app-style bottom tab bar and tighter layouts */
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .main-nav, .header-new { display: none; }
  .header-inner { padding-top: 12px; gap: 10px; }
  .logo { font-size: 20px; }
  .header-search { margin: 0 0 12px; }
  .header-search input { font-size: 16px; padding: 10px 16px; } /* 16px stops iOS zooming in on focus */
  .admin-bar .wrap { height: 32px; gap: 16px; justify-content: flex-end; }
  .admin-bar-label { display: none; }
  .admin-bar a[href="/admin"] { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active svg { stroke: var(--accent); }
  .tabbar .tab-new svg { background: var(--accent); stroke: #fff; border-radius: 50%; padding: 3px; }
  .tabbar .tab-new.active svg { stroke: #fff; }

  input, select, textarea { font-size: 16px !important; }
  .page-head { padding-top: 24px; }
  .section-head { margin: 36px 0 16px; }
  .hero-inner { padding-top: 24px; padding-bottom: 28px; gap: 20px; }
  .hero-cover { max-width: 210px; }
  .hero-text h1 { font-size: 34px; }
  .hero-verdict { font-size: 17px; margin: 12px 0 18px; }
  .hero-meta { flex-wrap: wrap; }
  .hero-meta .btn { margin-left: auto; }
  .category-strip { gap: 10px; margin-top: 20px; }
  .cat-tile { padding: 14px 16px; font-size: 18px; }
  .card-body h3 { font-size: 16px; }
  .card .verdict { display: none; }

  .tabs { margin: 12px -20px 16px; padding: 0 20px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .filter-bar { gap: 10px; }
  .filter-search, .filter-platform { flex: 1 1 100%; }
  .filter-bar label { flex: 1; }
  .filter-bar select { flex: 1; }
  .filter-bar .btn { width: 100%; }
  .list-item { padding: 18px 0; align-items: start; }
  .list-body h2 { font-size: 19px; }
  .list-body .verdict { font-size: 14px; }

  .review-head-inner { grid-template-columns: 112px 1fr; gap: 16px; padding-top: 20px; padding-bottom: 24px; }
  .review-cover { max-width: none; }
  .review-title h1 { font-size: 26px; }
  .facts { grid-column: 1 / -1; gap: 10px 24px; }
  .review-title { display: contents; }
  .review-title .eyebrow, .review-title h1 { grid-column: 2; }
  .review-title .eyebrow { align-self: end; margin: 0; }
  .review-title h1 { align-self: start; margin: 0; }
  .owner-actions { grid-column: 1 / -1; margin-top: 4px; }
  .review-layout { padding-top: 20px; gap: 24px; }
  .verdict-box { order: -1; padding: 18px; }
  .verdict-score { padding-bottom: 14px; margin-bottom: 14px; }
  .prose { font-size: 17px; }

  .avatar { width: 112px; height: 112px; }
  .staff-card { gap: 16px; }
  .stat strong { font-size: 26px; }
  .stat-row .stat-sm { padding: 12px 6px; }

  .editor { gap: 16px; }
  .row-2, .row-3 { gap: 0; }
  .editor .title-input { font-size: 24px !important; }
  .editor textarea[name=body], .body-preview { min-height: 220px; }
  .seg { flex-wrap: wrap; }
  .seg-item span { padding: 7px 14px; }
  .publish-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); }
  .dropzone { aspect-ratio: 16 / 10; }

  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody { display: block; }
  .admin-table tr { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb title score" "thumb status actions"; gap: 4px 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .admin-table td { padding: 0; border: 0; display: block; }
  .admin-table td:nth-child(1) { grid-area: thumb; width: 56px; }
  .admin-table td:nth-child(2) { grid-area: title; }
  .admin-table td:nth-child(4) { grid-area: score; justify-self: end; }
  .admin-table td:nth-child(5) { grid-area: status; color: var(--muted); font-size: 13px; }
  .admin-table td:nth-child(7) { grid-area: actions; }
  .admin-table .thumb img, .admin-table .thumb .cover-placeholder { width: 56px; height: 56px; }
  .admin-table td[colspan] { grid-column: 1 / -1; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions .btn { flex: 1; }
}

/* find cover */
.cover-find { margin-top: 12px; display: grid; gap: 6px; }
.cover-find[hidden] { display: none; }
.cover-find .btn { justify-self: start; }
.cover-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; max-height: 340px; overflow-y: auto; }
.cover-results[hidden] { display: none; }
.cover-results p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.cover-result { display: grid; gap: 4px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; text-align: left; font: 500 11px/1.25 var(--font); color: var(--ink-2); }
.cover-result img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--bg-soft); }
.cover-result span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 0 2px 2px; }
.cover-result small { padding: 0 2px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cover-result:hover { border-color: var(--line); }
.cover-result.picked { border-color: var(--accent); }

/* cover framing: fill or whole image, focus point and zoom, set per review */
.cover-frame { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cover-frame .cover-img { position: relative; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--cx, 50%) var(--cy, 50%); transform-origin: var(--cx, 50%) var(--cy, 50%); transform: scale(var(--cz, 1)); }
.cover-frame.is-fit .cover-img { object-fit: contain; }
.cover-frame .cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.2); transform: scale(1.25); opacity: .85; }
.cover-frame:not(.is-fit) .cover-bg { display: none; }
.cx-0{--cx:0%}.cx-5{--cx:5%}.cx-10{--cx:10%}.cx-15{--cx:15%}.cx-20{--cx:20%}.cx-25{--cx:25%}.cx-30{--cx:30%}.cx-35{--cx:35%}.cx-40{--cx:40%}.cx-45{--cx:45%}.cx-50{--cx:50%}.cx-55{--cx:55%}.cx-60{--cx:60%}.cx-65{--cx:65%}.cx-70{--cx:70%}.cx-75{--cx:75%}.cx-80{--cx:80%}.cx-85{--cx:85%}.cx-90{--cx:90%}.cx-95{--cx:95%}.cx-100{--cx:100%}
.cy-0{--cy:0%}.cy-5{--cy:5%}.cy-10{--cy:10%}.cy-15{--cy:15%}.cy-20{--cy:20%}.cy-25{--cy:25%}.cy-30{--cy:30%}.cy-35{--cy:35%}.cy-40{--cy:40%}.cy-45{--cy:45%}.cy-50{--cy:50%}.cy-55{--cy:55%}.cy-60{--cy:60%}.cy-65{--cy:65%}.cy-70{--cy:70%}.cy-75{--cy:75%}.cy-80{--cy:80%}.cy-85{--cy:85%}.cy-90{--cy:90%}.cy-95{--cy:95%}.cy-100{--cy:100%}
.cz-100{--cz:1}.cz-110{--cz:1.1}.cz-120{--cz:1.2}.cz-130{--cz:1.3}.cz-140{--cz:1.4}.cz-150{--cz:1.5}.cz-160{--cz:1.6}.cz-170{--cz:1.7}.cz-180{--cz:1.8}.cz-190{--cz:1.9}.cz-200{--cz:2}.cz-210{--cz:2.1}.cz-220{--cz:2.2}.cz-230{--cz:2.3}.cz-240{--cz:2.4}.cz-250{--cz:2.5}.cz-260{--cz:2.6}.cz-270{--cz:2.7}.cz-280{--cz:2.8}.cz-290{--cz:2.9}.cz-300{--cz:3}

/* cover framing editor */
.framer { aspect-ratio: 1; height: auto; border-radius: 8px; background: var(--bg-soft); cursor: grab; touch-action: none; user-select: none; margin-bottom: 10px; }
.framer[hidden], .framer-controls[hidden] { display: none; }
.framer.dragging { cursor: grabbing; }
.framer.over { outline: 2px dashed var(--accent); }
.framer img { pointer-events: none; -webkit-user-drag: none; }
.framer-controls { margin-bottom: 12px; }
.framer-controls .small-label { margin-bottom: 8px; }
.framer-controls input[type=range] { width: 100%; }
.framer-row { display: flex; gap: 8px; margin-bottom: 6px; }
.framer-row label.btn { margin: 0; font-weight: 600; }
.seg-sm { margin-bottom: 10px; gap: 6px; }
.seg-sm .seg-item span { padding: 5px 12px; font-size: 13px; }

/* admin: drafts and published shown as separate groups */
.admin-group { margin-top: 32px; }
.admin-group h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.admin-group h2 .muted { font: 600 15px var(--font); }
.admin-group-drafts { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 20px 8px; }
.admin-group-drafts .admin-table td { border-color: var(--line); }
@media (max-width: 720px) { .admin-group-drafts { padding: 12px 14px 4px; margin-left: -6px; margin-right: -6px; } }

/* admin: auto-drafts panel and the AI draft sources in the editor */
.auto-panel { margin: 0 0 20px; }
.auto-panel summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.auto-panel summary .muted { font-size: 14px; }
.auto-panel[open] summary { margin-bottom: 12px; }
.auto-intro { font-size: 14px; max-width: 720px; }
.auto-form { max-width: 720px; }
.auto-form input[type=number] { max-width: 120px; }
.auto-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.auto-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.auto-subhead { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 8px 0 10px; }
.auto-genres { display: grid; gap: 12px; margin-bottom: 18px; }
.auto-genre { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; margin: 0; min-width: 0; }
.auto-genre legend { font-weight: 700; padding: 0 4px; }
.auto-genre .seg { flex-wrap: wrap; margin-bottom: 0; }
/* The genre list only shows while "Only these" is chosen. */
.genre-chips { display: none; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.auto-genre:has(input[value=pick]:checked) .genre-chips { display: flex; }
.form .genre-chip { display: inline-block; margin: 0; font-weight: 500; }
.genre-chip input { position: absolute; opacity: 0; }
.genre-chip span { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--bg); }
.genre-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.genre-chip input:focus-visible + span { outline: 2px solid var(--accent); }
.auto-source .auto-avg { font-size: 14px; margin: 8px 0; }
.auto-scores { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.auto-scores li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.auto-scores a { text-decoration: underline; }
