:root {
  color-scheme: dark;
  --page: #151019;
  --panel: #201823;
  --raised: #29202d;
  --line: #3c303f;
  --text: #f8f0f8;
  --dim: #bbaec1;
  --accent: #e9baff;
  --accent-ink: #25142e;
  --gold: #f3d0a1;
  --danger: #ffabb8;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(100% - 7.5rem, 1330px); margin-inline: auto; }
#main { flex: 1; padding-block: 28px 76px; outline: none; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); translate: 0 -150%; }
.skip-link:focus { translate: 0; }
.icon, [data-icon] { display: inline-grid; place-items: center; flex: none; }
.icon svg, [data-icon] svg { height: 1.15em; width: 1.15em; }

.topbar { border-bottom: 1px solid #322637; background: #19121d; }
.topbar-inner, .topbar-actions, .wordmark, .nav { display: flex; align-items: center; }
.topbar-inner { min-height: 72px; gap: 42px; }
.wordmark { gap: 10px; white-space: nowrap; font-size: 1.27rem; font-weight: 750; letter-spacing: -.04em; }
.wordmark img { flex: none; }
.wordmark-accent { color: var(--accent); }
.nav { align-self: stretch; gap: 27px; }
.nav a { display: grid; place-items: center; position: relative; color: var(--dim); white-space: nowrap; font-size: .91rem; }
.nav a:hover, .nav [aria-current="page"] { color: var(--text); }
.nav [aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }
.topbar-actions { gap: 12px; margin-left: auto; }
.search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #221a26; padding: 0 11px; min-height: 40px; }
.search:focus-within { border-color: var(--accent); }
.search input { width: 132px; min-width: 0; outline: none; color: var(--text); background: transparent; border: 0; font-size: .875rem; }
.search input::placeholder { color: var(--dim); }
.search button { padding: 0; border: 0; background: transparent; color: var(--dim); }
.vip-button, .account-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: .875rem; white-space: nowrap; }
.vip-button { color: var(--gold); border-color: #614734; background: #30231f; }
.vip-button:hover { background: #3b2a24; }
.account-button:hover, .icon-button:hover { background: var(--raised); }
.mobile-search { display: none; }

.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: clamp(400px, 35vw, 488px); overflow: hidden; border: 1px solid #423044; border-radius: 20px; background: #251921; }
.hero-art { position: absolute; z-index: -2; inset: -6px 0 0; width: 100%; height: calc(100% + 6px); object-fit: cover; object-position: 72% 45%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1f1321 3%, #1f1321f5 25%, #1f1321b8 44%, transparent 75%), linear-gradient(0deg, #1a101bcc, transparent 36%); }
.hero-content { padding: clamp(28px, 4.2vw, 66px); width: min(100%, 738px); }
.featured-label { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 11px; border: 1px solid #e9baff4a; border-radius: 6px; color: #eed0fc; background: #432c4bbf; font-size: .82rem; font-weight: 700; }
.featured-label .icon { font-size: .77rem; }
.hero h1 { margin: 16px 0 4px; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.047em; text-wrap: balance; }
.hero .description { max-width: 43ch; margin-top: 18px; color: #e0d2de; line-height: 1.65; }
.hero .tags { margin-top: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 3px 9px; border-radius: 5px; background: #f2d7ff14; color: #e2d1e5; font-size: .78rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--text); font-size: .92rem; font-weight: 700; }
.button:hover { background: #392b40; }
.button-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.button-primary:hover { background: #f3d1ff; }
.button-quiet { background: #251a2ae0; border-color: #69536b; }
.button[aria-pressed="true"] { color: var(--accent); border-color: #a17dad; }

.section { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.section-head h2, .page-title { line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.section-head h2 { font-size: 1.52rem; }
.section-head p { margin-top: 6px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; justify-content: center; padding: 6px 13px; min-height: 36px; color: var(--dim); border: 1px solid var(--line); border-radius: 8px; font-size: .87rem; }
.chip:hover { color: var(--text); }
.chip[aria-current="true"] { color: var(--accent); border-color: #684b75; background: #35243d; }
.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.subhead h2, .subhead h3 { font-size: 1.04rem; }
.subhead a, .text-link { color: var(--accent); font-size: .9rem; }
.subhead a:hover, .text-link:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.card { display: block; min-width: 0; border-radius: 11px; }
.cover { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid #554255; border-radius: 11px; background: var(--panel); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 170ms ease; }
.card[href]:hover .cover img { transform: scale(1.04); }
.card[href]:hover .card-title { color: var(--accent); }
.cover-label { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 5px; background: #1b101ceb; color: #f6dafb; font-size: .75rem; font-weight: 700; }
.card-title { display: -webkit-box; margin-top: 9px; min-height: 2.55em; font-size: .95rem; font-weight: 700; line-height: 1.28; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: block; margin-top: 2px; color: var(--dim); font-size: .82rem; }
.catalog-page, .prose-page { padding-top: 15px; }
.page-title { font-size: clamp(1.85rem, 4vw, 2.9rem); }
.catalog-page .search { width: min(100%, 310px); }
.catalog-page .search input { flex: 1; width: 100%; }
.catalog-page .chips { margin-block: 24px 16px; }
.result-count { color: var(--dim); margin-bottom: 15px; font-size: .88rem; }
.empty { padding: 36px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: center; color: var(--dim); }
.empty p { margin-bottom: 12px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--dim); font-size: .9rem; }
.back-link:hover { color: var(--text); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .49fr); gap: 22px; align-items: start; }
.stage { isolation: isolate; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #100c14; }
.stage-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: blur(30px); transform: scale(1.08); }
.stage::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#110e16a6, #110e1666 38%, #110e16c4); }
.stage-bar { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; background: #120f17b8; color: var(--dim); font-size: .88rem; }
.stage-bar strong { color: var(--text); }
.stage-center { min-width: 0; display: grid; place-items: center; padding: 0 12px 13px; min-height: 390px; }
.stage video { height: clamp(400px, 62vh, 610px); width: auto; aspect-ratio: 9 / 16; background: #100c14; object-fit: contain; }
.stage-message { color: var(--dim); text-align: center; padding: 36px 16px; }
.stage-message h2 { color: var(--text); font-size: 1.12rem; margin-bottom: 8px; }
.stage-message .button { margin-top: 18px; }
.media-error { margin: 10px 0; color: var(--danger); }
.watch-panel { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.watch-panel h1 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.2; margin-bottom: 7px; letter-spacing: -.025em; }
.watch-panel .description { margin: 18px 0; color: #ded0df; }
.watch-panel .tags { margin-top: 14px; }
.episode-block { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.episode-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.episode-header h2 { font-size: 1rem; }
.episode-header span { color: var(--dim); font-size: .81rem; }
.episode-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.episode { min-height: 41px; display: grid; place-items: center; position: relative; border: 1px solid #493c4e; border-radius: 7px; font-size: .875rem; }
.episode:hover, .episode[aria-current="page"] { color: var(--accent); border-color: #886295; background: #3a2843; }
.episode-locked { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; background: #271d29; color: var(--dim); }
.episode-locked .icon { color: var(--gold); font-size: .8rem; }
.episode[data-premium]::after { content: "VIP"; color: var(--gold); position: absolute; top: 1px; right: 2px; font-size: .51rem; }
.policy-layout { display: grid; grid-template-columns: minmax(205px, .34fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); max-width: 1050px; align-items: start; margin: 24px auto 0; }
.policy-sidebar { padding: 18px 14px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.policy-sidebar h2 { margin: 0 8px 10px; font-size: 1rem; }
.policy-sidebar nav { display: grid; gap: 3px; }
.policy-sidebar a { padding: 7px 8px; border-radius: 6px; color: var(--dim); font-size: .88rem; }
.policy-sidebar a:hover, .policy-sidebar [aria-current="page"] { background: #35243d; color: var(--accent); }
.prose-page { min-width: 0; line-height: 1.65; }
.prose-page h2 { margin: 27px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.prose-page .policy-intro { margin-top: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.prose-page p, .prose-page dd, .prose-page li { color: #d4c7d8; }
.prose-page p { margin-top: 10px; overflow-wrap: anywhere; }
.prose-page ul { padding-left: 1.25em; }
.prose-page li + li { margin-top: 7px; }
.prose-page a, .footer-company a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.prose-page .button { margin-top: 15px; }
.company-details { background: var(--panel); border: 1px solid var(--line); margin: 14px 0 0; padding: 3px 16px; border-radius: 12px; }
.company-details div { display: grid; grid-template-columns: minmax(125px, .42fr) minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.company-details div + div { border-top: 1px solid var(--line); }
.company-details dt { font-weight: 650; }
.company-details dd { margin: 0; overflow-wrap: anywhere; }
.company-details address { font-style: normal; }
.policy-table { width: 100%; margin-top: 18px; border-collapse: collapse; text-align: left; font-size: .91rem; }
.policy-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.policy-table :is(th, td) { padding: 9px 11px; border: 1px solid var(--line); }
.policy-table thead { background: var(--panel); }

.footer { border-top: 1px solid #322637; background: #18121c; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; min-height: 74px; padding-block: 15px; }
.footer-logo { font-size: 1.1rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 19px; color: #d2c5d7; font-size: .88rem; }
.footer nav a:hover, .footer nav [aria-current="page"] { color: var(--accent); }
.footer-company { display: flex; flex-wrap: wrap; gap: 5px 18px; justify-content: space-between; padding: 12px 0 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; overflow-wrap: anywhere; }
.noscript { padding-block: 14px; color: var(--dim); }

dialog { width: min(100% - 24px, 448px); max-height: calc(100dvh - 24px); padding: 29px; background: var(--panel); border: 1px solid #514052; border-radius: 19px; color: var(--text); box-shadow: 0 22px 72px #0a050ba6; }
dialog::backdrop { background: #100b16bb; backdrop-filter: blur(4px); }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { padding-right: 33px; font-size: 1.54rem; line-height: 1.3; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 34px; min-height: 34px; padding: 0; color: var(--dim); }
.dialog-copy { margin-top: 7px; color: var(--dim); font-size: .9rem; }
.dialog-form { display: grid; gap: 13px; margin-top: 20px; }
.dialog-form label { display: grid; gap: 6px; font-size: .875rem; }
.dialog-form input:not([type="radio"]) { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--text); border: 1px solid #59495f; border-radius: 8px; background: #17121b; }
.dialog-form .button { width: 100%; }
.form-error { color: var(--danger); font-size: .875rem; }
.dialog-switch { display: flex; flex-wrap: wrap; gap: 3px 7px; margin-top: 14px; color: var(--dim); font-size: .9rem; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 0; text-align: left; }
.text-button:hover { text-decoration: underline; }
.membership-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #6e503a; border-radius: 11px; background: #3a2923; color: var(--gold); margin-bottom: 13px; font-size: 1.25rem; }
.plan-list { display: grid; border: 0; padding: 0; margin: 0; gap: 8px; }
.plan-list legend { padding: 0; margin-bottom: 6px; color: var(--dim); font-size: .87rem; }
.plan-list label { display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 9px 12px; border: 1px solid #5b4a60; border-radius: 9px; cursor: pointer; }
.plan-list label:has(:checked) { border-color: #be94cf; background: #34243b; }
.plan-list input { accent-color: var(--accent); margin: 0; }
.plan-list strong { margin-left: auto; color: var(--gold); white-space: nowrap; }
.toast { position: fixed; z-index: 3; right: 24px; bottom: 24px; max-width: calc(100vw - 48px); border: 1px solid #715b7b; background: #35283b; color: var(--text); padding: 11px 15px; border-radius: 9px; box-shadow: 0 12px 32px #0006; }

@media (max-width: 1120px) {
  .frame { width: calc(100% - 3.75rem); }
  .topbar-inner { gap: 25px; }
  .nav { gap: 17px; }
  .search input { width: 105px; }
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .topbar-actions { gap: 8px; }
  .topbar-actions .search { display: none; }
  .mobile-search { display: inline-flex; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .watch-layout { grid-template-columns: 1fr; }
  .stage-center { min-height: 330px; }
  .watch-panel { max-width: none; }
  .policy-layout { display: block; margin: 12px auto 0; }
  .policy-sidebar { display: none; }
}
@media (max-width: 620px) {
  .frame { width: calc(100% - 28px); }
  #main { padding-block: 14px 52px; }
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; }
  .topbar-inner .wordmark, .topbar-actions { margin-block: 10px 4px; }
  .wordmark { font-size: 1.1rem; }
  .topbar-inner .wordmark img { width: 30px; height: 30px; }
  .nav { grid-row: 2; grid-column: 1 / -1; height: 35px; gap: 25px; }
  .nav a { font-size: .86rem; }
  .topbar-actions .icon-button, .vip-button, .account-button { min-height: 34px; padding-inline: 8px; font-size: .82rem; }
  .topbar-actions .mobile-search { display: none; }
  .hero { align-items: flex-end; min-height: 438px; border-radius: 15px; }
  .hero-art { height: calc(70% + 6px); object-position: 100% 35%; }
  .hero::after { background: linear-gradient(0deg, #211524 26%, #211524f2 45%, #21152431 82%); }
  .hero-content { padding: 22px 18px; }
  .hero h1 { font-size: clamp(2rem, 8.35vw, 3rem); margin-top: 10px; }
  .hero .description { font-size: .88rem; margin-top: 10px; }
  .hero .tags { margin-top: 10px; }
  .hero-actions { margin-top: 15px; gap: 8px; }
  .hero-actions .button { min-height: 41px; padding-inline: 10px; font-size: .875rem; }
  .section { margin-top: 27px; }
  .section-head { gap: 13px; margin-bottom: 16px; }
  .section-head h2 { font-size: 1.35rem; }
  .chips { gap: 5px; }
  .chip { min-height: 32px; padding: 5px 8px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 9px; }
  .card-title { font-size: .83rem; margin-top: 7px; }
  .card-meta { font-size: .75rem; }
  .cover-label { top: 5px; left: 5px; font-size: .65rem; }
  .watch-layout { gap: 12px; }
  .watch-panel { padding: 16px; }
  .stage video { height: auto; max-height: 60vh; width: min(100%, 310px); }
  .stage-center { min-height: 270px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer nav { gap: 8px 14px; }
  .company-details div { grid-template-columns: 1fr; gap: 3px; }
  .policy-table :is(th, td) { padding-inline: 6px; }
  dialog { padding: 23px 18px; }
}
@media (max-width: 360px) {
  .topbar-actions :is([data-icon], .icon) { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
