/* RecapDrama theme. Mirrors app/globals.css and the Tailwind classes of the Next.js site; served to visitors, so no tooling names here. */
:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212a;
  --line: #262b36;
  --fg: #e6e8ee;
  --muted: #98a0b3;
  --accent: #fb7185;
  --accent-ink: #0b0e13;
  --accent-soft: rgb(251 113 133 / 0.12);
  --ok: #7fd18e;
  --warn: #e8b86b;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.45), 0 8px 20px -12px rgb(0 0 0 / 0.6);
  --radius: 12px;
  --radius-sm: 10px;
  color-scheme: dark;
  scroll-behavior: smooth;
  /* Keeps in-page anchors clear of the sticky header. */
  scroll-padding-top: 120px;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--line); }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-main { flex: 1; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(15 17 21 / 0.9); backdrop-filter: blur(12px); }
.header-row { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 8px; padding: 12px 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.brand img { width: 28px; height: 28px; }
.main-nav { order: 3; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; width: calc(100% + 28px); margin: 0 -14px; padding: 0 14px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color .15s; }
.main-nav a:hover { color: var(--fg); }
.header-search { order: 2; margin-left: auto; display: flex; gap: 6px; }
.search-box { position: relative; }
.search-box svg { pointer-events: none; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 144px; border: 1px solid var(--line); border-radius: 8px; background: #0e1016; padding: 8px 12px 8px 36px; font-size: 16px; outline: none; transition: border-color .15s; }
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--accent); }
.search-box input::-webkit-search-cancel-button { display: none; }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .15s; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-accent:active { filter: brightness(.95); }
.btn-accent svg { width: 14px; height: 14px; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 24px 14px 40px; display: grid; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.footer-nav a { padding: 6px 0; }
.footer-nav a:hover { color: var(--fg); }
.footer-nav .strong { font-weight: 500; color: var(--fg); }
.footer-nav .strong:hover { color: var(--accent); }
.footer-note { max-width: 78ch; }

/* Page container and headings */
.container { max-width: 1180px; margin: 0 auto; padding: 24px 14px 40px; }
.container.narrow { max-width: 78ch; }
.page-title { font-size: clamp(22px, 5.4vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; text-wrap: balance; }
.lede { margin-top: 6px; max-width: 70ch; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--accent); }
.back-link:hover { text-decoration: underline; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-title { font-size: clamp(17px, 3.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
.section-title::before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 12px; border-radius: 2px; background: var(--accent); }
.section-body { margin-top: 14px; }
.paras { display: grid; gap: 16px; }
.dim { color: rgb(230 232 238 / 0.9); }
.note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); padding: 8px 14px; font-size: 14px; transition: border-color .15s, background .15s, color .15s; cursor: pointer; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.chip[aria-current], .chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 24px -14px 0; padding: 0 14px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); padding: 8px 14px; font-size: 14px; }
.chips-scroll a:hover { border-color: var(--accent); color: var(--fg); }

/* Cards and grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 14px; }
.card { display: block; }
.card-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); transition: transform .15s, border-color .15s; }
.card:hover .card-poster { transform: translateY(-2px); border-color: var(--accent); }
.card:active .card-poster { transform: scale(.985); }
.card-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-eps { position: absolute; bottom: 8px; left: 8px; border-radius: 6px; background: rgb(0 0 0 / 0.8); color: #fff; padding: 2px 6px; font-size: 12px; }
.card-title { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.375; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.card-poster .badges, .info-poster .badges { position: absolute; left: 8px; top: 8px; }
.badge { border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.badge-hot { background: var(--accent); color: var(--accent-ink); }
.badge-ending-spoiled { border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); }

/* Panels */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; box-shadow: var(--shadow-card); }
.panel-title { font-size: 17px; font-weight: 600; }
.panel-body { margin-top: 12px; }
.with-aside { margin-top: 36px; display: grid; gap: 32px; align-items: start; }
.with-aside > div { min-width: 0; }
.with-aside > aside { display: grid; gap: 24px; }
.standards { display: grid; gap: 12px; }
.standards li { border-left: 2px solid var(--accent); padding-left: 12px; }
.standards b { display: block; font-size: 14px; }
.standards span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Home browser */
.browse { margin-top: 28px; }
.filters { display: grid; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; }
.filters .filter-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.results-bar { margin: 20px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.results-bar .results-count { font-size: 18px; font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.pager { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.clear-link { margin-top: 20px; display: inline-block; font-size: 14px; color: var(--accent); text-decoration: underline; }

/* Prose from Markdown (home explainer, static pages) */
.prose { display: grid; gap: 16px; color: rgb(230 232 238 / 0.9); }
.prose h2 { font-size: clamp(17px, 3.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.prose h2::before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 12px; border-radius: 2px; background: var(--accent); }
.prose h3 { padding-top: 8px; font-size: 16px; font-weight: 600; color: var(--fg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.prose ol { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; }
.question-links { display: grid; gap: 8px; list-style: disc; padding-left: 20px; }
.question-links a { font-weight: 600; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.static .prose h2 { padding-top: 20px; font-size: 18px; }
.static .prose h2::before { display: none; }
.static .prose { margin-top: 24px; }

/* Drama page: info panel */
.info { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 14px; }
.info-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-card); }
.info-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.info-head { min-width: 0; align-self: center; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { margin: 0 6px; }
.info-head h1 { margin-top: 6px; font-size: clamp(20px, 5vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.aka { margin-top: 8px; font-size: 13px; color: var(--muted); }
.quick { grid-column: span 2; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: linear-gradient(to right, rgb(251 113 133 / 0.1), transparent 75%); padding: 16px 20px; }
.quick h2 { font-size: clamp(17px, 3.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; }
.quick .paras { margin-top: 10px; }
.quick-link { margin-top: 12px; font-size: 14px; color: rgb(230 232 238 / 0.8); }
.quick-link a, a.quick-link { font-weight: 600; color: var(--accent); }
.quick-link a:hover, a.quick-link:hover { text-decoration: underline; }
a.quick-link { display: inline-block; }
.info-facts { grid-column: span 2; min-width: 0; }
.facts { margin-top: 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.facts > div { background: var(--panel); padding: 10px 14px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; }
.facts .st-verified { color: var(--ok); }
.facts .st-partial { color: var(--warn); }
.facts .st-unverified, .facts .st-unrevealed { color: var(--muted); }
.info-facts .chips { margin-top: 12px; }
.byline { margin-top: 12px; display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 13px; color: var(--muted); }
.byline .warn { font-weight: 600; color: var(--accent); }

/* Drama page: body layout */
.drama-body { margin-top: 32px; display: grid; align-items: start; gap: 40px; }
.drama-body > article { min-width: 0; }
.toc-col, .side-col { display: none; }
.toc { position: sticky; top: 96px; }
.toc p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.toc ul { margin-top: 12px; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; border-left: 2px solid transparent; padding-left: 14px; font-size: 13px; font-weight: 600; line-height: 1.375; color: var(--muted); transition: color .15s, border-color .15s; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.toc a[aria-current] { border-color: var(--accent); color: var(--fg); }
.watch-mobile + .sections, .sections { margin-top: 36px; }
.watch-head { display: flex; align-items: center; gap: 12px; }
.watch-head img { aspect-ratio: 2 / 3; width: 56px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; }
.watch-head b { display: block; line-height: 1.375; }
.watch-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.watch-buttons { margin-top: 16px; display: grid; gap: 8px; }
.watch-buttons a { border-radius: var(--radius-sm); padding: 10px 16px; }
.watch-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.side-list img { aspect-ratio: 2 / 3; width: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; }
.side-list b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.375; }
.side-list a:hover b { color: var(--accent); }
.side-list small { font-size: 12px; color: var(--muted); }

/* Official video */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #000; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { display: flex; align-items: center; justify-content: center; background: #000; color: #fff; cursor: pointer; padding: 0; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .6; }
.video .play { position: relative; display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: filter .15s; }
.video button:hover .play { filter: brightness(1.1); }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-picks { margin-top: 12px; display: grid; gap: 8px; }
.video-picks button { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); color: var(--muted); padding: 12px 16px; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.video-picks button:hover { border-color: var(--accent); }
.video-picks button[aria-pressed="true"] { border-color: var(--accent); background: rgb(251 113 133 / 0.1); color: var(--fg); }
.ext-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--accent); }
.ext-link:hover { text-decoration: underline; }
.ext-link svg { width: 14px; height: 14px; }

/* Characters, plot, FAQ, watch list, sources */
.characters { display: grid; gap: 14px; }
.character { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 14px 16px; }
.character h3 { font-size: 15px; font-weight: 600; }
.character .role { margin-top: 2px; font-size: 13px; color: var(--accent); }
.character .summary { margin-top: 10px; font-size: 14px; color: rgb(230 232 238 / 0.9); }
.character dl { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; }
.character dt { display: inline; font-weight: 600; }
.character dd { display: inline; color: var(--muted); }
.plot { display: grid; gap: 28px; }
.plot h3 { font-size: 16px; font-weight: 600; }
.plot .paras { margin-top: 10px; color: rgb(230 232 238 / 0.9); }
.story-link { margin-top: 12px; border-left: 2px solid rgb(251 113 133 / 0.4); padding-left: 12px; font-size: 14px; color: var(--muted); }
.story-link b { color: var(--fg); }
.story-link a { font-weight: 600; color: var(--accent); }
.story-link a:hover { text-decoration: underline; }
.plot figure { margin: 20px auto 0; max-width: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plot figure img { display: block; aspect-ratio: 2 / 3; width: 100%; height: auto; object-fit: cover; }
.plot figcaption { padding: 12px 16px; font-size: 12px; color: var(--muted); }
.faq-list { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.faq-list > div { padding: 14px 16px; }
.faq-list > div + div { border-top: 1px solid var(--line); }
.faq-list h3 { font-size: 15px; font-weight: 600; }
.faq-list p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.watch-list { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 0 16px; }
.watch-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 6px; padding: 14px 0; }
.watch-list li + li { border-top: 1px solid var(--line); }
.watch-list .name { min-width: 0; flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.watch-list .wnote { width: 100%; font-size: 13px; color: var(--muted); }
.watch-list .btn-accent { width: 100%; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; }
.sources { display: grid; gap: 6px; font-size: 14px; }
.sources a { color: var(--muted); text-underline-offset: 2px; transition: color .15s; }
.sources a:hover { color: var(--accent); text-decoration: underline; }
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 36px; }
.more-link { margin-top: 16px; display: inline-block; font-size: 14px; color: var(--accent); }
.more-link:hover { text-decoration: underline; }

/* Relationship page */
.answer-box { border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--panel); padding: 16px 20px; }
.answer-box h2 { font-size: 15px; font-weight: 600; }
.answer-box p { margin-top: 8px; color: rgb(230 232 238 / 0.9); }
.turning h2 { margin-top: 40px; font-size: 20px; font-weight: 600; }
.turning ol { margin-top: 16px; list-style: decimal; padding-left: 20px; display: grid; gap: 12px; color: rgb(230 232 238 / 0.9); }
.rel-article { margin-top: 32px; max-width: 48rem; }

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: center; padding: 96px 16px; text-align: center; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); padding: 4px 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.notfound h1 { margin-top: 16px; font-size: clamp(24px, 6vw, 36px); font-weight: 700; letter-spacing: -0.025em; }
.notfound p { margin-top: 8px; max-width: 28rem; color: var(--muted); }
.notfound .btn-accent { margin-top: 24px; border-radius: var(--radius-sm); padding: 10px 20px; }

@media (min-width: 640px) {
  .header-row { padding: 12px 20px; }
  .brand { font-size: 17px; }
  .main-nav { order: 2; width: auto; margin: 0; padding: 0; gap: 16px; }
  .header-search { order: 3; }
  .search-box input { width: 224px; font-size: 14px; }
  .footer-inner { padding: 24px 20px 40px; }
  .footer-nav a { padding: 0; }
  .container { padding: 28px 20px 40px; }
  .chip { min-height: 30px; padding: 4px 12px; font-size: 13px; }
  .chips-scroll { margin: 24px -20px 0; padding: 0 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
  .filters { padding: 20px; }
  .info { grid-template-columns: 220px minmax(0, 1fr); column-gap: 26px; row-gap: 0; }
  .info-poster { grid-row: span 2; }
  .info-head { align-self: start; }
  .quick { order: 4; padding: 20px 24px; }
  .info-facts { order: 3; grid-column: span 1; }
  .facts { margin-top: 16px; grid-template-columns: repeat(4, 1fr); }
  .characters { grid-template-columns: repeat(2, 1fr); }
  .plot h3 { font-size: 17px; }
  .video-picks { grid-template-columns: repeat(2, 1fr); }
  .watch-list li { flex-wrap: nowrap; }
  .watch-list .name { min-width: 116px; flex: none; }
  .watch-list .wnote { width: auto; flex: 1; }
  .watch-list .btn-accent { width: auto; margin-left: auto; padding: 8px 16px; font-size: 14px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px; }
  .with-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .with-aside > aside { position: sticky; top: 96px; }
  .drama-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .side-col { display: grid; gap: 24px; position: sticky; top: 96px; }
  .watch-mobile { display: none; }
}

@media (min-width: 1280px) {
  .drama-body { margin-top: 40px; grid-template-columns: 140px minmax(0, 1fr) 300px; gap: 24px; }
  .toc-col { display: block; }
  .chips-scroll.toc-chips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Listing, search and relationship page spacing */
.listing-chips { margin-top: 20px; }
.count-line { margin-top: 20px; font-size: 14px; color: var(--muted); }
.listing-grid { margin-top: 16px; }
.hint-line { margin-top: 32px; font-size: 14px; color: var(--muted); }
.rel-back { margin-top: 32px; }
.rel-back a { font-weight: 600; }
.search-area { margin-top: 28px; }
.empty-title { font-size: 15px; font-weight: 600; }
.empty-text { max-width: 32rem; margin: 6px auto 0; font-size: 14px; color: var(--muted); }
.empty-chips { margin-top: 20px; justify-content: center; }

.ending-list { display: grid; gap: 14px; margin-top: 14px; list-style: none; }
.ending-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.ending-poster img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.ending-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.ending-title a:hover { text-decoration: underline; }
.ending-text { margin-top: 8px; }
.ending-more { display: inline-block; margin-top: 8px; font-size: 14px; }
@media (min-width: 640px) {
  .ending-item { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 16px 18px; }
  .ending-title { font-size: 17px; }
}
