@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
:root {
  --paper: #f5f2ec;
  --ink: #252822;
  --muted: #787a70;
  --line: #dddcd3;
  --red: #b44730;
  --green: #36584b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b4473077;
  outline-offset: 3px;
}
header {
  height: 91px;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.brand-mark {
  font-family: "Playfair Display", serif;
  font-style: italic;
  background: var(--red);
  color: var(--paper);
  width: 31px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 6px;
  font-size: 30px;
}
.brand-dot {
  color: var(--red);
}
nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav {
  background: none;
  border: 0;
  padding: 12px 0;
  color: var(--muted);
}
.nav.active {
  color: var(--ink);
  font-weight: 700;
}
.nav span {
  font-size: 11px;
  background: #e7e7dd;
  padding: 3px 6px;
  border-radius: 20px;
  margin-left: 5px;
}
.round {
  border: 1px solid #cccfc1;
  background: transparent;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--green);
}
main {
  max-width: 1184px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  min-height: 435px;
  align-items: center;
  padding: 40px 0 50px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 700;
  color: var(--green);
}
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  margin: 0;
}
h1 {
  font-size: 58px;
  line-height: 1.11;
  letter-spacing: -1.8px;
  margin: 20px 0;
}
h1 em {
  color: var(--red);
  font-weight: 500;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 25px;
}
.primary {
  border: 0;
  background: var(--green);
  color: white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 13px 21px;
  border-radius: 5px;
  font-weight: 500;
}
.primary:hover {
  background: #264739;
}
.small {
  font-size: 11px;
  color: var(--muted);
}
.hero-art {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.orbit {
  position: absolute;
  border: 1px solid #ded6c8;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  left: 90px;
  top: 15px;
}
.art-card {
  position: absolute;
  width: 190px;
  height: 272px;
  box-shadow: 0 15px 30px #45423619;
  border-radius: 4px;
  padding: 23px;
}
.art-card.back {
  background: #454b40;
  color: #e9dbb2;
  transform: rotate(12deg);
  right: 21px;
  top: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.art-card.back span {
  font-size: 29px;
  font-family: Georgia;
  line-height: 1.2;
}
.art-card b {
  font-size: 8px;
  letter-spacing: 2px;
}
.art-card.front {
  left: 85px;
  top: 30px;
  transform: rotate(-9deg);
  background: #ba513a;
  color: #f6dfbb;
  overflow: hidden;
}
.art-card.front small {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.art-card.front > span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 37px;
  line-height: 1.1;
  margin: 27px 0;
}
.art-card.front b {
  position: absolute;
  bottom: 20px;
}
.art-sun {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid #edc89977;
  border-radius: 50%;
  right: -35px;
  bottom: -20px;
}
.float-note {
  position: absolute;
  right: 12px;
  bottom: 26px;
  transform: rotate(-5deg);
  background: #fffef9;
  padding: 13px 20px;
  box-shadow: 0 4px 16px #302e2310;
  font-family: Georgia;
  font-style: italic;
  font-size: 16px;
}
.pilot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}
.pilot button {
  margin-left: auto;
  border: 0;
  white-space: nowrap;
  background: none;
  color: var(--green);
  font-size: 11px;
}
#catalog {
  padding-top: 39px;
  scroll-margin-top: 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
}
h2 {
  font-size: 31px;
  line-height: 1.3;
}
.section-heading h2 {
  margin-top: 8px;
}
.section-heading h2 span {
  color: var(--red);
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
.search-row {
  display: flex;
  gap: 12px;
}
.search-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 15px;
  flex: 1;
}
.search-wrap > span {
  font-size: 25px;
  color: var(--muted);
}
input[type="search"] {
  background: none;
  border: 0;
  outline: none;
  width: 100%;
  padding: 15px 0;
  color: var(--ink);
  font-size: 13px;
}
kbd {
  border: 1px solid var(--line);
  padding: 1px 7px;
  color: var(--muted);
  border-radius: 3px;
}
.search-row > select,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf8;
  padding: 10px;
  color: var(--ink);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 19px 0 27px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: #686c60;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 12px;
}
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.library-filters {
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px 23px;
}
.card {
  min-width: 0;
}
.cover-button {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.cover {
  aspect-ratio: 0.73;
  border-radius: 6px;
  background: var(--cover);
  color: #f4e5c7;
  padding: 20px 17px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}
.cover-button:hover .cover {
  transform: translateY(-4px);
}
.cover:before {
  content: "";
  position: absolute;
  width: 150px;
  height: 230px;
  border: 1px solid #ffe3a52b;
  border-radius: 50% 50% 0 0;
  bottom: -50px;
  right: -30px;
  transform: rotate(-25deg);
}
.cover:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #ffe3a533;
  border-radius: 50%;
  top: -25px;
  right: -32px;
}
.cover .cover-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.cover-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.4px;
  opacity: 0.8;
}
.cover-genre {
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-top: 1px solid #ffffff44;
  padding-top: 11px;
}
.save {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 1px solid #ffffff66;
  background: #0003;
  color: white;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 18px;
}
.save.saved {
  background: #f5f2ec;
  color: var(--green);
}
.poster-wrap {
  position: relative;
}
.card-title {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 6px;
  min-height: 38px;
}
.card-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.verdict {
  border: 0;
  background: none;
  padding: 9px 0 0;
  font-size: 11px;
  color: var(--green);
  text-align: left;
}
.closing {
  text-align: center;
  margin: 60px 0 40px;
  border-top: 1px solid var(--line);
  padding: 40px 15px 20px;
}
.closing h2 {
  font-size: 28px;
  margin: 13px 0;
}
.closing p {
  color: var(--muted);
  font-size: 13px;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1280px;
  margin: auto;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  gap: 35px;
  color: var(--muted);
  font-size: 10px;
}
footer .brand {
  color: var(--ink);
  font-size: 23px;
}
footer p {
  line-height: 1.7;
}
footer button {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--green);
  font-size: 11px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(860px, 94vw);
  max-height: 92vh;
}
dialog::backdrop {
  background: #15251bcc;
  backdrop-filter: blur(5px);
}
.close {
  position: absolute;
  right: 13px;
  top: 10px;
  background: #fff9;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 25px;
  z-index: 3;
}
.detail-top {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 38px;
  border-bottom: 1px solid var(--line);
}
.detail-top h2 {
  font-size: 30px;
  margin: 10px 0;
}
.detail-top p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.detail-top .cover {
  width: 180px;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 9px;
  background: #e7e8dc;
  font-size: 10px;
  border-radius: 3px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  padding: 10px 15px;
  border-radius: 5px;
}
.review-area {
  padding: 28px 38px;
}
.review-area h3 {
  font-size: 23px;
}
.review-area > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.review-form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.choice {
  display: inline-flex;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 12px;
  background: #fff9;
}
.choice input:checked + span {
  background: #e0e9dc;
  border-color: var(--green);
  color: var(--green);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--red);
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-pair select {
  width: 100%;
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  background: #fffdf8;
}
.form-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.form-bottom label {
  margin-right: auto;
  font-size: 12px;
}
.review-display {
  background: #e9ecdf;
  border-radius: 6px;
  padding: 17px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.review-display p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-display small {
  color: var(--muted);
}
.review-display button {
  font-size: 11px;
  border: 0;
  background: transparent;
  color: var(--red);
  margin-right: 12px;
}
.review-display details summary {
  cursor: pointer;
  color: var(--green);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 15px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.empty h3 {
  font-size: 25px;
}
.empty p {
  color: var(--muted);
}
.info-content {
  padding: 45px;
  line-height: 1.8;
}
.info-content h2 {
  margin: 15px 0;
}
.info-content p {
  font-size: 14px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--green);
  color: white;
  padding: 13px 24px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1400px) {
  main {
    max-width: 1184px;
  }
}
@media (max-width: 1250px) {
  main {
    padding: 0 40px;
  }
  .grid {
    gap: 25px 18px;
  }
  .cover .cover-title {
    font-size: 21px;
  }
}
@media (max-width: 950px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: right center;
  }
  .hero {
    gap: 0;
  }
  h1 {
    font-size: 48px;
  }
  .hero-actions .small {
    display: none;
  }
  .cover .cover-title {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  header {
    height: 73px;
    padding: 0 20px;
    gap: 15px;
  }
  .brand {
    font-size: 25px;
  }
  .brand-mark {
    display: none;
  }
  nav {
    gap: 15px;
  }
  .nav {
    font-size: 12px;
  }
  .round {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 35px 0;
  }
  .hero-art {
    display: none;
  }
  h1 {
    font-size: 49px;
  }
  .hero p {
    font-size: 14px;
  }
  .pilot {
    align-items: start;
    line-height: 1.7;
    flex-wrap: wrap;
  }
  .pilot > span:nth-child(2) {
    flex: 1;
  }
  .status-dot {
    margin-top: 6px;
  }
  .pilot button {
    margin-left: 16px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 17px;
  }
  .cover .cover-title {
    font-size: 25px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading .muted {
    white-space: nowrap;
    margin-top: 27px;
    font-size: 10px;
  }
  .search-row {
    flex-direction: column;
  }
  .search-row > select {
    align-self: end;
    font-size: 12px;
  }
  .search-wrap kbd {
    display: none;
  }
  .filter-row {
    gap: 6px;
  }
  .chip {
    padding: 7px 12px;
  }
  .detail-top {
    grid-template-columns: 1fr;
    padding: 30px 23px 23px;
    gap: 18px;
  }
  .detail-top > .cover {
    display: none;
  }
  .review-area {
    padding: 23px;
  }
  .form-pair {
    grid-template-columns: 1fr;
  }
  .info-content {
    padding: 35px 23px;
  }
  footer {
    padding: 25px 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  footer > span {
    display: none;
  }
  .closing h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Account and community extensions retain the prototype's visual language. */
input:not([type="radio"]):not([type="checkbox"]):not([type="search"]) {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#account {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#logout {
  margin-top: 24px;
}
#auth-error {
  color: var(--red);
}
.distribution {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.distribution > div {
  display: grid;
  grid-template-columns: 130px 1fr 35px;
  align-items: center;
  gap: 12px;
}
.distribution meter {
  width: 100%;
}
#sources {
  margin-top: 24px;
}
#source-body {
  max-height: 300px;
  overflow: auto;
  overflow-wrap: anywhere;
}
#public-reviews:empty {
  display: none;
}
#review-pagination {
  margin-top: 16px;
}
.review-display {
  overflow-wrap: anywhere;
}
.review-display button {
  min-height: 44px;
}
summary {
  cursor: pointer;
  min-height: 32px;
}
#account-dialog {
  max-width: 520px;
}
#report-dialog {
  max-width: 520px;
}
@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 100px;
    flex-wrap: wrap;
    padding: 14px 20px;
    gap: 12px;
  }
  header .brand {
    margin-right: auto;
  }
  header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  #account {
    font-size: 12px;
    max-width: 130px;
    padding: 9px;
  }
  #moderation {
    font-size: 12px;
    padding: 9px;
  }
  .save {
    width: 36px;
    height: 36px;
  }
  .cover-meta {
    padding-right: 22px;
  }
  .distribution > div {
    grid-template-columns: 115px 1fr 25px;
    gap: 8px;
  }
  .review-area {
    padding: 22px 18px;
  }
  .form-bottom .primary {
    width: 100%;
  }
  dialog {
    max-height: 90dvh;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .cover .cover-title {
    font-size: clamp(17px, 5.7vw, 25px);
  }
}
@media (max-width: 700px) {
  .pilot > span:nth-child(2) {
    flex-basis: calc(100% - 20px);
  }
  .pilot button {
    margin-left: 16px;
  }
}
.official-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: var(--paper);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}
.card-tags span {
  font-size: 10px;
  color: var(--green);
  background: #e7e8dc;
  padding: 4px 6px;
  border-radius: 3px;
}
.card-synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0;
}
.detail-top .source-credit {
  font-size: 11px;
}
.source-credit a {
  text-decoration: underline;
}
@media (max-width: 700px) {
  .detail-top > .cover.has-poster {
    display: flex;
    width: 130px;
  }
}
