/* Malavia Beta Zero — frozen North Star fidelity pass 2 */

.fz-muted { color: #9aa2ab; }
.fz-section { margin-top: 30px; }
.fz-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.fz-section-head h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.fz-section-head span { color: #9aa2ab; font-size: 12px; }

.fz-btn {
  min-height: 44px;
  border: 1px solid #2a3038;
  background: #171b20;
  border-radius: 11px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f2ede4;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.fz-btn:hover { background: #1d2228; }
.fz-btn.gold {
  background: rgba(244,174,43,.10);
  border-color: rgba(244,174,43,.34);
  color: #ffd36d;
}
.fz-btn.small { min-height: 38px; padding: 6px 10px; font-size: 12px; }
.fz-btn.is-static { opacity: .62; cursor: default; }
.fz-text-btn {
  border: 0;
  background: none;
  padding: 6px 0;
  color: #e8b347;
  text-decoration: none;
  font-weight: 900;
}
.fz-text-btn.is-muted { color: #9aa2ab; }
.fz-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #2a3038;
  background: #15191e;
  color: #c6ccd2;
  text-decoration: none;
  font-size: 12px;
  gap: 5px;
}
.fz-pill.active {
  border-color: rgba(244,174,43,.34);
  background: rgba(244,174,43,.10);
  color: #ffd36d;
}
.fz-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #2a3038;
  background: #171b20;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #f2ede4;
  text-decoration: none;
  font-weight: 950;
}

/* Work detail */
.fz-work-page { min-width: 0; }
.fz-work-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
}
.fz-work-notice { margin-bottom: 10px; }
.fz-work-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 12px;
  position: relative;
  padding-bottom: 22px;
}
.fz-work-hero::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(244,174,43,.38),transparent);
}
.fz-work-poster {
  grid-column: 1;
  grid-row: 1;
  width: 96px;
  aspect-ratio: 2/3;
  border-radius: 9px;
  overflow: hidden;
  background: #1d2228;
  box-shadow: 0 16px 44px rgba(0,0,0,.24);
}
.fz-work-poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fz-poster-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  background: radial-gradient(circle at 50% 38%,rgba(244,174,43,.10),transparent 35%),linear-gradient(150deg,#222830,#15191e);
  color: #aeb4ba;
  border: 1px solid rgba(244,174,43,.10);
}
.fz-poster-fallback::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(244,174,43,.14);
  border-radius: 7px;
  pointer-events: none;
}
.fz-poster-fallback img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; opacity: .82; }
.fz-poster-fallback span { font-size: 11px; line-height: 1.55; }
.fz-work-identity { min-width: 0; grid-column: 2; grid-row: 1; }
.fz-work-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -.35px;
  overflow-wrap: anywhere;
}
.fz-work-en {
  margin-top: 2px;
  color: #9da5ae;
  font-size: 12px;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
  overflow-wrap: anywhere;
}
.fz-work-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.fz-work-meta .fz-pill { min-height: 31px; padding: 4px 8px; font-size: 11px; }
.fz-work-body { min-width: 0; grid-column: 1/-1; grid-row: 2; }
.fz-work-scorebar { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
.fz-malavia-score {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-right: 2px solid #f4ae2b;
  background: linear-gradient(100deg,rgba(244,174,43,.10),rgba(244,174,43,.025));
  padding: 10px 11px;
  border-radius: 10px;
}
.fz-score-signature { min-width: 0; display: flex; align-items: center; gap: 7px; }
.fz-score-signature img { width: 24px; height: 24px; border-radius: 7px; object-fit: contain; }
.fz-score-signature small { font-size: 10.5px; color: #d7c08d; overflow-wrap: anywhere; }
.fz-score-num { font-size: 27px; line-height: 1; color: #ffd36d; }
.fz-malavia-score > span { font-size: 11px; color: #a8afb7; white-space: nowrap; }
.fz-my-score {
  position: relative;
  border: 0;
  background: #171b20;
  border-radius: 9px;
}
.fz-my-score > summary {
  min-height: 52px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  cursor: pointer;
}
.fz-my-score > summary::-webkit-details-marker { display: none; }
.fz-my-score small { color: #9aa2ab; }
.fz-my-score b { color: #ffd36d; }
.fz-my-score.is-disabled {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  opacity: .72;
}
.fz-rating-sheet {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
}
.fz-rating-choice {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #2a3038;
  background: transparent;
  color: #e2ddd5;
  text-align: right;
  cursor: pointer;
}
.fz-rating-choice b { color: #ffd36d; }
.fz-rating-choice.is-selected { background: rgba(244,174,43,.08); }
.fz-work-actions {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  margin-top: 9px;
}
.fz-work-actions form { margin: 0; min-width: 0; }
.fz-work-actions .fz-btn { width: 100%; min-height: 48px; padding: 7px 5px; font-size: 12px; }
.fz-quiet-details { margin-top: 8px; color: #9aa2ab; }
.fz-quiet-details > summary { min-height: 38px; display: flex; align-items: center; cursor: pointer; font-size: 11.5px; }
.fz-inline-form { display: flex; gap: 7px; align-items: center; margin-top: 5px; }
.fz-inline-form input {
  min-height: 44px;
  flex: 1;
  border: 1px solid #2a3038;
  background: #171b20;
  border-radius: 10px;
  padding: 8px 10px;
}
.fz-work-summary { font-size: 13px; color: #d1cbc2; margin: 16px 0 0; }
.fz-facts { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
.fz-fact { min-width: 0; padding: 9px 0; border-bottom: 1px solid #2a3038; }
.fz-fact-label { font-size: 11px; color: #9aa2ab; margin-bottom: 2px; }
.fz-fact-value { min-width: 0; display: flex; gap: 4px; flex-wrap: wrap; overflow-wrap: anywhere; }
.fz-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #444c56;
  background: transparent;
  color: #ded7ce;
  text-decoration: none;
  font-size: 12px;
}
.fz-tag:hover { color: #ffd36d; border-color: #f4ae2b; }
.fz-work-utilities { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fz-list-membership { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.fz-list-membership select,
.fz-report-review select,
.fz-report-review textarea,
.fz-review-composer textarea,
.fz-edit-form input,
.fz-edit-form select,
.fz-edit-form textarea,
.fz-entity-tools select,
.fz-search-box {
  border: 1px solid #2a3038;
  background: #171b20;
  border-radius: 10px;
  color: #f2ede4;
}
.fz-list-membership select,
.fz-entity-tools select,
.fz-edit-form input,
.fz-edit-form select { min-height: 44px; padding: 8px 10px; }
.fz-empty-inline { display: flex; gap: 8px; flex-wrap: wrap; color: #9aa2ab; }
.fz-empty-inline a { color: #ffd36d; }

.fz-reviews { display: grid; gap: 4px; }
.fz-review { padding: 12px 0; border-bottom: 1px solid #2a3038; }
.fz-review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.fz-review-user { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.fz-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a251e;
  border: 1px solid rgba(244,174,43,.34);
  color: #ffd36d;
  font-size: 11px;
  font-weight: 950;
}
.fz-review > p { margin: 0; color: #c9c3ba; font-size: 13px; }
.fz-spoiler { padding: 12px; border: 1px dashed #444c56; border-radius: 9px; color: #aaa39b; }
.fz-spoiler summary,
.fz-report-review summary { cursor: pointer; color: #e8b347; font-weight: 850; }
.fz-review-compose-toggle { position: relative; }
.fz-review-compose-toggle > summary { list-style: none; }
.fz-review-compose-toggle > summary::-webkit-details-marker { display: none; }
.fz-review-composer {
  width: min(90vw, 420px);
  margin-top: 8px;
  padding: 12px;
  display: grid;
  gap: 9px;
  border: 1px solid #2a3038;
  border-radius: 12px;
  background: #171b20;
}
.fz-review-composer textarea,
.fz-report-review textarea { width: 100%; min-height: 110px; padding: 9px 10px; }
.fz-review-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.fz-report-review form { display: grid; gap: 7px; margin-top: 8px; }

/* List detail */
.fz-list-detail-head { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; align-items: start; }
.fz-list-detail-cover {
  width: 88px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  overflow: hidden;
  border-radius: 8px;
  background: #1d2228;
}
.fz-list-detail-cover > img,
.fz-list-cover-empty { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.fz-list-cover-empty { display: grid; place-items: center; background: #1d2228; }
.fz-list-cover-empty img { width: 22px; height: 22px; opacity: .7; }
.fz-list-detail-copy h1 { font-size: 24px; line-height: 1.25; margin: 2px 0 5px; overflow-wrap: anywhere; }
.fz-list-detail-copy > p { margin: 0; color: #9aa2ab; font-size: 12px; }
.fz-list-owner { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: #cfc9c0; text-decoration: none; }
.fz-list-owner .fz-avatar { width: 28px; height: 28px; font-size: 10px; }
.fz-list-privacy { color: #747d87; font-size: 11px; }
.fz-page-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.fz-list-poster-grid { margin-top: 2px; }
.fz-list-position {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15,18,22,.86);
  border: 1px solid rgba(244,174,43,.34);
  color: #ffd36d;
  font-size: 10px;
  font-weight: 950;
}
.fz-list-manage,
.fz-edit-drawer { margin-top: 18px; border-top: 1px solid #2a3038; }
.fz-list-manage > summary,
.fz-edit-drawer > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: #d8d1c7; font-weight: 900; }
.fz-manage-rows { display: grid; }
.fz-manage-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #2a3038;
}
.fz-manage-row > span { color: #747d87; }
.fz-manage-row > strong { overflow-wrap: anywhere; }
.fz-manage-actions { display: flex; gap: 3px; }
.fz-manage-actions form { margin: 0; }
.fz-manage-actions button {
  width: 40px;
  height: 40px;
  border: 1px solid #2a3038;
  border-radius: 9px;
  background: #171b20;
  color: #d8d1c7;
}
.fz-manage-actions .is-remove { color: #ff9c9c; }
.fz-edit-form { display: grid; gap: 8px; padding-top: 8px; }
.fz-edit-form label { font-size: 12px; font-weight: 850; }
.fz-edit-form textarea { min-height: 100px; padding: 8px 10px; }

/* Shared poster grid for pass 2 */
.fz-poster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 10px; }
.fz-poster-card { min-width: 0; }
.fz-poster-open { display: block; color: inherit; text-decoration: none; min-width: 0; }
.fz-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 9px;
  overflow: hidden;
  background: #1d2228;
  box-shadow: 0 7px 20px rgba(0,0,0,.16);
}
.fz-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fz-poster-title {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.fz-poster-en { font-size: 11px; color: #818994; direction: ltr; unicode-bidi: plaintext; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-poster-meta { margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #89919b; font-size: 11px; }
.fz-poster-state { position: absolute; inset: 6px 6px auto auto; display: flex; gap: 4px; align-items: center; }
.fz-poster-state > span,
.fz-poster-state > b { min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: rgba(15,18,22,.86); border: 1px solid rgba(244,174,43,.28); color: #ffd36d; font-size: 10px; }
.fz-poster-state .is-watched { color: #79cda3; }

/* Entity */
.fz-entity-head { min-width: 0; }
.fz-entity-head-main h1 { margin: 3px 0 4px; font-size: 31px; line-height: 1.15; overflow-wrap: anywhere; }
.fz-entity-head-main > p { margin: 5px 0 0; color: #9aa2ab; font-size: 12px; }
.fz-entity-en { color: #8f97a0; direction: ltr; unicode-bidi: plaintext; text-align: right; font-size: 12px; }
.fz-entity-count { margin-top: 9px; display: inline-flex; align-items: baseline; gap: 6px; }
.fz-entity-count b { color: #ffd36d; font-size: 20px; }
.fz-entity-count span { color: #9aa2ab; font-size: 11px; }
.fz-entity-showcase {
  height: 82px;
  margin: 12px 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  mask-image: linear-gradient(90deg,transparent,#000 18%);
}
.fz-entity-showcase img { width: 62px; height: 90px; object-fit: cover; border-radius: 7px; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.fz-entity-showcase img:nth-child(2) { margin-right: -20px; margin-left: -20px; transform: translateY(8px); z-index: 2; }
.fz-entity-role-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 3px; scrollbar-width: none; }
.fz-entity-role-tabs::-webkit-scrollbar { display: none; }
.fz-entity-role-tabs .fz-pill { flex: none; }
.fz-entity-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; margin-top: 11px; }
.fz-search-box { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 11px; }
.fz-search-box > span { color: #9ca4ad; }
.fz-search-box input { width: 100%; border: 0; background: none; outline: 0; }
.fz-entity-tools select { width: 100%; }
.fz-entity-results { border-top: 1px solid rgba(244,174,43,.12); padding-top: 18px; }
.fz-pagination { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #9aa2ab; }
.fz-branded-empty { min-height: 210px; display: flex; align-items: center; justify-content: center; gap: 14px; text-align: right; }
.fz-branded-empty > img { width: 52px; height: 52px; border-radius: 12px; opacity: .85; }
.fz-branded-empty b { color: #d8d1c7; }
.fz-branded-empty p { margin: 2px 0 8px; font-size: 12px; color: #9aa2ab; }

@media (min-width: 821px) {
  .fz-work-topbar { display: none; }
  .fz-work-hero { grid-template-columns: 190px minmax(0,1fr); gap: 28px; align-items: start; }
  .fz-work-poster { width: 190px; grid-column: 1; grid-row: 1/3; }
  .fz-work-identity { grid-column: 2; grid-row: 1; }
  .fz-work-body { grid-column: 2; grid-row: 2; }
  .fz-work-title { font-size: 38px; }
  .fz-work-en { font-size: 15px; }
  .fz-work-scorebar { grid-template-columns: minmax(300px,440px) minmax(180px,260px); max-width: 720px; }
  .fz-work-actions { max-width: 620px; }
  .fz-work-actions .fz-btn { font-size: 13px; }
  .fz-work-summary { font-size: 14.5px; max-width: 820px; }
  .fz-facts { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; }
  .fz-list-detail-head { grid-template-columns: 180px minmax(0,1fr); gap: 20px; }
  .fz-list-detail-cover { width: 180px; height: 140px; }
  .fz-list-detail-copy h1 { font-size: 38px; }
  .fz-poster-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px 14px; }
  .fz-entity-head { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 30px; align-items: start; }
  .fz-entity-showcase { grid-column: 2; grid-row: 1/4; height: 210px; margin: 0; justify-content: flex-end; }
  .fz-entity-showcase img { width: 120px; height: 180px; }
  .fz-entity-showcase img:nth-child(2) { margin-right: -44px; margin-left: -44px; transform: translateY(15px); }
  .fz-entity-head-main,
  .fz-entity-role-tabs,
  .fz-entity-tools { grid-column: 1; }
  .fz-entity-head-main h1 { font-size: 42px; }
  .fz-entity-tools { grid-template-columns: minmax(260px,1fr) 160px 160px auto; align-items: center; }
}

@media (max-width: 430px) {
  .fz-work-title { font-size: 24px; }
  .fz-list-detail-head { grid-template-columns: 92px minmax(0,1fr); gap: 10px; }
  .fz-list-detail-cover { width: 92px; height: 72px; }
  .fz-manage-row { grid-template-columns: 24px minmax(0,1fr); }
  .fz-manage-actions { grid-column: 2; justify-content: flex-start; }
  .fz-review-compose-footer { align-items: stretch; flex-direction: column; }
  .fz-review-compose-footer .fz-btn { width: 100%; }
}
