@charset "UTF-8";
/*!
 * 臻影库 —— templates.css
 * 与 template-parts / page-templates 实际结构对应的样式，
 * 以及页面模板复用的状态类（is-on / is-in / is-open / is-dim …）。
 * 载入顺序在 base / layout / components / pages 之后。
 */

/* ==========================================================================
   1. 全局修正
   ========================================================================== */

/* 内联图标：没有显式宽高时按 1em 渲染，避免 viewBox 撑满容器 */
svg:not([width]):not([height]) {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.cs-field > span:first-child,
.cs-field > .cs-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-ink);
}

.cs-field > span:first-child i {
    margin-left: 2px;
    font-style: normal;
    color: var(--cs-seal);
}

.cs-field-hint {
    margin: 6px 0 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--cs-muted);
}

.cs-link {
    color: var(--cs-seal);
    font-size: inherit;
    font-weight: 600;
}

.cs-link:hover {
    text-decoration: underline;
}

.cs-form {
    display: block;
}

/* 复选开关行 */
.cs-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 14px;
    font-size: 13px;
    color: var(--cs-muted);
    cursor: pointer;
    user-select: none;
}

.cs-switch-row.is-inline {
    margin: 0;
}

.cs-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cs-switch-row i {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: var(--cs-pill);
    background: var(--cs-line-strong);
    transition: background-color 0.2s ease;
}

.cs-switch-row i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.cs-switch-row input:checked + i {
    background: var(--cs-seal);
}

.cs-switch-row input:checked + i::after {
    transform: translateX(18px);
}

/* 滚动锁 */
html.cs-modal-open,
html.cs-drawer-open {
    overflow: hidden;
}

/* ==========================================================================
   2. 弹窗 / 抽屉 / 搜索层的状态类（脚本使用 is-in / is-open）
   ========================================================================== */

.cs-modal.is-in,
.cs-modal.is-on {
    opacity: 1;
    visibility: visible;
}

.cs-modal.is-in .cs-modal-card,
.cs-modal.is-on .cs-modal-card {
    transform: scale(1);
}

.cs-modal[hidden] {
    display: none;
}

.cs-search-overlay.is-in,
.cs-search-overlay.is-on {
    opacity: 1;
    visibility: visible;
}

.cs-search-overlay.is-in .cs-search-panel,
.cs-search-overlay.is-on .cs-search-panel {
    transform: translateY(0);
}

.cs-search-overlay[hidden] {
    display: none;
}

.cs-drawer-mask.is-on,
.cs-drawer-mask.is-open,
.cs-drawer-mask.is-in {
    opacity: 1;
    visibility: visible;
}

.cs-drawer.is-open,
.cs-drawer.is-on {
    transform: translateX(0);
}

/* ==========================================================================
   3. 首页轮播（hero.php）
   ========================================================================== */

.cs-hero-wrap {
    padding: 8px 0 0;
}

.cs-hero-main {
    position: relative;
    height: auto;
    aspect-ratio: 888 / 320;
    min-height: 210px;
    border-radius: var(--cs-poster-radius);
    overflow: hidden;
    background: #111;
}

.cs-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    background-color: #111;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.cs-hero-slide.is-on {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.cs-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 46%);
    pointer-events: none;
}

.cs-hero-slide h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.4px;
}

.cs-hero-tag {
    display: inline-block;
    margin-bottom: 9px;
    padding: 2px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #241c12;
    background: var(--cs-gold);
    border-radius: var(--cs-pill);
}

.cs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.cs-hero-meta em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-style: normal;
}

.cs-hero-score {
    font-weight: 700;
    color: var(--cs-gold);
}

.cs-hero-score svg {
    width: 13px;
    height: 13px;
}

/* 右侧三行列表 */
.cs-hero-side-item {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    width: 100%;
    padding: 10px;
    text-align: left;
    background: var(--cs-surface);
    border: 1px solid transparent;
    border-radius: var(--cs-poster-radius);
    min-height: 0;
    transition: border-color 0.18s ease;
}

.cs-hero-side-item:hover,
.cs-hero-side-item.is-on {
    border-color: color-mix(in srgb, var(--cs-seal) 46%, transparent);
}

.cs-hero-side-thumb {
    flex: 0 0 auto;
    display: block;
    width: 46px;
    height: 66px;
    border-radius: var(--cs-poster-radius-s);
    overflow: hidden;
    background: var(--cs-surface-2);
}

.cs-hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-hero-side-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cs-hero-side-txt strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cs-hero-side-txt em {
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ==========================================================================
   4. 归档筛选（filter.php）
   ========================================================================== */

.cs-filter-body {
    display: block;
}

.cs-filter-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* 紧凑标签：无底色、无边框，仅选中项蓝底白字（对齐参考站） */
.cs-filter-opts .cs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--cs-ink-2);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}

.cs-filter-opts .cs-pill:hover {
    background: transparent;
    color: var(--cs-brand-blue);
}

.cs-filter-opts .cs-pill.is-on {
    background: var(--cs-brand-blue);
    color: #fff;
}

.cs-filter-opts .cs-pill img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 4px;
}

.cs-filter-mbtn em,
.cs-filter-mbtn i {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--cs-muted);
}

.cs-filter-mbtn.is-on em {
    color: var(--cs-seal);
}

/* ==========================================================================
   5. 资源区（movie-resources.php）
   ========================================================================== */

.cs-res-total {
    font-size: 13px;
    color: var(--cs-muted);
}

.cs-res-box {
    display: block;
}

.cs-res-tab.is-on {
    background: var(--cs-surface);
    color: var(--cs-ink);
    box-shadow: var(--cs-shadow);
}

.cs-res-pane {
    display: none;
}

.cs-res-pane.is-on {
    display: block;
}

.cs-res-pane > .cs-res-search {
    display: block;
    flex: none;
    width: 100%;
    margin-bottom: 14px;
}

.cs-res-pane > .cs-res-search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--cs-muted);
    pointer-events: none;
}

.cs-res-pane > .cs-res-search input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    font-size: 14px;
    border-radius: var(--cs-pill);
}

.cs-res-groups {
    display: block;
}

.cs-res-group {
    display: block;
    margin: 18px 0 4px;
    font-size: 13px;
}

.cs-res-group:first-child {
    margin-top: 4px;
}

.cs-res-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-muted);
}

.cs-res-group-head img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.cs-res-group-head em {
    font-style: normal;
    font-weight: 500;
    opacity: 0.8;
}

.cs-res-list {
    display: block;
    margin-top: 10px;
}

.cs-res-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-res-row.is-dim {
    opacity: 0.32;
}

.cs-res-row.is-hidden,
.cs-res-group.is-hidden,
.cs-res-empty.is-hidden {
    display: none;
}

.cs-res-row-main {
    flex: 1;
    min-width: 0;
}

.cs-res-name {
    display: inline-block;
}

.cs-res-tags .cs-tag {
    font-size: 11px;
    padding: 3px 9px;
}

.cs-res-tags .cs-tag svg {
    width: 11px;
    height: 11px;
    opacity: 0.6;
}

.cs-tag.is-quality,
.cs-tag.is-hdr {
    background: color-mix(in srgb, var(--cs-gold) 22%, transparent);
    color: #a8863f;
}

html[data-cs-theme="dark"] .cs-tag.is-quality,
html[data-cs-theme="dark"] .cs-tag.is-hdr {
    color: var(--cs-gold);
}

.cs-tag.is-size {
    background: var(--cs-chip);
    color: var(--cs-muted);
}

.cs-tag.is-sub,
.cs-tag.is-tone {
    background: color-mix(in srgb, var(--cs-brand-blue) 14%, transparent);
    color: var(--cs-brand-blue);
}

.cs-res-pwd {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--cs-ink-2);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-res-pwd b {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    color: var(--cs-seal);
}

.cs-res-pwd:hover {
    background: var(--cs-chip);
}

.cs-res-share,
.cs-res-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-res-go {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-seal-ink);
    background: var(--cs-seal);
    border-radius: var(--cs-radius-s);
    white-space: nowrap;
}

.cs-res-go:hover {
    color: var(--cs-seal-ink);
    filter: brightness(1.08);
}

.cs-res-none {
    padding: 26px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--cs-muted);
}

.cs-res-gate-ico {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1;
}

/* ==========================================================================
   6. 影片详情头部（movie-head.php）
   ========================================================================== */

.cs-movie-head {
    display: block;
    padding: 26px 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.cs-movie-head-inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.cs-movie-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs-movie-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.cs-pill-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-ink-2);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-pill-stat svg {
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

.cs-pill-stat.is-score {
    font-weight: 800;
    color: var(--cs-gold);
    background: color-mix(in srgb, var(--cs-gold) 18%, transparent);
}

.cs-defs {
    margin-top: 22px;
    border-top: 1px solid var(--cs-line);
}

.cs-def {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cs-line);
    font-size: 14px;
    line-height: 1.6;
}

.cs-def span {
    color: var(--cs-muted);
}

.cs-def em {
    font-style: normal;
    color: var(--cs-ink);
    word-break: break-word;
}

/* 主演：默认只显示一行，超出可展开 */
.cs-def-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.cs-clamp-2 {
    -webkit-line-clamp: 2;
}

.cs-clamp-3 {
    -webkit-line-clamp: 3;
}

.cs-def-clamp.is-open {
    display: block;
    -webkit-line-clamp: none;
    overflow: visible;
}

.cs-def-more {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--cs-muted);
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

.cs-def-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.cs-def-more.is-open svg {
    transform: rotate(180deg);
}

.cs-def-more[hidden] {
    display: none;
}

.cs-def-more:hover {
    color: var(--cs-seal);
}

.cs-movie-intro {
    margin-top: 20px;
}

.cs-movie-intro h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-ink);
    margin-bottom: 8px;
}

.cs-movie-intro p {
    max-width: 96%;
    font-size: 14px;
    line-height: 1.9;
    color: var(--cs-muted);
}

.cs-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    font-size: 13px;
    color: var(--cs-muted);
}

.cs-crumb a {
    color: var(--cs-muted);
}

.cs-crumb a:hover {
    color: var(--cs-seal);
}

.cs-crumb span {
    opacity: 0.6;
}

.cs-crumb em {
    font-style: normal;
    color: var(--cs-ink);
}

/* ==========================================================================
   7. 登录 / 注册弹窗（auth-modal.php）
   ========================================================================== */

.cs-auth-card {
    max-width: 468px;
}

/* 注册 / 登录 / 忘记密码：标签文字贴紧输入框，缩小名称与输入框边线的间距 */
.cs-auth-card .cs-field > span:first-child,
.cs-auth-card .cs-field > .cs-label {
    margin-bottom: 1px;
}
/* 登录弹窗：滑块上方留白收紧约 30%，并让「记住我」一行在上下留白中居中（上下各 3px） */
.cs-auth-card .cs-auth-pane[data-pane="login"] .cs-switch-row {
    display: flex;
    width: fit-content;
    margin: 3px 0;
}

.cs-auth-card .cs-auth-pane[data-pane="login"] .cs-captcha {
    margin: 0 0 14px;
}

.cs-auth-brand {
    margin-bottom: 18px;
    text-align: center;
}

.cs-auth-brand .cs-brand-text {
    font-size: 24px;
    letter-spacing: 3px;
}

.cs-auth-tab {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-muted);
    border-radius: 6px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.cs-auth-tab.is-on {
    background: var(--cs-gold);
    color: #241c12;
}

.cs-auth-tab-ink {
    display: none;
}

.cs-auth-body {
    display: block;
}

.cs-auth-pane {
    display: none;
}

.cs-auth-pane.is-on {
    display: block;
}

.cs-auth-tip {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    color: var(--cs-muted);
}

.cs-auth-pane .cs-btn.is-block {
    margin-top: 6px;
}

.cs-auth-pane .cs-captcha {
    margin: 4px 0 14px;
}

.cs-captcha-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--cs-muted);
    pointer-events: none;
}

.cs-captcha-handle svg {
    width: 18px;
    height: 18px;
}

.cs-captcha.is-done .cs-captcha-track,
.cs-captcha.is-ok .cs-captcha-track {
    background: color-mix(in srgb, #2e9e5b 18%, var(--cs-chip));
}

.cs-captcha.is-done .cs-captcha-fill,
.cs-captcha.is-ok .cs-captcha-fill {
    background: color-mix(in srgb, #2e9e5b 30%, transparent);
}

.cs-captcha.is-done .cs-captcha-hint,
.cs-captcha.is-ok .cs-captcha-hint {
    color: #2e9e5b;
}

.cs-captcha.is-off .cs-captcha-track {
    background: color-mix(in srgb, #e2574c 14%, var(--cs-chip));
}

.cs-captcha.is-off .cs-captcha-hint {
    color: #e2574c;
}

.cs-captcha.is-off {
    animation: cs-shake 0.34s ease;
}

@keyframes cs-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   8. 头像下拉菜单（account-menu.php）
   ========================================================================== */

.cs-avatar-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-avatar-menu-head img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cs-surface-2);
}

.cs-avatar-menu-head strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.cs-avatar-menu-head em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
    margin-top: 2px;
    word-break: break-all;
}

.cs-avatar-menu-group {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-avatar-menu-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.cs-avatar-menu-group a,
.cs-avatar-menu-group button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--cs-radius-s);
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-ink-2);
    text-align: left;
}

.cs-avatar-menu-group a:hover,
.cs-avatar-menu-group button:hover {
    background: var(--cs-surface-2);
    color: var(--cs-seal);
}

.cs-menu-checkin {
    justify-content: space-between;
}

.cs-menu-checkin em {
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-menu-checkin:hover em {
    color: var(--cs-seal);
}

.cs-menu-out {
    color: var(--cs-muted) !important;
}

/* ==========================================================================
   9. 页头 / 页脚补充
   ========================================================================== */

/* 搜索浮层建议项（ui.js 动态生成） */
.cs-suggest-poster {
    flex: 0 0 auto;
    display: block;
    width: 40px;
    height: 58px;
    border-radius: var(--cs-poster-radius-s);
    overflow: hidden;
    background: var(--cs-surface-2);
}

.cs-suggest-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-suggest-txt {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cs-suggest-txt strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cs-suggest-txt em {
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-suggest-all {
    display: block;
    padding: 12px 4px 2px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--cs-seal);
    border-top: 1px solid var(--cs-line);
}

.cs-suggest-empty {
    padding: 18px 4px;
    font-size: 13px;
    text-align: center;
    color: var(--cs-muted);
}

/* 带图标的筛选胶囊 */
.cs-pill.is-pan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 页头 / 页脚
   ========================================================================== */

.cs-page-wrap,
.cs-brand-wrap {
    display: block;
}

.cs-page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cs-brand-wrap {
    flex: 0 0 auto;
}

.cs-footer-col-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cs-footer-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
}

.cs-footer-menu a {
    color: var(--cs-muted);
}

.cs-footer-menu a:hover {
    color: var(--cs-seal);
}

/* ==========================================================================
   10. 页面通用块
   ========================================================================== */

.cs-page-account,
.cs-archive,
.cs-search-page,
.cs-page-login {
    padding-bottom: 56px;
}

.cs-archive-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.cs-archive-head p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--cs-muted);
}

.cs-archive-head b {
    color: var(--cs-ink);
}

/* 归档 / 搜索局部刷新时的加载态 */
.cs-archive.is-loading,
.cs-search-page.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

/* 搜索表单 */
.cs-search-box {
    margin: 4px 0 20px;
}

.cs-search-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-search-inline input {
    flex: 1;
    min-width: 0;
}

.cs-search-inline .cs-btn svg {
    width: 16px;
    height: 16px;
}

/* 未登录门禁卡 */
.cs-gate-card {
    padding: 40px 24px;
    text-align: center;
    background: var(--cs-surface);
    border: 1px dashed var(--cs-line-strong);
    border-radius: var(--cs-radius-l);
}

.cs-gate-card.is-compact {
    padding: 24px 18px;
}

.cs-gate-ico {
    display: block;
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1;
}

.cs-gate-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cs-gate-card p {
    max-width: 560px;
    margin: 0 auto 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--cs-muted);
}

.cs-gate-card form {
    max-width: 520px;
    margin: 18px auto 0;
    text-align: left;
}

.cs-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* 表单卡 */
.cs-formcard-body {
    display: block;
}

.cs-formcard-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cs-line);
}

.cs-formcard-foot .cs-muted {
    font-size: 13px;
}

.cs-apply-form textarea {
    min-height: 96px;
}

/* 资料表单 */
.cs-form-grid > .cs-field,
.cs-form-grid > .cs-form-avatar,
.cs-form-grid > .cs-form-actions {
    min-width: 0;
}

.cs-form-avatar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    margin-bottom: 6px;
    background: var(--cs-surface-2);
    border-radius: var(--cs-radius);
}

.cs-form-avatar img {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cs-surface);
}

.cs-form-avatar .cs-muted {
    font-size: 12px;
    line-height: 1.6;
}

.cs-form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* 统计宫格 */
.cs-account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cs-account-stats.is-three {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 4px 0 20px;
}

/* 折叠面板（积分记录） */
.cs-fold {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
}

.cs-fold > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cs-fold > summary::-webkit-details-marker {
    display: none;
}

.cs-fold > summary::after {
    content: "▾";
    margin-left: auto;
    font-size: 13px;
    color: var(--cs-muted);
    transition: transform 0.2s ease;
}

.cs-fold[open] > summary::after {
    transform: rotate(180deg);
}

.cs-fold > summary span {
    font-size: 12px;
    font-weight: 500;
    color: var(--cs-muted);
}

.cs-fold-body {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--cs-line);
}

.cs-log li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cs-line);
    font-size: 13px;
}

.cs-log li:last-child {
    border-bottom: 0;
}

.cs-log li > span {
    flex: 1;
    min-width: 0;
}

.cs-log em {
    font-style: normal;
    font-weight: 700;
}

.cs-log em.is-plus {
    color: #2e9e5b;
}

.cs-log em.is-minus {
    color: var(--cs-seal);
}

.cs-log i {
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
    white-space: nowrap;
}

/* 等级卡 */
.cs-level-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
    background: var(--cs-surface-2);
    border-radius: var(--cs-radius);
}

.cs-level-card > em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cs-muted);
}

.cs-level-card > strong {
    font-size: 20px;
    font-weight: 800;
}

.cs-level-card > p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--cs-muted);
}

.cs-level-card .cs-btn {
    margin-top: 6px;
}

/* 积分胶囊 */
.cs-points-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-ink-2);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-points-chip b {
    font-size: 15px;
    font-weight: 800;
    color: var(--cs-seal);
}

/* 分享管理 */
.cs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
}

.cs-filter-bar input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 9px 14px;
    font-size: 14px;
}

.cs-filter-bar select {
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
    padding: 9px 34px 9px 14px;
    font-size: 14px;
}

.cs-share-list {
    display: block;
}

.cs-share-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
}

.cs-share-item:hover {
    border-color: color-mix(in srgb, var(--cs-seal) 36%, transparent);
}

.cs-share-main {
    flex: 1;
    min-width: 0;
}

.cs-share-title {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-ink);
}

.cs-share-title:hover {
    color: var(--cs-seal);
}

.cs-share-main .cs-res-tags {
    margin-top: 8px;
}

.cs-share-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--cs-muted);
}

/* 求片广场卡片 */
.cs-plaza-media {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: var(--cs-radius-s);
    overflow: hidden;
    background: var(--cs-surface-2);
}

.cs-plaza-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-plaza-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cs-plaza-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cs-plaza-meta {
    margin-top: 5px;
    font-size: 12px;
    color: var(--cs-ink-2);
}

.cs-plaza-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-plaza-body .cs-res-tags {
    margin-top: 8px;
}

.cs-plaza-body .cs-btn {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 9px;
}

.cs-plaza-card .cs-plaza-body > .cs-btn {
    margin-top: 10px;
}

/* 留言板 */
.cs-msg-form {
    padding: 18px;
    margin-bottom: 20px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-l);
}

.cs-msg-form textarea {
    min-height: 88px;
}

.cs-msg-form-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cs-msg-form-bar select {
    width: auto;
    min-width: 130px;
    padding: 9px 34px 9px 14px;
    font-size: 14px;
}

.cs-msg-form-bar .cs-btn {
    margin-left: auto;
}

.cs-msg-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 6px;
}

.cs-msg-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-muted);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-msg-cat.is-on {
    background: var(--cs-ink);
    color: var(--cs-paper);
}

.cs-msg-list {
    display: block;
}

.cs-msg-cat-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cs-ink-2);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-msg-cat-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

.cs-msg-cat-dot.is-suggest { color: #38b66a; }
.cs-msg-cat-dot.is-bug { color: #e2574c; }
.cs-msg-cat-dot.is-broken { color: #e0a13a; }
.cs-msg-cat-dot.is-add { color: #4a90e2; }

.cs-msg-head em {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-msg-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--cs-ink-2);
    word-break: break-word;
}

.cs-msg-reply strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-seal);
}

.cs-msg-reply p {
    font-size: 13px;
    line-height: 1.8;
}

/* 兑换记录 */
.cs-order-list {
    display: block;
}

.cs-order {
    align-items: flex-start;
}

.cs-order-main h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cs-order-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-order-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--cs-pill);
    background: var(--cs-surface-2);
    color: var(--cs-muted);
}

.cs-order-status.is-pending {
    background: color-mix(in srgb, #e0a13a 20%, transparent);
    color: #b9822a;
}

.cs-order-status.is-done {
    background: color-mix(in srgb, #38b66a 20%, transparent);
    color: #2a8c52;
}

.cs-order-addr {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--cs-ink-2);
}

.cs-order-addr-form {
    flex: 0 0 320px;
    max-width: 100%;
}

.cs-order-addr-form textarea {
    min-height: 66px;
    font-size: 13px;
}

.cs-order-addr-form .cs-btn {
    margin-top: 10px;
}

.cs-order-code b {
    cursor: pointer;
}

/* 商城商品 */
.cs-goods-desc {
    font-size: 12px;
    line-height: 1.7;
    color: var(--cs-muted);
}

.cs-goods-body .cs-goods-type {
    position: static;
    align-self: flex-start;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cs-muted);
    background: var(--cs-surface-2);
    border-radius: var(--cs-pill);
}

.cs-goods.is-out .cs-goods-media img {
    opacity: 0.55;
}

.cs-goods.is-out .cs-goods-price {
    color: var(--cs-muted);
}

/* 选片器（TMDb / 站内检索） */
.cs-search-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cs-picker-input {
    flex: 1;
    min-width: 0;
}

.cs-pick-list[hidden] {
    display: none;
}

.cs-pick-img {
    display: block;
    margin-bottom: 8px;
}

.cs-pick-img img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--cs-radius-s);
    background: var(--cs-surface-2);
}

.cs-pick-txt {
    display: block;
}

.cs-pick-txt strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
}

.cs-pick-txt em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-pick-txt i {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-style: normal;
    font-size: 11px;
    line-height: 1.6;
    color: var(--cs-muted);
    opacity: 0.85;
}

.cs-pick-empty {
    grid-column: 1 / -1;
    padding: 20px;
    font-size: 13px;
    text-align: center;
    color: var(--cs-muted);
    background: var(--cs-surface-2);
    border-radius: var(--cs-radius);
}

.cs-picked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--cs-ink-2);
    background: var(--cs-surface-2);
    border-radius: var(--cs-radius-s);
}

.cs-picked[hidden] {
    display: none;
}

.cs-picked b {
    color: var(--cs-seal);
}

.cs-picked img {
    width: 46px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
}

/* 网盘需求选项 */
.cs-pan-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-pan-opt > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 发布页资源行 */
.cs-res-rows {
    display: block;
    margin-bottom: 10px;
}

.cs-res-editor-row {
    display: grid;
    grid-template-columns: 100px 130px minmax(0, 1fr) 96px 92px;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--cs-surface-2);
    border-radius: var(--cs-radius-s);
}

.cs-res-editor-row input,
.cs-res-editor-row select {
    padding: 9px 12px;
    font-size: 13px;
}

.cs-res-editor-row select {
    padding-right: 30px;
    background-position: right 10px center;
}

/* 文章页 */
.cs-single-head {
    padding: 22px 0 6px;
}

.cs-single-head h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.cs-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--cs-muted);
}

.cs-single-meta a {
    color: var(--cs-muted);
}

.cs-single-meta a:hover {
    color: var(--cs-seal);
}

.cs-single-thumb {
    margin: 18px 0;
    border-radius: var(--cs-poster-radius);
    overflow: hidden;
}

.cs-post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.cs-post-nav-item {
    display: block;
    padding: 14px 16px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
}

.cs-post-nav-item.is-next {
    text-align: right;
}

.cs-post-nav-item:hover {
    border-color: color-mix(in srgb, var(--cs-seal) 40%, transparent);
}

.cs-post-nav-item em {
    display: block;
    margin-bottom: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--cs-muted);
}

.cs-post-nav-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-ink);
}

/* 登录页 */
.cs-login-embed {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-l);
}

/* ==========================================================================
   11. 响应式
   ========================================================================== */

@media (max-width: 900px) {
    .cs-hero-side-item {
        flex: 0 0 min(240px, 70vw);
    }

    .cs-movie-head-inner {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 24px;
    }

    .cs-res-editor-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-order-addr-form {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* 轮播与下方首个区块的间距对齐参考站（hero 8px + 容器 10px） */
    .cs-hero-wrap {
        padding: 8px 0 0;
    }

    .cs-hero-main {
        min-height: 180px;
    }

    .cs-hero-slide h2 {
        font-size: 20px;
    }

    /* 参考站手机端轮播下方没有侧栏推荐列表，移动端隐藏 */
    .cs-hero-side {
        display: none;
    }

    /* 筛选面板：移动端默认收起，由按钮展开 */
    .cs-filter {
        display: block;
        padding: 0;
        margin-bottom: 18px;
        background: transparent;
        border: 0;
    }

    .cs-filter-mbar {
        display: flex;
    }

    .cs-filter-body {
        display: none;
        margin-top: 12px;
        padding: 14px 14px 4px;
        background: var(--cs-surface);
        border: 1px solid var(--cs-line);
        border-radius: var(--cs-radius);
    }

    .cs-filter.is-sort-open .cs-filter-body,
    .cs-filter.is-filter-open .cs-filter-body {
        display: block;
    }

    .cs-filter.is-sort-open .cs-filter-row:not([data-row="sort"]),
    .cs-filter.is-filter-open .cs-filter-row[data-row="sort"] {
        display: none;
    }

    .cs-filter-opts {
        max-height: none;
        overflow: visible;
    }

    /* 详情页头部 */
    .cs-movie-head {
        padding: 18px 0 4px;
    }

    .cs-movie-head-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    /* 海报尺寸：基准 190px → +20% 228px → 再 +10% 251px（高度按 2:3 自动等比） */
    .cs-movie-poster {
        max-width: 251px;
        margin: 0 auto;
    }

    /* 影视名称居中（与参考站一致） */
    .cs-movie-title {
        text-align: center;
    }

    .cs-movie-pills {
        justify-content: flex-end;
    }

    .cs-movie-main {
        text-align: left;
    }

    .cs-def {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
        font-size: 13px;
    }

    .cs-def.cs-def-collapse {
        grid-template-columns: 68px minmax(0, 1fr) auto;
    }

    /* 资源行 */
    .cs-res-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cs-res-go {
        width: 100%;
        text-align: center;
    }

    /* 列表卡 */
    .cs-share-item,
    .cs-order {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-share-item .cs-btn {
        width: 100%;
    }

    .cs-res-editor-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .cs-search-inline,
    .cs-search-picker,
    .cs-filter-bar {
        flex-wrap: wrap;
    }

    .cs-search-inline .cs-btn,
    .cs-search-picker .cs-btn {
        width: 100%;
    }

    .cs-search-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-msg-form-bar .cs-btn {
        margin-left: 0;
        width: 100%;
    }

    .cs-single-head h1 {
        font-size: 24px;
    }

    .cs-footer-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    /* 窄屏页头：品牌文字收窄，避免与工具按钮互相挤压 */
    .cs-header-inner {
        padding: 10px 12px;
    }

    .cs-brand-text {
        font-size: 21px;
        letter-spacing: 1px;
        max-width: 52vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .cs-header-tools {
        gap: 6px;
    }

    .cs-tool-btn {
        width: 34px;
        height: 34px;
    }

    .cs-account-stats,
    .cs-account-stats.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-form-avatar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   12. 搜索浮层可见性修正（与 ui.js 的 hidden 属性契约对齐）
   ========================================================================== */

.cs-search-overlay[hidden] {
    display: none;
}

.cs-search-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.cs-search-overlay:not([hidden]) .cs-search-panel {
    transform: translateY(0);
}

/* 抽屉遮罩同样以 hidden 属性为准（ui.js 只切 hidden，layout.css 原本只认 .is-on） */
.cs-drawer-mask[hidden] {
    display: none;
}

.cs-drawer-mask:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   详情页：用户补充网盘资源
   ========================================================================== */

.cs-res-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-res-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 22px;
    border: 1px dashed var(--cs-line-strong);
    border-radius: var(--cs-radius-l);
    background: var(--cs-surface);
    text-align: center;
}

.cs-res-empty-ico {
    font-size: 34px;
    line-height: 1;
}

.cs-res-empty h3 {
    margin: 4px 0 0;
    font-size: 17px;
    color: var(--cs-ink);
}

.cs-res-empty p {
    max-width: 580px;
    margin: 0;
    color: var(--cs-muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.cs-res-empty .cs-btn {
    margin-top: 4px;
}

.cs-pan-form {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-l);
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow);
}

.cs-pan-form[hidden] {
    display: none !important;
}

.cs-pan-form-head h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--cs-ink);
}

.cs-pan-form-head p {
    margin: 0 0 14px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.75;
}

.cs-pan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 14px;
}

.cs-pan-grid .cs-pan-wide {
    grid-column: 1 / -1;
}

.cs-pan-grid .cs-field {
    margin: 0;
}

.cs-pan-grid .cs-field[hidden] {
    display: none !important;
}

.cs-pan-form-tip {
    margin: 12px 0 0;
    color: var(--cs-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.cs-pan-form-foot {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.cs-res-ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px dashed var(--cs-line-strong);
    border-radius: var(--cs-radius);
    color: var(--cs-muted);
    font-size: 13px;
}

.cs-res-ask p {
    margin: 0;
}

.cs-res-row.is-new {
    animation: csResNewRow 2.2s ease;
}

@keyframes csResNewRow {
    0% {
        background: rgba(181, 68, 45, 0.16);
    }
    100% {
        background: transparent;
    }
}

.cs-tag.is-pending {
    color: var(--cs-seal);
    border-color: currentColor;
}

@media (max-width: 900px) {
    .cs-pan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cs-pan-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cs-pan-form {
        padding: 14px;
    }

    .cs-pan-form-foot {
        flex-direction: column;
    }

    .cs-pan-form-foot .cs-btn {
        width: 100%;
    }

    .cs-res-head-right {
        gap: 8px;
    }

    .cs-res-ask {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   详情页：影片信息两列 + 收藏/复制链接右上角（对齐参考站，仅电脑端生效）
   ========================================================================== */

@media (min-width: 769px) {
    .cs-defs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .cs-def {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
    }

    .cs-def.cs-def-collapse {
        grid-template-columns: 64px minmax(0, 1fr) auto;
    }

    .cs-movie-main {
        position: relative;
    }

    .cs-movie-title {
        max-width: calc(100% - 240px);
    }

    .cs-movie-alias {
        max-width: calc(100% - 240px);
    }

    /* 详情页评分 / 年份 / 浏览 / 分类一排靠到最右（手机端不受影响） */
    .cs-movie-main .cs-movie-pills {
        justify-content: flex-end;
    }

    .cs-movie-actions {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        z-index: 3;
    }
}
