:root {
  color-scheme: light;
  --ink: #191c28;
  --muted: #555765;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --border: #ddd8cc;
  --accent: #9d3524;
  --dark: #191d32;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b14e3e; outline-offset: 4px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
p { margin: 0.75rem 0; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem; }
.skip:focus { top: 0.5rem; }
.top { border-bottom: 1px solid var(--border); }
.top-inner, .top nav, footer, .actions { display: flex; align-items: center; gap: 1rem; }
.top-inner { justify-content: space-between; min-height: 74px; }
.brand, .top nav a { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 0.65rem; font: bold 1.35rem Georgia, serif; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: #fff; background: var(--dark); border-radius: 6px; }
.top nav a { font-weight: 650; font-size: 0.9rem; }
.top nav a:hover { color: var(--accent); }
main { min-height: calc(100vh - 190px); }
footer { margin-top: 4rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--border); justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.attribution { display: block; max-width: 40rem; margin-top: 0.8rem; font-size: 0.75rem; }
.attribution img { width: 75px; margin-bottom: 0.35rem; }
.external-ratings { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0; font-size: 0.85rem; font-weight: 650; }

.hero {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  border-radius: 22px;
  background: radial-gradient(ellipse at 84% 90%, #423353, transparent 58%), var(--dark);
  overflow: hidden;
  padding: clamp(2rem, 7vw, 5rem);
  color: #fff7e8;
}
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.hero .eyebrow { color: #ffc8a0; }
.hero h1 { font-size: clamp(3.1rem, 9vw, 7rem); letter-spacing: -0.065em; line-height: 0.9; }
.hero h1 span { color: #f58b61; }
.hero-copy > p:last-child { max-width: 27rem; color: #e4daea; font-size: clamp(1rem, 2vw, 1.18rem); margin: 1.5rem 0 0; }
.eyebrow { color: var(--accent); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.9rem; }
.hero-art {
  position: absolute; z-index: 0; inset: -16% -4% -16% auto; width: 50%;
  display: grid; place-items: center; pointer-events: none;
}
.hero-art i { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #e7b2ad53; }
.hero-art i:nth-child(2) { width: 88%; }
.hero-art i:nth-child(3) { width: 101%; }
.hero-art i:nth-child(4) { width: 114%; }
.hero-art i:nth-child(5) { width: 127%; }
.hero-art span {
  display: grid; place-items: center; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 37% 30%, #ffd19f, #ee916d 70%);
  color: #492b3a; font: italic 800 clamp(4rem, 15vw, 12rem)/1 Georgia, serif;
  box-shadow: 0 0 56px #f88d5840;
}

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.search { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr auto; align-items: end; gap: 0.85rem; padding: 1.15rem; margin: 1.25rem 0 2.4rem; }
label { display: grid; gap: 0.32rem; min-width: 0; font-size: 0.86rem; font-weight: 650; }
input, select, textarea, button, .button { font: inherit; border-radius: 7px; }
input, select, textarea { min-width: 0; width: 100%; background: #fff; color: var(--ink); border: 1px solid #b9b4aa; padding: 0.62rem 0.7rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #666774; }
input[type=file] { font-size: 0.9rem; }
textarea { resize: vertical; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; cursor: pointer;
  border: 1px solid var(--accent); color: #fff; background: var(--accent); padding: 0.63rem 0.98rem;
  font-size: 0.88rem; font-weight: 700; text-decoration: none; min-height: 44px;
}
button:hover, .button:hover { background: #772719; }
.secondary { background: transparent; color: var(--ink); border-color: #b9b4aa; }
.secondary:hover { background: #ece7dc; }
.search-actions { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; }
.section-head { margin: 2.4rem 0 1.2rem; }
.section-head .eyebrow { margin-bottom: 0.4rem; }
.empty { padding: 2.3rem 1.5rem; color: var(--muted); text-align: center; }
.empty h3, .empty h2 { color: var(--ink); font-size: 1.55rem; }
.empty p { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { display: grid; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.poster { grid-area: 1 / 1; display: grid; place-items: center; aspect-ratio: 2 / 3; min-width: 0; background: #29273a; overflow: hidden; text-decoration: none; }
.poster img { width: 100%; height: 100%; object-fit: contain; }
.poster.placeholder { background: radial-gradient(circle, #484156 0 30%, #222237 31% 33%, #333048 34% 47%, #26273b 48% 50%, #2e2e46 51%); }
.poster span { color: #f2ae8b; font: italic bold 4.5rem Georgia, serif; }
.card-info { grid-area: 1 / 1; align-self: end; position: relative; padding: 1rem 1.15rem; background: rgba(255, 253, 248, 0.93); }
.card h3 { font-size: 1.45rem; overflow-wrap: anywhere; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-meta, .review-meta, .tags { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.card-meta { justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.65rem; }
.score { color: var(--accent); font-weight: 750; }
.score small { color: var(--muted); font-weight: 400; }
.original, time { color: var(--muted); font-size: 0.9rem; }
.title-original { margin: 0.35rem 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.title-info { display: inline-block; margin: 0.55rem 0 0; padding: 0.22rem 0.6rem; border-radius: 6px; background: #eee5d8; color: #57362c; font-size: 0.88rem; font-weight: 650; line-height: 1.4; }
.review-title .title-original { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.review-title .title-info { font-size: 1rem; }
.tags { margin: 0.75rem 0; }
.tag { border-radius: 20px; background: #f0e7d9; color: #57362c; padding: 0.16rem 0.62rem; font-size: 0.8rem; text-decoration: none; }
.tag:hover { text-decoration: underline; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.4rem; color: var(--muted); }
.pager a, .pager span { padding: 0.35rem 0.55rem; }
.pager-current { border-radius: 6px; background: var(--dark); color: #fff; font-weight: 700; }
.pager [aria-disabled="true"] { color: #7a7880; }
.reading { max-width: 840px; margin: 2.5rem auto; }
.back { display: inline-block; margin-bottom: 1.5rem; }
.review-title { padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.review-title.with-cover { display: grid; grid-template-columns: 1fr minmax(120px, 30%); align-items: start; gap: 1.4rem; }
.review-cover, .gallery img { border-radius: 10px; }
.review-meta { gap: 1rem; margin: 0.75rem 0; }
.review-body { font: 1.18rem/1.75 Georgia, "Times New Roman", serif; margin: 1.6rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; }
.notice { max-width: 650px; margin: 3.5rem auto; padding: clamp(1.3rem, 4vw, 2.5rem); }
.notice h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.notice > :is(a, form, label) { margin-top: 1rem; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.actions { flex-wrap: wrap; }
.invitations { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; padding: 1.2rem; }
.invitations h2 { font-size: 1.45rem; }
.invitations p { margin-bottom: 0; color: var(--muted); }
.invitations form { display: flex; align-items: end; flex-wrap: wrap; gap: 0.6rem; }
.feed-panel { padding: 1.2rem; margin-bottom: 1.2rem; }
.feed-panel h2 { font-size: 1.45rem; }
.feed-panel label { max-width: 45rem; margin: 0.75rem 0; }
.feed-panel p { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); }
td:nth-child(n+2) { white-space: nowrap; }
.editor { max-width: 850px; display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 1.65rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.mini-cover { width: 110px; border-radius: 6px; }
.check { display: flex; align-items: center; }
.check input { width: auto; }

@media (max-width: 1000px) {
  .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .hero-art { opacity: 0.4; width: 63%; right: -24%; }
  .cards, .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-title { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .top-inner { min-height: 60px; }
  .brand { font-size: 1.05rem; gap: 0.4rem; }
  .brand-mark { width: 28px; height: 28px; }
  .top nav { gap: 0.55rem; }
  .cards, .form-grid, .gallery, .review-title.with-cover { grid-template-columns: 1fr; }
  .review-cover { max-height: 300px; }
  footer { display: block; }
  footer span { display: block; }
}
@media (max-width: 720px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; }
  tr { border-bottom: 1px solid var(--border); padding: 0.5rem 0; }
  td, td:nth-child(n+2) { white-space: normal; border: 0; padding: 0.3rem 1rem; display: flex; gap: 1rem; justify-content: space-between; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; }
  td:first-child { display: block; }
  td:first-child::before { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.error { color: #8a1f11; font-weight: 650; }
