/* ============================================================
 * 金牛奇迹S30 · 秘境女神专栏 —— 门户样式
 * ------------------------------------------------------------------
 * 加载顺序：plaza.css 之后（views/s30/index.php 经 $extraCss 注入）
 * 口径：暗色 AURORA 体系内取色；视频统一 16:9 画幅
 * ============================================================ */

.s30-wrap{
    --s30-gold: var(--lx-gold, #c2b59b);
    --s30-ink:  var(--lx-ink, #f2efe8);
    --s30-ink2: var(--lx-ink-2, #b9b3a6);
    --s30-mute: var(--lx-mute, #8a8578);
    --s30-line: var(--lx-line, rgba(194,181,155,.14));
    /* —— 表面 / 零件令牌：默认取「浅色(light)」口径，暗色由下方 [data-theme="dark"] 覆盖 —— */
    --s30-card:       rgba(255,255,255,.80);
    --s30-card-2:     rgba(255,255,255,.66);
    --s30-chip-bg:    rgba(35,32,26,.06);
    --s30-sticky-bg:  rgba(255,255,255,.88);
    --s30-hover-bg:   rgba(35,32,26,.06);
    --s30-fill-soft:  rgba(35,32,26,.035);
    --s30-fill-mid:   rgba(35,32,26,.08);
    --s30-hairline:   rgba(35,32,26,.12);
    --s30-scrim:      rgba(12,14,20,.60);
    /* 画框/影院：视频承载面恒为深色（画幅观感，与主题无关） */
    --s30-stage:      #0a0c11;
    --s30-stage-grad: radial-gradient(120% 120% at 50% 40%, #1a2230 0%, #0a0c11 70%);
    /* 压在图片/视频上的文字：恒浅色 */
    --s30-on-media:   #FFFFFF;
    --s30-blue:       #4fc3f7;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(12px, 2.5vw, 24px) 48px;
}

/* —— 暗色：表面令牌反向取值（浅色文字 + 深色玻璃面） —— */
[data-theme="dark"] .s30-wrap,
[data-bs-theme="dark"] .s30-wrap{
    --s30-card:       rgba(22,20,17,.62);
    --s30-card-2:     rgba(28,25,21,.55);
    --s30-chip-bg:    rgba(0,0,0,.28);
    --s30-sticky-bg:  rgba(14,13,11,.82);
    --s30-hover-bg:   rgba(255,255,255,.06);
    --s30-fill-soft:  rgba(255,255,255,.04);
    --s30-fill-mid:   rgba(255,255,255,.09);
    --s30-hairline:   rgba(255,255,255,.10);
    --s30-scrim:      rgba(8,10,16,.60);
}

/* —— 恒暗上下文：Hero（压在海报遮罩上）与放映灯箱（影院面）
      无论站点主题明暗，这两块内部一律按暗色口径取色，杜绝「深字压深底」 —— */
.s30-hero,
.s30-lightbox{
    --s30-ink:  #F6F3EC;
    --s30-ink2: rgba(246,243,236,.84);
    --s30-mute: rgba(246,243,236,.64);
    --s30-line: rgba(255,255,255,.14);
    --s30-gold: #D8CDB6;
    --s30-chip-bg:   rgba(0,0,0,.36);
    --s30-hover-bg:  rgba(255,255,255,.08);
    --s30-fill-soft: rgba(255,255,255,.06);
    --s30-fill-mid:  rgba(255,255,255,.12);
    --s30-hairline:  rgba(255,255,255,.14);
}
/* 角色立绘：名字与称号压在图上，金色需提亮 */
.s30-char__portrait{ --s30-gold: #E8DCC0; }


/* ---------- 通用零件 ---------- */
.s30-card{
    background: var(--s30-card);
    border: 1px solid var(--s30-line);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}
.s30-chip{
    display:inline-flex; align-items:center; gap:6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: var(--fs-xs, 12px); line-height:1.6;
    color: var(--s30-ink2);
    border: 1px solid var(--s30-line);
    background: var(--s30-chip-bg);
    white-space: nowrap;
}
.s30-chip--gold{ color: var(--s30-gold); border-color: rgba(194,181,155,.35); }
.s30-label{
    display:block;
    font-size: 11px; letter-spacing: .14em;
    color: var(--s30-gold); text-transform: uppercase;
    margin-bottom: 4px;
}
.s30-btn{
    display:inline-flex; align-items:center; gap:8px;
    padding: 10px 18px; border-radius: 999px;
    font-size: var(--fs-sm, 14px); font-weight: 500;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-decoration: none !important;
}
.s30-btn:hover{ transform: translateY(-1px); }
.s30-btn--play{
    background: linear-gradient(135deg, #d6c9a8, #a89468);
    color: #17130c;
    box-shadow: 0 6px 22px rgba(194,181,155,.22);
}
.s30-btn--ghost{
    color: var(--s30-ink);
    border-color: var(--s30-line);
    background: var(--s30-fill-soft);
}
.s30-btn--ghost:hover{ background: var(--s30-fill-mid); }
.s30-iconbtn{
    display:inline-flex; align-items:center; justify-content:center;
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--s30-line); background: var(--s30-fill-soft);
    color: var(--s30-ink); cursor: pointer;
}
.s30-iconbtn:hover{ background: var(--s30-fill-mid); }

/* ---------- Hero 板块入口 ---------- */
.s30-hero{
    position: relative;
    margin: 14px 0 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--s30-line);
    min-height: clamp(340px, 46vw, 460px);
    display: flex; align-items: flex-end;
}
.s30-hero__media{ position:absolute; inset:0; }
.s30-hero__img{
    position:absolute; inset:0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 28%;
}
.s30-hero__veil{
    position:absolute; inset:0;
    background:
        linear-gradient(180deg, rgba(8,10,16,.34) 0%, rgba(8,10,16,.55) 45%, rgba(8,10,16,.92) 100%),
        linear-gradient(90deg, rgba(8,10,16,.78) 0%, rgba(8,10,16,.22) 60%, transparent 100%);
}
.s30-hero__body{
    position: relative;
    padding: clamp(18px, 3.5vw, 34px);
    max-width: 720px;
}
.s30-hero__badges{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 14px; }
.s30-hero__title{
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600; letter-spacing: .04em;
    color: var(--s30-ink);
    text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.s30-hero__logline{
    margin: 0 0 18px;
    color: var(--s30-ink2);
    font-size: var(--fs-sm, 14px);
    line-height: 1.9;
    max-width: 56ch;
}
.s30-hero__cta{ display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 18px; }
.s30-hero__facts{
    display:flex; flex-wrap:wrap; gap: 6px 28px;
    margin: 0; padding-top: 14px;
    border-top: 1px solid var(--s30-hairline);
}
.s30-hero__facts dt{
    font-size: 11px; letter-spacing: .12em; color: var(--s30-mute);
}
.s30-hero__facts dd{
    margin: 2px 0 0; font-size: var(--fs-xs, 12px); color: var(--s30-ink);
}

/* ---------- 栏目分类锚点条（吸顶） ---------- */
.s30-tabs{
    position: sticky; top: 64px; z-index: 40;
    margin: 18px 0 8px;
}
.s30-tabs__inner{
    display:flex; gap: 6px;
    padding: 7px;
    overflow-x: auto; scrollbar-width: none;
    border: 1px solid var(--s30-line);
    border-radius: 999px;
    background: var(--s30-sticky-bg);
    backdrop-filter: blur(10px);
}
.s30-tabs__inner::-webkit-scrollbar{ display:none; }
.s30-tab{
    flex: 0 0 auto;
    padding: 7px 15px; border-radius: 999px;
    font-size: var(--fs-xs, 13px); color: var(--s30-ink2);
    text-decoration: none !important; white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}
.s30-tab:hover{ color: var(--s30-ink); background: var(--s30-hover-bg); }
.s30-tab.is-active{
    color: #17130c; background: linear-gradient(135deg, #d6c9a8, #a89468); font-weight: 600;
}

/* ---------- 区块 ---------- */
.s30-main{ display:block; }
.s30-section{ margin-top: 40px; scroll-margin-top: 128px; }
.s30-section__head{
    display:flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.s30-section__head h2{
    margin: 0;
    font-size: var(--fs-lg, 22px); font-weight: 600; letter-spacing: .03em;
    color: var(--s30-ink);
}
.s30-section__head p{
    margin: 0;
    font-size: var(--fs-xs, 13px); color: var(--s30-mute);
}

/* ---------- 故事介绍 ---------- */
.s30-story{ padding: clamp(16px, 2.6vw, 26px); }
.s30-story__logline{
    margin: 0 0 20px;
    font-size: var(--fs-md, 16px); line-height: 2;
    color: var(--s30-ink);
    border-left: 3px solid var(--s30-gold);
    padding-left: 14px;
}
.s30-story__grid{
    display:grid; gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.s30-story__meta p{ margin: 0 0 16px; font-size: var(--fs-sm, 14px); line-height: 1.9; color: var(--s30-ink2); }
.s30-actline{ margin: 0; padding: 0; list-style: none; counter-reset: act; }
.s30-actline li{
    display:flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--s30-line);
    font-size: var(--fs-xs, 13px); color: var(--s30-ink2);
}
.s30-actline li b{ color: var(--s30-ink); font-weight: 500; }
.s30-actline li span{ color: var(--s30-mute); }
.s30-style{ margin: 0; padding: 0; list-style: none; display:grid; gap: 14px; align-content: start; }
.s30-style p{ margin: 0; font-size: var(--fs-xs, 13px); line-height: 1.85; color: var(--s30-ink2); }

/* ---------- 五幕时间线 ---------- */
.s30-acts{
    display:grid; gap: 14px;
    margin-top: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.s30-act{ padding: 18px; }
.s30-act__head{
    display:flex; align-items:center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 10px;
}
.s30-act__no{
    padding: 2px 9px; border-radius: 999px;
    font-size: 11px; letter-spacing: .08em;
    color: var(--s30-gold); border: 1px solid rgba(194,181,155,.35);
}
.s30-act__head h3{ margin: 0; font-size: var(--fs-md, 16px); font-weight: 600; color: var(--s30-ink); }
.s30-act__range{ margin-left: auto; font-size: 11px; color: var(--s30-mute); }
.s30-act__sum{ margin: 0 0 12px; font-size: var(--fs-sm, 14px); line-height: 1.95; color: var(--s30-ink2); }
.s30-act__lines{ margin: 0; padding: 0; list-style: none; display:grid; gap: 6px; }
.s30-act__lines li{
    font-size: var(--fs-xs, 12.5px); line-height: 1.8; color: var(--s30-mute);
    padding-left: 12px; position: relative;
}
.s30-act__lines li::before{
    content: ''; position: absolute; left: 0; top: .75em;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--s30-blue);
}

/* ---------- 角色图鉴 ---------- */
.s30-char{
    display:grid; gap: 22px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding: clamp(14px, 2.4vw, 22px);
}
.s30-char__portrait{
    position: relative;
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--s30-stage);
    align-self: start;
}
.s30-char__portrait img{
    position:absolute; inset:0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 22%;
}
.s30-char__name{
    position:absolute; left: 12px; bottom: 30px;
    font-size: 20px; font-weight: 600; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.s30-char__title{
    position:absolute; left: 12px; bottom: 10px;
    font-size: 11px; letter-spacing: .12em; color: var(--s30-gold);
    text-shadow: 0 1px 8px rgba(0,0,0,.65);
}
.s30-char__stats{
    display:flex; flex-wrap:wrap; gap: 10px 22px;
    margin: 0 0 16px; padding-bottom: 14px;
    border-bottom: 1px solid var(--s30-line);
}
.s30-char__stats dt{ font-size: 11px; color: var(--s30-mute); letter-spacing: .1em; }
.s30-char__stats dd{ margin: 2px 0 0; font-size: var(--fs-xs, 13px); color: var(--s30-ink); }
.s30-char__features{ margin: 0; display:grid; gap: 12px; }
.s30-char__features dt{
    font-size: 11px; letter-spacing: .14em; color: var(--s30-gold);
    margin-bottom: 3px;
}
.s30-char__features dd{ margin: 0; font-size: var(--fs-xs, 13px); line-height: 1.85; color: var(--s30-ink2); }
.s30-support{
    display:grid; gap: 12px; margin-top: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.s30-support__item{ padding: 16px; }
.s30-support__item h4{ margin: 10px 0 6px; font-size: var(--fs-sm, 15px); color: var(--s30-ink); }
.s30-support__item p{ margin: 0; font-size: var(--fs-xs, 12.5px); line-height: 1.8; color: var(--s30-mute); }

/* ---------- 视频卡（统一 16:9） ---------- */
.s30-grid{
    display:grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.s30-vcard{
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
    display:flex; flex-direction: column;
}
.s30-vcard:hover{ transform: translateY(-3px); border-color: rgba(194,181,155,.32); }
.s30-vcard__stage{
    position: relative;
    display:block; width: 100%;
    aspect-ratio: 16 / 9;   /* 统一画幅 */
    border: 0; padding: 0; margin: 0;
    background: var(--s30-stage);
    cursor: pointer;
    overflow: hidden;
}
.s30-vcard__stage img{
    position:absolute; inset:0;
    width: 100%; height: 100%;
    transition: transform .35s ease;
}
/* 横版铺满裁切；竖版完整呈现留边（人性化差异） */
.s30-vcard__stage--land img{ object-fit: cover; object-position: center center; }
.s30-vcard__stage--port img{
    object-fit: contain; object-position: center center;
    background: var(--s30-stage-grad);
}
.s30-vcard:hover .s30-vcard__stage img{ transform: scale(1.04); }
.s30-vcard__play{
    position:absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    display:flex; align-items:center; justify-content:center;
    background: rgba(10,12,17,.55);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: transform .2s ease, background .2s ease;
    padding-left: 3px;
}
.s30-vcard__stage:hover .s30-vcard__play{
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(194,181,155,.9); color: #17130c;
}
.s30-vcard__badge{
    position:absolute; right: 10px; top: 10px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 11px; color: var(--s30-on-media);
    background: var(--s30-scrim);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
}
.s30-vcard__body{ padding: 14px 16px 16px; }
.s30-vcard__body h3{
    margin: 0 0 4px;
    font-size: var(--fs-sm, 15px); font-weight: 600;
    color: var(--s30-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s30-vcard__sub{ margin: 0 0 8px; font-size: 11.5px; color: var(--s30-gold); }
.s30-vcard__desc{
    margin: 0; font-size: var(--fs-xs, 12.5px); line-height: 1.8; color: var(--s30-mute);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 分镜手记 ---------- */
.s30-shots{ display:grid; gap: 12px; }
.s30-shot{ padding: 0; overflow: hidden; }
.s30-shot summary{
    display:flex; align-items:center; gap: 10px; flex-wrap: wrap;
    padding: 15px 18px; cursor: pointer; list-style: none;
    font-size: var(--fs-sm, 14.5px); color: var(--s30-ink);
}
.s30-shot summary::-webkit-details-marker{ display:none; }
.s30-shot summary b{ font-weight: 600; }
.s30-shot[open] summary{ border-bottom: 1px solid var(--s30-line); }
.s30-shot .s30-act__sum{ padding: 14px 18px 0; }
.s30-shot .s30-act__lines{ padding: 12px 18px 16px; }

/* ---------- 三部曲系列分册 ---------- */
.s30-saga{ margin-top: 28px; }
.s30-saga__head{
    padding: clamp(16px, 2.4vw, 24px);
    margin-bottom: 18px;
    border-left: 3px solid var(--s30-gold, #c2b59b);
}
.s30-saga__badges{ display:flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.s30-saga__title{
    margin: 0 0 4px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700; color: var(--s30-ink, #e8e2d6);
}
.s30-saga__sub{
    margin: 0 0 12px;
    font-size: var(--fs-sm, 14px);
    color: var(--s30-gold, #c2b59b);
    letter-spacing: .06em;
}
.s30-saga__logline{
    margin: 0;
    font-size: var(--fs-sm, 14px);
    line-height: 1.9;
    color: var(--s30-ink2, #b0a898);
}

/* ---------- 分篇（episodes） ---------- */
.s30-episode{
    margin-bottom: 20px;
    padding: 14px 18px 4px;
    border-top: 1px dashed var(--s30-line, rgba(255,255,255,.08));
}
.s30-episode:first-of-type{ border-top: none; padding-top: 0; }
.s30-episode__head{
    display:flex; align-items:center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.s30-episode__head h4{
    margin: 0;
    font-size: var(--fs-md, 16px);
    font-weight: 600; color: var(--s30-ink, #e8e2d6);
}
.s30-episode__head .s30-act__range{ margin-left: auto; }
.s30-episode__title{
    margin: 0 0 8px;
    font-size: var(--fs-md, 15px);
    font-weight: 600; color: var(--s30-ink, #e8e2d6);
}
.s30-episode__title small{
    font-weight: 400;
    color: var(--s30-mute, #6b6560);
    font-size: 12px;
}
.s30-episode .s30-acts{ margin-top: 12px; }
/* 分篇内容与标题同缩进：容器已提供 18px 左右内边距，内部元素不再叠加 */
.s30-episode > .s30-act__sum{ padding: 0 0 12px; }
.s30-episode .s30-shot__act{ margin-left: 0; margin-right: 0; }

/* ---------- 分镜手记 · 嵌套幕卡 ---------- */
.s30-shot__act{
    margin: 8px 18px 14px;
    border: 1px solid var(--s30-line, rgba(255,255,255,.08));
    border-radius: 10px;
    overflow: hidden;
}
.s30-shot__act summary{
    display:flex; align-items:center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    font-size: var(--fs-sm, 13.5px);
    color: var(--s30-ink2, #b0a898);
    background: var(--s30-fill-soft);
}
.s30-shot__act summary::-webkit-details-marker{ display:none; }
.s30-shot__act summary b{ font-weight: 600; color: var(--s30-ink, #e8e2d6); }
.s30-shot__act[open] summary{ border-bottom: 1px solid var(--s30-line, rgba(255,255,255,.08)); }
.s30-shot__act .s30-act__sum{ padding: 12px 14px 0; }
.s30-shot__act .s30-act__lines{ padding: 10px 14px 14px; }

/* ---------- 分镜手记 · 无分篇系列内的直接幕卡 ---------- */
.s30-shot > .s30-shot__act{ margin: 8px 0 8px; border-left: none; border-right: none; border-radius: 0; }


/* ---------- 讨论区入口 ---------- */
.s30-foot__card{
    display:flex; align-items:center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    padding: clamp(18px, 3vw, 28px);
}
.s30-foot__card h2{ margin: 0 0 6px; font-size: var(--fs-lg, 20px); color: var(--s30-ink); }
.s30-foot__card p{ margin: 0; font-size: var(--fs-xs, 13px); color: var(--s30-mute); }
.s30-foot__stat{ margin-top: 6px !important; color: var(--s30-gold) !important; }
.s30-foot__cta{ display:flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 放映灯箱 ---------- */
.s30-lightbox{
    position: fixed; inset: 0; z-index: 1050;
    display:flex; align-items:center; justify-content:center;
    padding: clamp(10px, 2.5vw, 28px);
}
.s30-lightbox[hidden]{ display: none; }
.s30-lightbox__backdrop{
    position:absolute; inset: 0;
    background: rgba(4,6,10,.8);
    backdrop-filter: blur(8px);
}
.s30-lightbox__panel{
    position: relative;
    width: min(1040px, 100%);
    max-height: 100%;
    display:flex; flex-direction: column;
    background: #0e1016;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.s30-lightbox__bar{
    display:flex; align-items:center; justify-content: space-between; gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.s30-lightbox__bar h3{
    margin: 0; font-size: var(--fs-sm, 15px); color: var(--s30-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s30-lightbox__bar p{ margin: 2px 0 0; font-size: 11.5px; color: var(--s30-mute); }
.s30-lightbox__ctrl{ display:flex; gap: 8px; flex-shrink: 0; }
.s30-lightbox__stage{
    position: relative;
    background: radial-gradient(120% 120% at 50% 40%, #1a2230 0%, #07090d 72%);
    display:flex; align-items:center; justify-content:center;
    min-height: 240px;
}
/* 统一放映画幅 16:9；竖版片源完整呈现 */
.s30-lightbox__stage .s30-lb-frame{
    width: 100%;
    aspect-ratio: 16 / 9;
    display:flex; align-items:center; justify-content:center;
}
.s30-lightbox__stage video{
    width: 100%; height: 100%;
    background: #000;
    display: block;
}
.s30-lightbox__stage.is-port .s30-lb-frame{
    width: auto; height: 100%;
    aspect-ratio: 9 / 16;
    max-height: min(72vh, 640px);
}
.s30-lightbox__stage.is-port video{
    width: auto; height: 100%;
    aspect-ratio: 9 / 16;
}
.s30-lightbox__foot{
    display:flex; align-items:center; justify-content: space-between; gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.s30-lightbox__foot p{
    margin: 0; font-size: var(--fs-xs, 12.5px); line-height: 1.8; color: var(--s30-ink2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s30-lightbox__foot span{ flex-shrink: 0; font-size: 11.5px; color: var(--s30-mute); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px){
    .s30-story__grid{ grid-template-columns: 1fr; }
    .s30-char{ grid-template-columns: 1fr; }
    .s30-tabs{ top: 56px; }
}
@media (max-width: 560px){
    .s30-hero{ min-height: 380px; }
    .s30-hero__facts{ gap: 6px 18px; }
    .s30-foot__card{ flex-direction: column; align-items: flex-start; }
    .s30-lightbox__stage.is-port .s30-lb-frame{ max-height: 68vh; }
}

/* ============================================================
 * 自定义播放器（s30p- 前缀，v2）
 * 结构：.s30p-player = 灯箱 stage 内的播放画框（沿用 .s30-lb-frame 尺寸）
 * ============================================================ */
.s30p-player{
    position: relative;
    overflow: hidden;
    background: #000;
    user-select: none;
    outline: none;
}
.s30p-player:fullscreen{
    aspect-ratio: auto;
    width: 100%; height: 100%;
    max-height: none;
    border-radius: 0;
}
.s30p-player:-webkit-full-screen{
    aspect-ratio: auto;
    width: 100%; height: 100%;
    max-height: none;
    border-radius: 0;
}
.s30p-player video{ cursor: pointer; }
.s30p-player.is-idle{ cursor: none; }
.s30p-player.is-idle video{ cursor: none; }

/* 控制区容器 + 底部渐隐 */
.s30p-ui{
    position: absolute; inset: auto 0 0 0;
    z-index: 6;
    opacity: 1;
    transition: opacity .25s ease;
}
.s30p-player.is-idle .s30p-ui{ opacity: 0; pointer-events: none; }
.s30p-ui__grad{
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.78) 100%);
    pointer-events: none;
}

/* ---------- 进度条 ---------- */
.s30p-prog{
    position: relative;
    padding: 10px 16px 2px;
    cursor: pointer;
}
.s30p-prog__track{
    position: relative;
    height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.22);
    transition: height .15s ease;
}
.s30p-prog:hover .s30p-prog__track{ height: 6px; }
.s30p-prog__buf{
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0; border-radius: 4px;
    background: rgba(255,255,255,.16);
}
.s30p-prog__played{
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0; border-radius: 4px;
    background: linear-gradient(90deg, #d6c9a8, #b8a374);
}
.s30p-prog__thumb{
    position: absolute; right: -6px; top: 50%;
    width: 12px; height: 12px; border-radius: 50%;
    transform: translateY(-50%) scale(0);
    background: #e9dfc6;
    box-shadow: 0 1px 6px rgba(0,0,0,.5);
    transition: transform .15s ease;
}
.s30p-prog:hover .s30p-prog__thumb{ transform: translateY(-50%) scale(1); }

/* ---------- 按钮行 ---------- */
.s30p-row{
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 4px 12px 10px;
}
.s30p-row__left, .s30p-row__right{
    display: flex; align-items: center; gap: 2px;
    min-width: 0;
}
.s30p-btn{
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex: 0 0 auto;
    border: 0; border-radius: 9px;
    background: transparent;
    color: rgba(255,255,255,.92);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .12s ease;
    padding: 0;
}
.s30p-btn svg{ width: 20px; height: 20px; display: block; }
.s30p-btn:hover{ background: rgba(255,255,255,.14); color: #fff; }
.s30p-btn:active{ transform: scale(.92); }
.s30p-btn--txt{
    width: auto; min-width: 44px;
    padding: 0 10px;
    font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
}
.s30p-btn--on{ color: #e9dfc6; }
.s30p-btn--off{ color: rgba(255,255,255,.45); }
.s30p-btn--off:hover{ color: rgba(255,255,255,.8); }

/* 音量：按钮 + 滑杆 */
.s30p-volwrap{ display: flex; align-items: center; }
.s30p-vol{
    width: 0;
    opacity: 0;
    height: 4px;
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,.25);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: width .2s ease, opacity .2s ease, margin .2s ease;
    accent-color: #d6c9a8;
}
.s30p-volwrap:hover .s30p-vol, .s30p-vol:focus-visible{
    width: 64px;
    opacity: 1;
    margin: 0 8px 0 2px;
}
.s30p-vol::-webkit-slider-thumb{
    appearance: none; -webkit-appearance: none;
    width: 11px; height: 11px; border-radius: 50%;
    background: #e9dfc6;
    border: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.s30p-vol::-moz-range-thumb{
    width: 11px; height: 11px; border-radius: 50%;
    background: #e9dfc6; border: 0;
}

/* 时间 */
.s30p-time{
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 12px; font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}

/* ---------- 弹出菜单（倍速 / 清晰度） ---------- */
.s30p-menu{
    position: absolute;
    right: 0; bottom: calc(100% + 8px);
    min-width: 108px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(14,16,22,.95);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 8;
}
.s30p-menu.is-open{ display: block; }
.s30p-menu__item{
    display: block; width: 100%;
    padding: 8px 12px;
    border: 0; border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: 12.5px; text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.s30p-menu__item:hover{ background: rgba(255,255,255,.1); }
.s30p-menu__item.is-on{ color: #e9dfc6; font-weight: 600; }
.s30p-menu__item.is-on::after{ content: ' ✓'; }

/* ---------- 中央遮罩：大播放键 / 重播 ---------- */
.s30p-cover{
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    border: 0; padding: 0;
    background: rgba(0,0,0,.18);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}
.s30p-cover:hover{ background: rgba(0,0,0,.3); }
.s30p-cover.is-empty{ opacity: 0; pointer-events: none; }
.s30p-cover__ico{
    width: 74px; height: 74px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,12,17,.55);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(4px);
    transition: transform .18s ease, background .18s ease;
    padding-left: 4px;
}
.s30p-cover__ico svg{ width: 34px; height: 34px; }
.s30p-cover:hover .s30p-cover__ico{
    transform: scale(1.06);
    background: rgba(194,181,155,.92);
    color: #17130c;
}
.s30p-cover__txt{
    font-size: 13px; letter-spacing: .04em;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* ---------- 加载圈 ---------- */
.s30p-spin{
    position: absolute; left: 50%; top: 50%; z-index: 4;
    transform: translate(-50%, -50%);
    display: none;
}
.s30p-spin.is-show{ display: block; }
.s30p-spin span{
    display: block;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #d6c9a8;
    animation: s30p-spin .8s linear infinite;
}
@keyframes s30p-spin{ to{ transform: rotate(360deg); } }

/* ---------- toast 提示 ---------- */
.s30p-toast{
    position: absolute; left: 50%; top: 18px; z-index: 9;
    transform: translate(-50%, -8px);
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(10,12,17,.78);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    font-size: 12.5px; letter-spacing: .03em;
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-width: 80%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s30p-toast.is-show{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- 选集面板 ---------- */
.s30p-eps{
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 7;
    width: min(320px, 86%);
    display: flex; flex-direction: column;
    background: rgba(10,12,17,.92);
    border-left: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    transform: translateX(102%);
    transition: transform .26s ease;
}
.s30p-player.is-eps .s30p-eps{ transform: translateX(0); }
.s30p-eps__head{
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex: 0 0 auto;
}
.s30p-eps__head b{ font-size: 14px; color: #fff; letter-spacing: .06em; }
.s30p-eps__hint{ margin-left: auto; font-size: 11px; color: rgba(255,255,255,.5); }
.s30p-eps__close{
    width: 28px; height: 28px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
    cursor: pointer;
}
.s30p-eps__close svg{ width: 14px; height: 14px; }
.s30p-eps__close:hover{ background: rgba(255,255,255,.14); }
.s30p-eps__list{
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
.s30p-eps__item{
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 2px;
    border: 0; border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,.82);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
}
.s30p-eps__item:hover{ background: rgba(255,255,255,.08); }
.s30p-eps__item.is-on{
    background: linear-gradient(135deg, rgba(214,201,168,.22), rgba(168,148,104,.14));
    color: #fff;
}
.s30p-eps__no{
    flex: 0 0 auto;
    min-width: 26px;
    font-size: 11px; font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.5);
}
.s30p-eps__item.is-on .s30p-eps__no{ color: #e9dfc6; }
.s30p-eps__body{ min-width: 0; flex: 1 1 auto; }
.s30p-eps__body b{
    display: block;
    font-size: 12.5px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s30p-eps__body small{
    display: block;
    font-size: 10.5px;
    color: rgba(255,255,255,.45);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s30p-eps__item.is-on .s30p-eps__body small{ color: #e9dfc6; }
.s30p-eps__now{
    flex: 0 0 auto;
    font-size: 10px;
    padding: 2px 7px; border-radius: 999px;
    color: #17130c;
    background: linear-gradient(135deg, #d6c9a8, #a89468);
}

/* ---------- 播放器响应式 ---------- */
@media (max-width: 560px){
    .s30p-row{ padding: 4px 6px 8px; gap: 4px; }
    .s30p-btn{ width: 32px; height: 32px; }
    .s30p-time{ margin-left: 4px; font-size: 11px; }
    .s30p-volwrap:hover .s30p-vol{ width: 44px; }
    .s30p-eps{ width: 100%; border-left: 0; }
}
