/* Reuses guomi-v1 public theme tokens. */
html[data-guomi-public] .work-detail-screen {max-width:960px; margin:auto; padding:16px 18px calc(32px + env(safe-area-inset-bottom));}
html[data-guomi-public] .detail-topbar {padding:0 0 20px; display:flex; flex-wrap:wrap; align-items:center;}
html[data-guomi-public] .detail-home {min-height:44px; display:inline-flex; align-items:center; color:var(--ink); text-decoration:none; font-size:18px; font-weight:700;}
html[data-guomi-public] .detail-page-label {color:var(--muted); font-size:12px; margin-left:auto;}
html[data-guomi-public] .detail-hero {display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; margin-bottom:24px; align-items:start;}
html[data-guomi-public] .detail-cover {aspect-ratio:3/4; border-radius:12px; overflow:hidden; background:var(--panel-2); display:grid; place-items:center; color:var(--muted); text-align:center; font-size:14px;}
html[data-guomi-public] .detail-cover img {width:100%; height:100%; object-fit:cover;}
html[data-guomi-public] .detail-heading {min-width:0;}
html[data-guomi-public] .detail-heading h1 {font-size:24px; line-height:1.3; margin:8px 0 12px; overflow-wrap:anywhere;}
html[data-guomi-public] .detail-eyebrow {font-size:12px; color:var(--accent); margin:0;}
html[data-guomi-public] .detail-meta,html[data-guomi-public] .detail-section-head span {font-size:12px; line-height:1.6; color:var(--muted);}
html[data-guomi-public] .detail-availability {font-size:14px; line-height:1.5; color:var(--ink); background:var(--panel-2); border-radius:6px; padding:8px;}
html[data-guomi-public] .detail-section {margin:0 0 16px; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--panel);}
html[data-guomi-public] .detail-section h2 {font-size:16px; line-height:1.5; margin:0 0 12px;}
html[data-guomi-public] .detail-description,html[data-guomi-public] .detail-watch p,html[data-guomi-public] .detail-guide p {font-size:14px; line-height:1.7; margin:0 0 12px; overflow-wrap:anywhere;}
html[data-guomi-public] .detail-description {white-space:pre-line; margin-bottom:0;}
html[data-guomi-public] .detail-section-head {display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:baseline;}
html[data-guomi-public] :is(.detail-seasons,.detail-ranges) {display:flex; flex-wrap:wrap; gap:8px;}
html[data-guomi-public] :is(.detail-seasons,.detail-ranges) button,html[data-guomi-public] .detail-guide button,html[data-guomi-public] #detail-retry {min-width:64px; min-height:44px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--ink); padding:8px 12px; font:inherit; font-size:14px; cursor:pointer;}
html[data-guomi-public] :is(.detail-seasons,.detail-ranges) [aria-pressed=true] {color:var(--accent); border-color:var(--accent); background:var(--panel-2);}
html[data-guomi-public] :is(.detail-primary,.detail-secondary) {display:flex; min-height:48px; padding:10px 16px; box-sizing:border-box; align-items:center; justify-content:center; text-align:center; border-radius:8px; font-size:14px; font-weight:600; text-decoration:none; margin-top:12px;}
html[data-guomi-public] .detail-primary {background:var(--gm-action); color:#fff;}
html[data-guomi-public] .detail-secondary {border:1px solid var(--line); color:var(--ink); background:var(--panel-2);}
html[data-guomi-public] .detail-guide-link {display:flex; align-items:center; min-height:44px; color:var(--accent); font-size:14px; margin-top:4px;}
html[data-guomi-public] .detail-list-note {font-size:12px; line-height:1.6; color:var(--muted);}
html[data-guomi-public] .detail-ranges {margin-bottom:12px;}
html[data-guomi-public] .detail-episodes {display:grid; grid-template-columns:repeat(auto-fill,minmax(68px,1fr)); gap:8px;}
html[data-guomi-public] .detail-episode {padding:10px 4px; min-height:56px; box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--panel-2); text-decoration:none;}
html[data-guomi-public] .detail-episode strong {font-size:14px; font-weight:600;}
html[data-guomi-public] .detail-episode small {font-size:12px; color:var(--muted);}
html[data-guomi-public] .work-detail-screen [hidden] {display:none!important;}
@media(min-width:720px){html[data-guomi-public] .work-detail-screen{padding:24px 32px 40px}html[data-guomi-public] .detail-hero{grid-template-columns:168px minmax(0,1fr);gap:24px}html[data-guomi-public] .detail-heading h1{font-size:28px}html[data-guomi-public] .detail-section{padding:24px}}
@media(max-width:340px){html[data-guomi-public] .work-detail-screen{padding-left:16px;padding-right:16px}html[data-guomi-public] .detail-hero{grid-template-columns:96px minmax(0,1fr);gap:12px}html[data-guomi-public] .detail-page-label{display:none}}
html[data-guomi-public] .detail-preview video {display:block; width:100%; max-height:65vh; margin-top:12px; border-radius:8px; background:#000; color:#fff;}
html[data-guomi-public] .detail-preview p {font-size:14px; line-height:1.7; overflow-wrap:anywhere;}
html[data-guomi-public] [data-preview-episode] {border-color:var(--accent);}
html[data-guomi-public] [data-preview-episode] small {color:var(--accent);}
html[data-guomi-public] .work-detail-screen a:focus-visible,html[data-guomi-public] .work-detail-screen button:focus-visible {outline:2px solid var(--accent); outline-offset:3px;}
html[data-guomi-public] button.detail-episode {font:inherit; cursor:pointer;}
html[data-guomi-public] .detail-episode.is-current {border-color:var(--accent); color:var(--accent); background:var(--panel); box-shadow:inset 0 0 0 1px var(--accent);}
html[data-guomi-public] .detail-episode.is-locked {border-style:dashed;}
html[data-guomi-public] .detail-lock {width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; vertical-align:-1px;}
html[data-guomi-public] .detail-player-controls {display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px;}
html[data-guomi-public] .detail-player-controls .detail-secondary {min-width:76px; min-height:44px; margin:0; font:inherit; cursor:pointer;}
html[data-guomi-public] .detail-player-controls p {margin:0; text-align:center; font-size:13px;}
html[data-guomi-public] .detail-player-controls button:disabled {opacity:.45; cursor:default;}
