/* Home catalog, single-drama detail, poster preview and saved episode position. */
[data-screen="home"] {
  --sky: #0094c6;
  --action: #0077a2;
  --ink: #172a33;
  --muted: #526975;
  --line: #d8e5e9;
  --soft: #e8f5fa;
  --paper: #fcffff;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.5 "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
[data-screen="home"] :is(.shelf-head,.detail-head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  min-height: 51px;
  border-bottom: 1px solid var(--line);
}
[data-screen="home"] .wordmark {
  color: var(--ink);
  font: italic 750 25px/1 "Helvetica Neue",Arial,sans-serif;
  letter-spacing: -1.8px;
}
[data-screen="home"] .wordmark b, [data-screen="home"] .wordmark i { color: var(--sky); font: inherit; }
[data-screen="home"] .shelf-head > span:last-child { color: var(--muted); font-size: 13px; font-weight: 600; }
[data-screen="home"] .watch-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
[data-screen="home"] :is(.backlink,.shelf-head .secondary-link) {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
[data-screen="home"] .shelf { padding: 0 18px 16px; }
[data-screen="home"] .section-heading { display: flex; gap: 25px; align-items: stretch; margin: 0; min-height: 46px; }
[data-screen="home"] .section-heading h1, [data-screen="home"] .section-heading .secondary-link { display: inline-flex; align-items: center; border-bottom: 2px solid transparent; padding: 0 1px; font-weight: 650; line-height: 1.3; }
[data-screen="home"] .section-heading h1 { font-size: 15px; color: var(--action); border-color: var(--sky); }
[data-screen="home"] .section-heading .secondary-link { text-decoration: none; font-size: 13px; color: var(--muted); }
[data-screen="home"] .feature {
  isolation: isolate; display: flex; align-items: center; flex: none; margin-inline: -18px; padding: 18px;
  height: auto; min-height: clamp(194px,54cqw,240px); border-radius: 0; background: var(--sky); color: white;
}
[data-screen="home"] .feature::before { content: none; }
[data-screen="home"] .feature > img {
  height: 100%; width: 56%; inset: 0 0 0 auto; z-index: -1;
  clip-path: polygon(13% 0,100% 0,100% 100%,0 100%); object-fit: cover; object-position: center 43%;
}
[data-screen="home"] .hero-copy { position: static; width: 47%; }
[data-screen="home"] .hero-copy :is(h1,h2) {
  font: 660 clamp(27px,8.1cqw,39px)/1.01 Georgia, "Songti SC", serif;
  letter-spacing: -.055em; overflow-wrap: normal;
}
[data-screen="home"] .hero-copy p { font: 650 11px/1.55 "DM Sans", "PingFang SC", sans-serif; margin: 8px 0 0; }
[data-screen="home"] :is(.hero-action,.primary-action,.quiet-action) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 7px 14px; border-radius: 7px; font-size: 14px; line-height: 1.3; font-weight: 700;
}
[data-screen="home"] .hero-action { color: var(--ink); background: var(--paper); margin-top: 13px; }
[data-screen="home"] .hero-action::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent var(--action); }
[data-screen="home"] .section-title { display: flex; align-items: center; gap: 9px; font-size: 18px; letter-spacing: -.035em; }
[data-screen="home"] .shelf h2.section-title { margin: 17px 0 8px; }
[data-screen="home"] .series-list { display: grid; gap: 0; }
[data-screen="home"] .series-link, [data-screen="home"] .resume-link { gap: 12px; padding: 8px 0; min-height: 75px; border-bottom: 1px solid var(--line); }
[data-screen="home"] .series-link img { width: 41px; height: 58px; border-radius: 4px; }
[data-screen="home"] :is(.series-link,.resume-link) strong {
  font: 630 clamp(15px,4.25cqw,19px)/1.17 Georgia,"Songti SC",serif; letter-spacing: -.025em;
}
[data-screen="home"] :is(.series-link,.resume-link) small { margin-top: 4px; color: var(--muted); font-size: 11px; }
[data-screen="home"] :is(.series-link,.resume-link) > span:last-child { color: var(--action); font-size: 24px; font-weight: 400; }
[data-screen="home"] .resume-link { border: 0; background: var(--soft); border-radius: 7px; padding: 8px 10px; min-height: 66px; }
[data-screen="home"] .resume-link img { width: 37px; height: 50px; border-radius: 3px; }
[data-screen="home"] .resume-link small { color: var(--action); font-weight: 650; }
[data-screen="home"] .show-meta:has(+.resume-link) { margin: -3px 0 7px; font-size: 11px; }
[data-screen="home"][data-view="detail"] .feature { min-height: clamp(230px,62cqw,290px); }
[data-screen="home"][data-view="detail"] .feature:has(img[src*="waiting"]) h1,
[data-screen="home"][data-view="detail"] .feature:has(img[src*="advisor"]) h1 { font-size: clamp(24px,6.5cqw,31px); }
[data-screen="home"] .episode-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
[data-screen="home"] .episode-grid a { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font: 650 16px/1 "DM Sans",Arial,sans-serif; }
[data-screen="home"] .episode-grid .chosen { border: 1px solid var(--action); color: white; background: var(--action); }
[data-screen="home"] .player-note, [data-screen="home"] .show-meta { font-size: 13px; line-height: 1.6; color: var(--muted); }
[data-screen="home"] .player-note { padding-top: 14px; border-top: 1px solid var(--line); }
[data-screen="home"] .secondary-link { color: var(--action); font-size: 12px; }
[data-screen="home"] .episode-still {
  display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
  height: clamp(238px,48cqh,480px); margin-inline: -18px; border-radius: 0; background: var(--sky);
}
[data-screen="home"] .episode-still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; inset: 0; }
[data-screen="home"] .episode-still::before {
  inset: auto auto 0 0; width: 79%; height: 32%; min-height: 109px;
  background: var(--sky); clip-path: polygon(0 0,100% 0,92% 100%,0 100%);
}
[data-screen="home"] .episode-still .hero-copy {
  display: grid; align-content: center; gap: 5px; width: 71%; height: 32%; min-height: 109px; padding: 10px 0 10px 18px;
}
[data-screen="home"] .episode-still h1 { font-size: clamp(23px,6.7cqw,34px); }
[data-screen="home"] .episode-still:has(img[src*="waiting"]) h1,
[data-screen="home"] .episode-still:has(img[src*="advisor"]) h1 { font-size: clamp(18px,5.1cqw,25px); }
[data-screen="home"] .episode-still p { margin: 0; }
[data-screen="home"] .episode-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 14px 0 8px; }
[data-screen="home"] .primary-action { background: var(--action); color: white; }
[data-screen="home"] .quiet-action { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
[data-screen="home"] .episode-actions a:only-child { grid-column: 1 / -1; }
[data-screen="home"] .episode-actions + .secondary-link { display: inline-flex; align-items: center; min-height: 44px; }

[data-screen="home"] .episode-author { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
[data-screen="home"] .episode-author > img { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #d83995; padding: 2px; }
[data-screen="home"] .episode-author h2 { margin: 0; font-size: 20px; line-height: 1.3; }
[data-screen="home"] .episode-author small, [data-screen="home"] .episode-author span { font-size: 12px; color: var(--muted); }
[data-screen="home"] .episode-author + .show-meta { color: var(--ink); font-size: 15px; }
[data-screen="home"] .hero-copy :is(h1,h2) { text-wrap: balance; }
