:root {
  color-scheme: dark;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  color: #fcf5fc;
  background: #121015;
  --muted: #d0c2d4;
  --border: #463b4a;
  --pink: #f4a8c1;
  --sidebar-width: 260px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, input { min-width: 0; }
button { background: none; border: 0; }
a { color: inherit; text-decoration: none; }
button:hover, a:hover { filter: brightness(1.16); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column;
  overflow: auto; padding: 0 10px 30px; isolation: isolate;
  background: radial-gradient(ellipse at -12% 86%, #341d32 0%, transparent 53%), linear-gradient(107deg,#231624,#16121a 88%);
}
.sidebar::before {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 300px;
  background: radial-gradient(ellipse 205px 44px at 61% 45%, #a8587450, transparent 95%), linear-gradient(24deg, transparent 62%, #be6e8b34 63%, transparent 65%);
  transform: skewY(13deg); mask-image: linear-gradient(transparent, #000 45%, #000 69%, transparent);
}
.brand { color: var(--pink); font-size: 26px; font-weight: 700; letter-spacing: -.7px; display: flex; align-items: center; gap: 13px; margin: 28px 0 38px 32px; width: max-content; }
.brand svg { width: 40px; height: 40px; }
.navigation { display: grid; gap: 7px; }
.navigation button { display: flex; align-items: center; gap: 17px; text-align: left; height: 52px; padding: 0 18px; white-space: nowrap; border-radius: 11px; letter-spacing: -.25px; }
.navigation button.current { font-weight: 600; background: linear-gradient(110deg,#754757,#593947); box-shadow: inset 0 0 19px #e995b31a; }
.navigation button.current svg { color: var(--pink); }
.history { margin: 21px 10px 0; padding: 25px 8px 0; border-top: 1px solid #574555; }
.history h2 { font-size: 16px; margin: 0 0 10px; }
.history button { display: flex; align-items: center; gap: 17px; padding: 0 9px; width: 100%; text-align: left; height: 44px; }
.history svg { width: 20px; height: 20px; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 88px; padding: 14px 28px 25px 26px; display: flex; align-items: center; gap: 18px; }
.field { display: flex; align-items: center; height: 50px; min-width: 0; border: 1px solid #63576a; border-radius: 13px; background: linear-gradient(112deg,#2c2733,#282430); }
.field:focus-within { border-color: var(--pink); }
.field button { display: grid; place-items: center; width: 51px; height: 100%; padding: 0; flex: none; }
.field input { flex: 1; height: 100%; border: 0; background: transparent; outline: none; padding: 0 8px; }
.field input::placeholder { color: #b5a8bc; }
.global-search { flex: 1; height: 47px; border-color: #4f4455; margin-right: 20px; background: #27232e; }
#global-search-status { margin: -9px 26px 13px; color: var(--pink); font-size: 14px; }
.global-search button { width: 49px; color: #a398ae; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; padding: 0; flex: none; }
.notifications svg { width: 27px; height: 27px; }
.profile { background: #403946; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(262px,310px); align-items: start; gap: 19px; padding: 0 12px 14px 20px; }
.primary { min-width: 0; }
.hero {
  position: relative; min-height: 262px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 87% 14%,#372331b0,transparent 62%),linear-gradient(103deg,#1c1516 45%,#241822 100%);
}
.hero-picture { position: absolute; z-index: -1; inset: 0 auto 0 0; width: min(47%, 420px); overflow: hidden; mask-image: linear-gradient(90deg,#000 91%,transparent); }
.hero-picture::before { content: ""; position: absolute; inset: 0 0 auto; height: 262px; background-image: radial-gradient(ellipse at 35% 35%,#a04c6c66,transparent 65%),linear-gradient(130deg,#392136,#21151f); background-size: cover; background-position: center 35%; background-repeat: no-repeat; }
.hero-copy { margin-left: 47.8%; position: relative; padding: 25px 25px 16px 0; }
.hero h1 { color: #dfced4; margin: 0 0 4px; font: bold italic clamp(36px,3.39vw,54px)/1.1 Georgia,serif; letter-spacing: -.7px; }
.show-meta { color: #e4d7e2; font-size: 20px; margin: 4px 0 11px; line-height: 1.3; }
.show-description { color: #f2e4f1; margin: 0 0 12px; line-height: 1.36; }
.rose { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #d387a2; border-radius: 17px; min-height: 44px; padding: 8px 19px; background: linear-gradient(125deg,#995b70,#693e4c); box-shadow: inset 0 0 13px #f59dba32; }
.rose svg { width: 21px; height: 21px; }
.hero-button { min-width: 176px; background: linear-gradient(125deg,#633d47,#68414b); }
.episode-panel { padding: 20px 0 26px; }
.episode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.tabs { display: flex; max-width: 100%; min-height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid #352c3b; background: linear-gradient(115deg,#211b24,#1c1821); }
.tabs button { white-space: nowrap; padding: 0 26px; color: #eaddeb; border: 1px solid transparent; border-radius: 9px; }
.tabs button:first-child { min-width: 128px; }
.tabs button[aria-pressed=true], .ep.active, .chip.active { color: white; border-color: #d08aa1; background: linear-gradient(120deg,#a26378,#784653); box-shadow: inset 0 0 13px #f59dba26; }
.tabs button[aria-pressed=true], .ep.active, .chip.active { font-weight: 600; }
.episodes { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 2px 0; }
.ep, .episode-jump, .paging button { border: 1px solid var(--border); background: linear-gradient(120deg,#29232e,#24202a); height: 46px; border-radius: 11px; min-width: 0; }
.ep { flex: 1 1 64px; max-width: 64px; font-size: 18px; padding: 0; }
.ep.mapped:not(.active) { border-color: #826171; }
.episode-jump { flex: 0 0 41px; height: 41px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; }
.episode-jump svg { width: 19px; height: 19px; }
.episode-jump:disabled, .paging button:disabled { cursor: default; opacity: .42; }
.episode-more { flex: 0 0 74px; height: 40px; font-size: 21px; padding: 0; }
.results { border-top: 1px solid #332a37; margin: 1px 4px 0 7px; padding-top: 10px; }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) 194px; gap: 18px; }
.comment-search input { font-size: 19px; padding-left: 9px; }
.comment-search button:first-child { width: 52px; padding-left: 9px; }
.comment-search button:last-child { color: #cabacf; }
.comment-search button:last-child svg { width: 18px; height: 18px; }
.sort { position: relative; display: flex; align-items: center; height: 50px; border: 1px solid #54465a; border-radius: 14px; background: linear-gradient(120deg,#27222c,#24202a); }
.sort svg { position: absolute; pointer-events: none; width: 18px; height: 18px; left: 25px; }
.sort svg:last-child { left: auto; right: 14px; width: 17px; }
.sort select { width: 100%; height: 100%; border: 0; border-radius: inherit; appearance: none; background: transparent; padding: 0 28px 0 54px; }
.sort option { background: #29242f; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 11px; align-items: center; }
.characters { margin: 18px 0; }
.chip { background: linear-gradient(120deg,#28232d,#24202a); border: 1px solid #514456; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; min-height: 41px; white-space: nowrap; font-size: 15px; }
.chip span { color: #e0d3e2; }
.characters .chip { min-width: 0; flex: 1 1 auto; padding-inline: 11px; }
.characters .chip.more { flex: 0 0 45px; padding: 0; min-height: 39px; }
.categories { display: flex; align-items: center; gap: 27px; padding: 0 0 18px 1px; border-bottom: 1px solid #403442; }
.categories .chip { gap: 10px; padding-inline: 13px; border-color: #615365; }
.categories .chip svg { width: 21px; height: 21px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; font-size: 15px; color: #eaddec; }
.result-heading strong { font-size: 18px; color: #fff7ff; margin-right: 8px; }
.result-heading label { color: #d8cddd; display: flex; align-items: center; gap: 9px; white-space: nowrap; cursor: pointer; }
.result-heading input { width: 20px; height: 20px; margin: 0; accent-color: #ae7489; }
.comment { position: relative; display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 19px; padding: 14px 20px 16px 17px; min-height: 109px; background: linear-gradient(125deg,#211d27,#211c26); border: 1px solid #413746; border-radius: 15px; margin-bottom: 13px; }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; background: #967a6a; border-radius: 50%; font-size: 27px; font-weight: 600; margin-top: 2px; }
.comment:nth-child(3n+2) .avatar { background: #956f93; }
.comment:nth-child(3n) .avatar { background: #726587; }
.comment header, .comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.comment header { font-size: 15px; }
.comment time, .comment-actions { color: var(--muted); font-size: 14px; }
.comment p { margin: 7px 0 10px; line-height: 1.43; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { gap: 4px 24px; }
.comment-actions > span svg { width: 19px; height: 19px; margin-right: 5px; }
.save-comment { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0; color: var(--pink); font-size: 14px; }
.save-comment svg { width: 16px; height: 16px; }
.save-comment[data-saved="true"] svg { fill: currentColor; }
.empty { margin: 0; border: 1px solid #433749; border-radius: 15px; padding: 28px 18px; text-align: center; color: var(--muted); background: #1d1921; }
#alert { padding: 0 0 10px; color: var(--pink); }
.paging { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 20px; }
.paging button { padding-inline: 16px; }
.insights { display: grid; gap: 19px; margin-top: 12px; }
@media (width > 1070px) {
  .workspace { display: flex; flex-direction: column; min-height: 0; height: 100vh; height: 100dvh; }
  .topbar { flex: none; }
  .layout { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .primary, .insights { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #685267 transparent; }
  .primary { height: 100%; scroll-padding-block: 8px; }
  .insights { max-height: calc(100% - 12px); }
}
.card { border: 1px solid #463a4c; border-radius: 17px; background: radial-gradient(ellipse at 15% 0,#29202b80,transparent 66%),linear-gradient(120deg,#1c1720,#1b171f); padding: 20px; }
.card h2 { display: flex; align-items: center; gap: 15px; font-size: 18px; letter-spacing: -.25px; line-height: 1.2; margin: 0; }
.card h2 svg { width: 23px; height: 23px; color: #ef96b3; }
.highlights { min-height: 371px; }
.highlights h2 { padding: 1px 1px 17px; border-bottom: 1px solid #3d303e; }
.highlights p { margin: 16px 0 18px; }
.ranking-row { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 0 0 0 3px; font-size: 15px; }
.ranking-row span:first-child { display: flex; justify-content: space-between; margin-bottom: 5px; }
.ranking-row b { font-weight: 400; color: #f3e7f4; }
.track { display: block; height: 15px; border-radius: 99px; background: #352e3c; overflow: hidden; }
.track i { display: block; height: 100%; background: linear-gradient(90deg,#ba768d,#b4788b); border-radius: inherit; }
.popular { min-height: 216px; padding: 21px 22px; }
.popular h2 { gap: 10px; margin-bottom: 19px; white-space: nowrap; }
.popular h2 svg { width: 20px; }
.popular .chips { gap: 9px 12px; }
.popular .chip { border-color: #80586f; background: linear-gradient(130deg,#3a2734,#352630); min-height: 36px; padding-inline: 13px; font-size: 14px; }
.popular .chip.active { border-color: #d08aa1; background: linear-gradient(120deg,#a26378,#784653); }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.5; }
dialog { width: min(480px,calc(100% - 28px)); border: 1px solid #76546b; border-radius: 18px; padding: 26px; background: #251e2a; color: inherit; }
dialog::backdrop { background: #0b080ccc; }
dialog h2 { margin: 0 33px 18px 0; }
.close-dialog { position: absolute; top: 12px; right: 12px; }
#saved-dialog { width: min(690px, calc(100% - 28px)); max-height: 85dvh; overflow-y: auto; }
#saved { display: grid; gap: 12px; }
.saved-comment { padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; background: #1e1923; }
.saved-comment header, .saved-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 16px; }
.saved-comment header { overflow-wrap: anywhere; }
.saved-comment header span, .saved-status { color: var(--muted); font-size: 14px; }
.saved-comment p { margin: 10px 0; line-height: 1.55; overflow-wrap: anywhere; }
.saved-body { white-space: pre-wrap; }
.saved-actions { font-size: 14px; color: var(--pink); }
.saved-actions button { padding: 4px 0; color: var(--muted); }
@media (max-width: 1320px) {
  :root { --sidebar-width: 220px; }
  .layout { grid-template-columns: minmax(0,1fr) 278px; gap: 14px; }
  .brand { margin-left: 20px; }
  .navigation button { padding-inline: 9px; gap: 10px; font-size: 15px; }
  .episode-more { flex-basis: 36px; }
  .popular { padding-inline: 16px; }
  .characters .chip { flex: 0 1 auto; }
  .hero-copy { margin-left: 44%; }
  .hero-picture { width: 44%; }
}
@media (max-width: 1070px) {
  :root { --sidebar-width: 182px; }
  .navigation button { white-space: normal; }
  .brand { font-size: 22px; margin-left: 8px; }
  .layout { grid-template-columns: minmax(0,1fr); }
  .insights { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .card { padding: 14px; }
  .popular h2 { white-space: normal; }
  .hero-copy { margin-left: 48%; }
  .hero-picture { width: 47%; }
}
@media (max-width: 730px) {
  .sidebar { position: relative; width: auto; padding: 0 13px 7px; }
  .sidebar::before, .rail-ad-left, .history { display: none; }
  .brand { margin: 12px 0 8px; }
  .brand svg { width: 33px; height: 33px; }
  .navigation { display: flex; gap: 3px; flex-wrap: wrap; }
  .navigation button { height: 39px; font-size: 13px; padding: 0 7px; gap: 5px; }
  .navigation svg { width: 17px; height: 17px; }
  .workspace { margin: 0; }
  .topbar { height: auto; padding: 12px; gap: 5px; }
  .global-search { margin: 0; }
  #global-search-status { margin: 0 12px 12px; }
  .layout { padding: 0 11px 12px; }
  .hero-copy { margin-left: 35%; padding: 19px 12px 17px 0; }
  .hero-picture { width: 56%; mask-image: linear-gradient(90deg,#000 51%,transparent); }
  .hero-picture::before { background-position-x: center; }
  .episode-head { flex-wrap: wrap; }
  .episode-more { flex: 0 0 21px; }
  .ep { font-size: 15px; height: 37px; }
  .episode-jump { flex: 0 0 27px; height: 31px; }
  .episodes { gap: 4px; padding-inline: 0; }
  .results { margin-inline: 0; }
  .search-row { grid-template-columns: minmax(0,1fr) 143px; gap: 7px; }
  .sort svg { left: 8px; }
  .sort select { padding: 0 21px 0 29px; font-size: 14px; }
  .sort svg:last-child { right: 5px; width: 14px; }
  .comment-search button { width: 31px !important; padding: 0 !important; }
  .comment-search input { font-size: 16px; padding-inline: 3px; }
  .categories { align-items: start; gap: 9px; flex-direction: column; }
  .result-heading { align-items: start; flex-direction: column; padding: 10px 0; }
  .comment { grid-template-columns: 37px minmax(0,1fr); padding-inline: 9px; gap: 8px; }
  .avatar { width: 36px; height: 36px; font-size: 20px; }
  .insights { grid-template-columns: minmax(0,1fr); }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.episodes { position: relative; }
.episode-select { position: absolute; z-index: 3; top: calc(100% + 4px); left: 40px; background: #28212c; border: 1px solid #6b5067; border-radius: 8px; padding: 9px 11px; }
.history button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-button { padding: 5px 0; color: var(--pink); min-height: 34px; font-size: 14px; font-weight: 600; text-align: left; }
.comment-actions .thread-button { padding: 0; min-height: 24px; }
.thread-button:disabled { opacity: .55; cursor: default; }
.comment-thread { grid-column: 2 / -1; min-width: 0; padding: 0 0 0 14px; border-left: 2px solid #6d4a60; }
.thread-status { margin: 4px 0; color: var(--muted); font-size: 14px; }
.comment .context-comment { min-height: 0; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 10px; background: #1b171f; margin-bottom: 8px; }
.context-comment .avatar { width: 34px; height: 34px; font-size: 19px; }
.context-label { color: var(--pink); font-size: 12px; }
@media (max-width: 730px) {
  .comment-thread { grid-column: 1 / -1; padding-left: 8px; }
}

.site-footer { flex: none; padding: 11px 20px; border-top: 1px solid #352b39; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--pink); }
.info-page { display: flex; flex-direction: column; min-height: 100vh; }
.info-header, .info-main { width: min(100%, 840px); margin-inline: auto; padding-inline: 22px; }
.info-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 24px; color: var(--pink); }
.info-header a:first-child { font-size: 22px; font-weight: 700; }
.info-main { flex: 1; padding-bottom: 32px; }
.info-card { padding: clamp(18px, 4vw, 34px); }
.info-card h1 { margin: 0 0 24px; font-size: clamp(26px, 5vw, 36px); }
.info-card h2 { margin: 25px 0 10px; }
.info-card p, .info-card li { line-height: 1.65; overflow-wrap: anywhere; }
.info-card a { color: var(--pink); text-decoration: underline; text-underline-offset: .16em; }
.info-page .site-footer nav { width: min(100%, 796px); margin-inline: auto; }

.ep { display: grid; place-items: center; }
.episode-guide { margin: 0 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: #1e1923; }
.episode-guide h2 { margin: 0 0 8px; font-size: 18px; }
.episode-guide p { margin: 0 0 8px; line-height: 1.55; }
.episode-guide a { color: var(--pink); font-size: 13px; text-decoration: underline; text-underline-offset: .15em; }
.rail-ad { min-height: 250px; min-width: 0; }
.rail-ad-left { width: min(160px, 100%); min-height: 600px; margin: auto auto 0; }

/* Original episode header ornament, no external image. */
.hero-picture::after{content:"";position:absolute;inset:18% 22%;border:1px solid #edafc270;border-radius:50% 50% 8px 8px;transform:rotate(-12deg);box-shadow:0 0 0 14px #edafc213,0 0 0 28px #edafc20b}.hero-picture::before{height:100%}.brand{max-width:100%;margin-left:8px;gap:9px;font-size:clamp(20px,2vw,26px)}

#editorial-notes[hidden], .insights .card[hidden] {display:none!important} .editorial-chips {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.editorial-chips button {border:1px solid #765067;border-radius:18px;padding:6px 12px;background:transparent;color:inherit;cursor:pointer}.editorial-chips button[aria-pressed=true]{background:#82435e;color:white}.editorial-note{padding:12px 14px;margin:8px 0;border:1px solid #765067;border-radius:10px}.editorial-note strong{color:#d69bb6;font-size:13px}.editorial-note p{margin:6px 0 0;line-height:1.6}
