:root{color-scheme:dark;--bg:#111112;--panel:#1d1d20;--ink:#f5f3f1;--muted:#afacb0;--accent:#ff4d69;--line:#ffffff1a;font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100dvh;gap:clamp(20px,6vw,110px)}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.3}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button[hidden],[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.desktop-brand{width:225px;align-self:stretch;padding:58px 0;display:flex;flex-direction:column}.wordmark{font-size:27px;font-weight:900;letter-spacing:-2px;display:flex;align-items:center;gap:5px}.wordmark span{font-weight:400;color:#ccc7c9}.wordmark i{width:8px;height:8px;background:var(--accent);border-radius:50%;margin:10px 0 0 4px}.desktop-brand>p:first-of-type{font-size:47px;line-height:1.55;letter-spacing:1px;font-weight:700;margin-top:auto;margin-bottom:20px}.brand-note{font-size:12px;letter-spacing:3px;color:#b9b5b8}.brand-note span{color:var(--accent);margin:0 8px}.desktop-tip{font-size:12px;color:#77747a;line-height:2.2;margin-top:90px}.phone{position:relative;width:min(100%,420px);height:min(900px,100vh);height:min(900px,100dvh);background:#080808;display:flex;flex-direction:column;isolation:isolate;overflow:hidden;flex-shrink:0}.topbar{z-index:4;position:absolute;top:0;width:100%;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 17px 0;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#050505d9,transparent)}.small-brand{font-weight:800;font-size:13px;letter-spacing:.5px}.top-title{font-size:16px;font-weight:700;margin-left:-10px;padding:14px 0;position:relative}.top-title:after{content:"";position:absolute;bottom:5px;left:calc(50% - 9px);width:18px;height:3px;border-radius:3px;background:var(--accent)}.icon{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px}.stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:pan-x;background:#060607}.poster,.stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.poster{object-fit:cover;opacity:.82}.stage video{z-index:1;object-fit:contain}.shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(0deg,#050507 0%,#050507cb 15%,transparent 48%,transparent 82%,#05050744)}.local-tag{position:absolute;top:77px;left:19px;font-size:10px;color:#ddd7dc;z-index:3;letter-spacing:1px;display:flex;align-items:center;gap:5px}.local-tag>span{width:4px;height:4px;background:var(--accent);border-radius:50%}.status{position:absolute;z-index:4;left:24px;right:24px;top:36%;text-align:center;font-size:12px;color:#e5dfe3;text-shadow:0 1px 7px #000}.stage[data-state=playing] .status{opacity:0}.retry{position:absolute;z-index:4;left:calc(50% - 60px);top:44%;padding:12px 20px;background:var(--accent);border-radius:24px}.side-actions{z-index:3;position:absolute;right:11px;bottom:189px;display:flex;flex-direction:column;gap:16px}.side-actions button{display:flex;align-items:center;flex-direction:column;gap:5px;min-height:50px;min-width:44px;font-size:10px;text-shadow:0 1px 5px #000}.side-actions svg{width:26px;height:26px;filter:drop-shadow(0 1px 3px #000)}#favorite[aria-pressed=true] svg{fill:var(--accent);stroke:var(--accent)}.caption{z-index:3;position:absolute;left:19px;right:70px;bottom:65px;pointer-events:none}.caption button{pointer-events:auto}.eyebrow{font-size:10px;font-weight:500;color:#ded4d9;letter-spacing:1.5px;margin-bottom:9px}.title-button{display:flex;align-items:center;gap:9px;max-width:100%;padding:0;text-align:left}.title-button h1{font-size:25px;line-height:1.3;margin:0;font-weight:800;letter-spacing:.4px}.title-button>span{font-size:24px;color:#c3bfc3}#summary{font-size:12px;color:#d9d3d8;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:9px 0 13px;max-width:100%}.episode-line{font-size:11px;display:flex;align-items:center;gap:9px;padding:0;min-height:44px;white-space:nowrap}.episode-line>span:nth-child(2){color:#bfb8c1;font-size:10px}.episode-line>span:last-child{color:#f9edf2;margin-left:5px}.transport{position:absolute;z-index:4;bottom:9px;left:9px;right:9px;height:44px;display:flex;align-items:center;gap:5px;color:#ddd8dc;font-size:10px;font-variant-numeric:tabular-nums}.transport>.icon{padding:6px}.transport svg{width:20px;height:20px}#seek{min-width:25px;width:100%;height:24px;accent-color:var(--accent);cursor:pointer;margin:0 4px}.bottom-nav{height:calc(64px + env(safe-area-inset-bottom));padding:3px 20px calc(3px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:#111113;border-top:1px solid #ffffff12;flex-shrink:0}.bottom-nav button{min-width:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;color:#8f8b92;font-size:10px}.bottom-nav button[aria-current]{color:#fff}.bottom-nav button[aria-current] svg{fill:#fff}.bottom-nav svg{height:21px;width:21px}.desktop-next{width:160px;display:flex;flex-direction:column;gap:13px}.index-mark{font-size:12px;letter-spacing:3px;color:#68646c}.desktop-next>p{font-size:20px;line-height:1.8;color:#b7b2ba;margin:15px 0 28px}.desktop-next button{border:1px solid var(--line);padding:13px 10px;border-radius:4px;color:#c8c2cc;font-size:12px;text-align:left}.desktop-next small{font-size:10px;color:#615d66;line-height:1.8;margin-top:40px}dialog{position:fixed;inset:auto 0 0;max-width:460px;width:100%;max-height:82vh;max-height:82dvh;margin:0 auto;padding:0;border:1px solid #ffffff12;border-radius:20px 20px 0 0;background:var(--panel);color:var(--ink);box-shadow:0 -10px 40px #0007}dialog::backdrop{background:#0008}.sheet-heading{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--panel);padding:16px 17px 5px;z-index:2}.sheet-heading h2{font-size:18px;margin:0}.sheet-heading .icon{font-size:28px;color:#aba5ae}#sheet-body{padding:10px 20px calc(22px + env(safe-area-inset-bottom));max-height:65vh;max-height:65dvh;overflow-y:auto}.sheet-note{font-size:11px;line-height:1.8;color:#a39ca8;margin:4px 0 16px}.episode-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.episode-grid button{min-height:44px;background:#2c2b30;border-radius:6px;font-size:12px}.episode-grid button[aria-current=true]{background:var(--accent);color:white}.library-card{display:flex;gap:15px;min-height:123px;width:100%;padding:14px 0;text-align:left;border-bottom:1px solid var(--line)}.library-card img{width:65px;height:91px;object-fit:cover;border-radius:5px;flex-shrink:0}.library-card h3{font-size:17px;margin:6px 0 8px}.library-card p{font-size:11px;color:#a8a1ad}.library-card small{font-size:10px;color:#e1d3de}#search-input{width:100%;height:44px;background:#29282e;border:1px solid #ffffff16;border-radius:9px;color:var(--ink);padding:0 13px;font:inherit;margin-bottom:10px}.about-copy{font-size:14px;line-height:1.9;color:#d2cad5}.about-poster{width:100%;max-height:230px;object-fit:contain;background:#111;border-radius:6px}.next-episode{width:100%;height:46px;background:var(--accent);border-radius:6px;margin-bottom:15px}.toast{position:fixed;z-index:20;left:50%;bottom:105px;transform:translateX(-50%);max-width:90vw;background:#333136f2;border:1px solid #ffffff18;color:white;padding:11px 17px;border-radius:7px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}.stage:fullscreen{width:100%;height:100%;background:black}.stage:fullscreen video{object-fit:contain}.stage:fullscreen .local-tag{top:20px}@media(min-width:900px){.phone{border-inline:1px solid #ffffff13}}@media(max-width:899px){.desktop-brand,.desktop-next{display:none}.phone{width:min(100%,480px);height:100vh;height:100dvh}body{min-height:100vh;min-height:100dvh;gap:0}}@media(max-width:350px){.caption{left:13px;right:58px;bottom:59px}.title-button h1{font-size:22px}.side-actions{right:5px;bottom:178px}.episode-line{gap:6px;font-size:10px}#summary{-webkit-line-clamp:1}.transport{gap:2px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(max-height:560px) and (orientation:landscape){.topbar{height:45px}.local-tag{top:50px}.caption{bottom:39px}.caption p{display:none}.side-actions{bottom:80px;gap:4px}.side-actions button{min-height:38px}.bottom-nav{height:45px}.transport{bottom:0}.phone{max-width:none;width:100%}.title-button h1{font-size:19px}}
:root:has(.stage.expanded){overflow:hidden}.stage.expanded{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:100;background:#000}.stage.expanded video{object-fit:contain}.stage.expanded .local-tag{top:20px}
:root .stage{overscroll-behavior:none}@media(max-height:560px) and (orientation:landscape){.caption #summary{display:none}}
.stage[data-state=ready] .poster{opacity:0}


.qa{max-width:860px;padding:32px;color:#eee;background:#151519;overflow-wrap:anywhere}.qa h1{font-size:24px}.qa pre{white-space:pre-wrap;line-height:1.7}

.stage[data-state=preparing] .poster,.stage[data-state=loading] .poster{z-index:2;opacity:1}

/* P9: native video fullscreen escapes the fixed portrait shell without cropping subtitles. */
#video:fullscreen{position:fixed;inset:0;margin:0;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none;max-height:none;object-fit:contain!important;background:#000;transform:none}
#video:-webkit-full-screen{position:fixed;inset:0;margin:0;width:100vw!important;height:100vh!important;max-width:none;max-height:none;object-fit:contain!important;background:#000;transform:none}
.stage.expanded{width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none}
.stage.expanded[data-fullscreen-content=landscape] .caption,.stage.expanded[data-fullscreen-content=landscape] .side-actions,.stage.expanded[data-fullscreen-content=landscape] .local-tag{display:none}
@media(max-height:560px) and (orientation:landscape){.desktop-brand,.desktop-next{display:none}body{gap:0}.phone{width:100%;max-width:none;height:100vh;height:100dvh}}
.stage:fullscreen{position:fixed;inset:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;flex:none}
.stage:fullscreen[data-fullscreen-content=landscape] .caption,.stage:fullscreen[data-fullscreen-content=landscape] .side-actions,.stage:fullscreen[data-fullscreen-content=landscape] .local-tag{display:none}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.top-title { margin-left: 0; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.top-actions .icon { width: 44px; height: 44px; display: grid; place-items: center; }
.page-menu { position: relative; }
.page-menu summary { cursor: pointer; list-style: none; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.page-menu[open] summary { background: #ffffff16; }
.page-menu summary::-webkit-details-marker { display: none; }
.page-menu a {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 124px;
  min-height: 44px;
  padding: 10px 14px;
  display: grid;
  align-items: center;
  color: #fff;
  background: #24242a;
  border: 1px solid #51515a;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.page-menu :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage { touch-action: pan-x; touch-action: pan-x pinch-zoom; }
.stage .poster { pointer-events: none; }
.swipe-help { display: none; }
@media (pointer: coarse) {
  .swipe-help {
    display: block;
    position: absolute;
    top: calc(65px + env(safe-area-inset-top));
    left: 17px;
    padding: 4px 8px;
    color: #fff;
    background: #111d;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
  }
  .stage.expanded .swipe-help, .stage:fullscreen .swipe-help { display: none; }
}
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .swipe-help { display: none; }
}

.stage[data-caption-hidden='true'] .caption:not(:focus-within) { visibility: hidden; }

/* Reuse the caption timer without hiding the playback buttons or moving the controls. */
.stage[data-caption-hidden='true'] .transport:not(:has(:focus-visible, #seek:active)) > :is(#time, #seek, #duration) {
  visibility: hidden;
}

.bottom-nav{padding-inline:12px}.bottom-nav button{min-width:44px}.member-work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.member-work-actions button{min-height:44px;border:1px solid #664859;border-radius:6px;padding:4px 9px}

#comments-side { min-height: 44px; }
@media (max-height: 560px) and (orientation: portrait) {
  .side-actions { bottom: 128px; gap: 4px; }
  .side-actions button { min-height: 44px; }
}

#sound {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  height: 44px;
  padding: 0 7px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

#sound svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

#sound[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
}

#sound[aria-pressed="false"] .sound-waves,
#sound[aria-pressed="true"] .sound-cross {
  display: none;
}

#sound:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#sound:disabled {
  opacity: .55;
}

@media (max-width: 600px) and (orientation: portrait) {
  .phone {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-inline: 0;
  }

  .topbar {
    height: calc(45px + env(safe-area-inset-top));
    padding-inline: max(17px, env(safe-area-inset-left)) max(17px, env(safe-area-inset-right));
  }

  .bottom-nav {
    height: calc(45px + env(safe-area-inset-bottom));
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }

  .stage:not(.expanded)[data-fullscreen-mode="none"] #video[data-shape="portrait"],
  .stage:not(.expanded):not([data-fullscreen-mode]) #video[data-shape="portrait"] {
    object-fit: cover;
    object-position: 50% 65%;
  }
}

.stage #video { opacity: 0; }
.stage #video[data-frame-ready] {
  opacity: 1;
  background: #060607;
}
.transport {
  font-size: 12px;
  font-weight: 600;
  color: #f5eef2;
}
.transport > .icon, .transport > output { flex: none; }
.transport #seek {
  flex: 1 1 0;
  width: auto;
  min-width: 40px;
  margin-inline: 2px;
  height: 44px;
}
@media (max-width: 600px), (max-width: 899px) and (pointer: coarse) {
  body {
    align-items: flex-start;
    min-height: 0;
  }
  .phone {
    --h5-default-height: 100vh;
    width: 100%;
    max-width: none;
    height: var(--h5-viewport-height, var(--h5-default-height));
  }
  @supports (height: 100dvh) { .phone { --h5-default-height: 100dvh; } }
}
#play-symbol .play-glyph { fill: currentColor; stroke: none; }
#play-symbol .pause-glyph { display: none; stroke-width: 2.5; }
.stage[data-state=playing] #play-symbol .play-glyph { display: none; }
.stage[data-state=playing] #play-symbol .pause-glyph { display: inline; }
