:root {
  --bg: #f5f5ef;
  --panel: #fffefa;
  --ink: #243f38;
  --muted: #616e62;
  --line: #dfe4d9;
  --accent: #29634e;
  --soft: #e8eee5;
  --gold: #8d682c;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  touch-action: manipulation;
}
button,
a,
select,
summary {
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9c7431;
  outline-offset: 4px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  padding: 10px 14px;
}
button:hover {
  background: var(--soft);
}
svg {
  display: block;
  flex-shrink: 0;
}
button svg,
summary svg {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hidden,
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #f5f5eff5;
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border: 1px solid #b6c5b6;
  border-radius: 9px;
  background: var(--panel);
}
.logo svg {
  width: 28px;
  height: 28px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 1px;
}
.head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.save-indicator,
.data-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
}
.layout {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 60px;
  padding: 44px 5% 64px;
}
.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}
.sidebar-heading {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 17px;
}
.nav {
  display: grid;
  gap: 7px;
  margin-bottom: 30px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
  min-height: 49px;
  padding: 11px 13px;
}
.nav button:hover {
  background: var(--soft);
}
.nav button.active {
  background: var(--ink);
  color: var(--panel);
  box-shadow: 0 3px 7px #243f3810;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.nav-label {
  font-size: 13px;
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  background: #e6ebe0;
  border-radius: 6px;
  min-width: 27px;
  text-align: center;
  padding: 1px 6px;
}
.active .nav-count {
  background: #ffffff1a;
  color: #f3f5ec;
}
.filter-panel {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.filter-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
  margin-bottom: 18px;
}
.filter-panel > summary::-webkit-details-marker {
  display: none;
}
.filter-panel > summary svg {
  width: 17px;
  height: 17px;
}
.filter-panel > summary .chevron {
  display: none;
}
.filter-count {
  color: var(--accent);
  font-size: 10px;
  margin-left: auto;
}
.filters {
  display: grid;
  gap: 17px;
}
.filter label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.filter select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px 11px;
  min-height: 43px;
  font-size: 12px;
}
.filter select:hover {
  border-color: #a7b8a3;
}
.reset {
  border: 0;
  background: transparent;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 9px 3px;
  min-height: 36px;
  color: var(--muted);
}
.reset:hover {
  background: transparent;
  color: var(--ink);
}
.reset:disabled {
  cursor: default;
  opacity: 0.6;
}
.aside-note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
}
.note-mark {
  display: block;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 5px;
}
.aside-note strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.aside-note p {
  margin: 7px 0 18px;
  line-height: 1.85;
}
.library-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 11px;
  min-height: 40px;
  border-top: 1px solid var(--line);
}
.library-tools > summary::-webkit-details-marker {
  display: none;
}
.library-tools[open] > summary > span {
  transform: rotate(45deg);
}
.tools-content > p {
  font-size: 11px;
  margin: 8px 0 13px;
}
.tools-content > a {
  display: block;
  margin-top: 9px;
  font-size: 11px;
}
.backup-actions {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.backup-actions button {
  font-size: 11px;
  padding: 8px 7px;
  min-height: 38px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(30px, 3.1vw, 43px);
  letter-spacing: -0.065em;
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 14px;
}
.intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.hero-number {
  text-align: right;
  flex: none;
  min-width: 144px;
  padding-left: 24px;
  position: relative;
}
.hero-number > span:first-child {
  font:
    italic 54px/1 Georgia,
    serif;
  letter-spacing: -0.06em;
  color: var(--accent);
}
.hero-number small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.hero-rule {
  display: block;
  margin: 16px 0 0 auto;
  width: 45px;
  height: 2px;
  background: var(--gold);
}
.explore-controls {
  margin-bottom: 28px;
}
.search {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  background: var(--panel);
  border: 1px solid #b8c7b6;
  border-radius: 12px;
  padding: 0 17px;
  box-shadow: 0 3px 10px #243f3803;
}
.search > svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.search input {
  min-width: 0;
  flex: 1;
  width: 100%;
  border: 0;
  background: none;
  padding: 17px 0;
  font-size: 14px;
  outline: 0;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search input:focus-visible {
  outline: 0;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search input::placeholder {
  color: #6a756b;
}
.search > button {
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  font-size: 19px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}
.search-shortcut {
  font: 12px system-ui;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 7px;
  margin-left: 2px;
}
.genre-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
}
.genre-label > span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.genre-quick {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.genre-quick button {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  font-size: 11px;
  min-height: 38px;
  padding: 7px 11px;
  white-space: nowrap;
}
.genre-quick button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}
.genre-count {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.genre-quick button[aria-pressed="true"] .genre-count {
  color: #d9e2d2;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  border-top: 1px dashed var(--line);
  padding-top: 13px;
}
.active-filters > span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 2px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  padding: 5px 9px;
  min-height: 32px;
  background: var(--soft);
  border-color: transparent;
  max-width: 100%;
}
.filter-chip > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.filter-chip > span:last-child {
  font-size: 15px;
  line-height: 1;
}
.clear-filters {
  border: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 11px;
  color: var(--muted);
  padding: 5px;
  min-height: 32px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.toolbar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 0;
}
.result-number {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
  background: var(--soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.toolbar p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.sort-control {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: none;
}
.sort-control label {
  font-size: 10px;
  color: var(--muted);
}
.sort-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 9px;
  font-size: 11px;
  min-height: 38px;
}
.list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-head,
.row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 62px 84px 40px;
  column-gap: 15px;
  padding: 0 21px;
}
.list-head {
  min-height: 43px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  background: #eef1e8;
}
.list-head-hint {
  font-size: 9px;
  color: var(--muted);
  margin-left: 12px;
}
.row {
  padding-top: 19px;
  padding-bottom: 19px;
  align-items: center;
  min-height: 97px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: #f8f9f3;
}
.row.is-open {
  background: #f8f9f2;
}
.rank {
  align-self: center;
  font:
    14px Georgia,
    serif;
  color: #68745f;
  font-variant-numeric: tabular-nums;
}
.rank.top {
  color: var(--gold);
}
.work-main {
  min-width: 0;
}
.work-title {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  text-align: left;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 2px 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.025em;
  min-height: 31px;
}
.work-title:hover {
  background: none;
  color: var(--accent);
}
.work-title .title {
  overflow-wrap: anywhere;
}
.work-title .chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform 0.16s;
  opacity: 0.7;
}
.work-title[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}
.sub-separator {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #a9b3a0;
}
.genre-tags {
  color: var(--accent);
}
.status-uncertain {
  color: #88602f;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge {
  display: inline-block;
  justify-self: start;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f0f1e9;
  color: #65705d;
  line-height: 1.5;
}
.badge.start {
  background: var(--soft);
  color: var(--accent);
  font-weight: 550;
}
.badge.unconfirmed {
  color: #88602f;
  background: #f3edde;
}
.star {
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: none;
  color: #6b7c61;
  flex: none;
}
.star svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.4;
}
.star:hover {
  background: #f1ebdc;
  border-color: #e4dac4;
  color: var(--gold);
}
.star[aria-pressed="true"] {
  background: #f7f0de;
  color: var(--gold);
}
.star[aria-pressed="true"] svg {
  fill: currentColor;
  stroke: currentColor;
}
.work-detail {
  grid-column: 2/-1;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.detail-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.detail-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.detail-tags span {
  background: #e9eee3;
  border-radius: 4px;
  color: #55684e;
  font-size: 10px;
  padding: 3px 7px;
}
.work-detail p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.sources {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.source-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 13px;
  border-radius: 9px;
  text-decoration: none;
  background: var(--panel);
}
.source-link:hover {
  border-color: #a5b69e;
  background: #f0f4e9;
}
.source-number {
  font:
    italic 15px Georgia,
    serif;
  color: var(--gold);
  min-width: 18px;
}
.source-link strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.source-link small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 3px;
}
.source-link > span:last-child {
  margin-left: auto;
  color: var(--accent);
}
.detail-date {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 13px !important;
}
.empty {
  padding: 49px 24px 52px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.empty-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.3;
}
.empty strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
}
.empty button {
  margin-top: 20px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
  font-size: 12px;
  min-height: 42px;
}
.load-more {
  padding: 20px 16px 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: #fafbf5;
}
.load-more p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 11px;
}
.load-more button {
  min-width: 200px;
  font-size: 12px;
  padding: 10px 20px;
  background: var(--panel);
}
.load-more button > span {
  margin-left: 18px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.data-note {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
.data-note > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.data-dot {
  background: #89967e;
  width: 4px;
  height: 4px;
}
.data-note a {
  white-space: nowrap;
}
.review {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  scroll-margin-top: 100px;
}
.review > summary {
  font-size: 12px;
  font-weight: 600;
  min-height: 52px;
  padding: 16px 0;
}
.review > summary span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.review p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.review table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  margin-top: 20px;
}
.review th,
.review td {
  padding: 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.review th:last-child {
  width: 64px;
}
.review td {
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 40;
  max-width: min(92%, 600px);
  width: max-content;
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--panel);
  box-shadow: 0 8px 30px #243f3826;
  font-size: 12px;
}
.toast > button {
  border: 0;
  border-radius: 5px;
  flex: none;
  min-height: 32px;
  padding: 3px 6px;
  font-size: 11px;
  background: #ffffff14;
  color: #f4d9a2;
  font-weight: 600;
}
.toast > button:hover {
  background: #ffffff24;
}
#main:focus,
#collection:focus {
  outline: 0;
}
@media (min-width: 741px) {
  .filter-panel > summary {
    cursor: default;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 32px;
    padding-left: 4%;
    padding-right: 4%;
  }
  .header-inner {
    padding: 0 4%;
  }
  .hero-number {
    min-width: 110px;
    padding-left: 10px;
  }
  .hero-number > span:first-child {
    font-size: 47px;
  }
  .hero-number small {
    font-size: 9px;
  }
  .list-head,
  .row {
    grid-template-columns: 25px minmax(0, 1fr) 52px 73px 34px;
    column-gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .list-head-hint {
    display: none;
  }
  .work-title {
    font-size: 14px;
  }
  .badge {
    padding: 4px 6px;
    font-size: 9px;
  }
}
@media (max-width: 900px) {
  .hero-number {
    display: none;
  }
  .genre-quick {
    gap: 6px;
  }
  .genre-quick button {
    padding: 6px 9px;
  }
  .genre-label > span:last-child {
    display: none;
  }
  .sort-control label {
    display: none;
  }
}
@media (max-width: 740px) {
  html {
    scroll-padding-top: 86px;
  }
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  .header-inner {
    height: 68px;
    padding: 0 20px;
  }
  .brand {
    font-size: 16px;
    gap: 9px;
  }
  .brand small {
    font-size: 8px;
  }
  .logo {
    width: 33px;
    height: 36px;
  }
  .logo svg {
    width: 25px;
    height: 25px;
  }
  .head-meta {
    font-size: 9px;
    gap: 5px;
  }
  .save-indicator {
    width: 5px;
    height: 5px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 26px 18px 30px;
  }
  .sidebar {
    display: contents;
  }
  .sidebar-heading {
    display: none;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 30;
    margin: 0;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: #fffefaf5;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px #243f3805;
  }
  .nav button {
    flex: 1;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 10px;
  }
  .nav-count {
    margin-left: 2px;
    min-width: 24px;
    font-size: 10px;
  }
  .nav-label {
    font-size: 12px;
  }
  .nav svg {
    width: 17px;
    height: 17px;
  }
  main {
    display: contents;
  }
  .hero {
    order: 1;
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 24px;
    display: block;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }
  h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .intro {
    font-size: 12px;
    line-height: 1.7;
  }
  .explore-controls {
    order: 2;
    margin-bottom: 14px;
  }
  .search {
    min-height: 54px;
    padding: 0 14px;
    gap: 10px;
  }
  .search input {
    font-size: 13px;
    padding: 15px 0;
  }
  .search-shortcut {
    display: none;
  }
  .search > button {
    min-width: 34px;
    height: 34px;
  }
  .genre-label {
    margin-top: 17px;
    margin-bottom: 10px;
    font-size: 10px;
  }
  .genre-label > span:last-child {
    display: none;
  }
  .genre-quick {
    gap: 5px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .genre-quick button {
    min-height: 35px;
    font-size: 11px;
    padding: 6px 9px;
    gap: 6px;
  }
  .genre-count {
    font-size: 9px;
  }
  .active-filters {
    margin-top: 12px;
    padding-top: 11px;
    gap: 6px;
  }
  .active-filters > span {
    display: none;
  }
  .filter-chip {
    min-height: 34px;
    font-size: 10px;
  }
  .filter-chip > span:first-child {
    max-width: 190px;
  }
  .clear-filters {
    min-height: 34px;
    font-size: 10px;
  }
  .filter-panel {
    order: 3;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 25px;
  }
  .filter-panel > summary {
    pointer-events: auto;
    cursor: pointer;
    min-height: 44px;
    margin: 0;
    font-size: 11px;
    gap: 8px;
  }
  .filter-panel > summary .chevron {
    display: block;
    width: 13px;
    height: 13px;
    margin-left: auto;
  }
  .filter-count {
    font-size: 9px;
    margin-left: 0;
  }
  .filter-panel[open] > summary .chevron {
    transform: rotate(180deg);
  }
  .filter-panel[open] > summary {
    border-bottom: 1px solid var(--line);
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px 12px;
    padding: 17px 0 12px;
  }
  .filter label {
    font-size: 10px;
  }
  .filter select {
    font-size: 11px;
    padding: 10px 7px;
    min-height: 43px;
  }
  .reset {
    grid-column: 1/-1;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    border: 1px solid var(--line);
    padding: 8px;
    background: var(--bg);
    border-radius: 8px;
  }
  .reset:hover {
    background: var(--soft);
  }
  .collection-section {
    order: 4;
  }
  .toolbar {
    margin-bottom: 14px;
    gap: 10px;
  }
  .toolbar h2 {
    font-size: 16px;
    gap: 8px;
  }
  .result-number {
    font-size: 11px;
    padding: 1px 6px;
  }
  .toolbar p {
    font-size: 10px;
    margin-top: 4px;
  }
  .sort-control select {
    font-size: 10px;
    min-height: 37px;
    padding: 7px;
  }
  .list {
    border-radius: 12px;
  }
  .list-head {
    display: none;
  }
  .row {
    grid-template-columns: 21px minmax(0, 1fr) auto 36px;
    column-gap: 9px;
    min-height: 111px;
    padding: 17px 12px;
    align-items: center;
  }
  .row .original {
    display: none;
  }
  .rank {
    font-size: 13px;
  }
  .work-title {
    font-size: 14px;
    min-height: 30px;
    gap: 5px;
  }
  .work-title .chevron {
    width: 10px;
    height: 10px;
  }
  .sub {
    font-size: 10px;
    gap: 5px;
    margin-top: 5px;
    line-height: 1.8;
  }
  .sub .medium-label {
    display: none;
  }
  .badge {
    font-size: 9px;
    white-space: nowrap;
    padding: 4px 6px;
  }
  .badge.start {
    font-weight: 500;
  }
  .star {
    width: 44px;
    height: 44px;
    padding: 8px;
  }
  .star svg {
    width: 20px;
    height: 20px;
  }
  .work-detail {
    grid-column: 1/-1;
    padding-top: 15px;
    margin-top: 15px;
  }
  .detail-tags {
    margin-top: 10px;
  }
  .source-link {
    padding: 11px 10px;
  }
  .source-link small {
    font-size: 11px;
  }
  .empty {
    padding: 34px 20px 39px;
  }
  .empty strong {
    font-size: 16px;
  }
  .empty p {
    font-size: 11px;
  }
  .empty-icon {
    width: 48px;
    height: 48px;
  }
  .load-more {
    padding: 18px 15px 20px;
  }
  .load-more button {
    font-size: 11px;
    min-height: 43px;
    min-width: 190px;
  }
  .foot {
    align-items: flex-start;
    gap: 10px;
    font-size: 9px;
    line-height: 1.8;
  }
  .foot > span:first-child {
    max-width: 65%;
  }
  .foot > span:last-child {
    white-space: nowrap;
  }
  .data-note {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 23px;
    padding-top: 15px;
    gap: 7px;
  }
  .data-note > span {
    gap: 5px;
    align-items: flex-start;
  }
  .data-dot {
    margin-top: 6px;
    flex: none;
  }
  .review {
    order: 5;
    margin-top: 20px;
    padding: 0 12px;
  }
  .review > summary {
    font-size: 11px;
    min-height: 48px;
    padding: 14px 0;
  }
  .review p,
  .review table {
    font-size: 10px;
  }
  .review th,
  .review td {
    padding: 9px 4px;
  }
  .aside-note {
    order: 6;
    margin-top: 28px;
    padding-top: 20px;
    text-align: center;
  }
  .note-mark {
    display: none;
  }
  .aside-note > strong {
    font-size: 12px;
  }
  .aside-note > p {
    font-size: 11px;
    margin: 6px 0 18px;
  }
  .aside-note > p br {
    display: none;
  }
  .library-tools {
    text-align: left;
    max-width: 400px;
    margin: auto;
  }
  .library-tools > summary {
    font-size: 11px;
    min-height: 46px;
  }
  .backup-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .backup-actions button {
    min-height: 44px;
    font-size: 11px;
  }
  .tools-content > a {
    display: inline-block;
    margin-right: 16px;
  }
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    gap: 10px;
    padding: 11px 14px;
    font-size: 11px;
    border-radius: 10px;
  }
  .toast > button {
    font-size: 11px;
    min-height: 36px;
  }
  .review {
    scroll-margin-top: 86px;
  }
}
@media (max-width: 359px) {
  .head-meta {
    max-width: 88px;
    text-align: right;
    line-height: 1.5;
  }
  .brand small {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .genre-quick button {
    padding: 6px 8px;
  }
  .genre-count {
    display: none;
  }
  .row {
    column-gap: 7px;
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: 18px minmax(0, 1fr) auto 31px;
  }
  .badge.start {
    font-size: 8px;
    padding: 4px 5px;
  }
  .star {
    width: 36px;
    height: 40px;
  }
  .work-title {
    font-size: 13px;
  }
  .toolbar p {
    max-width: 180px;
  }
  .sort-control select {
    max-width: 99px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
