/* 银色幕布电影院 · 日剧栏。沿用站点配色：底 #141414 / 面板 #1f1f1f / 唯一强调色 #e50914（站点 --accent） */
body.jd-on #app { display: none !important; }
body.jd-lock { overflow: hidden; }
#jdrama-app { --jd-accent: var(--accent, #e50914); --jd-bg: #141414; --jd-panel: #1f1f1f; --jd-line: rgba(255,255,255,.1); --jd-sub: #b3b3b3; }
.jd-root { min-height: 100vh; background: var(--jd-bg); color: #fff; padding-bottom: 40px; }

/* 顶栏 */
.jd-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1500; display: flex; align-items: center; gap: 28px;
  padding: 14px 4%; background: linear-gradient(to bottom, rgba(0,0,0,.85), transparent); transition: background .3s; }
.jd-nav.scrolled { background: #141414; box-shadow: 0 4px 20px rgba(0,0,0,.6); }
.jd-brand { font-size: 24px; font-weight: 800; color: var(--jd-accent); text-decoration: none; letter-spacing: 1px; white-space: nowrap; }
.jd-brand:hover { color: var(--jd-accent); }
.jd-tabs { display: flex; gap: 20px; }
.jd-tabs a { color: #ccc; text-decoration: none; font-size: 15px; white-space: nowrap; }
.jd-tabs a:hover { color: #fff; }
.jd-tabs a.on { color: #fff; font-weight: 700; }
.jd-count { display: inline-block; margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--jd-accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.jd-loading, .jd-error, .jd-empty { padding: 140px 5% 40px; color: var(--jd-sub); text-align: center; }
.jd-empty { padding-top: 30px; }
.jd-empty a { color: #fff; }

/* 按钮：实色，只有「订阅」用强调色 */
.jd-btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 4px; padding: 10px 22px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, transform .15s; white-space: nowrap; }
.jd-btn:hover { filter: brightness(1.12); }
.jd-btn:active { transform: scale(.97); }
.jd-btn:disabled { opacity: .6; cursor: default; }
.jd-btn-sub { background: var(--jd-accent); color: #fff; }
.jd-btn-sub:hover { color: #fff; }
.jd-btn-more { background: #3a3a3a; color: #fff; }
.jd-btn-more:hover { color: #fff; }
.jd-btn-subbed { background: #2a2a2a; color: #fff; box-shadow: inset 0 0 0 1px #555; }
.jd-btn-subbed i { color: var(--jd-accent); }
.jd-btn-sm { padding: 6px 12px; font-size: 13px; }

/* 大图轮播 */
.jd-hero { position: relative; height: min(80vh, 760px); min-height: 460px; overflow: hidden; background: #000; }
.jd-hero-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.jd-hero-track::-webkit-scrollbar { display: none; }
.jd-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.jd-slide-img { position: absolute; inset: 0; }
.jd-slide-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; user-select: none; }
.jd-slide-shade { position: absolute; inset: 0; background: linear-gradient(to top, #141414 0%, rgba(20,20,20,.0) 45%), linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.jd-slide-body { position: absolute; left: 5%; bottom: 14%; max-width: 620px; padding-right: 5%; }
.jd-kicker { display: inline-block; font-size: 12px; color: #ddd; letter-spacing: 1px; margin-bottom: 12px; padding: 3px 10px; border-radius: 3px; background: rgba(255,255,255,.14); }
.jd-title-zh { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 900; line-height: 1.1; margin: 0 0 8px; text-shadow: 2px 2px 10px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-title-ja { font-size: clamp(.9rem, 1.4vw, 1.15rem); color: #ddd; margin-bottom: 14px; text-shadow: 1px 1px 3px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-detail-kv-body .jd-title-zh { -webkit-line-clamp: 3; }
.jd-detail-kv-body .jd-title-ja { white-space: normal; }
.jd-tagline { font-size: 1.1rem; color: #eee; margin: 0 0 8px; text-shadow: 1px 1px 3px rgba(0,0,0,.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-air { font-size: .95rem; color: var(--jd-sub); margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.jd-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 72px; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; cursor: pointer; opacity: 0; transition: opacity .2s; z-index: 3; }
.jd-hero:hover .jd-hero-arrow { opacity: 1; }
.jd-hero-arrow.left { left: 0; border-radius: 0 4px 4px 0; }
.jd-hero-arrow.right { right: 0; border-radius: 4px 0 0 4px; }
.jd-hero-count { position: absolute; right: 4%; bottom: 14%; font-size: 13px; color: #ccc; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 3px; z-index: 3; }
.jd-hero-bar { position: absolute; left: 5%; right: 5%; bottom: 7%; height: 2px; background: rgba(255,255,255,.18); z-index: 3; }
.jd-hero-bar div { height: 100%; background: var(--jd-accent); transition: width .4s; }

/* 按季横向栏 */
.jd-row { padding: 0 4%; margin-top: 18px; position: relative; z-index: 4; }
.jd-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.jd-row-head h3 { font-size: 1.3rem; font-weight: 700; margin: 0; }
.jd-row-head h3 span { font-size: .85rem; color: var(--jd-sub); font-weight: 400; margin-left: 8px; }
.jd-row-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #444; background: #222; color: #ddd; margin-left: 6px; cursor: pointer; }
.jd-row-nav button:hover { background: #333; color: #fff; }
.jd-row-track { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: 6px 0 14px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.jd-card { flex: 0 0 260px; scroll-snap-align: start; cursor: pointer; }
.jd-card-img { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #222; border: 1px solid var(--jd-line); transition: transform .25s, box-shadow .25s; }
.jd-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: center center; display: block; user-select: none; }
.jd-card:hover .jd-card-img { transform: scale(1.04); box-shadow: 0 8px 22px rgba(0,0,0,.6); }
.jd-card-sub { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--jd-accent); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.jd-card-zh { margin-top: 7px; font-size: 14px; font-weight: 600; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-card-meta { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-foot-note { padding: 20px 4% 0; font-size: 12px; color: #666; }

/* 我的订阅 */
.jd-subs { padding: 90px 4% 20px; max-width: 980px; margin: 0 auto; }
.jd-subs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.jd-subs-head h2 { margin: 0; font-size: 1.6rem; font-weight: 800; }
.jd-subs-head h2 span { font-size: .9rem; color: var(--jd-sub); font-weight: 400; margin-left: 8px; }
.jd-subs-list { display: flex; flex-direction: column; gap: 10px; }
.jd-subs-item { display: flex; align-items: center; gap: 14px; background: var(--jd-panel); border: 1px solid var(--jd-line); border-radius: 6px; padding: 10px; }
.jd-subs-item img { width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; cursor: pointer; flex-shrink: 0; }
.jd-subs-text { flex: 1; min-width: 0; cursor: pointer; }
.jd-toast-inline { background: #2a2a2a; border-left: 3px solid var(--jd-accent); padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.jd-plain { margin-top: 16px; color: var(--jd-sub); font-size: 13px; }
.jd-plain summary { cursor: pointer; }
.jd-plain textarea { width: 100%; margin-top: 8px; background: #111; color: #ddd; border: 1px solid #333; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 8px; }

/* 详情 */
.jd-detail { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.72); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 40px 0; }
.jd-detail-box { position: relative; max-width: 920px; margin: 0 auto; background: #181818; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 50px rgba(0,0,0,.8); }
.jd-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: none; background: #181818; color: #fff; font-size: 18px; cursor: pointer; }
.jd-detail-kv { position: relative; aspect-ratio: 16/9; background: #000; }
.jd-detail-kv img { width: 100%; height: 100%; object-fit: cover; }
.jd-detail-kv-shade { position: absolute; inset: 0; background: linear-gradient(to top, #181818 0%, rgba(24,24,24,.5) 30%, transparent 60%); }
.jd-detail-kv-body { position: absolute; left: 5%; right: 5%; bottom: 6%; }
.jd-detail-kv-body .jd-title-zh { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.jd-detail-main { padding: 6px 5% 34px; }
.jd-meta-line { display: flex; flex-wrap: wrap; gap: 6px 0; color: #ddd; font-size: 15px; }
.jd-meta-line span + span::before { content: "·"; margin: 0 10px; color: #777; }
.jd-oneliner { font-size: 1.15rem; margin: 12px 0 4px; color: #fff; font-weight: 600; }
.jd-detail-main section { margin-top: 26px; }
.jd-detail-main h4 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--jd-accent); }
.jd-detail-main h4 small { font-size: .8rem; color: #888; font-weight: 400; margin-left: 8px; }
.jd-text { color: #d6d6d6; line-height: 1.8; font-size: 15px; margin: 0 0 8px; }
.jd-ja { color: #bdbdbd; font-size: 14px; }
.jd-pre { white-space: pre-line; }
.jd-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.jd-cast-item { background: var(--jd-panel); border: 1px solid var(--jd-line); border-radius: 6px; padding: 10px 12px; }
.jd-cast-actor { font-weight: 700; font-size: 15px; }
.jd-cast-role { font-size: 13px; color: #ccc; margin-top: 2px; }
.jd-cast-desc { font-size: 12px; color: #8f8f8f; margin-top: 6px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.jd-staff { display: grid; grid-template-columns: 70px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.jd-staff dt { color: #888; font-weight: 400; }
.jd-staff dd { margin: 0; color: #ddd; }
.jd-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.jd-links-note { width: 100%; font-size: 12px; color: #777; }

.jd-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2500; background: #2a2a2a; color: #fff; border-left: 3px solid var(--jd-accent); padding: 10px 18px; border-radius: 4px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.6); max-width: 90vw; }

/* 首页入口卡（片库文件夹那一栏） */
.jd-entry-badge { background: var(--accent, #e50914) !important; color: #fff !important; border: none !important; }
.btn-nav-jdrama { text-decoration: none; margin-left: 8px; }

/* 手机 */
@media (max-width: 768px) {
  .jd-nav { gap: 14px; padding: 12px 4%; }
  .jd-brand { font-size: 17px; }
  .jd-tabs { gap: 14px; }
  .jd-tabs a { font-size: 14px; }
  /* 2026-10-24 heronav：hero 从顶栏下方起画，KV 图内标题不再压导航字 */
  .jd-hero {
    height: auto;
    min-height: 0;
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    background: #141414;
  }
  .jd-hero-track { height: auto; }
  .jd-slide { height: auto; display: flex; flex-direction: column; }
  .jd-slide-img { position: relative; inset: auto; height: calc(100vw / 1.6); overflow: hidden; flex: 0 0 auto; }
  .jd-slide-img img { position: absolute; inset: 0; }
  .jd-kicker { align-self: flex-start; }
  .jd-slide-shade { background: linear-gradient(to top, #141414 0%, transparent 55%); height: calc(100vw / 1.6); }
  .jd-hero-track { align-items: stretch; }
  .jd-slide-body { position: relative; left: 0; bottom: 0; padding: 0 5% 4px; max-width: none; margin-top: -48px; flex: 1; display: flex; flex-direction: column; }
  .jd-slide-body .jd-btns { margin-top: auto; }
  .jd-title-zh { font-size: 1.9rem; }
  .jd-kicker { margin-bottom: 8px; }
  .jd-tagline { font-size: .98rem; }
  .jd-air { font-size: .85rem; margin-bottom: 14px; }
  .jd-btns .jd-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 15px; }
  .jd-hero-arrow { display: none; }
  .jd-hero-count { top: calc(100vw / 1.6 - 34px); bottom: auto; }
  .jd-hero-bar { position: relative; left: auto; right: auto; bottom: auto; margin: 10px 5% 0; }
  .jd-row-nav { display: none; }
  .jd-card { flex-basis: 44vw; }
  .jd-row-head h3 { font-size: 1.1rem; }
  .jd-detail { padding: 0; background: #181818; }
  .jd-detail-box { border-radius: 0; min-height: 100vh; box-shadow: none; }
  .jd-meta-line { font-size: 13px; }
  .jd-cast { grid-template-columns: 1fr; }
  .jd-subs-item img { width: 110px; }
  .jd-subs { padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
}

/* 分集（2026-10-21）：有文件=亮，没文件=灰「暂未入库」；播放键白底（Netflix 式），不新增颜色 */
.jd-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.jd-ep-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 5px; border: 1px solid #2c2c2c; background: #1c1c1c; color: #6f6f6f; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.jd-ep-btn:hover { border-color: #444; }
.jd-ep-btn .jd-ep-no { font-size: 15px; font-weight: 700; }
.jd-ep-btn .jd-ep-sub { font-size: 11px; }
.jd-ep-btn.has { background: #2f2f2f; border-color: #4a4a4a; color: #fff; }
.jd-ep-btn.has:hover { background: #3a3a3a; border-color: #777; }
.jd-ep-btn.has .jd-ep-sub { color: #cfcfcf; }
.jd-ep-btn.has .jd-ep-sub i { color: var(--jd-accent); font-size: 9px; margin-right: 2px; }
.jd-eps-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: #777; }
.jd-eps-note a { color: #aaa; text-decoration: underline; }
.jd-eps-note a.off { pointer-events: none; opacity: .6; }
.jd-muted { color: #888; }

.jd-ep-top { position: absolute; top: 14px; left: 14px; right: 64px; z-index: 5; }
.jd-ep-back { max-width: 100%; border: none; border-radius: 19px; background: rgba(24,24,24,.85); color: #fff; padding: 8px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-ep-player { position: relative; aspect-ratio: 16/9; background: #000; }
.jd-ep-stage { position: absolute; inset: 0; }
.jd-ep-poster { position: absolute; inset: 0; }
.jd-ep-poster img { width: 100%; height: 100%; object-fit: cover; }
.jd-ep-poster-shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.jd-ep-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.45); color: #fff; font-size: 28px; cursor: pointer; padding-left: 6px; }
.jd-ep-bigplay:hover { background: rgba(0,0,0,.65); }
.jd-ep-missing { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 8px 18px; border-radius: 4px; background: rgba(30,30,30,.85); color: #9a9a9a; font-size: 15px; }
.jd-ep-kicker { margin-top: 16px; font-size: 13px; color: var(--jd-sub); letter-spacing: 1px; }
.jd-ep-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 4px 0 2px; }
.jd-ep-title-ja { color: #bbb; font-size: 14px; margin-bottom: 8px; }
.jd-ep-btns { margin-top: 16px; }
.jd-btn-play { background: #fff; color: #000; }
.jd-btn-play:hover { color: #000; }
.jd-btn-none { background: #2a2a2a; color: #777; }
.jd-btn-none:disabled { opacity: 1; }
.jd-ep-status { margin-top: 10px; font-size: 13px; color: var(--jd-sub); }
.jd-ep-file { margin-top: 18px; font-size: 12px; color: #6f6f6f; word-break: break-all; }
.jd-ep-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
@media (max-width: 768px) {
  .jd-eps { grid-template-columns: repeat(3, 1fr); }
  .jd-ep-btn { padding: 9px 10px; }
  .jd-ep-btns .jd-btn { flex: 1; justify-content: center; }
  .jd-ep-top { top: 10px; left: 10px; }
}

/* 2026-10-21 热度上升角标：只用站点唯一强调色做实色底 */
.jd-rise { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 3px; background: var(--jd-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .5px; box-shadow: 0 2px 6px rgba(0,0,0,.5); white-space: nowrap; }
.jd-rise i { font-size: 10px; }
.jd-kicker-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.jd-kicker-line .jd-kicker { margin-bottom: 0; }
.jd-rise.jd-rise-hero { position: static; font-size: 12px; padding: 3px 10px; line-height: 18px; }
.jd-row-subs { margin-top: 22px; }

/* 2026-10-21 split1：单集页播放器放大——电脑最宽 1280px（近满屏 16:9），手机全宽 */
.jd-detail-box.jd-detail-box-ep { max-width: 1280px; width: calc(100% - 48px); }
.jd-detail-box-ep .jd-ep-player { width: 100%; aspect-ratio: 16/9; }
.jd-detail-box-ep .jd-ep-stage movi-player, .jd-detail-box-ep .jd-ep-stage video { width: 100% !important; height: 100% !important; display: block; }
.jd-detail-box-ep .jd-detail-main { max-width: 1040px; }
@media (min-width: 769px) { .jd-detail:has(.jd-detail-box-ep) { padding: 24px 0; } .jd-detail-box-ep .jd-ep-bigplay { width: 96px; height: 96px; font-size: 36px; } }
@media (max-width: 768px) { .jd-detail-box.jd-detail-box-ep { width: 100%; max-width: none; } }

/* 2026-10-21 epcards：分集改大卡片（16:9 剧照 + 居中大播放键；暂未入库灰掉、不能点）。电脑 3–4 个一排，手机 2 个一排、窄屏 1 个 */
.jd-epcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 14px; }
.jd-epc { position: relative; border-radius: 6px; overflow: hidden; background: #1f1f1f; outline: none; user-select: none; }
.jd-epc.has { cursor: pointer; }
.jd-epc-img { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.jd-epc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.jd-epc-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.05) 100%); }
.jd-epc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.5); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; padding-left: 4px; transition: background .15s, transform .15s; }
.jd-epc.has:hover .jd-epc-img img, .jd-epc.has:focus-visible .jd-epc-img img { transform: scale(1.04); }
.jd-epc.has:hover .jd-epc-play, .jd-epc.has:focus-visible .jd-epc-play { background: var(--jd-accent); border-color: var(--jd-accent); transform: translate(-50%,-50%) scale(1.06); }
.jd-epc.has:focus-visible { box-shadow: 0 0 0 2px #fff; }
.jd-epc-body { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 12px 11px; }
.jd-epc-no { font-size: 16px; font-weight: 800; color: #fff; }
.jd-epc-st { font-size: 13px; color: #cfcfcf; white-space: nowrap; }
.jd-epc-st i { color: var(--jd-accent); margin-right: 3px; }
.jd-epc.off { cursor: default; pointer-events: none; }
.jd-epc.off .jd-epc-img img { filter: grayscale(1) brightness(.45); }
.jd-epc.off .jd-epc-shade { background: rgba(0,0,0,.25); }
.jd-epc.off .jd-epc-no, .jd-epc.off .jd-epc-st { color: #6f6f6f; }
@media (max-width: 768px) {
  .jd-epcards { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .jd-epc-play { width: 48px; height: 48px; font-size: 18px; }
  .jd-epc-body { padding: 7px 9px 9px; flex-direction: column; gap: 1px; }
  .jd-epc-no { font-size: 15px; }
  .jd-epc-st { font-size: 12px; }
}
@media (max-width: 340px) { .jd-epcards { grid-template-columns: 1fr; } }

/* 2026-10-21 我的订阅：立即生成 */
.jd-subs-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.jd-subs-btns .jd-btn[disabled] { opacity: .5; cursor: default; }
.jd-subs-auto { font-size: 13px; margin: -6px 0 12px; }


/* ==== 2026-10-24 summer+UI：筛选/全季列表/安全区/横卡加固 ==== */
.jd-toolbar { padding: 12px 4% 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; z-index: 5; }
.jd-search { flex: 1 1 220px; min-width: 160px; max-width: 420px; display: flex; align-items: center; gap: 8px; background: #1f1f1f; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 8px 12px; }
.jd-search i { color: #888; font-size: 13px; }
.jd-search input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 14px; min-width: 0; }
.jd-search input::placeholder { color: #777; }
.jd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jd-chip { border: 1px solid #444; background: #222; color: #ddd; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.jd-chip:hover { background: #333; color: #fff; }
.jd-chip.on { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.jd-chip-muted { color: #999; border-style: dashed; }
.jd-row-head h3.jd-row-link { cursor: pointer; }
.jd-row-head h3.jd-row-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.jd-row-more { border: none; background: transparent; color: #aaa; font-size: 13px; cursor: pointer; margin-right: 8px; }
.jd-row-more:hover { color: #fff; }

/* 2026-10-24 seasonlist：季/筛选列表顶空 + 统一横卡 + 手机双列 */
.jd-season, .jd-browse {
  padding: calc(96px + env(safe-area-inset-top, 0px)) 4% 30px;
  touch-action: pan-y;
}
.jd-season-head, .jd-browse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.jd-season-head h2, .jd-browse-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.jd-season-head h2 span, .jd-browse-head h2 span { font-size: .9rem; color: var(--jd-sub); font-weight: 400; margin-left: 8px; }
.jd-back { border: none; background: #2a2a2a; color: #fff; border-radius: 4px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.jd-back:hover { background: #3a3a3a; }
.jd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
}
.jd-grid .jd-card {
  flex: none !important;
  width: 100% !important;
  min-width: 0;
  max-width: none;
}
.jd-grid .jd-card-img {
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
}
.jd-grid .jd-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}
.jd-filter-hint { color: #888; font-size: 13px; margin: 0 0 12px; }

@media (max-width: 1100px) {
  .jd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .jd-toolbar { padding-top: 10px; }
  .jd-season, .jd-browse {
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
    padding-left: 4%;
    padding-right: 4%;
  }
  .jd-subs { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  /* 手机：一行两部，纵向滚；不要横滑多部 */
  .jd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px;
    overflow-x: visible;
  }
  /* rowfix2: card width set below on .jd-row-track > .jd-card */
  .jd-row-track .jd-card-img { aspect-ratio: 16 / 9 !important; }
}

/* ==== 2026-10-24 rowfix2：横滑强制单行 + 定宽定高卡 ==== */
.jd-row-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  gap: 10px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  max-height: none;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.jd-row-track > .jd-card {
  flex: 0 0 260px !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  min-height: 0 !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.jd-row-track > .jd-card .jd-card-img {
  position: relative !important;
  flex: 0 0 auto;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #111 !important;
}
.jd-row-track > .jd-card .jd-card-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.jd-row {
  margin-top: 14px;
  margin-bottom: 4px;
  overflow: hidden; /* 防止子项撑出纵向空白 */
}
.jd-row-track > .jd-card .jd-card-zh,
.jd-row-track > .jd-card .jd-card-meta {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}
.jd-row-track > .jd-card .jd-card-img img {
  max-width: none !important;
  max-height: none !important;
}
@media (max-width: 768px) {
  .jd-row-track > .jd-card {
    flex: 0 0 42vw !important;
    width: 42vw !important;
    min-width: 42vw !important;
    max-width: 42vw !important;
  }
  /* 覆盖旧的 .jd-card { flex-basis:44vw } 以免和定宽打架 */
  .jd-row-track > .jd-card {
    flex-basis: 42vw !important;
  }
}
