@import "https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=IM+Fell+English+SC&display=swap";
:root {
  color: #28130f;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #28130f;
  --muted: #856e5b;
  --paper: #f3e9d6;
  --surface: #fbf5e9;
  --surface2: #ede0c9;
  --gold: #c49b5e;
  --wine: #4e0e17;
  --red: #8f1d2c;
  --line: #d8c7a8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "IM Fell English SC", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  background: #f3e9d6;
  font-family:
    EB Garamond,
    Georgia,
    serif;
}
:root[data-theme="dark"] {
  --ink: #f3e9d6;
  --muted: #b6a28c;
  --paper: #1b0e0c;
  --surface: #281510;
  --surface2: #352016;
  --line: #573c2c;
  --red: #dc8b91;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--paper);
  min-width: 320px;
  color: var(--ink);
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
}
img {
  object-fit: cover;
  width: 100%;
  display: block;
}
::selection {
  color: #f3e9d6;
  background: #8f1d2c;
}
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #a6805990;
  border-radius: 20px;
}
.spin {
  animation: 1s linear infinite spin;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}
.skip-link {
  background: var(--surface);
  z-index: 100;
  padding: 12px 20px;
  position: fixed;
  top: -100px;
  left: 250px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  color: #f3e9d6;
  z-index: 30;
  background:
    radial-gradient(at 0 0, #78212b55, #0000 50%),
    linear-gradient(170deg, #2c0d11, #160b09 80%);
  border-right: 1px solid #c49b5e3b;
  flex-direction: column;
  height: 100vh;
  padding: 31px 20px 20px;
  display: flex;
  position: sticky;
  top: 0;
}
.brand {
  border-bottom: 1px solid #c49b5e30;
  align-items: center;
  gap: 12px;
  padding: 0 3px 30px;
  display: flex;
}
.seal {
  width: 47px;
  height: 47px;
  font: italic 32px var(--serif);
  color: #c49b5e;
  border: 1px solid #c49b5e;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  display: grid;
  box-shadow: 0 0 0 4px #c49b5e08;
}
.brand strong {
  font: 500 29px var(--serif);
  letter-spacing: 0.08em;
  line-height: 1.15;
  display: block;
}
.brand span {
  font: 9px var(--caps);
  letter-spacing: 0.14em;
  color: #c49b5e;
  margin-top: 5px;
  display: block;
}
.sidebar-label {
  font: 10px var(--caps);
  letter-spacing: 0.12em;
  color: #c49b5e99;
  margin: 32px 10px 13px;
}
.sidebar nav {
  flex-direction: column;
  gap: 5px;
  display: flex;
}
.sidebar nav a {
  color: #e1cfb4c9;
  border: 1px solid #0000;
  border-radius: 4px;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  font-size: 17px;
  transition: all 0.2s;
  display: flex;
  position: relative;
}
.sidebar nav a svg {
  color: #c49b5ea8;
  flex-shrink: 0;
}
.sidebar nav a.active {
  color: #f3e9d6;
  background: linear-gradient(90deg, #8f1d2c90, #8f1d2c25);
  border-color: #c49b5e32;
}
.sidebar nav a.active:before {
  content: "";
  background: #c49b5e;
  width: 2px;
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
}
.sidebar nav a:hover {
  color: #fff;
  background: #c49b5e10;
}
.nav-count {
  color: #dabc89;
  background: #c49b5e26;
  border-radius: 3px;
  margin-left: auto;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
}
.sidebar-divider {
  color: #c49b5e66;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin: 28px 10px 0;
  font-size: 11px;
  display: flex;
}
.sidebar-divider:before,
.sidebar-divider:after {
  content: "";
  background: #c49b5e20;
  flex: 1;
  height: 1px;
}
.sidebar-divider + .sidebar-label {
  margin-top: 24px;
}
.secondary-nav a {
  padding: 9px 14px !important;
  font-size: 15px !important;
}
.side-quote {
  text-align: center;
  color: #c49b5e77;
  margin: auto 7px 25px;
  padding-top: 36px;
}
.side-quote svg {
  margin: auto;
}
.side-quote p {
  color: #d0bca694;
  margin: 13px 0 12px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
}
.side-quote div {
  font: 9px var(--caps);
  letter-spacing: 0.12em;
}
.sidebar-bottom {
  border-top: 1px solid #c49b5e2b;
  align-items: center;
  gap: 11px;
  padding-top: 19px;
  display: flex;
}
.tiny-seal {
  width: 34px;
  height: 34px;
  font: italic 21px var(--serif);
  color: #c49b5e;
  background: #c49b5e16;
  border: 1px solid #c49b5e49;
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.sidebar-bottom b {
  font-size: 14px;
  font-weight: 400;
  display: block;
}
.sidebar-bottom small {
  color: #9e8472;
  font-size: 12px;
}
.main-shell {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.topbar {
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 17px;
  height: 80px;
  padding: 0 40px;
  display: flex;
  position: sticky;
  top: 0;
}
.breadcrumb {
  color: var(--muted);
  align-items: center;
  gap: 11px;
  font-size: 14px;
  display: flex;
}
.breadcrumb span {
  font-family: var(--caps);
  font-size: 13px;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 400;
}
.global-search {
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: center;
  gap: 10px;
  width: 290px;
  margin-left: auto;
  padding: 9px 11px;
  display: flex;
}
.global-search input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: 0 0;
  border: 0;
  outline: none;
  font-size: 14px;
}
input::placeholder {
  color: var(--muted);
}
.global-search button {
  color: var(--muted);
  background: 0 0;
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
}
.global-search button span {
  border: 1px solid var(--line);
  font: 10px var(--body);
  border-radius: 3px;
  padding: 1px 5px;
}
.global-search button svg {
  display: none;
}
.icon-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: 0 0;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: inline-flex;
}
.icon-button:hover:not(:disabled) {
  color: var(--red);
  border-color: var(--gold);
}
.theme-button {
  border: 0;
  width: 30px;
}
.profile-seal {
  font: italic 24px var(--serif);
  border: 1px solid var(--gold);
  background: var(--surface2);
  color: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}
.content {
  flex: 1;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 34px 40px 40px;
}
.eyebrow {
  font: 10px var(--caps);
  letter-spacing: 0.16em;
  color: #987143;
  display: block;
}
.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
  display: flex;
}
.page-heading h1 {
  letter-spacing: -0.01em;
  margin: 8px 0;
  font-size: 37px;
}
.page-heading h1 em {
  color: var(--red);
  font-weight: 400;
}
[data-theme="dark"] .page-heading h1 em {
  color: #d9827f;
}
.page-heading p {
  color: var(--muted);
  font-size: 16px;
}
.season-stamp {
  color: var(--muted);
  font: 12px var(--caps);
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  white-space: nowrap;
  border-radius: 3px;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 9px 13px;
  display: flex;
}
.season-stamp svg {
  color: #a57844;
}
.hero {
  color: #f3e9d6;
  background: #26100f;
  border: 1px solid #ae82478c;
  border-radius: 7px;
  height: 388px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px -23px #4e0e17aa;
}
.hero:after {
  content: "";
  pointer-events: none;
  border: 1px solid #d3ad672b;
  position: absolute;
  inset: 7px;
}
.hero-art {
  object-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
}
.hero-gradient {
  background:
    linear-gradient(
      90deg,
      #27080dee 0%,
      #390d15e8 22%,
      #350b13bb 46%,
      #21080f20 78%
    ),
    linear-gradient(#0000 52%, #15080ed9);
  position: absolute;
  inset: 0;
}
.hero-copy {
  z-index: 2;
  width: 58%;
  max-width: 640px;
  padding: 38px 44px;
  position: relative;
}
.hero-kicker {
  font: 10px var(--caps);
  letter-spacing: 0.18em;
  color: #e8c389;
  align-items: center;
  gap: 9px;
  display: flex;
}
.hero-kicker > span {
  background: #c49b5e;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
}
.hero-kicker i {
  font: 9px var(--caps);
  color: #bfa48b;
  border-left: 1px solid #c49b5e66;
  margin-left: 5px;
  padding-left: 12px;
  font-style: normal;
}
.hero h2 {
  letter-spacing: 0.025em;
  margin-top: 14px;
  font-size: 68px;
  font-weight: 400;
  line-height: 0.95;
}
.hero h2 span {
  color: #e6cfb4;
  letter-spacing: 0;
  margin-top: 7px;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  display: block;
}
.hero-meta {
  color: #d1bca7;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 19px;
  font-size: 13px;
  display: flex;
}
.hero-rating {
  align-items: center;
  gap: 5px;
  display: flex;
  color: #e3b969 !important;
}
.hero-copy > p {
  color: #decdbec9;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: 470px;
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}
.hero-buttons {
  gap: 10px;
  margin-top: 20px;
  display: flex;
}
.button {
  color: #f3e9d6;
  font: 14px var(--caps);
  letter-spacing: 0.025em;
  background: linear-gradient(#a3293b, #8f1d2c);
  border: 1px solid #741220;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 17px;
  transition:
    background 0.2s,
    transform 0.2s;
  display: inline-flex;
}
.button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button-cream {
  color: #49131a;
  background: #ead9b8;
  border-color: #f3e9d6;
}
.button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: 0 0;
}
.hero .button-outline {
  color: #f3e9d6;
  background: #280b1177;
  border-color: #c49b5e80;
}
.button-ghost {
  color: var(--muted);
  background: 0 0;
  border-color: #0000;
}
.button.saved {
  color: var(--red);
  background: var(--surface2);
}
.hero .button.saved {
  color: #e2c591;
  background: #c49b5e20;
}
.hero-bottom {
  font: 9px var(--caps);
  letter-spacing: 0.15em;
  color: #d2b28b9c;
  z-index: 2;
  justify-content: space-between;
  gap: 20px;
  display: flex;
  position: absolute;
  bottom: 20px;
  left: 44px;
  right: 28px;
}
.hero-bottom > span:last-child {
  color: #e6d7b4c7;
}
.hero-bottom i {
  color: #967c62;
  margin: 0 8px;
  font-style: normal;
}
.hero-vertical {
  writing-mode: vertical-rl;
  font: 9px var(--caps);
  letter-spacing: 0.22em;
  color: #f3e9d6b3;
  position: absolute;
  top: 30px;
  right: 21px;
}
.discovery-strip {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 19px 0 22px;
  display: flex;
}
.discovery-strip > div:first-child {
  align-items: center;
  gap: 10px;
  display: flex;
}
.diamond {
  color: #ae864e;
  font-size: 24px;
  line-height: 1;
}
.discovery-strip p {
  white-space: nowrap;
  font-size: 17px;
}
.discovery-strip p em {
  color: var(--red);
}
.genre-shortcuts {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}
.genre-shortcuts a {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 3px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
}
.genre-shortcuts a:hover {
  background: var(--surface2);
  color: var(--red);
}
.shelf {
  margin-top: 34px;
}
.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 21px;
  display: flex;
}
.section-heading h2 {
  margin-top: 5px;
  font-size: 31px;
}
.shelf-actions {
  align-items: center;
  gap: 15px;
  display: flex;
}
.text-link {
  font: 13px var(--body);
  color: var(--red);
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 6px;
  padding: 0;
  display: inline-flex;
}
.text-link:hover {
  text-decoration: underline;
}
.shelf-paging {
  gap: 6px;
  display: flex;
}
.anime-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}
.anime-card {
  min-width: 0;
  position: relative;
}
.poster-wrap {
  aspect-ratio: 2/2.86;
  background: var(--surface2);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 16px -12px #280b0bcc;
}
.poster-wrap > a {
  width: 100%;
  height: 100%;
  display: block;
}
.poster-wrap img {
  height: 100%;
  transition: transform 0.35s;
}
.poster-wrap:hover img {
  transform: scale(1.05);
}
.poster-shade {
  pointer-events: none;
  background: linear-gradient(#14090918 15%, #0000 60%, #140909b8);
  position: absolute;
  inset: 0;
}
.card-format {
  font: 10px var(--caps);
  color: #f4e8d2;
  pointer-events: none;
  background: #1b0e0cd9;
  border: 1px solid #c49b5e33;
  border-radius: 2px;
  padding: 2px 7px;
  position: absolute;
  top: 9px;
  left: 8px;
}
.card-score {
  color: #f0c784;
  pointer-events: none;
  background: #160b099c;
  border-radius: 3px;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  font-size: 12px;
  display: flex;
  position: absolute;
  bottom: 10px;
  right: 9px;
}
.card-save {
  color: #f5e7d2;
  z-index: 2;
  background: #180c0cd9;
  border: 1px solid #e2cc9f4a;
  border-radius: 50%;
  place-items: center;
  width: 29px;
  height: 29px;
  display: grid;
  position: absolute;
  top: 9px;
  right: 8px;
}
.card-save:hover,
.card-save.saved {
  color: #f3e9d6;
  background: #8f1d2c;
  border-color: #cc8573;
}
.card-open {
  opacity: 0;
  color: #f3e9d6;
  background: #270b0b70;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: opacity 0.2s;
  display: flex;
  position: absolute;
  inset: 0;
}
.poster-wrap > a:hover .card-open,
.poster-wrap > a:focus-visible .card-open {
  opacity: 1;
}
.rank-number {
  font: italic 46px/1 var(--serif);
  color: #f3e9d6;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
  position: absolute;
  bottom: 3px;
  left: 6px;
}
.card-info {
  padding: 11px 1px 0;
}
.card-info h3 {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.16;
  overflow: hidden;
}
.card-info a:hover h3 {
  color: var(--red);
}
.card-info > div {
  color: var(--muted);
  gap: 7px;
  margin-top: 5px;
  font-size: 12px;
  display: flex;
}
.card-info > div > span {
  color: #ae8d60;
}
.card-info p {
  color: #987249;
  margin-top: 3px;
  font-size: 12px;
}
.collection-note {
  border: 1px solid var(--line);
  background: linear-gradient(110deg, var(--surface), var(--surface2));
  border-radius: 5px;
  align-items: center;
  gap: 20px;
  margin: 38px 0 12px;
  padding: 25px 27px;
  display: flex;
  position: relative;
}
.collection-note:after {
  content: "";
  pointer-events: none;
  border: 1px solid #c49b5e26;
  border-radius: 3px;
  position: absolute;
  inset: 5px;
}
.collection-icon {
  color: #9e7648;
  background: #c49b5e12;
  border: 1px solid #c49b5e73;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 58px;
  height: 58px;
  display: grid;
}
.collection-note h2 {
  margin: 6px 0;
  font-size: 26px;
}
.collection-note p {
  color: var(--muted);
  font-size: 14px;
}
.collection-note > .button {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
}
.pill-count {
  border: 1px solid var(--line);
  font: 12px var(--body);
  border-radius: 50%;
  place-items: center;
  width: 20px;
  height: 20px;
  display: grid;
}
.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 23px;
  margin: 0 40px;
  padding: 23px 0 27px;
  font-size: 12px;
  display: flex;
}
.footer-brand {
  font: 22px var(--serif);
  color: var(--red);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.footer-brand i {
  color: var(--muted);
  font-size: 16px;
}
.footer > div {
  gap: 20px;
  margin-left: auto;
  font-size: 11px;
  display: flex;
}
.footer > div a {
  align-items: center;
  gap: 5px;
  display: flex;
}
.footer > div a:hover {
  color: var(--red);
}
.catalogue-controls {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  margin-top: 30px;
}
.catalogue-search {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  display: flex;
}
.catalogue-search input {
  min-width: 0;
  color: var(--ink);
  background: 0 0;
  border: 0;
  outline: none;
  flex: 1;
  font-size: 19px;
}
.catalogue-search .button {
  min-height: 38px;
  padding: 8px 17px;
  font-size: 13px;
}
.clear-search {
  color: var(--muted);
  background: 0 0;
  border: 0;
  padding: 5px;
  display: flex;
}
.filter-line {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 20px;
  display: flex;
}
.format-tabs {
  align-items: center;
  gap: 4px;
  display: flex;
}
.format-tabs button {
  color: var(--muted);
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 3px;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 14px;
  display: flex;
}
.format-tabs button.active {
  color: var(--red);
  background: #8f1d2c0d;
  border-color: #8f1d2c36;
}
[data-theme="dark"] .format-tabs button.active {
  color: #f3e9d6;
  background: #8f1d2c50;
}
.format-tabs button:hover {
  background: var(--surface2);
}
.filter-selects {
  color: var(--muted);
  align-items: center;
  gap: 9px;
  display: flex;
}
select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 3px;
  max-width: 100%;
  padding: 7px 9px;
  font-size: 14px;
}
.filter-selects select {
  color: var(--muted);
  background: 0 0;
  border: 0;
  padding: 5px;
  font-size: 14px;
}
.catalogue-count {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 24px 0 19px;
  font-size: 15px;
  display: flex;
}
.catalogue-count b {
  font-size: 13px;
  font-weight: 400;
}
.catalogue-count > span:last-child {
  font: 10px var(--caps);
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.catalogue-grid {
  row-gap: 30px;
}
.pagination {
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 37px;
  font-size: 14px;
  display: flex;
}
.pagination .button {
  font-size: 12px;
}
.active-filters {
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  display: flex;
}
.active-filters > span {
  color: var(--red);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 3px;
  align-items: center;
  gap: 9px;
  padding: 4px 9px;
  font-size: 13px;
  display: flex;
}
.active-filters > span button {
  color: inherit;
  background: 0 0;
  border: 0;
  padding: 0;
  display: flex;
}
.active-filters > .text-link {
  margin-left: auto;
}
.notice {
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  border-radius: 4px;
  margin: 17px 0;
  padding: 13px 17px;
  font-size: 14px;
  line-height: 1.6;
}
.empty-state {
  text-align: center;
  min-height: 360px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 50px 20px;
  display: flex;
}
.empty-state > svg {
  color: var(--gold);
  margin-bottom: 10px;
}
.empty-state h2 {
  color: var(--ink);
  max-width: 480px;
  font-size: 32px;
}
.empty-state p {
  max-width: 430px;
  font-size: 17px;
}
.empty-state .button {
  margin-top: 8px;
}
.loading-state {
  min-height: 480px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  display: flex;
}
.skeleton-card > div {
  aspect-ratio: 2/2.86;
  background: var(--surface2);
  border-radius: 4px;
  animation: 1.5s infinite pulse;
}
.skeleton-card > i,
.skeleton-card > span {
  background: var(--surface2);
  border-radius: 3px;
  width: 80%;
  height: 12px;
  margin-top: 12px;
  display: block;
}
.skeleton-card > span {
  width: 50%;
  height: 8px;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.back-link {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: inline-flex;
}
.back-link:hover {
  color: var(--red);
}
.detail-banner {
  background: var(--wine);
  border: 1px solid #c49b5e8a;
  border-radius: 6px;
  height: 265px;
  position: relative;
  overflow: hidden;
}
.detail-banner-image {
  object-position: center 38%;
  height: 100%;
}
.detail-banner-shade {
  background:
    linear-gradient(#0000 10%, #230b13d9),
    linear-gradient(90deg, #4e0e1766, #0000);
  position: absolute;
  inset: 0;
}
.detail-banner-label {
  font: 10px var(--caps);
  letter-spacing: 0.2em;
  color: #f3e9d6ba;
  position: absolute;
  top: 24px;
  left: 28px;
}
.detail-intro {
  z-index: 2;
  align-items: flex-start;
  gap: 27px;
  margin-top: -72px;
  padding: 0 26px;
  display: flex;
  position: relative;
}
.detail-poster {
  aspect-ratio: 2/2.86;
  border: 4px solid var(--paper);
  border-radius: 5px;
  flex-shrink: 0;
  width: 175px;
  overflow: hidden;
  box-shadow: 0 10px 24px -12px #160b09;
}
.detail-poster img {
  height: 100%;
}
.detail-title {
  flex: 1;
  min-width: 0;
  padding-top: 95px;
}
.detail-title h1 {
  margin-top: 9px;
  font-size: 38px;
}
.alternative-title {
  color: var(--muted);
  margin-top: 4px;
  font-size: 17px;
  font-style: italic;
}
.detail-tags {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  display: flex;
}
.detail-tags > a {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 3px;
  padding: 2px 10px;
  font-size: 12px;
}
.detail-tags > a:hover {
  border-color: var(--red);
}
.detail-buttons {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  display: flex;
}
.detail-buttons .button {
  font-size: 12px;
}
.detail-score {
  text-align: center;
  color: #a27643;
  flex-shrink: 0;
  min-width: 92px;
  padding-top: 97px;
}
.detail-score > svg {
  margin: auto;
}
.detail-score > b {
  font: 600 31px var(--serif);
  color: var(--ink);
  margin-top: 3px;
  display: block;
}
.detail-score small {
  color: var(--muted);
  margin-left: 3px;
  font-size: 15px;
  font-weight: 400;
}
.detail-score > span {
  color: var(--muted);
  font-size: 11px;
}
.detail-tabs {
  border-bottom: 1px solid var(--line);
  gap: 26px;
  margin: 34px 0 30px;
  display: flex;
}
.detail-tabs > button {
  color: var(--muted);
  background: 0 0;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  font-size: 17px;
  display: flex;
}
.detail-tabs > button[aria-selected="true"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.detail-tabs > button > span {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 12px;
}
.detail-body {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 45px;
  display: grid;
}
.synopsis h2 {
  margin: 5px 0 18px;
  font-size: 33px;
}
.synopsis > p {
  color: var(--muted);
  white-space: pre-line;
  font-size: 18px;
  line-height: 1.9;
}
.language-note {
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 15px;
  font-size: 12px;
  font-style: italic;
  display: block;
}
.information-paper {
  border: 1px solid var(--line);
  background: var(--surface);
  align-self: start;
  padding: 23px 22px;
  position: relative;
  box-shadow: 5px 5px #c49b5e12;
}
.information-paper:after {
  content: "";
  pointer-events: none;
  border: 1px solid #c49b5e24;
  position: absolute;
  inset: 5px;
}
.information-paper h3 {
  margin: 9px 0 15px;
  font-size: 26px;
}
.information-paper dl {
  margin: 0;
}
.information-paper dl > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  font-size: 14px;
  display: flex;
}
.information-paper dt {
  color: var(--muted);
  flex-shrink: 0;
}
.information-paper dd {
  text-align: right;
  margin: 0;
}
.paper-signature {
  color: #a07849;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  font-style: italic;
  display: flex;
}
.paper-signature span {
  border: 1px solid var(--gold);
  width: 32px;
  height: 32px;
  font: italic 23px var(--serif);
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.characters {
  margin-top: 34px;
}
.characters h3 {
  margin-bottom: 20px;
  font-size: 25px;
}
.character-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  display: grid;
}
.character-grid > div {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  display: flex;
}
.character-grid img,
.character-grid .image-fallback {
  border: 2px solid var(--line);
  object-position: center 20%;
  border-radius: 50%;
  width: 70px;
  height: 70px;
}
.character-grid span {
  color: var(--muted);
  font-size: 13px;
}
.related-section {
  margin-top: 44px;
}
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  display: grid;
}
.related-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  align-items: center;
  gap: 13px;
  padding: 9px;
  display: flex;
}
.related-card img {
  border-radius: 2px;
  width: 47px;
  height: 65px;
}
.related-card > div {
  min-width: 0;
}
.related-card small {
  font: 10px var(--caps);
  color: var(--muted);
}
.related-card h3 {
  margin-top: 4px;
  font-size: 17px;
}
.related-card > svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-left: auto;
}
.episodes-section {
  margin-top: 40px;
}
.episode-notice {
  align-items: center;
  gap: 11px;
  display: flex;
}
.episode-notice svg {
  color: #a27643;
  flex-shrink: 0;
}
.episode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  display: grid;
}
.episode-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  display: flex;
}
.episode-card:hover {
  border-color: #ad814b;
  box-shadow: 0 5px 18px -12px #4e0e17;
}
.episode-number {
  color: var(--gold);
  font: italic 32px var(--serif);
  min-width: 32px;
}
.episode-card strong {
  font-size: 16px;
  font-weight: 500;
  display: block;
}
.episode-card small {
  color: var(--muted);
  font-size: 12px;
}
.episode-card > svg {
  color: var(--muted);
  flex-shrink: 0;
  margin-left: auto;
}
.unknown-episodes p {
  color: var(--muted);
  margin: 20px 0;
}
.watch-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  display: flex;
}
.watch-heading h1 {
  margin: 8px 0;
  font-size: 36px;
}
.watch-heading p {
  color: var(--muted);
  font-size: 16px;
}
.watch-layout {
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 22px;
  display: grid;
}
.watch-main {
  min-width: 0;
}
.video-frame {
  aspect-ratio: 16/9;
  color: #f3e9d6;
  background: #160b09;
  border: 1px solid #997544;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}
.video-frame video {
  background: #000;
  width: 100%;
  height: 100%;
}
.player-backdrop {
  opacity: 0.14;
  filter: blur(3px);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.player-placeholder {
  text-align: center;
  z-index: 2;
  max-width: 560px;
  padding: 22px;
  position: relative;
}
.projection-icon {
  color: #c49b5e;
  background: #c49b5e0d;
  border: 1px solid #c49b5e6b;
  border-radius: 50%;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  display: grid;
}
.player-placeholder .eyebrow {
  color: #c49b5e;
  font-size: 9px;
}
.player-placeholder h2 {
  margin: 12px 0;
  font-size: 32px;
}
.player-placeholder p {
  color: #d2bdac;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.player-placeholder .button {
  font-size: 12px;
}
.video-error {
  text-align: center;
  color: #fff;
  z-index: 3;
  background: #741220;
  padding: 12px;
  font-size: 14px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.watch-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 0 19px;
  display: flex;
}
.watch-toolbar .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
.watch-toolbar > span {
  color: var(--muted);
  font-size: 14px;
}
.watch-toolbar b {
  color: var(--ink);
  font-weight: 400;
}
.watch-description {
  margin-top: 23px;
}
.watch-description p {
  color: var(--muted);
  white-space: pre-line;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
}
.watch-episodes {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  align-self: start;
  overflow: hidden;
}
.watch-episodes-header {
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  align-items: center;
  gap: 9px;
  padding: 17px 15px;
  display: flex;
}
.watch-episodes-header h2 {
  color: var(--ink);
  font-size: 23px;
}
.watch-episodes-header > span {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
}
.watch-episodes > select {
  width: calc(100% - 24px);
  margin: 12px;
}
.watch-episode-list {
  max-height: 515px;
  padding: 7px;
  overflow-y: auto;
}
.watch-episode-list > button {
  text-align: left;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 3px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 10px;
  display: flex;
}
.watch-episode-list > button:hover {
  background: var(--surface2);
}
.watch-episode-list > button.selected {
  color: var(--red);
  background: #8f1d2c0d;
  border-color: #8f1d2c33;
}
[data-theme="dark"] .watch-episode-list > button.selected {
  color: #f3e9d6;
  background: #8f1d2c44;
}
.episode-index {
  font: italic 25px var(--serif);
  color: var(--muted);
}
.watch-episode-list b {
  font-size: 15px;
  font-weight: 500;
}
.watch-episode-list small {
  color: var(--muted);
  font-size: 11px;
  display: block;
}
.episode-symbol {
  color: var(--gold);
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
}
.library-stats {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  padding: 20px 0;
  display: grid;
}
.library-stats > div {
  border-right: 1px solid var(--line);
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 0 15px;
  padding: 0 26px;
  display: grid;
}
.library-stats > div:last-child {
  border: 0;
}
.library-stats svg {
  color: var(--gold);
  grid-row: span 2;
}
.library-stats strong {
  font: 500 31px var(--serif);
}
.library-stats span {
  color: var(--muted);
  font-size: 13px;
}
.library-controls {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 27px 0;
  display: flex;
}
.list-search {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 10px;
  padding: 7px;
  display: flex;
}
.list-search input {
  width: 155px;
  color: var(--ink);
  background: 0 0;
  border: 0;
  outline: none;
  font-size: 14px;
}
.library-card > select {
  background: var(--surface);
  width: 100%;
  color: var(--muted);
  margin-top: 12px;
  padding: 6px;
  font-size: 12px;
}
.library-empty {
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  border-radius: 4px;
}
.local-storage-note {
  text-align: center;
  color: var(--muted);
  margin-top: 35px;
  font-size: 12px;
  font-style: italic;
}
.toast {
  color: #f3e9d6;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  background: #28100e;
  border: 1px solid #c49b5e88;
  border-radius: 4px;
  max-width: 90vw;
  padding: 13px 22px;
  font-size: 15px;
  transition: all 0.25s;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  box-shadow: 0 10px 30px #0003;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%);
}
.image-fallback {
  width: 100%;
  height: 100%;
  color: var(--gold);
  background: var(--surface2);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 11px;
  display: flex;
}
.menu-toggle,
.mobile-nav,
.sidebar-overlay {
  display: none;
}
@media (width>=1800px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero {
    height: 440px;
  }
  .hero-copy {
    padding-top: 48px;
  }
  .hero h2 {
    font-size: 80px;
  }
  .hero-copy > p {
    max-width: 520px;
    font-size: 18px;
  }
  .hero-buttons {
    margin-top: 26px;
  }
  .card-info h3 {
    font-size: 22px;
  }
  .card-info > div,
  .card-info p {
    font-size: 14px;
  }
}
@media (width<=1250px) {
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .content {
    padding: 30px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .footer {
    flex-wrap: wrap;
    margin: 0 27px;
  }
  .footer > div {
    margin-left: 0;
  }
  .hero-copy {
    width: 68%;
    padding: 34px 30px;
  }
  .hero-bottom {
    left: 30px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .anime-grid {
    gap: 13px;
  }
  .card-info h3 {
    font-size: 17px;
  }
  .genre-shortcuts a {
    padding: 4px 7px;
    font-size: 11px;
  }
  .discovery-strip {
    flex-wrap: wrap;
    gap: 12px;
  }
  .detail-body {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
  }
  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .player-placeholder h2 {
    font-size: 26px;
  }
  .player-placeholder p {
    font-size: 13px;
  }
  .projection-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }
  .player-placeholder .button {
    min-height: 35px;
    padding: 8px 11px;
  }
  .player-placeholder {
    padding: 15px;
  }
}
@media (width<=1050px) {
  .app-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 10px 20px;
  }
  .brand {
    justify-content: center;
    padding: 0 0 25px;
  }
  .brand > div:last-child,
  .sidebar-label,
  .sidebar nav a > span,
  .nav-count,
  .side-quote,
  .sidebar-bottom > div,
  .sidebar-divider {
    display: none;
  }
  .sidebar nav {
    margin-top: 24px;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 13px 0;
  }
  .sidebar nav a svg {
    width: 22px;
    height: 22px;
  }
  .sidebar-bottom {
    justify-content: center;
    margin-top: auto;
  }
  .secondary-nav {
    border-top: 1px solid #c49b5e30;
    padding-top: 20px;
  }
  .secondary-nav a {
    padding: 12px 0 !important;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .hero-copy {
    width: 66%;
  }
  .catalogue-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .filter-line {
    flex-wrap: wrap;
  }
  .filter-selects {
    margin-left: auto;
  }
  .footer > span {
    display: none;
  }
  .detail-title h1 {
    font-size: 31px;
  }
  .detail-intro {
    gap: 20px;
    padding: 0 15px;
  }
  .detail-poster {
    width: 145px;
  }
  .detail-score {
    min-width: 70px;
  }
  .detail-body {
    gap: 25px;
  }
  .episode-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=820px) {
  .anime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .home-grid > .anime-card:nth-child(n + 5) {
    display: none;
  }
  .hero {
    height: 380px;
  }
  .hero-copy {
    width: 83%;
    padding: 30px;
  }
  .hero-gradient {
    background:
      linear-gradient(
        90deg,
        #27080dee 0%,
        #390d15e0 25%,
        #350b13b3 55%,
        #21080f45 100%
      ),
      linear-gradient(#0000 45%, #15080ecc);
  }
  .hero h2 {
    font-size: 62px;
  }
  .season-stamp,
  .hero-bottom > span:first-child {
    display: none;
  }
  .hero-bottom {
    justify-content: flex-end;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .filter-selects {
    margin-left: 0;
  }
  .global-search {
    width: 250px;
  }
  .breadcrumb > span,
  .breadcrumb > svg {
    display: none;
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .information-paper {
    width: 100%;
  }
  .information-paper dl {
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
    display: grid;
  }
  .detail-score {
    display: none;
  }
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-episode-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 300px;
    display: grid;
  }
  .watch-episode-list > button {
    gap: 8px;
  }
  .library-stats > div {
    gap: 0 8px;
    padding: 0 15px;
  }
  .library-stats span {
    font-size: 12px;
  }
  .collection-note {
    gap: 16px;
    padding: 22px 20px;
  }
  .collection-note h2 {
    font-size: 24px;
  }
  .collection-note p {
    font-size: 13px;
  }
  .collection-icon {
    display: none;
  }
  .footer > div {
    gap: 12px;
  }
  .player-placeholder h2 {
    font-size: 32px;
  }
  .player-placeholder p {
    font-size: 16px;
  }
  .projection-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
  }
  .player-placeholder .button {
    min-height: 42px;
    font-size: 14px;
  }
}
@media (width<=600px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    z-index: 60;
    width: 235px;
    height: 100dvh;
    padding: 26px 20px 23px;
    transition: transform 0.25s;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-100%);
  }
  .sidebar.open {
    transform: translate(0);
  }
  .sidebar .brand {
    justify-content: flex-start;
    gap: 12px;
  }
  .sidebar .brand > div:last-child,
  .sidebar-label,
  .sidebar nav a > span,
  .nav-count,
  .side-quote,
  .sidebar-bottom > div,
  .sidebar-divider {
    display: block;
  }
  .sidebar nav {
    margin-top: 0;
  }
  .sidebar nav a {
    justify-content: flex-start;
    padding: 11px 13px;
  }
  .sidebar nav a svg {
    width: 19px;
    height: 19px;
  }
  .secondary-nav {
    border: 0;
    padding: 0;
  }
  .secondary-nav a {
    padding: 9px 13px !important;
  }
  .sidebar-divider {
    display: flex;
  }
  .sidebar-bottom {
    justify-content: flex-start;
  }
  .sidebar-overlay {
    z-index: 50;
    background: #160b09aa;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }
  .topbar {
    gap: 10px;
    height: 67px;
    padding: 0 16px;
  }
  .menu-toggle {
    border: 0;
    width: 30px;
    display: flex;
  }
  .breadcrumb {
    display: none;
  }
  .global-search {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 7px 9px;
  }
  .global-search input {
    font-size: 14px;
  }
  .global-search button span {
    display: none;
  }
  .global-search button svg {
    display: block;
  }
  .theme-button {
    width: 25px;
  }
  .profile-seal {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
  .content {
    padding: 25px 17px 32px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    max-width: 340px;
    margin-top: 10px;
    font-size: 31px;
    line-height: 1.15;
  }
  .page-heading h1 em {
    display: block;
  }
  .page-heading p {
    margin-top: 12px;
    font-size: 15px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero {
    border-radius: 5px;
    height: 410px;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 27px 22px;
  }
  .hero-gradient {
    background:
      linear-gradient(
        90deg,
        #27080dec 0%,
        #390d15cd 30%,
        #350b13a6 66%,
        #21080f78
      ),
      linear-gradient(#0000 30%, #15080ef5);
  }
  .hero-art {
    object-position: 63% center;
  }
  .hero-kicker i {
    display: none;
  }
  .hero-kicker {
    font-size: 9px;
  }
  .hero h2 {
    margin-top: 25px;
    font-size: 63px;
  }
  .hero h2 span {
    font-size: 25px;
  }
  .hero-meta {
    gap: 12px;
    margin-top: 18px;
    font-size: 12px;
  }
  .hero-copy > p {
    -webkit-line-clamp: 3;
    margin-top: 16px;
    font-size: 16px;
  }
  .hero-buttons {
    gap: 7px;
    margin-top: 22px;
  }
  .hero-buttons .button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .hero-vertical {
    font-size: 8px;
    right: 14px;
  }
  .hero-bottom {
    font-size: 8px;
    bottom: 18px;
    right: 22px;
  }
  .discovery-strip {
    gap: 13px;
    padding-top: 22px;
  }
  .discovery-strip p {
    font-size: 17px;
  }
  .genre-shortcuts {
    gap: 6px;
  }
  .genre-shortcuts a {
    padding: 4px 8px;
    font-size: 12px;
  }
  .shelf {
    margin-top: 29px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .shelf-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .shelf-actions .text-link {
    white-space: nowrap;
    font-size: 12px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px 16px;
    display: grid;
  }
  .home-grid > .anime-card:nth-child(n + 13) {
    display: none;
  }
  .poster-wrap {
    aspect-ratio: 2/2.85;
  }
  .card-info h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    overflow: hidden;
  }
  .card-info > div,
  .card-info p,
  .card-format {
    font-size: 11px;
  }
  .card-score {
    font-size: 13px;
  }
  .card-save {
    width: 32px;
    height: 32px;
  }
  .rank-number {
    font-size: 49px;
  }
  .collection-note {
    margin-top: 28px;
    padding: 22px;
    display: block;
  }
  .collection-note h2 {
    max-width: 260px;
    font-size: 28px;
  }
  .collection-note p {
    margin: 11px 0 18px;
    font-size: 16px;
  }
  .collection-note > .button {
    font-size: 13px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin: 0 17px;
    padding: 22px 0 96px;
  }
  .footer > div {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
  }
  .mobile-nav {
    height: 68px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 40;
    background: #21100ef5;
    border-top: 1px solid #c49b5e55;
    justify-content: space-around;
    align-items: center;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -5px 20px #160b091a;
  }
  .mobile-nav > a {
    color: #c7af92;
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 25%;
    padding: 4px;
    font-size: 11px;
    display: flex;
  }
  .mobile-nav > a svg {
    width: 19px;
    height: 19px;
  }
  .mobile-nav > a.active {
    color: #f0d6a2;
    background: #8f1d2c3b;
  }
  .toast {
    white-space: normal;
    width: max-content;
    padding: 12px 17px;
    font-size: 14px;
    bottom: 87px;
  }
  .catalogue-controls {
    margin-top: 23px;
  }
  .catalogue-search {
    gap: 9px;
    padding: 14px 12px;
  }
  .catalogue-search input {
    font-size: 16px;
  }
  .catalogue-search .button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .catalogue-search > svg {
    flex-shrink: 0;
    width: 17px;
  }
  .filter-line {
    gap: 11px;
    padding: 12px;
  }
  .format-tabs {
    gap: 2px;
  }
  .format-tabs button {
    padding: 6px 9px;
    font-size: 14px;
  }
  .filter-selects {
    border-top: 1px solid var(--line);
    justify-content: space-between;
    gap: 7px;
    width: 100%;
    padding-top: 11px;
  }
  .filter-selects > svg {
    display: none;
  }
  .filter-selects select {
    max-width: 55%;
    padding: 4px 0;
    font-size: 14px;
  }
  .catalogue-count {
    align-items: flex-start;
    margin-top: 24px;
    font-size: 15px;
  }
  .catalogue-count b {
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }
  .pagination {
    gap: 13px;
  }
  .pagination .button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .active-filters {
    flex-wrap: wrap;
  }
  .active-filters .text-link {
    font-size: 12px;
  }
  .back-link {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .detail-banner {
    height: 180px;
  }
  .detail-banner-label {
    font-size: 8px;
    top: 17px;
    left: 17px;
  }
  .detail-intro {
    gap: 16px;
    margin-top: -42px;
    padding: 0 10px;
  }
  .detail-poster {
    border-width: 3px;
    width: 98px;
  }
  .detail-title {
    padding-top: 62px;
  }
  .detail-title h1 {
    font-size: 29px;
    line-height: 1.07;
  }
  .detail-title > .eyebrow {
    font-size: 8px;
  }
  .alternative-title {
    font-size: 15px;
  }
  .detail-tags {
    gap: 5px;
    margin-top: 10px;
  }
  .detail-tags > a {
    padding: 2px 6px;
    font-size: 11px;
  }
  .detail-buttons {
    gap: 7px;
    margin-top: 16px;
    margin-left: -113px;
    padding-top: 5px;
  }
  .detail-buttons .button {
    padding: 10px 11px;
    font-size: 12px;
  }
  .detail-tabs {
    margin-top: 28px;
    margin-bottom: 25px;
  }
  .detail-tabs > button {
    font-size: 17px;
  }
  .synopsis > p {
    font-size: 18px;
    line-height: 1.8;
  }
  .character-grid {
    gap: 20px 12px;
  }
  .character-grid img {
    width: 61px;
    height: 61px;
  }
  .character-grid span {
    font-size: 13px;
  }
  .information-paper {
    margin-top: 5px;
  }
  .information-paper dl {
    grid-template-columns: 1fr;
  }
  .information-paper dl > div {
    font-size: 15px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .related-card img {
    width: 46px;
    height: 63px;
  }
  .related-card h3 {
    font-size: 19px;
  }
  .episode-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .episode-card {
    padding: 12px 16px;
  }
  .episode-card strong {
    font-size: 17px;
  }
  .episode-card small {
    font-size: 13px;
  }
  .episode-notice {
    font-size: 14px;
  }
  .episodes-section .section-heading select {
    max-width: 145px;
    font-size: 12px;
  }
  .watch-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .watch-heading h1 {
    font-size: 29px;
  }
  .watch-heading > .button {
    white-space: nowrap;
    min-height: 34px;
    margin-top: 25px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .watch-heading > .button svg {
    width: 13px;
  }
  .watch-layout {
    gap: 24px;
  }
  .video-frame {
    aspect-ratio: auto;
    min-height: 300px;
  }
  .projection-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 14px;
  }
  .projection-icon svg {
    width: 25px;
  }
  .player-placeholder {
    padding: 18px 13px;
  }
  .player-placeholder h2 {
    margin: 11px 0;
    font-size: 27px;
  }
  .player-placeholder .eyebrow {
    font-size: 8px;
  }
  .player-placeholder p {
    margin-bottom: 17px;
    font-size: 15px;
  }
  .player-placeholder .button {
    min-height: 37px;
    font-size: 12px;
  }
  .watch-toolbar {
    gap: 7px;
  }
  .watch-toolbar .button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .watch-toolbar > span {
    font-size: 13px;
  }
  .watch-description p {
    font-size: 17px;
  }
  .watch-episode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .watch-episode-list b {
    font-size: 16px;
  }
  .watch-episode-list small {
    font-size: 12px;
  }
  .library-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
  .library-stats > div {
    border-bottom: 1px solid var(--line);
    gap: 0 13px;
    padding: 17px 20px;
  }
  .library-stats > div:nth-child(2) {
    border-right: 0;
  }
  .library-stats > div:nth-child(3) {
    border-bottom: 0;
  }
  .library-stats strong {
    font-size: 33px;
  }
  .library-stats span {
    font-size: 14px;
  }
  .library-controls {
    flex-direction: column;
    align-items: stretch;
    margin: 23px 0;
  }
  .library-controls .format-tabs {
    justify-content: space-between;
  }
  .list-search input {
    width: 100%;
    font-size: 16px;
  }
  .library-card > select {
    padding: 7px;
    font-size: 14px;
  }
  .empty-state {
    padding: 40px 17px;
  }
  .empty-state h2 {
    font-size: 29px;
  }
  .local-storage-note {
    font-size: 13px;
  }
  .skip-link {
    left: 10px;
  }
}
.source-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  margin-bottom: 24px;
  overflow: hidden;
}
.source-panel-heading {
  color: var(--ink);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: 16px;
  list-style: none;
  display: flex;
}
.source-panel-heading::-webkit-details-marker {
  display: none;
}
.source-panel[open] .source-panel-heading {
  border-bottom: 1px solid var(--line);
}
.source-panel-heading > div {
  align-items: center;
  gap: 9px;
  display: flex;
}
.source-panel-heading svg {
  color: var(--gold);
}
.source-caption {
  color: var(--muted);
  font-size: 13px;
}
.source-selects {
  grid-template-columns: 1.35fr 1fr 0.7fr 1.1fr;
  gap: 15px;
  padding: 16px 18px;
  display: grid;
}
.source-selects label {
  font: 11px var(--caps);
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-direction: column;
  gap: 7px;
  display: flex;
}
.source-selects select {
  width: 100%;
  font: 15px var(--body);
  background: var(--paper);
  letter-spacing: 0;
  padding: 9px;
}
.source-selects select:disabled {
  opacity: 0.55;
}
.source-search {
  color: var(--muted);
  align-items: center;
  gap: 12px;
  padding: 0 18px 17px;
  display: flex;
}
.source-search input {
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
  color: var(--ink);
  border-radius: 3px;
  flex: 1;
  padding: 9px 12px;
  font-size: 15px;
}
.source-search .button {
  font-size: 12px;
}
.video-frame iframe {
  background: #090707;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.frame-loading {
  color: #c49b5e;
  pointer-events: none;
  background: #160b09d9;
  border: 1px solid #c49b5e55;
  border-radius: 4px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.frame-loading svg {
  width: 16px;
  height: 16px;
}
.reader-help {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
  font-size: 13px;
  display: flex;
}
.reader-note {
  color: var(--muted);
  margin-top: 13px;
  font-size: 13px;
}
.source-list-empty {
  text-align: center;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  font-size: 14px;
  display: flex;
}
.source-list-empty svg {
  flex-shrink: 0;
}
@media (width<=820px) {
  .source-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
}
@media (width<=600px) {
  .sidebar-overlay {
    width: calc(100% - 235px);
    left: 235px;
  }
  .source-panel-heading {
    flex-wrap: wrap;
    padding: 12px;
    font-size: 14px;
  }
  .source-caption {
    font-size: 12px;
  }
  .source-selects {
    gap: 13px 10px;
    padding: 14px 12px;
  }
  .source-selects select {
    font-size: 14px;
  }
  .source-search {
    gap: 8px;
    padding: 0 12px 14px;
  }
  .source-search .button {
    padding: 9px;
    font-size: 11px;
  }
  .reader-help {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .reader-help .text-link,
  .reader-note {
    font-size: 13px;
  }
  .watch-toolbar > span {
    text-align: center;
    max-width: 130px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .poster-wrap:hover img,
  .button:hover:not(:disabled) {
    transform: none;
  }
}

:root,:root[data-theme=dark]{--ink:#f3e9d6;--muted:#b6a28c;--paper:#1b0e0c;--surface:#281510;--surface2:#352016;--gold:#c49b5e;--wine:#4e0e17;--red:#c49b5e;--line:#573c2c;--serif:"Cormorant Garamond",Georgia,serif;--caps:"EB Garamond",Georgia,serif;--body:"EB Garamond",Georgia,serif;color:var(--ink);background:var(--paper);font-family:var(--body);color-scheme:dark}
:root[data-theme=light]{--ink:#28130f;--muted:#856e5b;--paper:#f3e9d6;--surface:#fff;--surface2:#ede0c9;--gold:#987143;--wine:#4e0e17;--red:#8f1d2c;--line:#d8c7a8;color-scheme:light}
body{font-size:15px;line-height:1.55;background:var(--paper)}.feed-status{color:var(--muted);font-size:13px;min-height:160px;padding:20px 0}.feed-status button{background:transparent;border:0;text-decoration:underline;color:var(--red);margin-left:8px;min-height:44px}
h1,h2,h3{font-family:var(--serif);font-weight:600;letter-spacing:-.025em}
button,input,select{font-family:var(--body)}
a,button,input,select{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c49b5e;outline-offset:4px}
::selection{background:#c49b5e;color:#28130f}
.app-shell{display:block;min-height:100vh}.main-shell{display:flex;flex-direction:column}
.topbar{height:88px;padding:0 max(32px,calc((100vw - 1440px)/2));gap:26px;background:color-mix(in srgb,var(--paper) 95%,transparent);border-bottom:1px solid var(--line);position:sticky;top:0;backdrop-filter:blur(18px);z-index:40}
.brand{padding:0;border:0;gap:11px;flex-shrink:0}.brand img{width:48px;height:48px;border-radius:14px;object-fit:cover}.brand strong{font:600 27px var(--serif);letter-spacing:-.04em;display:flex;align-items:center;gap:7px;color:var(--ink)}.brand strong span{font:600 11px var(--body);letter-spacing:0;background:var(--surface2);border:1px solid var(--line);color:var(--red);padding:3px 6px;border-radius:5px;margin:0}
.desktop-nav{display:flex;gap:25px;align-items:center;white-space:nowrap}.desktop-nav a{color:var(--muted);font-weight:600;font-size:14px;padding:31px 0;position:relative}.desktop-nav a.active{color:var(--ink)}.desktop-nav a.active:after{content:'';height:3px;border-radius:4px;background:#c49b5e;position:absolute;bottom:18px;left:0;right:0}.desktop-nav a:hover{color:var(--red)}
.global-search{width:310px;max-width:340px;flex:1;min-width:150px;padding:6px 9px 6px 14px;border:1px solid var(--line);background:var(--surface);border-radius:12px;gap:10px}.global-search input{font-size:13px}.global-search button{width:32px;height:32px;background:var(--surface2);border-radius:7px;color:var(--ink);flex-shrink:0}.global-search button svg{display:block}.theme-button{width:42px;height:42px;color:var(--muted);border-radius:12px}.header-list{display:flex;gap:5px;align-items:center;color:var(--muted)}.header-list span{font-size:11px;color:var(--red)}
.content{max-width:1440px;width:100%;padding:36px 40px 60px;margin:auto}.home-content{padding-top:28px}
.eyebrow{display:none}.page-heading h1{font-size:42px;font-weight:650;margin:0 0 12px}.page-heading h1 em{font-style:normal;color:inherit}.page-heading p{font-size:15px}.season-stamp{margin:0;font:13px var(--body);padding:9px 13px;border-radius:10px}
.hero{height:520px;border:0;border-radius:24px;background:#26100f;box-shadow:none;color:#fff;isolation:isolate}.hero:after{display:none}.hero-art{object-position:center;opacity:1}.hero-gradient{background:linear-gradient(90deg,#27080df5 0%,#390d15cc 30%,#390d1550 58%,#390d150d 80%),linear-gradient(0deg,#27080de6 0%,transparent 55%)}
.hero-copy{width:56%;max-width:680px;padding:55px 48px}.featured-pill{display:inline-flex;align-items:center;gap:8px;background:#4e0e1780;border:1px solid #ffffff30;border-radius:30px;padding:6px 12px;font-size:12px;font-weight:500;backdrop-filter:blur(8px)}.featured-pill>span{width:6px;height:6px;background:#e8c389;border-radius:50%}
.hero h1{font-size:clamp(56px,5vw,78px);line-height:1.06;letter-spacing:-.045em;font-weight:650;margin:20px 0 16px}.hero h1 span{display:block;font-size:clamp(24px,2.3vw,35px);letter-spacing:-.02em;font-weight:400;margin-top:3px;color:#f3e9d6}
.hero-meta{font-size:12px;gap:16px;flex-wrap:wrap;margin:0;color:#d0bca6}.hero-rating{color:#e8c389;font-weight:700}.hero-copy>p{font-size:14px;line-height:1.75;color:#e1cfb4;max-width:410px;margin:20px 0 24px;display:block;-webkit-line-clamp:unset}
.button{font:600 14px var(--body);letter-spacing:0;border-radius:11px;min-height:46px;padding:12px 19px;background:#c49b5e;border:1px solid transparent;color:#28130f;gap:9px;transition:background .16s}.button:hover:not(:disabled){transform:none;background:#e8c389;color:#28130f}.button-cream{background:#e8c389;color:#28130f;border:0}.button-outline{border:1px solid var(--line);background:var(--surface);color:var(--ink)}.button-outline:hover:not(:disabled){background:var(--surface2);color:var(--ink)}.hero-buttons{gap:10px;flex-wrap:wrap;margin:0}.hero-buttons .button-outline,.hero-detail{background:#ffffff0b;border:1px solid #ffffff40;color:white}.hero-buttons .button-outline:hover,.hero-detail:hover{background:#ffffff20!important;color:#fff!important}.hero-bottom{bottom:24px;left:48px;right:36px;padding:0;border:0;font:12px var(--body);letter-spacing:0;color:#bfa48b}.hero-bottom>a{display:flex;align-items:center;gap:8px;color:#f3e9d6}.hero-vertical{display:none}
.discovery-strip{padding:25px 0 28px;margin:0 0 3px;border:0;display:flex;justify-content:space-between;align-items:center;gap:20px}.discovery-strip>div:first-child{display:block}.discovery-strip h2{font-size:19px;font-weight:500}.discovery-strip p{font:13px var(--body);color:var(--muted);margin-top:3px}.genre-shortcuts{display:flex;flex-wrap:wrap;gap:8px}.genre-shortcuts a{border:1px solid var(--line);border-radius:10px;padding:9px 13px;font:13px var(--body);background:var(--surface);gap:8px;color:var(--ink)}.genre-shortcuts a:hover{background:var(--surface2);border-color:var(--gold)}
.shelf{margin-top:32px}.section-heading{align-items:center;margin-bottom:20px;padding:0;border:0}.section-heading h2{font-size:27px;letter-spacing:-.025em}.text-link{font:500 13px var(--body);color:var(--muted);letter-spacing:0;gap:7px}.text-link:hover{color:var(--red)}.shelf-actions{gap:15px}.shelf-paging{display:none}.icon-button{border-color:var(--line);border-radius:9px;width:40px;height:40px}.anime-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 20px}.home-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 100px)/6);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:20px;padding:0 0 12px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.home-grid>.anime-card:nth-child(n){display:block}.anime-card{min-width:0;scroll-snap-align:start}.poster-wrap{border:0;border-radius:12px;aspect-ratio:2/3;background:var(--surface2);overflow:hidden}.poster-wrap>a{height:100%;display:block}.poster-wrap img{width:100%;height:100%;transition:transform .3s}.poster-wrap:hover img{transform:scale(1.035)}.card-format{font:600 10px var(--body);letter-spacing:0;background:#281510d9!important;color:#f3e9d6!important;border:1px solid #ffffff25;border-radius:5px;top:10px;left:10px;padding:3px 7px}.card-score{font:600 12px var(--body);color:#e8c389;background:#281510dc;border-radius:5px;padding:4px 6px;bottom:10px;right:10px}.card-save{opacity:1;transform:none;top:9px;right:9px;width:34px;height:34px;border-radius:8px;background:#281510cc;border:1px solid #ffffff30;color:#fff}.card-save.saved{background:#c49b5e;color:#28130f}.card-open{font:500 13px var(--body);letter-spacing:0}.card-info{padding:12px 0 0}.card-info h3{font:600 15px var(--body);line-height:1.4;letter-spacing:-.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-info>div{font:12px var(--body);color:var(--muted);margin-top:5px}.card-info p{font:11px var(--body);color:var(--muted);margin-top:4px}.rank-number{font:800 54px var(--serif);color:#fff;bottom:-5px;left:8px;line-height:1;text-shadow:0 2px 12px #1b0e0c;opacity:.95}.ranked .card-info{padding-left:0}
.episode-home-grid{grid-auto-columns:calc((100% - 60px)/4);grid-template-columns:none!important}.episode-release-card{grid-column:auto!important;aspect-ratio:auto!important}.episode-release-card .poster-wrap{aspect-ratio:16/9}.episode-release-card .card-info h3{font-size:14px!important}.episode-preview{border-radius:12px}.episode-preview img{aspect-ratio:16/9}.episode-info h3{font:600 15px var(--body)}
.collection-note{background:var(--surface);border:1px solid var(--line);border-radius:18px;margin:38px 0;padding:28px;box-shadow:none;gap:24px}.collection-note:after{display:none}.collection-note h2{font-size:26px;max-width:none}.collection-note p{font:14px var(--body);color:var(--muted);margin-top:7px;max-width:none}.collection-icon{border:0;background:var(--surface2);color:var(--red);border-radius:15px;width:56px;height:56px}.collection-note .button{margin-left:auto;white-space:nowrap}
.footer{border-top:1px solid var(--line);max-width:1360px;width:calc(100% - 80px);margin:0 auto;padding:28px 0 36px;gap:20px;font:12px var(--body);color:var(--muted)}.footer-brand{font:600 22px var(--serif);color:var(--ink);letter-spacing:-.03em}.footer>div{font:12px var(--body);margin-left:auto;gap:20px}
.mobile-nav{display:none}.skip-link{left:20px;border-radius:10px;background:var(--surface)}.toast{font:500 14px var(--body);border-radius:12px;background:var(--surface2);border-color:var(--line);color:var(--ink)}
.catalogue-controls{border-radius:16px;background:var(--surface);border-color:var(--line);overflow:visible}.catalogue-search{padding:18px}.catalogue-search input{font-size:16px}.catalogue-search .button{font-size:13px}.filter-line{padding:16px 18px;gap:14px}.format-tabs{gap:5px}.format-tabs button{font:500 14px var(--body);padding:8px 12px;border-radius:8px}.format-tabs button.active{background:var(--surface2);color:var(--red)}.filter-selects select{font:14px var(--body);padding:8px;background:var(--surface);border-radius:8px}.catalogue-count{font:14px var(--body)}.active-filters a,.active-filters span,.active-filters button{font:13px var(--body)}.pagination .button{font-size:13px}.offline-note{font:13px var(--body)}
.detail-banner{border-radius:20px;border:0;height:340px}.detail-banner-label{display:none}.detail-banner:after{background:linear-gradient(0deg,var(--paper),transparent 85%)}.detail-poster{border-color:var(--paper);border-radius:14px;width:180px}.detail-intro{gap:28px;padding:0 30px}.detail-title h1{font-size:42px;font-weight:600}.alternative-title{font:15px var(--body)}.detail-tags a{font:12px var(--body);border-radius:7px;background:var(--surface);padding:5px 9px}.detail-tabs{border-bottom-color:var(--line)}.detail-tabs>button{font:600 16px var(--body);padding:14px 0}.detail-tabs>button.active{color:var(--red);border-bottom-color:var(--red)}.synopsis>p{font:15px/1.9 var(--body)}.synopsis h2,.information-paper h2{font-size:24px}.information-paper{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:24px;box-shadow:none}.information-paper dl>div{font:14px var(--body)}.information-paper dt{color:var(--muted)}.information-paper dd{color:var(--ink)}.character-grid span{font:13px var(--body)}.related-card{border-radius:12px;border-color:var(--line);background:var(--surface)}.related-card h3{font-size:18px}.related-card p{font:12px var(--body)}.episode-card{border-radius:10px;border-color:var(--line);background:var(--surface);padding:16px}.episode-card strong{font:600 16px var(--body)}.episode-card small{font:12px var(--body)}
.watch-heading h1{font-size:36px}.watch-description p{font:14px/1.7 var(--body)}.watch-layout{gap:24px}.video-frame{border:1px solid var(--line);border-radius:16px;background:#160b09;box-shadow:none;min-height:unset;aspect-ratio:16/9}.video-frame:after{display:none}.player-placeholder{background:linear-gradient(135deg,#281510,#1b0e0c)}.player-placeholder h2{font:600 27px var(--serif)}.player-placeholder p{font:14px/1.6 var(--body);color:#d2bdac}.player-placeholder .eyebrow{display:block;font:12px var(--body);color:#c49b5e;letter-spacing:0}.projection-icon{border-color:#997544;color:#c49b5e}.source-panel{border-radius:14px;background:var(--surface);border-color:var(--line)}.source-panel-heading{padding:16px;font:600 15px var(--body)}.source-selects label{font:12px var(--body);letter-spacing:0}.source-selects select{font:14px var(--body);border:1px solid var(--line);border-radius:8px;min-height:44px}.source-search input{font-size:14px;border-radius:8px;min-height:44px}.source-search .button{font-size:13px}.source-caption,.reader-help,.reader-note{font:12px var(--body)}.frame-loading{font:12px var(--body);color:#e8c389;background:#1b0e0ce6;border-color:#997544;border-radius:8px}.watch-episode-list b{font:600 15px var(--body)}.watch-episode-list small{font:12px var(--body)}.watch-episode-list>a{border-radius:9px}.watch-episode-list>a.active{background:var(--surface2);border-color:var(--gold);color:var(--red)}.watch-toolbar .button{font-size:12px;min-height:42px}.watch-toolbar>span{font:13px var(--body)}
.library-stats{border-radius:16px;background:var(--surface);border-color:var(--line);padding:22px}.library-stats strong{font:600 36px var(--serif);color:var(--red)}.library-stats span{font:14px var(--body)}.library-stats small{font:12px var(--body)}.library-controls .list-search{border-radius:10px;background:var(--surface)}.library-card>select{font:13px var(--body);border-radius:8px;border-color:var(--line);background:var(--surface)}.local-storage-note{font:12px var(--body)}.empty-state h2{font-size:30px}.empty-state p{font:15px var(--body)}.loading-state{font:14px var(--body)}
.resume-grid{display:grid;grid-auto-flow:column;grid-auto-columns:300px;overflow-x:auto;gap:16px;scroll-snap-type:x proximity;padding-bottom:10px}.resume-card{display:flex;gap:16px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;scroll-snap-align:start;min-width:0}.resume-card img{width:65px;height:90px;border-radius:7px}.resume-card>div{min-width:0;align-self:center}.resume-card h3{font:600 14px var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resume-card p{font-size:12px;color:var(--muted);margin:5px 0 10px}.resume-card span{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--red)}
@media(min-width:1500px){.topbar{padding-left:max(40px,calc((100vw - 1360px)/2));padding-right:max(40px,calc((100vw - 1360px)/2))}}
@media(max-width:1150px){.topbar{gap:18px;padding:0 24px}.desktop-nav{gap:16px}.brand strong{font-size:24px}.global-search{max-width:270px}.content{padding-left:28px;padding-right:28px}.hero-copy{width:65%;padding-left:36px}.hero-bottom{left:36px}.home-grid{grid-auto-columns:calc((100% - 80px)/5)}.anime-grid:not(.home-grid){grid-template-columns:repeat(5,minmax(0,1fr))}.discovery-strip{flex-direction:column;align-items:flex-start;gap:14px}.discovery-strip>div:first-child{display:flex;align-items:baseline;gap:12px}.episode-home-grid{grid-auto-columns:calc((100% - 40px)/3)}}
@media(max-width:900px){.desktop-nav{display:none}.topbar{height:78px}.global-search{max-width:440px}.content{padding:24px 24px 48px}.hero{height:480px}.hero-copy{width:73%;padding:38px 30px}.hero h1{font-size:65px}.hero-gradient{background:linear-gradient(90deg,#27080deb,#390d15a0 45%,#390d1515),linear-gradient(0deg,#27080de6,transparent 65%)}.hero-bottom{left:30px;right:30px}.home-grid{grid-auto-columns:calc((100% - 48px)/4);gap:16px}.anime-grid:not(.home-grid){grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.collection-note{padding:24px}.collection-note h2{font-size:22px}.collection-icon{display:none}.mobile-nav{display:flex;position:fixed;z-index:60;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding:6px 12px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--paper) 96%,transparent);border-top:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:none}.mobile-nav>a{width:25%;padding:5px 3px;border-radius:10px;gap:4px;font:500 11px var(--body);color:var(--muted);height:52px}.mobile-nav>a.active{background:var(--surface2);color:var(--red)}.mobile-nav>a svg{width:20px;height:20px}.footer{padding-bottom:100px;width:calc(100% - 48px)}.toast{bottom:90px}.source-selects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .topbar{height:auto;min-height:116px;display:grid;grid-template-columns:1fr 40px 34px;gap:10px;padding:12px 18px;align-items:center}.brand{gap:10px}.brand img{width:36px;height:36px;border-radius:10px}.brand strong{font-size:23px}.brand strong span{font-size:10px}.theme-button{width:36px;height:36px}.header-list{justify-content:center}.global-search{grid-row:2;grid-column:1/-1;width:100%;max-width:none;min-width:0;margin:0;padding:4px 7px 4px 12px;border-radius:10px;gap:8px}.global-search input{font-size:13px;height:32px}.global-search>svg{width:17px}.global-search button{width:30px;height:30px}
 .content{padding:18px 18px 32px}.home-content{padding-top:12px}.page-heading{gap:12px;align-items:flex-start}.page-heading h1{font-size:31px}.page-heading p{font-size:13px}.season-stamp{display:none}
 .hero{height:510px;border-radius:18px;margin:0 -6px}.hero-art{object-position:65% 0;height:62%;object-fit:cover}.hero-gradient{background:linear-gradient(0deg,#27080d 2%,#27080dfa 26%,#27080dc7 45%,#27080d20 74%),linear-gradient(90deg,#27080d25,transparent);inset:0}.hero-copy{position:absolute;left:0;bottom:0;width:100%;max-width:none;padding:0 24px 29px}.featured-pill{font-size:10px;padding:5px 10px;gap:6px}.hero h1{font-size:53px;margin:12px 0 13px}.hero h1 span{font-size:23px;margin-top:2px}.hero-meta{font-size:10px;gap:12px;line-height:1.5}.hero-copy>p{font-size:12px;line-height:1.7;max-width:340px;margin:14px 0 19px}.hero-buttons{gap:8px;flex-wrap:nowrap}.hero-buttons .button{font-size:12px;min-height:44px;padding:10px 13px;white-space:nowrap;gap:7px}.hero-buttons>.button-outline{width:44px;padding:10px;font-size:0;gap:0;flex-shrink:0}.hero-buttons>.button-outline svg{width:19px;height:19px}.hero-detail{flex:1;justify-content:center}.hero-bottom{display:none}
 .discovery-strip{padding:22px 0 0;margin:0;gap:13px}.discovery-strip>div:first-child{display:block}.discovery-strip h2{font-size:18px}.discovery-strip p{font-size:12px;margin:3px 0 0}.genre-shortcuts{flex-wrap:nowrap;overflow-x:auto;max-width:calc(100vw - 36px);padding-bottom:8px;gap:8px}.genre-shortcuts a{flex-shrink:0;font-size:12px;padding:8px 11px;border-radius:9px;min-height:40px}.genre-shortcuts a svg{width:12px}
 .shelf{margin-top:27px}.section-heading{margin-bottom:15px;gap:8px;align-items:center}.section-heading h2{font-size:22px;line-height:1.2}.shelf-actions{gap:0}.text-link{font-size:11px;white-space:nowrap;gap:4px}.text-link svg{width:13px}.home-grid{grid-auto-columns:calc((100% - 24px)/2.4);gap:12px;padding-bottom:8px}.anime-grid:not(.home-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.poster-wrap{border-radius:10px;aspect-ratio:2/3}.card-info h3{font-size:13px}.card-info>div{font-size:10px;gap:5px;white-space:nowrap}.card-info p{font-size:10px}.card-info{padding-top:9px}.card-save{width:32px;height:32px;top:7px;right:7px}.card-format{font-size:9px;top:8px;left:7px;padding:3px 5px}.card-score{font-size:10px;bottom:7px;right:7px;padding:3px 5px}.rank-number{font-size:46px}.episode-home-grid{grid-auto-columns:82%}.episode-info h3{font-size:14px}.episode-info p{font-size:12px}
 .collection-note{margin:28px 0 4px;padding:21px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;border-radius:15px}.collection-note h2{font-size:24px;line-height:1.2;max-width:260px}.collection-note p{font-size:12px;line-height:1.7;margin:9px 0 0}.collection-note .button{margin:0;font-size:12px;min-height:42px;padding:10px 14px}
 .footer{width:calc(100% - 36px);padding:24px 0 96px;gap:8px;align-items:flex-start}.footer-brand{font-size:22px}.footer>span{font-size:12px}.footer>div{margin:9px 0 0;font-size:11px;gap:20px}.toast{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px;padding:12px 16px}
 .catalogue-search{padding:12px;gap:8px}.catalogue-search input{font-size:16px}.catalogue-search .button{min-height:40px;font-size:11px;padding:8px 10px}.filter-line{padding:12px;gap:12px}.format-tabs button{font-size:12px;padding:8px 10px;min-height:40px}.filter-selects{gap:10px}.filter-selects select{font-size:12px;min-height:40px;max-width:55%;padding:8px 5px;background:var(--paper)}.catalogue-count{font-size:12px}.pagination .button{font-size:11px}
 .detail-banner{height:220px;border-radius:14px}.detail-intro{padding:0 8px;gap:16px;margin-top:-48px}.detail-poster{width:105px;border-radius:9px;border-width:3px}.detail-title{padding-top:57px}.detail-title h1{font-size:27px}.alternative-title{font-size:12px}.detail-tags a{font-size:10px;padding:4px 6px}.detail-buttons{margin-left:-121px;padding-top:5px;gap:8px}.detail-buttons .button{font-size:12px;padding:10px 12px;min-height:44px}.detail-tabs>button{font-size:14px;min-height:44px}.synopsis>p{font-size:14px;line-height:1.85}.information-paper{padding:18px}.information-paper dl>div{font-size:13px}.related-card h3{font-size:17px}.episode-card{min-height:60px}.episodes-section .section-heading select{font:12px var(--body);min-height:40px}
 .watch-heading{gap:10px}.watch-heading h1{font-size:27px}.watch-heading>.button{margin:0;font-size:11px;padding:9px 10px;min-height:40px}.watch-layout{gap:24px}.video-frame{aspect-ratio:16/9;min-height:220px;border-radius:12px}.player-placeholder{padding:15px}.player-placeholder h2{font-size:22px;margin:8px 0}.player-placeholder p{font-size:12px;margin:0 0 14px}.projection-icon{width:35px;height:35px;margin-bottom:10px}.player-placeholder .button{font-size:12px;min-height:40px}.watch-toolbar{gap:6px}.watch-toolbar .button{font-size:10px;min-height:40px;padding:8px}.watch-toolbar>span{font-size:11px;max-width:115px}.source-panel-heading{font-size:13px;padding:12px;gap:5px}.source-selects{padding:12px;gap:12px}.source-selects label{font-size:11px}.source-selects select{font-size:13px}.source-search{padding:0 12px 12px;gap:8px;flex-wrap:wrap}.source-search .button{font-size:11px}.source-search input{font-size:14px;width:150px}.watch-description p{font-size:13px}.watch-episode-list{grid-template-columns:repeat(2,minmax(0,1fr))}.watch-episode-list b{font-size:14px}
 .library-stats{padding:0;grid-template-columns:repeat(2,1fr)}.library-stats>div{padding:16px}.library-stats strong{font-size:31px}.library-stats span{font-size:12px}.library-controls{gap:14px}.library-controls .format-tabs{flex-wrap:wrap;justify-content:flex-start}.library-controls .list-search{padding:12px}.list-search input{font-size:16px}.library-card>select{min-height:44px;font-size:12px}.local-storage-note{font-size:11px}.empty-state{padding:36px 12px}.empty-state h2{font-size:26px}.empty-state p{font-size:13px}.resume-grid{grid-auto-columns:86%}
}
@media(max-width:900px){.watch-layout{grid-template-columns:minmax(0,1fr)}.player-placeholder{width:100%;min-width:0}.watch-sidebar{min-width:0}.video-frame{width:100%;max-width:100%}}
@media(max-width:600px){.hero-art{mask-image:linear-gradient(to bottom,#000 65%,transparent 100%)}.home-content .hero-copy{z-index:2}}
@media(max-width:360px){.hero-buttons .button{padding:10px;font-size:11px}.hero-copy{padding-left:19px;padding-right:19px}.hero-meta{gap:8px}.hero h1{font-size:49px}.hero h1 span{font-size:21px}.section-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.poster-wrap:hover img{transform:none}}

:root {
  color: #28130f;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #28130f;
  --muted: #856e5b;
  --paper: #f3e9d6;
  --surface: #fbf5e9;
  --surface2: #ede0c9;
  --gold: #c49b5e;
  --wine: #4e0e17;
  --red: #8f1d2c;
  --line: #d8c7a8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "IM Fell English SC", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  background: #f3e9d6;
  font-family:
    EB Garamond,
    Georgia,
    serif;
}
:root[data-theme="dark"] {
  --ink: #f3e9d6;
  --muted: #b6a28c;
  --paper: #1b0e0c;
  --surface: #281510;
  --surface2: #352016;
  --line: #573c2c;
  --red: #dc8b91;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color: #28130f;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #28130f;
  --muted: #856e5b;
  --paper: #f3e9d6;
  --surface: #fbf5e9;
  --surface2: #ede0c9;
  --gold: #c49b5e;
  --wine: #4e0e17;
  --red: #8f1d2c;
  --line: #d8c7a8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "IM Fell English SC", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  background: #f3e9d6;
  font-family:
    EB Garamond,
    Georgia,
    serif;
}


.hero{border-radius:7px;border:1px solid #ae82478c}
.hero h1,.page-heading h1{font-weight:500}
.hero h1 span{color:#e8d5bb}
.hero-copy>p{color:#e1cfb4}
.featured-pill{color:#e8c389;border-color:#c49b5e66;background:#4e0e1780}
.hero-rating{color:#e8c389}
.hero-buttons .button-cream{background:#f3e9d6;color:#4e0e17}
.hero-buttons .button-cream:hover{background:#e8d5bb;color:#4e0e17}
.button{border-radius:4px}
.poster-wrap{border-radius:5px}
.collection-note{border-radius:7px}
.desktop-nav a.active:after{background:var(--gold)}
.mobile-nav>a.active{background:#8f1d2c3b;color:var(--gold)}
.brand strong span{color:var(--gold)}
.card-score{color:#e8c389}
.card-format{background:#281510d9!important;color:#f3e9d6!important}
.card-save.saved{background:#c49b5e;color:#28130f}
.theme-button{color:var(--muted)}
.topbar,.global-search,.genre-shortcuts a{border-color:var(--line)}
.hero-buttons .button-outline,.hero-detail{border-color:#c49b5e66}
@media(max-width:600px){.hero{border-radius:7px}.hero h1{font-size:58px}.hero h1 span{font-size:27px}.hero-copy>p{font-size:14px}.hero-buttons .button{font-size:14px}.hero-buttons>.button-outline{font-size:0}.card-info h3{font-size:15px}.card-info>div,.card-info p{font-size:12px}.global-search input{font-size:15px}.text-link{font-size:13px}.mobile-nav>a{font-size:13px}.genre-shortcuts a{font-size:14px}.collection-note p{font-size:14px}}
@media(max-width:360px){.hero h1{font-size:52px}.hero h1 span{font-size:24px}.hero-copy>p{font-size:13px}.hero-buttons .button{font-size:12px}.hero-buttons>.button-outline{font-size:0}}

/* Priorité au catalogue dès le premier écran, dans le thème Sumiya. */
.topbar{height:70px}
.desktop-nav a{padding:23px 0}
.desktop-nav a.active:after{bottom:12px}
.home-content{padding-top:18px}
.home-content .hero{height:280px}
.home-content .hero-copy{padding:22px 30px;width:65%;max-width:760px}
.home-content .featured-pill{font-size:11px;padding:3px 10px}
.home-content .hero h1{font-size:50px;margin:8px 0 9px;line-height:.95}
.home-content .hero h1 span{font-size:25px;margin-top:5px}
.home-content .hero-meta{gap:14px;font-size:12px}
.home-content .hero-copy>p{font-size:14px;line-height:1.45;max-width:570px;margin:10px 0 13px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-content .hero-buttons .button{min-height:40px;padding:8px 15px;font-size:14px}
.home-content .hero-bottom{display:none}
.home-content .hero-art{object-position:70% 45%}
.home-content .discovery-strip{padding:12px 0 0;gap:12px;flex-direction:row;align-items:center}
.home-content .discovery-strip>div:first-child{display:block}
.home-content .discovery-strip h2{font-size:18px}
.home-content .discovery-strip p{display:none}
.home-content .genre-shortcuts a{padding:6px 12px;min-height:34px;font-size:14px}
.home-content .shelf{margin-top:22px}
.home-content .section-heading{margin-bottom:12px}
.home-content .section-heading h2{font-size:26px}
.home-content .episode-home-grid{grid-auto-columns:calc((100% - 64px)/5);gap:16px}
.home-content .episode-release-card .card-info{padding-top:7px;margin-top:0!important}
.home-content .episode-release-card .card-info h3{font-size:15px!important}
.home-content .episode-release-card .card-info p{margin-top:2px;font-size:12px!important}
.home-content .feed-status{min-height:110px;padding:12px 0}
@media(min-width:901px) and (max-height:800px){.home-content .hero{height:250px}.home-content .hero-copy{padding:16px 28px}.home-content .hero h1{font-size:45px}.home-content .hero-copy>p{margin:8px 0 10px}.home-content .shelf{margin-top:18px}}
@media(max-width:1150px){.home-content .episode-home-grid{grid-auto-columns:calc((100% - 48px)/4)}.home-content .discovery-strip h2{display:none}.home-content .hero-copy{width:75%}}
@media(max-width:900px){.topbar{height:70px}.home-content .hero{height:280px}.home-content .hero-copy{width:80%;padding:22px 24px}.home-content .episode-home-grid{grid-auto-columns:calc((100% - 32px)/3)}}
@media(max-width:600px){
 .topbar{height:auto;min-height:102px;padding:8px 18px;gap:7px}
 .global-search input{height:30px}
 .home-content{padding-top:12px}
 .home-content .hero{height:250px}
 .home-content .hero-art{height:100%;object-position:65% center;mask-image:none}
 .home-content .hero-gradient{background:linear-gradient(0deg,#27080df5 0%,#27080dda 30%,#27080d5c 65%,#27080d10 100%)}
 .home-content .hero-copy{width:100%;padding:16px 18px;bottom:0}
 .home-content .featured-pill{font-size:10px;padding:3px 9px}
 .home-content .hero h1{font-size:44px;margin:9px 0 10px}
 .home-content .hero h1 span{font-size:23px;margin-top:4px}
 .home-content .hero-meta{font-size:11px;gap:10px;margin-bottom:15px}
 .home-content .hero-copy>p{display:none}
 .home-content .hero-buttons{gap:7px}
 .home-content .hero-buttons .button{min-height:42px;font-size:14px;padding:9px 12px}
 .home-content .hero-buttons>.button-outline{width:42px;font-size:0;padding:9px;flex-shrink:0}
 .home-content .discovery-strip{padding:12px 0 0;display:block}
 .home-content .discovery-strip>div:first-child{display:none}
 .home-content .genre-shortcuts{padding-bottom:3px}
 .home-content .genre-shortcuts a{min-height:38px;font-size:14px;padding:7px 11px}
 .home-content .shelf{margin-top:18px}
 .home-content .section-heading{margin-bottom:10px}
 .home-content .section-heading h2{font-size:24px}
 .home-content .episode-home-grid{grid-auto-columns:calc((100% - 16px)/2.15);gap:12px}
 .home-content .episode-release-card .card-info h3{font-size:15px!important;white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2;min-height:36px;overflow:hidden}
 .home-content .episode-release-card .card-info p{font-size:12px!important}
 .home-content .feed-status{min-height:110px}
}
@media(max-width:360px){.home-content .hero h1{font-size:42px}.home-content .hero h1 span{font-size:22px}.home-content .hero-meta{gap:7px;font-size:10px}.home-content .hero-buttons .button{font-size:12px;padding:9px 11px}.home-content .hero-buttons>.button-outline{font-size:0}}

.account-login{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 12px;border-radius:4px;font:600 15px var(--body);min-height:40px}
.account-login:hover{border-color:var(--gold)}
.account-menu{position:relative;flex-shrink:0}.account-menu summary{cursor:pointer;display:flex;align-items:center;gap:7px;list-style:none;font-size:14px;max-width:150px}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary img{width:34px;height:34px;border-radius:50%}.account-menu summary span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95px}.account-menu>div{position:absolute;right:0;top:45px;width:225px;padding:17px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 32px #160b0933;border-radius:6px;display:flex;flex-direction:column;gap:10px}.account-menu p{font-size:13px;color:var(--muted)}.account-menu a,.account-menu button{padding:8px 0;min-height:40px;text-align:left;font:15px var(--body);background:none;border:0;color:var(--ink)}
.account-backdrop{position:fixed;inset:0;background:#160b09b8;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.account-dialog{position:relative;max-width:430px;width:100%;padding:32px;background:var(--surface);border:1px solid var(--gold);border-radius:9px;box-shadow:0 20px 80px #160b0960;color:var(--ink);max-height:calc(100dvh - 40px);overflow:auto;text-align:center}.account-dialog h2{font-size:32px;margin:16px 0 12px}.account-dialog p{font-size:17px;color:var(--muted);line-height:1.55;margin:10px 0}.account-logo{width:58px;height:58px;border-radius:12px;margin:auto}.account-close{position:absolute;top:12px;right:12px;font-size:26px}.account-connect{display:flex;margin:23px 0 15px;background:var(--wine);color:#f3e9d6;min-height:46px}.account-connect:hover{background:#6b1825!important;color:#f3e9d6!important}.account-invite{display:block;color:var(--red);font-size:16px;min-height:42px;padding:10px}.account-later{display:block;margin:8px auto 0;background:transparent;border:0;color:var(--muted);font-size:15px;text-decoration:underline;min-height:42px}.account-empty{display:flex;flex-direction:column;align-items:center;gap:16px}.account-empty h1{font-size:35px}.account-empty p{max-width:480px}.account-empty .text-link{padding:10px;font-size:15px}.community-prompt{display:flex;align-items:center;gap:15px;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--gold);padding:14px 18px;border-radius:5px;margin-top:24px}.community-prompt>div{flex:1}.community-prompt h2{font-size:23px}.community-prompt p{font-size:15px;color:var(--muted);margin-top:3px}.community-prompt .button{font-size:14px;white-space:nowrap;min-height:40px}.community-prompt .community-join{color:var(--red);font-size:15px;white-space:nowrap;padding:10px}
@media(max-width:1150px) and (min-width:901px){.desktop-nav{gap:12px}.topbar{gap:15px}.global-search{min-width:140px}.account-menu summary span{display:none}}
@media(max-width:600px){.topbar{grid-template-columns:minmax(0,1fr) 36px auto;gap:7px}.brand strong{font-size:23px}.brand img{width:32px;height:32px}.brand{gap:7px}.account-login{font-size:14px;padding:6px 9px;min-height:36px}.account-menu summary span{display:none}.account-menu>div{top:43px}.account-dialog{padding:28px 22px}.account-dialog h2{font-size:29px}.account-dialog p{font-size:16px}.community-prompt{flex-wrap:wrap;gap:6px;padding:14px}.community-prompt>div{width:100%;flex:auto}.community-prompt h2{font-size:23px}.community-prompt .button{font-size:13px;padding:9px 12px}.community-prompt .community-join{font-size:14px}.account-empty h1{font-size:30px}}

.sumiya-welcome{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:35px;align-items:center;padding:26px 32px;background:var(--surface);border:1px solid var(--line);border-radius:7px;position:relative;overflow:hidden}
.welcome-copy{min-width:0}.welcome-brand{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:15px}.welcome-brand img{height:36px;width:36px;border-radius:9px}.welcome-copy h1{font-size:49px;font-weight:500;margin:8px 0 10px;line-height:1.05}.welcome-copy>p{font-size:16px;line-height:1.5;max-width:610px;color:var(--muted)}.welcome-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:15px}.welcome-actions>.button{background:var(--wine);color:#f3e9d6;padding:10px 17px;font-size:15px;min-height:42px}.welcome-actions>.button:hover{background:#6b1825;color:#f3e9d6}.welcome-discord{font-size:15px;color:var(--red);text-decoration:underline;text-underline-offset:4px;min-height:40px;display:inline-flex;align-items:center}.welcome-creator{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:15px;color:var(--ink)}.welcome-creator img{width:34px;height:34px;border-radius:50%;border:1px solid var(--gold)}.welcome-creator strong{font-weight:600;color:var(--red)}.welcome-creator small{display:block;font-size:12px;color:var(--muted)}
.welcome-account{padding:20px 0 20px 30px;border-left:1px solid var(--line);min-width:0}.welcome-account>svg{color:var(--gold)}.welcome-account h2{font-size:29px;line-height:1.1;margin:10px 0}.welcome-account p{font-size:16px;line-height:1.5;color:var(--muted);margin:0 0 17px}.welcome-account>.button{font-size:14px;padding:10px 13px;width:100%;min-height:44px;border-color:var(--gold);background:var(--surface2)}.welcome-account>span{display:block;font-size:12px;color:var(--muted);margin-top:10px;line-height:1.4}
@media(min-width:1001px){.sumiya-welcome{padding-top:20px;padding-bottom:20px}.welcome-account{padding-top:12px;padding-bottom:12px}}
@media(max-width:1000px){.sumiya-welcome{grid-template-columns:minmax(0,1fr) 260px;gap:20px;padding:23px}.welcome-copy h1{font-size:40px}.welcome-copy>p{font-size:15px}.welcome-account{padding-left:20px}.welcome-account h2{font-size:27px}.welcome-actions{gap:12px}.welcome-actions>.button,.welcome-discord{font-size:14px}}
@media(max-width:600px){.sumiya-welcome{display:block;padding:19px 18px}.welcome-brand img{width:29px;height:29px;border-radius:7px}.welcome-brand{font-size:13px}.welcome-copy h1{font-size:34px;margin:12px 0 10px}.welcome-copy>p{font-size:15px;line-height:1.45}.welcome-actions{gap:6px 14px;margin-top:12px}.welcome-actions>.button{font-size:14px;min-height:42px;padding:9px 12px}.welcome-discord{font-size:14px;min-height:38px}.welcome-creator{margin-top:9px;font-size:14px}.welcome-creator img{width:31px;height:31px}.welcome-creator small{font-size:11px}.welcome-account{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;margin-top:15px}.welcome-account>svg{display:none}.welcome-account h2{font-size:24px;margin:0 0 7px}.welcome-account p{font-size:14px;margin:0 0 10px}.welcome-account>.button{font-size:14px;width:auto;padding:9px 12px;min-height:42px}.welcome-account>span{font-size:11px;margin-top:7px}}
@media(max-width:360px){.sumiya-welcome{padding:16px 14px}.welcome-copy h1{font-size:28px;margin:9px 0}.welcome-copy>p{font-size:14px}.welcome-actions{gap:3px 9px}.welcome-actions>.button{font-size:13px;padding:9px}.welcome-discord{font-size:13px;min-height:30px}.welcome-account h2{font-size:23px}.welcome-account p{font-size:13px}.welcome-account{padding-top:11px;margin-top:12px}.welcome-creator{margin-top:6px}}

.source-panel{border:1px solid var(--gold);box-shadow:0 3px 14px #28130f0c;margin-bottom:18px}
.source-panel-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;padding:16px 18px;background:var(--surface2);min-height:78px;transition:filter .15s}
.source-panel-heading:hover{filter:brightness(.97)}
.source-panel-heading:focus-visible{outline:3px solid var(--gold);outline-offset:-4px}
.source-panel-heading>.reader-options-label{display:flex;gap:12px;min-width:0}
.reader-options-label>svg{flex-shrink:0;color:var(--red)}
.reader-options-label>div{display:grid;gap:3px;min-width:0}
.reader-options-label strong{font-size:20px;font-weight:600;line-height:1.15}
.reader-options-label span{font-size:14px;color:var(--muted);line-height:1.25}
.source-caption{font-size:14px;max-width:220px;overflow-wrap:anywhere}
.reader-options-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;background:var(--wine);color:#f3e9d6;border:1px solid var(--gold);border-radius:5px;font-size:16px;font-weight:600}
.reader-options-action svg{color:inherit;transform:rotate(90deg)}
.options-open{display:none}.source-panel[open] .options-open{display:inline}.source-panel[open] .options-closed{display:none}.source-panel[open] .reader-options-action svg{transform:rotate(-90deg)}
.external-reader-note{padding:0 18px 16px;font-size:14px;color:var(--muted)}.external-reader-note p{margin:0 0 9px}.external-reader-note .button{font-size:14px;min-height:44px}
@media(max-width:600px){.source-panel-heading{grid-template-columns:minmax(0,1fr) auto;gap:7px 9px;padding:13px 12px}.reader-options-label strong{font-size:18px}.reader-options-label span{font-size:12px}.source-caption{grid-column:1/-1;padding-left:35px;font-size:12px;max-width:none}.reader-options-action{grid-column:2;grid-row:1;font-size:14px;padding:0 10px}.source-panel-heading>.reader-options-label{gap:8px}.reader-options-label>svg{width:21px}}
