:root {
  --sakura: #ff9bb8;
  --sakura-deep: #f06a94;
  --sakura-soft: #ffd9e4;
  --ink: #1f3b45;
  --ink-soft: #2f5560;
  --ink-faint: #6d8a92;
  --paper: #fdf6ec;
  --paper-warm: #fff9f0;
  --paper-shade: #f6ead9;
  --gold: #e8b04b;
  --seal-red: #d94a5c;
  --shadow-soft: 0 3px 10px rgba(31, 59, 69, 0.1);
  --shadow-bubble: 0 4px 14px rgba(240, 106, 148, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font-round: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-round);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 155, 184, 0.14), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(47, 85, 96, 0.09), transparent 46%),
    radial-gradient(circle at 50% 92%, rgba(232, 176, 75, 0.08), transparent 50%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}
button, input, select {
  font: inherit;
  color: inherit;
}
ul, ol {
  list-style: none;
}
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.25;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(253, 246, 236, 0.97), rgba(253, 246, 236, 0.88));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(240, 106, 148, 0.22);
  box-shadow: 0 2px 12px rgba(31, 59, 69, 0.06);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
}
.site-brand {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  padding: 2px 4px;
  border-bottom: 3px solid var(--sakura);
  white-space: nowrap;
}
a[data-contract="site-name"] {
  color: var(--ink);
  text-decoration: none;
}
a[data-contract="site-name"]:hover {
  color: var(--sakura-deep);
  text-decoration: none;
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.runtime-category {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 155, 184, 0.16);
  border: 1px solid rgba(240, 106, 148, 0.26);
  text-decoration: none;
}
a.runtime-category {
  color: var(--ink-soft);
  text-decoration: none;
}
a.runtime-category:hover {
  color: #fff;
  background: var(--sakura-deep);
  border-color: var(--sakura-deep);
  text-decoration: none;
}
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-heading {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
  padding-left: 12px;
  position: relative;
  letter-spacing: 0.5px;
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--sakura), var(--ink-soft));
}
.block-heading {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.block-heading::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sakura);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px 22px;
  min-height: 300px;
  background: linear-gradient(135deg, #eaf3f2 0%, #fdf1f4 46%, #ffe6ee 100%);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-banner-field {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(47, 85, 96, 0.5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(240, 106, 148, 0.4) 2px, transparent 2px),
    linear-gradient(180deg, rgba(47, 85, 96, 0.06), transparent 70%);
  background-size: 90px 100%, 130px 100%, 100% 100%;
  background-position: 10px 0, 55px 0, 0 0;
  filter: blur(1.5px);
  opacity: 0.5;
  transform: skewX(-6deg) scaleX(1.1);
  transform-origin: left center;
}
.hero-petal-rain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 7px 4px at 20% 18%, rgba(255, 155, 184, 0.85), transparent 70%),
    radial-gradient(ellipse 6px 3px at 62% 32%, rgba(240, 106, 148, 0.7), transparent 70%),
    radial-gradient(ellipse 8px 4px at 84% 12%, rgba(255, 155, 184, 0.8), transparent 70%),
    radial-gradient(ellipse 5px 3px at 38% 66%, rgba(255, 209, 224, 0.9), transparent 70%),
    radial-gradient(ellipse 7px 4px at 72% 78%, rgba(255, 155, 184, 0.75), transparent 70%),
    radial-gradient(ellipse 6px 3px at 12% 84%, rgba(240, 106, 148, 0.6), transparent 70%),
    radial-gradient(ellipse 5px 3px at 92% 58%, rgba(255, 209, 224, 0.85), transparent 70%);
  opacity: 0.9;
}
.hero-figure {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-chibi {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 46% 46% 18% 18% / 32% 32% 14% 14%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(31, 59, 69, 0.22), 0 0 0 6px rgba(255, 155, 184, 0.18);
  background: var(--paper-shade);
}
.hero-crown-tag, .hero-snack-tag {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.hero-crown-tag {
  top: 6px;
  left: -8px;
  transform: rotate(-9deg);
  background: linear-gradient(135deg, var(--gold), #d99a2b);
  color: #4a2f05;
}
.hero-snack-tag {
  bottom: 10px;
  right: -6px;
  transform: rotate(6deg);
  background: linear-gradient(135deg, var(--sakura-deep), var(--sakura));
}
.hero-title-column {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 10px;
}
.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  max-height: 300px;
  text-shadow: 2px 2px 0 rgba(255, 155, 184, 0.55), 4px 4px 0 rgba(47, 85, 96, 0.1);
}
.hero-tagline {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 30ch;
  line-height: 1.5;
}
.hero-seal {
  font-family: var(--font-hand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: var(--seal-red);
  padding: 5px 8px;
  border-radius: 6px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), 0 3px 8px rgba(217, 74, 92, 0.4);
  transform: rotate(-3deg);
  align-self: flex-end;
  margin-top: -34px;
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.hero-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(240, 106, 148, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--paper-warm);
  border: 2px solid rgba(240, 106, 148, 0.18);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.poster-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.poster-frame {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-shade);
  box-shadow: 0 6px 16px rgba(31, 59, 69, 0.16);
  border: 3px solid #fff;
}
.poster-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.poster-caption {
  font-family: var(--font-hand);
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 155, 184, 0.2);
  padding: 5px 6px;
  line-height: 1.3;
}
.poster-actions {
  display: flex;
  gap: 8px;
}
.btn-primary, .btn-ghost {
  flex: 1 1 0;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sakura-deep), var(--sakura));
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 106, 148, 0.36);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 106, 148, 0.46);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: rgba(47, 85, 96, 0.35);
}
.btn-ghost:hover {
  background: rgba(47, 85, 96, 0.08);
  color: var(--ink);
}
.overview-detail-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(240, 106, 148, 0.3);
}
.overview-title {
  font-family: var(--font-hand);
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--ink);
  letter-spacing: 2px;
  grid-column: 1;
}
.overview-tagline {
  grid-column: 1;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.overview-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 155, 184, 0.25), rgba(232, 176, 75, 0.16));
  border: 2px solid rgba(240, 106, 148, 0.3);
}
.score-number {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  color: var(--sakura-deep);
  letter-spacing: -1px;
}
.score-label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 2px;
}
.cast-block, .synopsis-block, .status-block, .details-block {
  min-width: 0;
}
.cast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 76px;
  text-align: center;
}
.cast-avatar {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--sakura), var(--shadow-soft);
  background: var(--paper-shade);
  flex: 0 0 auto;
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cast-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.cast-role {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.2;
}
.synopsis-lead {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 10px 12px;
  border-left: 4px solid var(--sakura);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 155, 184, 0.1);
  margin-bottom: 8px;
}
.synopsis-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.synopsis-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.62;
}
.synopsis-text::first-letter {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--sakura-deep);
  font-weight: 700;
}
.status-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-hand);
}
.status-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--sakura-deep);
  letter-spacing: 1px;
}
.status-sep {
  color: var(--ink-faint);
  font-size: 16px;
}
.status-total {
  font-size: 15px;
  color: var(--ink-soft);
}
.status-progress {
  margin-top: 8px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(47, 85, 96, 0.12);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(31, 59, 69, 0.18);
}
.status-progress-fill {
  display: block;
  height: 100%;
  width: 75%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sakura-deep), var(--sakura), var(--gold));
  box-shadow: 0 0 8px rgba(240, 106, 148, 0.5);
}
.status-note {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}
.detail-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: rgba(47, 85, 96, 0.055);
  min-width: 0;
}
.detail-key {
  font-size: 12px;
  color: var(--ink-faint);
  flex: 0 0 auto;
  white-space: nowrap;
}
.detail-key::after {
  content: "·";
  margin-left: 5px;
  color: var(--sakura);
}
.detail-value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.player-shell {
  background: var(--paper-warm);
  border: 2px solid rgba(47, 85, 96, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.player-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #12262c;
  box-shadow: 0 8px 20px rgba(31, 59, 69, 0.22);
  line-height: 0;
}
.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #12262c;
}
.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 12px;
}
.ctrl-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255, 155, 184, 0.16);
  border: 1.5px solid rgba(240, 106, 148, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ctrl-btn:hover {
  background: rgba(240, 106, 148, 0.28);
  color: var(--ink);
}
.ctrl-btn.is-playing, .ctrl-btn.is-active {
  background: linear-gradient(135deg, var(--sakura-deep), var(--sakura));
  color: #fff;
  border-color: transparent;
}
.ctrl-btn.is-muted {
  background: rgba(47, 85, 96, 0.16);
  color: var(--ink);
  border-color: rgba(47, 85, 96, 0.4);
}
.ctrl-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(47, 85, 96, 0.06);
  border: 1.5px solid rgba(47, 85, 96, 0.14);
}
.ctrl-label {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  flex: 0 0 auto;
}
.ctrl-range {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sakura) 0%, rgba(47, 85, 96, 0.2) 100%);
  outline: none;
  cursor: pointer;
}
.ctrl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sakura-deep);
  box-shadow: 0 2px 5px rgba(31, 59, 69, 0.25);
  cursor: pointer;
}
.ctrl-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sakura-deep);
  box-shadow: 0 2px 5px rgba(31, 59, 69, 0.25);
  cursor: pointer;
}
.ctrl-select {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1.5px solid rgba(240, 106, 148, 0.32);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}
body.theater-mode .player-shell {
  background: #16292f;
  border-color: rgba(240, 106, 148, 0.5);
}
body.theater-mode .section-heading {
  color: var(--paper);
}
body.lights-off {
  background: #0e1a1f;
}
body.lights-off .page-main {
  filter: brightness(0.82);
}
body.lights-off .player-shell, body.lights-off .player-frame {
  filter: brightness(1.12);
}
.timeline-shell {
  background: var(--paper-warm);
  border: 2px solid rgba(47, 85, 96, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.filmstrip-track {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sakura) rgba(47, 85, 96, 0.1);
}
.filmstrip-track::-webkit-scrollbar {
  height: 8px;
}
.filmstrip-track::-webkit-scrollbar-track {
  background: rgba(47, 85, 96, 0.08);
  border-radius: var(--radius-pill);
}
.filmstrip-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--sakura-deep), var(--sakura));
  border-radius: var(--radius-pill);
}
.filmstrip-list {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
  min-width: min-content;
}
.filmstrip-item {
  position: relative;
  flex: 0 0 auto;
  width: 175px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fff, var(--paper-shade));
  border: 2px solid rgba(240, 106, 148, 0.22);
  box-shadow: var(--shadow-soft);
}
.filmstrip-item::before, .filmstrip-item::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(47, 85, 96, 0.28) 0 6px,
    transparent 6px 13px
  );
}
.filmstrip-item::before {
  left: 3px;
}
.filmstrip-item::after {
  right: 3px;
}
.filmstrip-timecode {
  align-self: flex-start;
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
}
.filmstrip-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.episodes-shell {
  background: var(--paper-warm);
  border: 2px solid rgba(240, 106, 148, 0.18);
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px 11px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #fff 0%, rgba(255, 217, 228, 0.28) 100%);
  border: 1.5px solid rgba(240, 106, 148, 0.24);
  box-shadow: 0 2px 8px rgba(31, 59, 69, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.episode-card:hover {
  transform: translateY(-2px);
  border-color: var(--sakura-deep);
  box-shadow: 0 6px 16px rgba(240, 106, 148, 0.24);
}
.episode-number {
  align-self: flex-start;
  font-family: var(--font-hand);
  font-size: 12px;
  font-weight: 700;
  color: var(--sakura-deep);
  background: rgba(255, 155, 184, 0.2);
  border: 1px solid rgba(240, 106, 148, 0.32);
  padding: 1px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
}
.episode-title {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.episode-summary {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.episode-duration {
  margin-top: 2px;
  align-self: flex-end;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
}
.episode-duration::before {
  content: "⏱ ";
  color: var(--sakura-deep);
}
.comments-shell {
  background: var(--paper-warm);
  border: 2px solid rgba(47, 85, 96, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.comment-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.comment-bubble {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1.5px solid rgba(240, 106, 148, 0.24);
  box-shadow: var(--shadow-bubble);
  position: relative;
  transition: transform 0.15s ease;
}
.comment-bubble:nth-child(3n + 2) {
  background: linear-gradient(150deg, #fff, rgba(255, 217, 228, 0.4));
}
.comment-bubble:nth-child(3n) {
  background: linear-gradient(150deg, #fff, rgba(214, 234, 234, 0.5));
}
.comment-bubble:hover {
  transform: translateY(-2px) rotate(-0.4deg);
}
.comment-avatar {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--sakura-soft);
  background: var(--paper-shade);
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.comment-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.comment-nickname {
  font-size: 12px;
  font-weight: 700;
  color: var(--sakura-deep);
}
.comment-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.recommend-shell {
  background: var(--paper-warm);
  border: 2px solid rgba(240, 106, 148, 0.18);
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.recommend-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}
.recommend-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.recommend-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.recommend-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recommend-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1.5px solid rgba(47, 85, 96, 0.14);
  box-shadow: 0 2px 8px rgba(31, 59, 69, 0.07);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.recommend-card {
  color: var(--ink);
  text-decoration: none;
}
a.recommend-card:hover {
  transform: translateY(-3px);
  border-color: var(--sakura-deep);
  box-shadow: 0 8px 20px rgba(240, 106, 148, 0.28);
  text-decoration: none;
}
[data-runtime="recommendation"] img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-shade);
  display: block;
}
.recommend-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recommend-blurb {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-footer {
  margin-top: 6px;
  background: linear-gradient(180deg, rgba(47, 85, 96, 0.06), rgba(47, 85, 96, 0.12));
  border-top: 3px solid var(--sakura);
  padding: 16px;
}
.footer-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(240, 106, 148, 0.28);
  text-decoration: none;
  white-space: nowrap;
}
a[data-contract="footer-home"] {
  color: var(--ink-soft);
  text-decoration: none;
}
a[data-contract="footer-home"]:hover {
  color: #fff;
  background: var(--sakura-deep);
  text-decoration: none;
}
a[data-contract="footer-sitemap"] {
  color: var(--ink-soft);
  text-decoration: none;
}
a[data-contract="footer-sitemap"]:hover {
  color: #fff;
  background: var(--ink-soft);
  text-decoration: none;
}
.footer-disclaimer {
  max-width: 1180px;
  margin: 12px auto 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.friend-links {
  max-width: 1180px;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.friend-links-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 155, 184, 0.2);
}
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
}
.runtime-friend-link {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(47, 85, 96, 0.25);
  text-decoration: none;
  white-space: nowrap;
}
a.runtime-friend-link {
  color: var(--ink-faint);
  text-decoration: none;
}
a.runtime-friend-link:hover {
  color: var(--sakura-deep);
  border-color: var(--sakura);
  border-style: solid;
  text-decoration: none;
}
@media (max-width: 980px) {.recommend-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.comment-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }}
@media (max-width: 820px) {.overview-shell {
    grid-template-columns: minmax(0, 1fr);
  }
.poster-column {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
.poster-frame {
    flex: 0 0 150px;
    width: 150px;
  }
.poster-actions {
    flex: 1 1 auto;
    flex-direction: column;
  }
.hero-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }
.hero-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: clamp(28px, 8vw, 42px);
    max-height: none;
  }
.hero-seal {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    align-self: flex-start;
    margin-top: 0;
  }
.hero-figure {
    align-items: center;
  }
.hero-chibi {
    max-width: 220px;
  }
.recommend-grid-4, .recommend-grid-5, .recommend-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }}
@media (max-width: 620px) {body {
    font-size: 14px;
  }
.page-main {
    padding: 12px 12px 22px;
    gap: 13px;
  }
.hero-stage {
    padding: 14px;
  }
.hero-chibi {
    max-width: 190px;
  }
.hero-crown-tag {
    left: 0;
  }
.hero-snack-tag {
    right: 0;
  }
.overview-head {
    grid-template-columns: minmax(0, 1fr);
  }
.overview-score {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    justify-self: start;
    padding: 5px 14px;
  }
.score-number {
    font-size: 24px;
  }
.episode-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.comment-wall {
    grid-template-columns: minmax(0, 1fr);
  }
.recommend-grid-4, .recommend-grid-5, .recommend-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }
.ctrl-range {
    width: 78px;
  }
.ctrl-field {
    padding: 4px 9px;
  }
.poster-column {
    flex-direction: column;
  }
.poster-frame {
    width: 100%;
    flex: 0 0 auto;
    max-width: 200px;
  }
.poster-actions {
    flex-direction: row;
  }}
@media (max-width: 420px) {.recommend-grid-4, .recommend-grid-5, .recommend-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.cast-card {
    width: 68px;
  }
.cast-avatar {
    width: 52px;
    height: 52px;
  }
.filmstrip-item {
    width: 155px;
  }}

footer{text-align:center!important}
footer *{justify-content:center!important}
footer :is(div,nav,ul,ol,p,section,address){margin-left:auto!important;margin-right:auto!important}
