/* =====================================================================
   模板基座（六套模板共用）：结构原语 + 全站内页组件。
   ---------------------------------------------------------------------
   规则：
   1) 这里只写结构与排版，颜色/圆角/字体/阴影一律走 CSS 变量（var(--xxx)）；
   2) :root 保留一份默认模板（aurora）的兜底值：themes/<key>.css 404 或
      被 CDN 抖动时，页面仍是完整皮肤而不是无样式白底；
   3) 加载链顺序固定：base.css → themes/<key>.css → skins/<key>.css → motion.css。
      模板专属的外壳（导航/页脚/首页版式）写在 skins/<key>.css，不要写在这里。
   ===================================================================== */

/* ===== 默认模板兜底（与 themes/aurora.css 保持一致） ===== */
:root {
    --bg: #07080c;
    --bg-soft: #0d1018;
    --panel: #12151f;
    --panel-2: #171b27;
    --panel-glass: rgba(7, 8, 12, .72);
    --line: rgba(255, 255, 255, .12);
    --line-soft: rgba(255, 255, 255, .07);
    --border-strong: rgba(255, 255, 255, .22);

    --text: #f2f3f7;
    --text-soft: #c9cddb;
    --muted: #9aa0b4;

    --accent: #6d5efc;
    --accent-hover: #7f72ff;
    --accent-2: #23d5ab;
    --accent-soft: rgba(109, 94, 252, .16);
    --accent-grad: linear-gradient(120deg, #6d5efc 0%, #23d5ab 100%);
    --hot: #ff3b5c;
    --hot-soft: rgba(255, 59, 92, .14);
    --hot-text: #ff8095;
    --success: #2bd97c;
    --danger: #ff5470;
    --star: #ffc247;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 980px;

    --shadow: 0 24px 48px -24px rgba(109, 94, 252, .55);
    --shadow-soft: 0 8px 24px -16px rgba(0, 0, 0, .8);
    --card-lift: -3px;
    --card-glow: 0 0 0 1px var(--border-strong), 0 24px 48px -26px rgba(109, 94, 252, .7);

    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --display-weight: 700;
    --display-tracking: -.03em;
    --kicker-tracking: .14em;
    --kicker-transform: uppercase;

    --hero-min: 560px;
    --hero-radius: 0px;
    --hero-scrim: linear-gradient(90deg, rgba(4, 5, 9, .94) 0%, rgba(4, 5, 9, .66) 46%, rgba(4, 5, 9, .2) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 12, .58) 24%, rgba(7, 8, 12, 0) 62%);
    --hero-fallback: radial-gradient(120% 130% at 8% 0%, rgba(109, 94, 252, .34) 0%, transparent 58%),
        radial-gradient(90% 90% at 100% 100%, rgba(35, 213, 171, .22) 0%, transparent 62%),
        #0a0c14;

    --max-width: 1240px;
    --gutter: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    color: var(--text);
}

button { font: inherit; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ===== 顶部导航（模板外壳会覆写布局，这里只保证结构与移动端折叠可用） ===== */
.site-header { position: sticky; z-index: 40; top: 0; }

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 64px;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    color: var(--text);
    white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }

.nav-links a {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--text); background: var(--accent-soft); }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 6px 10px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.account-links { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.account-links a { color: var(--text-soft); }
.account-links a:hover { color: var(--accent-2); }
.account-links form { display: inline; margin: 0; }
.account-member-link { font-weight: 600; color: var(--text); }

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    cursor: pointer;
}
.link-button:hover { color: var(--accent-2); }

/* ===== 容器与区块 ===== */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter) 88px;
}

.section { padding: 44px 0; }

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 30px); }

.section-kicker,
.eyebrow {
    margin: 0;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--kicker-tracking);
    text-transform: var(--kicker-transform);
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.more-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

.empty-state,
.detail-empty,
.movies-empty {
    padding: 56px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--text);
    background: var(--panel);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    border-color: transparent;
    color: #0b0d13;
    background: var(--accent-grad);
    box-shadow: 0 18px 34px -18px var(--accent);
}
.btn-primary:hover { color: #0b0d13; box-shadow: 0 18px 34px -16px var(--accent); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ===== 首屏（视频轮播契约：.hero-carousel/.hero-slide/.hero-video/.hero-content） ===== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: var(--hero-min);
    overflow: hidden;
    color: #fff;
    background: var(--hero-fallback);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: var(--hero-scrim);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 96px var(--gutter) 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-content h1 { margin: 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.1; color: #fff; }
.hero-description { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-content .btn-primary { background: #fff; color: #0b0d13; box-shadow: none; }
.hero-content .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }

.hero-content[data-position="top-right"] { align-items: flex-end; text-align: right; justify-content: flex-start; }
.hero-content[data-position="bottom-left"] { justify-content: flex-end; padding-bottom: 96px; }
.hero-content[data-position="bottom-right"] { align-items: flex-end; text-align: right; justify-content: flex-end; padding-bottom: 96px; }

.hero-nav {
    position: absolute;
    left: 0; right: 0; bottom: 26px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hero-nav .dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.hero-nav .dot.is-active { background: #fff; transform: scale(1.2); }

/* ===== 搜索 ===== */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(560px, 100%);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--panel);
}
.search-box svg { flex: 0 0 auto; width: 18px; height: 18px; margin-left: 10px; fill: var(--muted); }
.search-box input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 8px;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
    min-width: 84px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-pill);
    color: #0b0d13;
    background: var(--accent-grad);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.search-box button:hover { filter: brightness(1.06); }

/* ===== 影片卡片（首页与列表页共用；缩略图 + 标题 + 元信息） ===== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px 18px;
}

.movie-card { min-width: 0; }

.movie-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    box-shadow: var(--shadow-soft);
}
.movie-poster img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.movie-card:hover .movie-poster { transform: translateY(var(--card-lift)); box-shadow: var(--card-glow); }
.movie-card:hover .movie-poster img { transform: scale(1.04); }

.poster-placeholder {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: var(--muted);
    background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 2px;
}

.movie-rating {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--star);
    background: rgba(0, 0, 0, .66);
    font-size: 12px;
    font-weight: 700;
}

.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .2s;
}
.movie-card:hover .play-overlay { opacity: 1; }
.play-triangle {
    width: 0; height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid rgba(255, 255, 255, .92);
}

.movie-info h3 {
    margin: 10px 0 3px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.movie-info p,
.movie-info time {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.movie-info time { margin-top: 2px; }

/* ===== 影人卡片 ===== */
.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 16px;
}

.actor-card { min-width: 0; }

.actor-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    box-shadow: var(--shadow-soft);
}
.actor-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.actor-card:hover .actor-photo img { transform: scale(1.04); }

.actor-photo-placeholder {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    color: var(--muted);
    background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
}

.actor-heat {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--star);
    background: rgba(0, 0, 0, .66);
    font-size: 12px;
    font-weight: 700;
}

.actor-info h3 {
    margin: 10px 0 3px;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.actor-info p,
.actor-info span {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 名次（榜单类区块共用） ===== */
.rank-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rank-item { display: flex; align-items: center; gap: 14px; }
.rank-no {
    flex: 0 0 auto;
    width: 44px;
    color: var(--rank-color, var(--text));
    -webkit-text-stroke: var(--rank-stroke-w, 0) var(--rank-stroke, transparent);
    text-shadow: var(--rank-shadow, none);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

/* ===== 列表页：影片 / 影人 ===== */
.movies-hero,
.people-hero,
.person-hero {
    color: #fff;
    background: var(--hero-fallback);
}
.movies-hero-inner,
.people-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 56px var(--gutter) 48px; }
.movies-hero h1,
.people-hero h1 { margin: 8px 0 12px; font-size: clamp(28px, 3.6vw, 42px); color: #fff; }
.movies-hero-desc,
.people-hero-desc { margin: 0 0 24px; color: rgba(255, 255, 255, .8); font-size: 15px; }

.movies-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px var(--gutter) 74px;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.filter-group + .filter-group { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.filter-group h2 { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.facet-list { margin: 0; padding: 0; max-height: 220px; overflow: auto; list-style: none; }
.facet-list li + li { margin-top: 2px; }
.facet-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
}
.facet-list label:hover { background: var(--accent-soft); }
.facet-list input { flex: 0 0 auto; accent-color: var(--accent); }
.facet-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-list em { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-style: normal; }

.movies-main { min-width: 0; }
.movies-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.movies-toolbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.movies-reset { color: var(--accent-2); font-size: 14px; font-weight: 600; }

.sort-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--panel);
    font: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.movies-empty p { margin: 0 0 12px; font-size: 15px; }
.movies-empty a { color: var(--accent-2); font-weight: 600; }

.movies-pager,
.people-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.movies-pager .page-link,
.people-pager .page-link {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--panel);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}
.movies-pager .page-link:hover,
.people-pager .page-link:hover { border-color: var(--accent-2); color: var(--accent-2); }
.movies-pager .page-info,
.people-pager .page-info { color: var(--muted); font-size: 14px; }

.people-search { display: flex; gap: 10px; width: min(560px, 100%); }
.people-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--panel);
    font: inherit;
    outline: none;
}
.people-search button {
    min-width: 88px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    color: #0b0d13;
    background: var(--accent-grad);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.people-content { max-width: var(--max-width); margin: 0 auto; padding: 36px var(--gutter) 74px; }
.people-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.people-count { margin: 0; color: var(--muted); font-size: 14px; }
.people-count strong { color: var(--text); }
.people-reset { color: var(--accent-2); font-size: 14px; font-weight: 600; }

/* ===== 影人详情 ===== */
.person-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 52px var(--gutter) 44px;
    display: flex;
    gap: 36px;
    align-items: flex-end;
}
.person-photo-col { flex-shrink: 0; }
.person-photo {
    width: 210px;
    aspect-ratio: 2 / 3;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--panel-2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.person-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
    font-family: var(--font-display);
    font-size: 54px;
}
.person-main-col { flex: 1; min-width: 0; }
.person-title { margin: 0; font-size: clamp(28px, 3.6vw, 42px); color: #fff; }
.person-alias { margin: 6px 0 0; color: rgba(255, 255, 255, .74); font-size: 14px; }
.person-meta { margin: 12px 0 16px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.person-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.person-stat {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1);
    font-size: 14px;
}
.person-stat strong {
    display: block;
    margin-bottom: 2px;
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}
.person-birthplace { margin: 16px 0 0; color: rgba(255, 255, 255, .78); font-size: 14px; }

.person-body { max-width: var(--max-width); margin: 0 auto; padding: 38px var(--gutter) 74px; }
.person-body h2 { margin: 0 0 16px; font-size: 21px; }
.person-bio { margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.person-bio-text { margin: 0; max-width: 860px; color: var(--text-soft); font-size: 15px; line-height: 1.9; white-space: pre-line; }

/* ===== 影片详情 ===== */
.detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 420px;
    color: #fff;
    background: var(--hero-fallback) center/cover no-repeat;
}
.detail-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 55%, var(--bg) 100%);
}
.detail-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--gutter) 40px;
    display: flex;
    gap: 36px;
    align-items: flex-end;
}
.detail-poster-col { flex-shrink: 0; }
.detail-poster {
    width: 210px;
    aspect-ratio: 2 / 3;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--panel-2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.detail-poster-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
}
.detail-main-col { flex: 1; min-width: 0; }
.detail-title { margin: 0; font-size: clamp(28px, 3.6vw, 44px); color: #fff; }
.detail-title-year { color: rgba(255, 255, 255, .62); font-weight: 600; }
.detail-meta { margin: 12px 0 20px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-pill);
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.detail-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.detail-btn-primary { border-color: transparent; color: #0b0d13; background: var(--accent-grad); }
.detail-btn-primary:hover { background: var(--accent-grad); color: #0b0d13; filter: brightness(1.05); }
.detail-btn-disabled { opacity: .55; cursor: not-allowed; }
.detail-tagline {
    margin: 22px 0 8px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}
.detail-plot { margin: 0; max-width: 720px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.85; }

.detail-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--gutter) 70px;
    display: flex;
    gap: 44px;
    align-items: flex-start;
}
.detail-side {
    flex: 0 0 260px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    font-size: 14px;
}
.detail-side-item { margin: 0 0 12px; color: var(--text-soft); line-height: 1.6; }
.detail-side-item strong { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12.5px; }
.detail-keywords { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-keyword {
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 12px;
}
.detail-link { color: var(--accent-2); }
.detail-link:hover { text-decoration: underline; }

.detail-main { flex: 1; min-width: 0; }
.detail-main h2 { margin: 0 0 16px; font-size: 21px; }
.detail-main section + section { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 16px; }
.cast-card { min-width: 0; }
.cast-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--panel-2);
}
.cast-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: linear-gradient(135deg, var(--panel-2), var(--bg-soft));
    font-family: var(--font-display);
    font-size: 26px;
}
.cast-name { margin: 8px 0 2px; color: var(--text); font-size: 14px; font-weight: 700; }
.cast-character { margin: 0; color: var(--muted); font-size: 12.5px; }

.crew-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; }
.crew-list li { break-inside: avoid; padding: 6px 0; font-size: 14px; }
.crew-role { margin-right: 10px; color: var(--muted); font-size: 12.5px; }
.crew-name { color: var(--text); font-weight: 600; }

.review-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.review-head { display: flex; align-items: baseline; gap: 12px; }
.review-author { color: var(--text); font-weight: 700; }
.review-score { color: var(--star); font-size: 13px; font-weight: 700; }
.review-date { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.review-content { margin: 8px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.75; }
.review-empty {
    padding: 34px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}
.review-empty-tip { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* 详情页的收藏 / 片单控件 */
.detail-fav-btn-active { background: var(--star); color: #14120f; border-color: transparent; }
.detail-addlist {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .35);
}
.detail-addlist-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.detail-addlist-label { color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.detail-addlist-state { margin-left: auto; color: rgba(255, 255, 255, .6); font-size: 12px; }
.detail-addlist-body { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-addlist-empty { color: rgba(255, 255, 255, .6); font-size: 12px; }
.detail-addlist-empty a { color: var(--accent-2); }
.detail-chip {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-pill);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.detail-chip.on { border-color: transparent; color: #0b0d13; background: var(--accent-2); }
.detail-toast {
    position: fixed;
    left: 50%; bottom: 40px;
    z-index: 999;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: rgba(0, 0, 0, .86);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
    transition: all .25s;
}
.detail-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 登录 / 注册 ===== */
.auth-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 64px);
    padding: 48px var(--gutter);
    background: var(--hero-fallback);
}
.auth-card {
    width: min(460px, 100%);
    padding: 36px 36px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}
.auth-card-small { width: min(420px, 100%); }
.auth-card h1 { margin: 6px 0 8px; font-size: 25px; }
.auth-card .section-kicker { color: var(--accent-2); font-size: 11px; letter-spacing: .2em; }
.auth-intro { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.auth-card label { display: block; margin: 14px 0 6px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input:not([type]) {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--bg-soft);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card input::placeholder { color: var(--muted); }
.auth-error { display: block; margin-top: 5px; color: var(--danger); font-size: 12px; }
.auth-error ul { margin: 4px 0 0; padding-left: 16px; }
.auth-success {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 600;
}
.auth-submit {
    width: 100%;
    height: 46px;
    margin-top: 22px;
    border: 0;
    border-radius: var(--radius-pill);
    color: #0b0d13;
    background: var(--accent-grad);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px var(--accent); }
.auth-switch { margin: 16px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-code {
    display: grid;
    place-items: center;
    width: 128px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--accent-2);
    background: var(--panel-2);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 6px;
    text-indent: 6px;
    user-select: none;
}
.check-row { display: flex !important; align-items: center; gap: 8px; margin-top: 14px !important; font-weight: 500 !important; }
.check-row input { width: 16px; height: 16px; accent-color: var(--accent); }
.check-row a { color: var(--accent-2); font-weight: 600; }

/* ===== 关于 / 条款 / 隐私 / 联系 ===== */
.legal-wrap { width: min(900px, calc(100% - 2 * var(--gutter))); margin: 48px auto 80px; }
.legal-card {
    padding: 40px 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}
.legal-kicker { margin: 0; color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: var(--kicker-transform); }
.legal-title { margin: 8px 0 20px; font-size: clamp(24px, 3vw, 32px); }
.legal-prose { max-width: 760px; color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.legal-prose h2 { margin: 24px 0 10px; color: var(--text); font-size: 18px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose ul { margin: 0 0 14px; padding-left: 22px; }
.legal-prose li { margin: 4px 0; }
.legal-prose a { color: var(--accent-2); }

/* ===== 页脚（模板外壳会各自重排，这里只保留基础排布） ===== */
.site-footer {
    padding: 30px var(--gutter);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg-soft);
    font-size: 13px;
    text-align: center;
}
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.site-footer-links a:hover { color: var(--accent-2); }
.footer-note { margin: 4px 0 0; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .movies-content { grid-template-columns: 1fr; }
    .filter-panel { position: static; max-height: none; }
    .detail-body { flex-direction: column; }
    .detail-side { flex: 1 1 auto; width: 100%; }
    .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; --hero-min: 420px; }
    .site-nav { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
    .nav-toggle { display: block; }
    .nav-links {
        order: 3;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 0 12px;
        gap: 0;
    }
    .nav-toggle[aria-expanded="true"] + .nav-links,
    .nav-toggle[aria-expanded="true"] ~ .nav-links { display: flex; }
    .nav-links a { padding: 10px 12px; }
    .account-links { margin-left: auto; gap: 10px; }

    .hero-content { padding: 64px var(--gutter) 72px; }
    .hero-description { font-size: 14px; }
    .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .actor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

    .person-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px var(--gutter) 32px; }
    .person-photo { width: 130px; }
    .detail-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px var(--gutter) 32px; }
    .detail-poster { width: 130px; }
    .detail-title { font-size: 26px; }
    .crew-list { columns: 1; }
    .legal-card { padding: 26px 20px; }
    .auth-card { padding: 28px 22px 22px; }
}
