:root {
  color-scheme: light;
  --bg: #FCFBFD;
  --surface: #FFFFFF;
  --ink: #242729;
  --muted: #606B6C;
  --line: #E6E1EB;
  --accent: #6935BC;
  --soft: #F0EDF4;
  --score: #A22E62;
  --score-bg: #FCE6F0;
  --card-line: #E9E5EE;
  --logo: #7139C5;
  --large-score: #BF3E78;
  --rating-fill: #C85186;
  --rating-track: #F0EEF2;
  --menu-shadow: #E0E1DE;
  --profile-shadow: #DFDAE4;
  font-family: system-ui, sans-serif;
  background: var(--bg);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101112;
  --surface: #282B2E;
  --ink: #F3F4F2;
  --muted: #C4C8C8;
  --line: #53585B;
  --accent: #C9A8FF;
  --soft: #373B3E;
  --score: #F6CE5E;
  --score-bg: #423720;
  --card-line: transparent;
  --logo: #7842C9;
  --large-score: #F6CE5E;
  --rating-fill: #E8BC4D;
  --rating-track: #454A4D;
  --menu-shadow: #1A1C1D;
  --profile-shadow: #191A1C;
}

/* Capture the sticky header separately so scrolling cannot clip it out of the page snapshot. */
:root.theme-transition .site-header { view-transition-name: yamito-header; }
:root.theme-transition::view-transition-group(yamito-header) { z-index: 1; }
:root.theme-transition::view-transition-group(root),
:root.theme-transition::view-transition-group(yamito-header),
:root.theme-transition::view-transition-old(root),
:root.theme-transition::view-transition-old(yamito-header),
:root.theme-transition::view-transition-new(root),
:root.theme-transition::view-transition-new(yamito-header) {
  animation: none;
  mix-blend-mode: normal;
}
:root.theme-transition::view-transition-new(root),
:root.theme-transition::view-transition-new(yamito-header) {
  animation: theme-reveal 420ms cubic-bezier(.28, .56, .4, 1) both;
}
:root.theme-transition::view-transition-new(yamito-header) { --theme-origin: var(--theme-header-origin); }
@keyframes theme-reveal {
  from { clip-path: circle(0px at var(--theme-origin)); }
  /* Paint the full reveal before the browser removes the captured layers. */
  88%, to { clip-path: circle(var(--theme-radius) at var(--theme-origin)); }
}

* { box-sizing: border-box; }
body { isolation: isolate; margin: 0; background: var(--bg); color: var(--ink); }
.sakura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sakura-petal {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  background: #E486B0;
  border-radius: 70% 55% 65% 25% / 65% 55% 75% 40%;
  opacity: var(--opacity);
  animation: sakura-fall var(--duration) var(--delay) linear infinite;
}
@keyframes sakura-fall {
  0% { transform: translate3d(0, 0, 0) rotate(20deg); }
  33% { transform: translate3d(var(--drift), 35vh, 0) rotate(100deg); }
  66% { transform: translate3d(calc(var(--drift) * -.25), 70vh, 0) rotate(215deg); }
  100% { transform: translate3d(var(--drift), calc(100vh + 48px), 0) rotate(335deg); }
}
[data-theme="dark"] .sakura { display: none; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:where(a[href], button, input, label) {
  -webkit-tap-highlight-color: rgb(105 53 188 / 12%);
  -webkit-tap-highlight-color: color-mix(in srgb, var(--tap-color, currentColor) 14%, transparent);
}
.primary { --tap-color: color-mix(in srgb, var(--logo) 60%, #fff); }
.review-tools button[aria-pressed="true"] { --tap-color: color-mix(in srgb, var(--accent) 60%, var(--ink)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h2, h3, p { margin: 0; }
.sr-only, .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(1060px, 100% - 44px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.header-inner { border-bottom: 1px solid var(--line); }
.header-inner, .header-actions, .panel-heading, .review-meta, .site-footer { display: flex; align-items: center; }
.header-inner, .panel-heading, .review-meta, .site-footer { justify-content: space-between; gap: 12px; }
.header-inner { min-height: 68px; }
.header-actions { gap: 6px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .015em; text-decoration: none; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--logo); color: #FFFFFF; font-size: 18px; font-weight: 700; }
#header-theme .sun, [data-theme="dark"] #header-theme .moon { display: none; }
[data-theme="dark"] #header-theme .sun { display: block; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
#header-theme { -webkit-tap-highlight-color: transparent; }
.icon-button:where(:not(#header-theme)):hover { color: var(--accent); background: var(--soft); }
.icon-button:disabled { opacity: .35; }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
main { padding-block: 30px 44px; }
.shelf { margin-bottom: 31px; scroll-margin-top: 86px; }
.shelf:last-child { margin-bottom: 0; }
.shelf h2 { margin-bottom: 13px; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.shelf-heading h2 { margin: 0; }
.carousel-controls { display: flex; gap: 4px; }
.carousel-controls .icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); }
.carousel-controls .icon-button svg { width: 15px; height: 15px; }
.previous svg { transform: rotate(180deg); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 2px 0 5px; scroll-snap-type: x mandatory; }
.anime-card { display: block; text-decoration: none; position: relative; width: 100%; padding: 0; overflow: hidden; scroll-snap-align: start; text-align: start; color: var(--ink); background: transparent; border: 0; border-radius: 2px; align-self: start; }
.anime-card .art { aspect-ratio: 4 / 3; }
.anime-card:hover .card-title { color: var(--accent); }
.anime-card:focus-visible { outline-offset: -2px; }
.art { --sky: #8298ba; --base: #283d61; --moon: #dce7f4; --ridge: #263654; display: block; position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: linear-gradient(155deg, var(--sky), var(--base)); }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 66% 32%, var(--moon) 0 11%, transparent 11.5%), repeating-linear-gradient(110deg, transparent 0 36px, #fff2 38px 39px, transparent 40px 78px); }
.art::after { content: ""; position: absolute; inset: 0; background: var(--ridge); clip-path: polygon(0 65%, 12% 56%, 26% 68%, 44% 44%, 62% 69%, 76% 54%, 100% 70%, 100% 100%, 0 100%); }
.erased { --sky: #8298ba; --base: #283d61; --moon: #dce7f4; --ridge: #263654; }
.frieren { --sky: #b0c3ad; --base: #4f6a67; --moon: #f3e2aa; --ridge: #385950; }
.violet { --sky: #c4a2ce; --base: #67527e; --moon: #f8d6db; --ridge: #514060; }
.apothecary { --sky: #d5af79; --base: #a04f48; --moon: #ffdfb4; --ridge: #743a42; }
.dungeon { --sky: #a4bd77; --base: #526547; --moon: #ebdfab; --ridge: #414d3e; }
.mob { --sky: #db8e9e; --base: #714d8e; --moon: #ffdbb8; --ridge: #56396e; }
.card-body { display: grid; justify-items: start; gap: 2px; padding: 5px 0 0; }
.card-body .score { background: transparent; padding: 0; font-size: 10px; font-weight: 700; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.score { display: inline-flex; align-items: center; gap: 4px; width: max-content; flex-shrink: 0; color: var(--score); background: var(--score-bg); border-radius: 6px; padding: 3px 6px; font-size: .78rem; font-weight: 800; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.review { min-width: 0; background: var(--surface); border: 1px solid var(--card-line); border-radius: 17px; padding: clamp(16px, 3vw, 24px); }
.eyebrow { color: var(--muted); font-size: .73rem; font-weight: 650; }
.review p, .panel-note, .site-footer { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.genre-list { display: flex; gap: 8px; flex-wrap: wrap; }
.genre-list button { border-radius: 30px; border: 0; padding: 8px 13px; background: var(--soft); color: var(--ink); font-size: .8rem; }
.genre-list button:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding-block: 18px; flex-wrap: wrap; }
.site-footer .logo { font-size: 1rem; }
.panel { --panel-entry-transform: translateY(-8px) scale(.985); width: min(400px, 100% - 32px); max-height: calc(100% - 98px); margin: 76px max(16px, calc((100% - 1060px) / 2)) auto auto; padding: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--card-line); border-radius: 15px; box-shadow: 4px 6px 0 var(--menu-shadow); transform-origin: top right; }
.panel::backdrop { background: transparent; }
.panel[open] { animation: panel-in 220ms cubic-bezier(.2, .75, .25, 1) both; }
@keyframes panel-in {
  from { opacity: 0; transform: var(--panel-entry-transform); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@supports (transition-behavior: allow-discrete) {
  .panel {
    opacity: 0;
    transform: var(--panel-entry-transform);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .75, .25, 1),
      display 220ms allow-discrete, overlay 220ms allow-discrete;
  }
  .panel[open] { animation: none; opacity: 1; transform: translateY(0) scale(1); }
  @starting-style {
    .panel[open] { opacity: 0; transform: var(--panel-entry-transform); }
  }
}
.panel-heading { margin-bottom: 10px; }
.panel-heading h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.close { font-size: 1.5rem; }
.panel input { display: block; width: 100%; padding: 11px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.panel form { display: grid; gap: 12px; margin-top: 14px; }
.panel form label { display: grid; gap: 5px; font-size: .85rem; }
.primary { border: 0; border-radius: 9px; background: var(--logo); color: #FFFFFF; padding: 11px; font-weight: 700; }
#search-dialog {
  --panel-entry-transform: none;
  --search-inset: max(14px, env(safe-area-inset-top));
  --search-height: calc(var(--search-viewport-height, 100dvh) - var(--search-inset) - 14px);
  position: fixed;
  top: var(--search-viewport-top, 0px);
  bottom: auto;
  width: min(460px, 100% - 28px);
  max-width: none;
  max-height: min(640px, var(--search-height));
  margin: var(--search-inset) auto 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  /* Keep the layout intact while display and overlay finish transitioning out. */
  flex-direction: column;
  gap: 9px;
}
#search-dialog[open] { display: flex; }
#search-dialog::backdrop {
  background: color-mix(in srgb, var(--bg) 32%, transparent);
  backdrop-filter: blur(5px);
}
@supports (transition-behavior: allow-discrete) {
  #search-dialog::backdrop {
    opacity: 0;
    transition: opacity 180ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
  }
  #search-dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    #search-dialog[open]::backdrop { opacity: 0; }
  }
}
.search-bar, .search-results { background: var(--surface); border-radius: 15px; }
.search-bar { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 5px 10px 5px 14px; border: 1.5px solid var(--accent); }
.search-bar svg, .search-chevron { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); }
.search-bar #query { min-width: 0; padding: 8px 0; border: 0; background: transparent; font-size: 16px; }
.search-bar #query:focus { outline: none; }
.search-bar:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
#query::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-bar .search-close { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 22px; }
.search-results { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 12px 12px 4px; border: 1px solid var(--line); }
.search-results-heading { display: flex; justify-content: space-between; gap: 8px; padding: 0 3px 7px; color: var(--muted); font-size: 12px; }
.search-results-heading h3 { margin: 0; font-size: inherit; }
.results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; list-style: none; margin: 0; padding: 0; }
.results a { display: grid; grid-template-columns: 35px minmax(0, 1fr) 16px; align-items: center; gap: 11px; min-height: 60px; padding: 6px 3px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.3; }
.results a:hover { background: var(--soft); }
.results a:focus-visible { outline-offset: -2px; }
.results li + li { border-top: 1px solid var(--line); }
.results .search-cover { aspect-ratio: 35 / 46; }
.results .search-name { overflow-wrap: anywhere; }
.results .search-chevron { width: 16px; height: 16px; color: var(--muted); }
.results .panel-note { padding: 8px 3px; }
.review-author { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 700; }
.review-author .avatar { flex: 0 0 42px; width: 42px; height: 42px; color: var(--accent); font-size: 18px; }
.review-byline { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.author-profile-link { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.author-profile-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.review-byline time { color: var(--muted); font-size: 12px; font-weight: 400; }
.avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--soft); }
.review-anime-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 19px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.review-anime-link::after { content: ""; flex: none; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.review-anime-link:hover { text-decoration: underline; }

.anime-page { max-width: 630px; }
.back-link { display: inline-block; margin-bottom: 13px; color: var(--accent); font-size: .85rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.anime-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  font-weight: 700;
}
.anime-back:hover { background: var(--soft); text-decoration: none; }
.anime-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.anime-heading { display: grid; grid-template-columns: minmax(0, 38%) 1fr; align-items: start; gap: 14px; }
.anime-heading h1 { margin: 0 0 5px; font-size: 27px; font-weight: 700; line-height: 1.08; }
.anime-heading .art { aspect-ratio: 5 / 7; }
.anime-poster { position: relative; }
.anime-age-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgb(18 24 31 / 80%);
  color: #F3F4F2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}
.anime-genres { list-style: none; margin: 10px 0 0; padding: 0; }
.anime-genres li { background: var(--soft); border-radius: 30px; padding: 5px 10px; font-size: 10px; }
.anime-release { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.anime-release:not([hidden]) { display: flex; align-items: baseline; gap: 7px; }
.anime-release img { align-self: center; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.anime-section { margin-top: 16px; }
.anime-section h2 { margin-bottom: 7px; font-size: 15px; font-weight: 700; }
.anime-surface { padding: 14px; border: 1px solid var(--card-line); border-radius: 13px; background: var(--surface); }
.anime-total { margin: 6px 0 3px; color: var(--score); font-size: 14px; font-weight: 400; }
.anime-total strong { margin-right: 2px; color: var(--large-score); font-size: 40px; font-weight: 700; line-height: 1; }
.rating-comparison { padding: 18px; border-color: var(--line); }
.rating-totals { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rating-totals:has(#personal-total:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
.rating-totals:has(#personal-total:not([hidden])) .personal-rating-total { text-align: right; }
.rating-totals:has(#personal-total:not([hidden])) #personal-total { justify-content: flex-end; }
.rating-comparison [hidden] { display: none; }
.rating-total { min-width: 0; }
.rating-total h2 { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.4; }
.personal-rating-total { padding-left: 14px; border-left: 1px solid var(--line); }
.personal-rating-total h2 { color: var(--ink); font-weight: 700; }
.rating-comparison .anime-total { display: flex; align-items: baseline; gap: 2px; margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rating-comparison .anime-total[hidden] { display: none; }
.rating-comparison .anime-total strong { font-size: clamp(38px, 11vw, 52px); font-weight: 800; }
.personal-rating-total .anime-total strong { color: var(--accent); }
.rating-comparison #score-caption { margin: 10px 0 18px; font-size: 11px; line-height: 1.6; }
.rating-details { border-top: 1px solid var(--line); }
.rating-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 750; }
.rating-details summary::-webkit-details-marker { display: none; }
.rating-details summary::marker { content: ''; }
.rating-details summary svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rating-details[open] summary svg { transform: rotate(180deg); }
.rating-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.category-scores {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1fr 1.35fr;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 58%, var(--bg));
  font-size: 11px;
  text-align: center;
}
.category-scores[hidden] { display: none; }
.category-scores dt { color: var(--muted); }
.category-scores dd { margin: 3px 0 0; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rating-category-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.rating-category-group h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 650; }
.rating-category-table .category-scores { display: block; padding: 0; border-radius: 0; background: transparent; text-align: right; }
.rating-category-table .category-scores > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 38px; border-top: 1px solid var(--line); }
.rating-category-table dt { color: var(--ink); font-size: 14px; font-weight: 650; }
.rating-category-table dd { margin: 0; color: var(--large-score); font-size: 14px; font-weight: 750; }
#personal-category-group h3, #personal-rating-breakdown > div { justify-content: flex-end; padding-left: 16px; }
#personal-rating-breakdown dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#personal-rating-breakdown dd { color: var(--accent); }
.rating-invite { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.rating-comparison-actions { display: flex; justify-content: flex-end; padding-top: 6px; }
.rating-comparison-actions .text-button { min-height: 44px; padding: 8px 0 0 12px; font-size: 12px; font-weight: 700; }
.rating-details:not([open]) { margin-bottom: -8px; }
.review-button { justify-self: end; border: 1px solid var(--accent); border-radius: 8px; padding: 8px 13px; color: var(--accent); background: transparent; font-weight: 700; font-size: 10px; text-decoration: none; }
.review-button:hover { background: var(--soft); text-decoration: none; }
.review-button:is(:focus-visible, :active) { text-decoration: none; }
a.review-button { display: inline-flex; align-items: center; justify-content: center; }
#anime-reviews { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .track { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 60px; }
  .header-actions { gap: 0; }
  main { padding-top: 14px; }
  .shelf { margin-bottom: 20px; }
  .track { grid-auto-columns: 38%; gap: 8px; scrollbar-width: none; }
  .reviews { grid-template-columns: 1fr; gap: 9px; }
  .art, .anime-card .art { aspect-ratio: 5 / 6; }
  .panel { width: min(360px, 100% - 30px); margin: 68px 15px auto auto; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sakura { display: none; }
  .panel, .panel[open], #search-dialog::backdrop { animation: none; transition: none; }
}

#anime-about h2 { font-size: 14px; }
#anime-reviews-title { font-size: 22px; }
#original-title, #anime-about p, #score-caption { font-size: 11px; }
.review .score { font-weight: 700; }
.review p { overflow-wrap: anywhere; white-space: pre-wrap; }
#menu-title { font-size: 20px; }

.anime-section + .anime-section { margin-top: 16px; }
.rating-row dd { grid-template-columns: minmax(0, 1fr) 46px; }
.review-tools, .review-actions, .reviews-heading { display: flex; align-items: center; gap: 8px; }
.review-actions, .reviews-heading { justify-content: space-between; }
.review-tools button { width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--accent); }
.review-tools button { touch-action: manipulation; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .review-tools button[aria-pressed="false"]:hover { background: var(--soft); }
}
.spoiler-check { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.spoiler-check, .spoiler-check input, .spoiler-review summary {
  -webkit-tap-highlight-color: rgb(105 53 188 / 15%);
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
.spoiler-check input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
}
.spoiler-check input:checked { border-color: var(--logo); background: var(--logo); }
.spoiler-check input:checked::before {
  content: "";
  width: 6px;
  height: 3px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}
@media (forced-colors: active) {
  .spoiler-check input { appearance: auto; }
  .spoiler-check input:checked::before { content: none; }
}
.spoiler-review { margin-top: 8px; }
.spoiler-review summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 74%, var(--surface));
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.spoiler-review summary::-webkit-details-marker { display: none; }
.spoiler-review summary :is(.spoiler-show, .spoiler-hide) { color: var(--accent); font-weight: 700; text-align: end; }
.spoiler-review:not([open]) .spoiler-hide, .spoiler-review[open] .spoiler-show { display: none; }
#review-error:empty { display: none; }

/* Community tabs sit directly below the existing score breakdown. */
.score-heading { margin-bottom: 7px; }
.score-heading h2 { margin: 0; }
.community-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; border-bottom: 1px solid var(--line); }
.community-tabs [role="tab"] { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 48px; padding: 10px 6px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; }
.community-tabs [aria-selected="true"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.community-panel { margin-top: 16px; }
.community-note { margin: 12px 0; font-size: 11px; line-height: 1.5; }
.text-button { padding: 0; border: 0; color: var(--accent); background: transparent; font: inherit; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.discussion-composer { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--surface); }
.discussion-composer textarea { display: block; width: 100%; min-width: 0; height: 26px; min-height: 26px; max-height: 112px; margin: 0; padding: 0; resize: none; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 16px; line-height: 1.5; }
.discussion-composer textarea::placeholder { color: var(--muted); }
.discussion-composer textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 6px; margin-top: 5px; border-top: 1px solid var(--line); }
.composer-actions .spoiler-check { font-size: 11px; color: var(--muted); }
.composer-actions .review-button { min-height: 32px; padding: 5px 11px; font-size: 11px; }
.composer-actions .review-button:disabled { border-color: var(--line); color: var(--muted); }
.discussion-composer .feedback-status { font-size: 11px; }
.discussion-composer .feedback-status:empty { display: none; }
.anime-discussion-list { list-style: none; margin: 0; padding: 0; }
.anime-discussion-comment { padding: 16px 0; }
.anime-discussion-comment > .avatar { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
.anime-discussion-comment .comment-text { color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.anime-discussion-comment .feedback-bar { margin-top: 6px; }
.anime-replies { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.reply-composer { margin-top: 8px; padding: 7px 8px; }
.spoiler-comment summary { cursor: pointer; }
.spoiler-comment { color: var(--muted); font-size: 12px; }
.spoiler-comment[open] summary { margin-bottom: 8px; }
.review-button.review-primary { background: var(--logo); border-color: var(--logo); color: #fff; }
.review-button.review-primary:hover { background: color-mix(in srgb, var(--logo) 87%, #000); }
.write-review-action { width: 100%; min-height: 42px; margin: 0 0 4px; font-size: 12px; }
.rating-dialog { width: min(420px, calc(100% - 30px)); max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px); margin: auto; padding: 18px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.rating-dialog::backdrop { background: rgb(5 7 10 / 68%); }
.rating-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating-dialog-heading h2 { margin: 0; font-size: 22px; }
.rating-dialog-heading .icon-button { width: 32px; height: 32px; color: var(--muted); }
.rating-dialog > .panel-note { margin: 6px 0 14px; font-size: 12px; line-height: 1.4; }
.rating-dialog .rating-fields { margin: 0; }
.rating-dialog .rating-field { grid-template-columns: 82px minmax(0, 1fr) 36px; min-height: 40px; font-size: 12px; }
.quick-rating-overall { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.quick-rating-overall output { display: inline-flex; align-items: baseline; gap: 2px; color: var(--muted); font-size: 11px; }
.quick-rating-overall strong { color: var(--large-score); font-size: 32px; line-height: 1; }
#save-quick-rating { width: 100%; min-height: 42px; font-size: 13px; }
#save-quick-rating:disabled { border-color: var(--line); background: var(--soft); color: var(--muted); }
#quick-rating-error { margin-top: 10px; font-size: 12px; line-height: 1.5; }
#quick-rating-error:empty { display: none; }
.review-rating-summary { margin-top: 12px; padding: 14px 0; border-block: 1px solid var(--line); }
.review-rating-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-rating-heading h2 { margin: 0; font-size: 13px; }
.review-rating-heading .text-button { min-height: 32px; padding-inline: 4px; font-size: 12px; font-weight: 700; }
.review-rating-heading .text-button[hidden] { display: none; }
.review-rating-value { display: inline-flex; align-items: baseline; gap: 3px; color: var(--muted); font-size: 12px; }
.review-rating-value strong { color: var(--large-score); font-size: 27px; line-height: 1.2; }
.review-rating-summary .rating-fields { margin: 12px 0 0; }
.review-rating-summary .rating-fields[hidden] { display: none; }

#reviews { scroll-margin-top: 76px; }
.review:target, .review.published-review { outline: 1px solid var(--accent); scroll-margin-top: 76px; }
.rate-link { display: inline-flex; align-items: center; min-height: 34px; white-space: nowrap; font-size: 12px; text-decoration: none; }
.review-text { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .review-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; white-space: normal; }
.review .review-preview[hidden] { display: none; }
.review .review-read-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 14px; font-weight: 700; }
.review-headline a, a.review-read-more { text-decoration: none; }
.review-headline a:hover, a.review-read-more:hover { text-decoration: underline; }
.review-read-more::after { content: "↘"; }
.review-read-more[aria-expanded="true"]::after { content: "↖"; }

#reviews, .review-filter-sheet { --review-tint: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.reviews-heading h2 { display: flex; align-items: center; gap: 5px; margin: 0; }
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 7px 0 12px; }
.review-order { color: var(--muted); font-size: 11px; }
.review-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.review-ui-icon {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-filter-trigger .review-ui-icon { color: var(--accent); }
.review-filter-trigger .filter-chevron { width: 12px; color: var(--muted); transform: rotate(90deg); }

[data-theme="dark"] .review { border-color: color-mix(in srgb, var(--line) 55%, var(--surface)); }
.review .review-text p { color: inherit; font: inherit; }
.review .review-categories { margin-top: 16px; }
.review .score { align-items: baseline; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: 11px; font-variant-numeric: tabular-nums; }
.review .score strong { font-size: 24px; font-weight: 800; line-height: 1.15; }
.feedback-bar { display: flex; align-items: center; gap: 3px; }
.review > .feedback-bar { flex-wrap: wrap; gap: 4px; margin-top: 16px; padding-top: 7px; border-top: 1px solid var(--line); }
.review > .feedback-bar .feedback-button { min-height: 40px; font-size: 13px; }
.review > .feedback-bar .feedback-report { margin-left: 0; }
.review > .feedback-bar .discussion-toggle { margin-left: auto; }
.review > .feedback-bar .discussion-toggle .count-pill { min-width: auto; height: auto; padding: 0 0 0 3px; background: transparent; font-size: inherit; }
.feedback-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  min-width: 31px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.feedback-button[aria-pressed="true"], .discussion-toggle[aria-expanded="true"] { color: var(--accent); background: var(--review-tint); }
.feedback-button[aria-pressed="true"] { font-weight: 700; }
.feedback-button[data-vote] { -webkit-tap-highlight-color: transparent; }
.feedback-button[data-vote="1"] { --vote-color: #187447; }
.feedback-button[data-vote="-1"] { --vote-color: #AF3045; }
[data-theme="dark"] .feedback-button[data-vote="1"] { --vote-color: #8EE4AF; }
[data-theme="dark"] .feedback-button[data-vote="-1"] { --vote-color: #FF9BA6; }
.feedback-button[data-vote]:focus-visible { outline-color: var(--vote-color); }
.feedback-button[data-vote]:is(:active, [aria-pressed="true"]) {
  color: var(--vote-color);
  background: color-mix(in srgb, var(--vote-color) 14%, var(--surface));
}
.feedback-report { margin-left: auto; }
.discussion-toggle { color: var(--accent); font-weight: 700; }
.discussion-toggle .count-pill { min-width: 18px; height: 18px; font-size: 10px; }
@media (hover: hover) and (pointer: fine) {
  .feedback-button:not([data-vote]):enabled:hover, .review-filter-trigger:hover { background: var(--review-tint); }
}
.review .feedback-status { color: var(--muted); font-size: 11px; }
.feedback-status:not(:empty) { margin-top: 4px; }

.review-discussion { padding-top: 8px; border-top: 1px solid var(--line); }
.review-discussion .discussion-count { margin: 0 0 6px; font-size: 13px; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.comment-form input {
  min-width: 0;
  min-height: 37px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}
.comment-form input::placeholder { color: var(--muted); font-size: 13px; }
.comment-form .review-button { justify-self: stretch; font-size: 12px; }
.comment-form .review-button:disabled { background: var(--soft); color: var(--muted); border-color: var(--line); }
.discussion-retry { color: var(--accent); }
.discussion-retry[hidden] { display: none; }
.comment-list { list-style: none; margin: 9px 0 0; padding: 0; }
.comment-list:empty { margin: 0; }
.review-comment { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0 3px; }
.review-comment + .review-comment { border-top: 1px solid var(--line); }
.review-comment .avatar { flex: 0 0 23px; width: 23px; height: 23px; font-size: 10px; font-weight: 700; }
.comment-main { flex: 1; min-width: 0; }
.comment-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin: 2px 0 4px; }
.comment-heading h4 { margin: 0; font-size: 13px; }
.comment-heading time { color: var(--muted); font-size: 11px; }
.review .comment-text { color: var(--ink); font-size: 13px; line-height: 1.4; }
.review-comment .feedback-button { min-height: 31px; font-size: 11px; }

.review-filter-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 630px);
  max-width: none;
  max-height: calc(100% - 12px);
  max-height: calc(100dvh - 12px);
  margin: 0 auto;
  padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}
.review-filter-sheet::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 7px; border-radius: 6px; background: var(--line); }
.review-filter-sheet::backdrop { background: rgb(16 12 24 / 48%); }
@media (prefers-reduced-motion: no-preference) {
  .review-filter-sheet[open] { animation: review-sheet-in 200ms ease-out both; }
}
@keyframes review-sheet-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-filter-sheet .panel-heading h2 { font-size: 20px; }
.review-filter-sheet .filter-close { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--muted); }
#review-filter-form fieldset { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
#review-filter-form legend { margin-bottom: 4px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
#review-filter-form label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 9px; border-radius: 8px; font-size: 13px; cursor: pointer; }
#review-filter-form label:has(input:checked) { background: var(--review-tint); font-weight: 700; }
#review-filter-form input { margin: 0; accent-color: var(--accent); }
.filter-actions { display: grid; grid-template-columns: 1fr 2.2fr; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-actions button { min-height: 41px; font-size: 13px; }
.filter-reset { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }

.editor-anime { display: flex; gap: 12px; align-items: flex-start; }
.editor-anime h1 { margin: 1px 0 4px; font-size: 21px; line-height: 1.15; }
.editor-anime p { font-size: 11px; }
.editor-cover { display: grid; place-items: end center; flex: 0 0 40px; aspect-ratio: 5 / 7; padding: 2px; color: white; font-size: 7px; font-weight: 700; text-transform: uppercase; text-align: center; }
.editor-cover::before, .editor-cover::after { z-index: -1; }
.editor-heading { margin: 17px 0 8px; font-size: 21px; }
.review-form { padding: 0; }
.editor-anime-name { margin: 7px 0 18px; font-size: 12px; line-height: 1.5; }
.rich-editor { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.review-input { min-height: calc(4.95em + 28px); padding: 14px; outline: none; font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-editor:focus-within { border-color: var(--accent); }
.editor-placeholder { position: absolute; top: 14px; left: 14px; right: 14px; color: var(--muted); pointer-events: none; font-size: 16px; line-height: 1.65; }
.editor-placeholder[hidden] { display: none; }
.review-title-label { display: block; margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.review-title-label span { color: var(--muted); font-weight: 400; font-size: 12px; }
.review-title-input { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 16px; }
.review-title-input::placeholder { color: var(--muted); }
.review-title-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-title-hint { margin: 6px 0 14px; font-size: 11px; }
.review .review-headline { margin: 12px 0 0; color: var(--ink); font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; overflow-wrap: anywhere; }
.review-tools { flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.review-tools #review-length { color: var(--muted); font-size: 10px; }
.review-tools .spoiler-check { margin-left: auto; padding-right: 6px; white-space: nowrap; }
.review-tools button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.review-tools button[aria-pressed="mixed"] { box-shadow: inset 0 0 0 1px var(--accent); }
.rating-fields { min-width: 0; border: 0; padding: 0; margin: 16px 0 9px; }
.rating-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rating-heading h2 { font-size: 15px; }
.rating-heading span { background: var(--soft); color: var(--accent); font-size: 10px; font-weight: 700; border-radius: 7px; padding: 4px 10px; }
.rating-fields .panel-note { margin: 3px 0 8px; font-size: 11px; }
.rating-field { display: grid; grid-template-columns: 80px minmax(0, 1fr) 34px; align-items: center; gap: 8px; min-height: 32px; font-size: 12px; }
.rating-field output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating-field.rated output { color: var(--score); font-weight: 700; }
.rating-field input { appearance: none; width: 100%; min-width: 0; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.rating-field input::-webkit-slider-runnable-track { height: 6px; border-radius: 8px; background: linear-gradient(to right, var(--rating-fill) 0 var(--fill, 0%), var(--rating-track) var(--fill, 0%) 100%); }
.rating-field input::-moz-range-track { height: 6px; border-radius: 8px; background: linear-gradient(to right, var(--rating-fill) 0 var(--fill, 0%), var(--rating-track) var(--fill, 0%) 100%); }
.rating-field input::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -3px; border: 2px solid var(--rating-fill); border-radius: 50%; background: var(--surface); opacity: 0; }
.rating-field input::-moz-range-thumb { box-sizing: border-box; width: 12px; height: 12px; border: 2px solid var(--rating-fill); border-radius: 50%; background: var(--surface); opacity: 0; }
.rating-field.rated input::-webkit-slider-thumb, .rating-field input:focus-visible::-webkit-slider-thumb { opacity: 1; }
.rating-field.rated input::-moz-range-thumb, .rating-field input:focus-visible::-moz-range-thumb { opacity: 1; }
.review-form .review-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
.review-form .review-button { min-height: 39px; font-size: 12px; }
.review-form .review-actions .review-button { justify-self: stretch; padding-inline: 8px; }
.review-form .review-button:disabled { border-color: transparent; background: var(--soft); color: var(--muted); }
#editor-hint, #review-error { margin-top: 10px; font-size: 11px; }
#editor-hint { font-size: 13px; }
#review-error:empty { display: none; }

.stars { display: none; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
[data-theme="dark"] .stars { display: block; }
.sky-star, .sky-dot { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); translate: -50% -50%; opacity: var(--opacity); }
.sky-dot { border-radius: 50%; background: #BF9CFA; }
.sky-star { animation: star-twinkle var(--cycle) ease-in-out var(--phase) infinite; }
.sky-star::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgb(191 156 250 / 15%), transparent 70%); }
.sky-star::after { content: ""; position: absolute; inset: 0; background: #BF9CFA; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
/* The streak extends back from the meteor's leading point. */
.sky-meteor { position: absolute; width: 0; height: 0; opacity: 0; }
.sky-streak {
  position: absolute;
  width: clamp(40px, 10vw, 78px);
  height: 2px;
  background: linear-gradient(90deg, #E8D8FF, #BF9CFA 18%, transparent);
  border-radius: 50%;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(var(--angle, 0deg));
}
.sky-streak::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #EFE3FF;
  box-shadow: 0 0 8px 2px #BF9CFA80;
}
@keyframes star-twinkle {
  0%, 100% { opacity: calc(var(--opacity) * .44); transform: scale(.8); }
  50% { opacity: var(--opacity); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sky-star { animation: none; }
  .sky-meteor { display: none; }
}

.api-status { margin-block: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; }
.api-status[hidden] { display: none; }
.api-status button { border: 0; padding: 5px; border-radius: 5px; background: var(--soft); color: var(--accent); cursor: pointer; }

body:has(#menu-dialog[open]) #open-menu { background: var(--soft); color: var(--accent); }
#menu-dialog {
  width: min(327px, 100% - 30px);
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  margin-top: 70px;
  padding: 18px;
  border-radius: 18px;
  border-color: var(--line);
  scrollbar-width: thin;
}
#menu-dialog .panel-heading { margin-bottom: 11px; }
#menu-title { font-size: 20px; line-height: 1.2; }
#menu-dialog .close { width: 28px; height: 28px; font-size: 24px; color: var(--muted); }
.menu-icon, .menu-chevron, .social-icon {
  display: block;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-chevron { margin-left: auto; width: 12px; height: 12px; color: var(--muted); }
.menu-profile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); text-align: left; }
.menu-avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); font-size: 15px; font-weight: 700; }
.menu-profile-copy { display: grid; gap: 3px; }
.menu-profile-copy strong { font-size: 14px; }
.menu-profile-copy > span { color: var(--accent); font-size: 11px; }
.menu-navigation { padding-top: 12px; }
.menu-row { display: flex; align-items: center; gap: 13px; min-height: 40px; width: 100%; padding: 8px 5px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; text-align: left; text-decoration: none; }
.menu-row > .menu-icon { color: var(--muted); }
.menu-section { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.menu-section h3 { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.menu-information { margin-top: 8px; padding-top: 7px; }
.menu-information .menu-row:last-child { min-height: 41px; margin-top: 10px; padding-inline: 12px; border: 1.3px solid var(--accent); border-radius: 10px; color: var(--accent); font-weight: 700; }
.menu-information .menu-row:last-child .menu-icon, .menu-information .menu-row:last-child .menu-chevron { color: inherit; }
.menu-appearance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu-appearance button { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 40px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.menu-appearance button[aria-pressed="true"] { border: 1.3px solid var(--accent); color: var(--accent); }
.menu-appearance .menu-icon { width: 18px; height: 18px; }
.menu-socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.menu-socials button { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.social-circle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--ink); }
.social-icon { width: 22px; height: 22px; }
.menu-account { padding-top: 8px; }
.menu-account .menu-row { color: var(--muted); font-size: 12px; }
.menu-notice { margin-top: 8px; color: var(--accent); font-size: 11px; line-height: 1.45; }
.about-more { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) {
  .menu-row:hover { background: var(--soft); }
  .menu-profile:hover, .menu-socials button:hover .social-circle { outline: 1px solid var(--accent); }
}

.has-cover { padding: 0; }
.has-cover::before, .has-cover::after { display: none; }
.art img { display: block; width: 100%; height: 100%; aspect-ratio: inherit; object-fit: cover; }
.horimiya { --sky: #dab7c7; --base: #866579; --moon: #f4d2b0; --ridge: #604f63; }
.first-rating-link { display: inline-block; margin-top: 16px; padding: 9px 22px; border-width: 1.5px; font-size: 12px; text-decoration: none; }
.unrated-heading { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; }
.unrated-heading h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.unrated-icon { display: grid; place-items: center; flex-shrink: 0; width: 41px; height: 41px; border-radius: 50%; background: var(--soft); color: var(--accent); }
.unrated-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#unrated-score .panel-note { font-size: 12px; }
.rate-link[hidden] { display: none; }
#no-anime-reviews { white-space: pre-line; font-size: 12px; line-height: 1.8; }
#reviews:has(#rate-link[hidden]) { margin-top: 28px; }
.about-page { max-width: 630px; padding-bottom: 40px; }
.about-intro { margin-top: 8px; }
.about-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .09em; color: var(--accent); }
.about-intro h1 { margin: 9px 0 12px; max-width: 420px; font-size: clamp(29px, 7vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.about-page p:not(.about-eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.75; }
.about-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.about-section h2 { margin: 0 0 7px; font-size: 17px; }
.about-section p + p { margin-top: 8px; }
.about-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.about-categories span { padding: 6px 10px; border-radius: 30px; background: var(--soft); color: var(--ink); font-size: 11px; }
.about-explore { display: inline-block; margin-top: 23px; padding: 10px 18px; text-decoration: none; font-size: 12px; }

.review-overall { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 15px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.review-overall h3 { margin: 0 0 7px; font-size: 14px; font-weight: 700; }
.review-overall p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.review-overall-value { display: inline-flex; align-items: baseline; gap: 8px; flex-shrink: 0; color: var(--score); font-size: 14px; font-weight: 400; }
.review-overall-value strong { color: var(--large-score); font-size: 40px; font-weight: 700; line-height: 1; }
.review-form .review-overall { margin: 10px 0 12px; padding: 9px 10px; border-radius: 9px; }
.review-form .review-overall h3 { margin: 0; font-size: 12px; }
.review-form .review-overall-value { gap: 3px; font-size: 12px; }
.review-form .review-overall-value strong { font-size: 28px; }

.auth-wrap { width: min(448px, 100% - 32px); margin-inline: auto; }
.auth-page [hidden], .menu-account [hidden] { display: none; }
.auth-page #header-theme { width: 34px; height: 34px; border: 1px solid var(--line); }
.auth-page .header-inner { min-height: 62px; }
.auth-page #menu-dialog { margin-right: max(16px, calc((100% - 448px) / 2)); }
.auth-page main { padding-top: 22px; }
.auth-card {
  padding: clamp(16px, 5vw, 26px);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--profile-shadow) 48%, transparent);
  overflow-wrap: anywhere;
}
[data-theme="dark"] .auth-card { border-color: color-mix(in srgb, var(--line) 65%, var(--surface)); }
.auth-card h1 { margin: 0; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.2; }
.auth-intro { margin: 7px 0 17px; color: var(--muted); font-size: 14px; }
.auth-google { display: grid; justify-items: center; min-height: 40px; }
.auth-google-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #747775;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
[data-theme="dark"] .auth-google-preview { background: #1F2021; border-color: #8E918F; }
.auth-status, .auth-email-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 5px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-email { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-email label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.auth-email input + label, .auth-confirm { margin-top: 12px; }
.auth-email input {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
  color: var(--ink);
  font-size: 16px;
}
.auth-email input:disabled { opacity: 1; }
.auth-email input::placeholder { color: var(--muted); opacity: 1; }
.auth-password { position: relative; }
.auth-password input { padding-right: 44px; }
.auth-password .icon-button { position: absolute; top: 0; right: 0; height: 100%; color: var(--muted); }
.auth-password .icon-button svg { width: 17px; height: 17px; }
.auth-forgot { justify-self: end; margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 700; }
.auth-email .primary { min-height: 43px; margin-top: 13px; font-size: 14px; }
.auth-email .primary:disabled { background: var(--soft); color: var(--muted); }
.auth-switch { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.menu-profile { text-decoration: none; }
.menu-profile-copy { min-width: 0; overflow-wrap: anywhere; }

/* Anime metadata layout retained when restoring reviews. */
.anime-status { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* Ratings open when an anime has finished airing. */
#rating-comparison[hidden], .rating-notice[hidden], #write-review-link[hidden], #release-review-notice[hidden] { display: none; }
.rating-notice { padding: 20px; border-color: var(--line); }
.rating-notice-label { margin: 0 0 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.rating-notice-heading { display: flex; align-items: center; gap: 12px; }
.rating-notice-heading h2 { margin: 0; font-size: clamp(19px, 4.5vw, 23px); line-height: 1.3; }
.rating-notice-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.rating-notice-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rating-notice-description { margin: 18px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.rating-notice-action { width: 100%; min-height: 44px; font-size: 13px; text-align: center; }
.release-review-notice { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
#discussion { scroll-margin-top: 76px; }
