/* ==========================================================================
   搜剧AI · 设计系统
   深色电影主题 · 复刻 souju.ai 视觉规范
   ========================================================================== */

:root {
    --movie-bg: #070b12;
    --movie-bg-elevated: #0d1520;
    --movie-bg-soft: #0a121b;
    --movie-surface: rgba(255, 255, 255, .06);
    --movie-surface-strong: rgba(255, 255, 255, .09);
    --movie-surface-soft: rgba(255, 255, 255, .035);
    --movie-border: rgba(255, 255, 255, .12);
    --movie-border-soft: rgba(255, 255, 255, .086);
    --movie-text: rgba(255, 255, 255, .90);
    --movie-text-muted: rgba(255, 255, 255, .54);
    --movie-text-subtle: rgba(255, 255, 255, .38);
    --movie-primary: #f0c987;
    --movie-primary-strong: #e8b86d;
    --movie-primary-muted: rgba(232, 184, 109, .14);
    --movie-primary-foreground: #1b1205;
    --movie-accent: #f3c969;
    --movie-accent-muted: rgba(243, 201, 105, .075);
    --movie-success: #a7f3d0;
    --movie-danger: #fecaca;
    --movie-warning: #fde68a;
    --movie-danger-bg: rgba(239, 68, 68, .12);
    --movie-warning-bg: rgba(251, 191, 36, .10);
    --movie-warning-border: rgba(253, 230, 138, .28);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --sidebar-width: 272px;
    --sidebar-collapsed: 76px;
    --header-height: 60px;
    --page-edge: 32px;
    --shadow-1: 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-2: 0 18px 48px rgba(0, 0, 0, .42);
    --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--movie-bg);
    color: var(--movie-text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1100px 520px at 52% -8%, rgba(232, 184, 109, .12), transparent 62%),
        radial-gradient(900px 480px at 100% 0%, rgba(125, 211, 252, .055), transparent 60%);
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(232, 184, 109, .28);
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .24);
    background-clip: content-box;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.ico {
    width: 18px;
    height: 18px;
    flex: none;
}

/* ==========================================================================
   骨架
   ========================================================================== */

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.app__main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease;
}

body.sidebar-collapsed .app__main {
    margin-left: var(--sidebar-collapsed);
}

/* ---------------- 侧边栏 ---------------- */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 12px 12px;
    background: var(--movie-bg-elevated);
    border-right: 1px solid var(--movie-border-soft);
    overflow: hidden;
    transition: width .2s ease, transform .22s ease;
}

.sidebar__glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 150px;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 0%, rgba(232, 184, 109, .12), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed);
}

body.sidebar-collapsed .side-user__meta,
body.sidebar-collapsed .side-user__ops,
body.sidebar-collapsed .side-user__progress,
body.sidebar-collapsed .side-notice,
body.sidebar-collapsed .side-action__label,
body.sidebar-collapsed .side-tab span,
body.sidebar-collapsed .side-tab em,
body.sidebar-collapsed .side-scroll,
body.sidebar-collapsed .side-login span {
    display: none;
}

body.sidebar-collapsed .side-user__top {
    justify-content: center;
}

body.sidebar-collapsed .side-actions {
    grid-template-columns: 1fr;
}

body.sidebar-collapsed .side-tabs {
    grid-template-columns: 1fr;
}

body.sidebar-collapsed .side-login {
    padding: 0;
    width: 40px;
    margin: 0 auto;
}

.sidebar-scrim {
    display: none;
}

/* 用户卡 */
.side-user {
    position: relative;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--movie-surface-soft);
    border: 1px solid var(--movie-border-soft);
}

.side-user__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-user__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    border: 1px solid rgba(232, 184, 109, .3);
    box-shadow: 0 0 0 3px rgba(232, 184, 109, .08);
}

.side-user__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-user__meta {
    min-width: 0;
    flex: 1;
}

.side-user__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-user__hint {
    display: block;
    font-size: 10px;
    color: var(--movie-text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-user__ops {
    display: flex;
    gap: 2px;
}

.side-user__progress {
    margin-top: 10px;
}

.side-user__bar {
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
}

.side-user__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--movie-primary-strong), var(--movie-primary));
}

.side-user__progress-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.side-user__percent {
    font-weight: 600;
    color: var(--movie-text-muted);
}

/* 公告 */
.side-notice {
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    background: var(--movie-warning-bg);
    border: 1px solid var(--movie-warning-border);
    color: rgba(253, 230, 138, .92);
    font-size: 11px;
    line-height: 1.45;
    transition: background .15s ease;
}

.side-notice:hover {
    background: rgba(251, 191, 36, .16);
}

.side-notice__ico {
    color: var(--movie-accent);
    display: flex;
    padding-top: 1px;
}

.side-notice__ico .ico {
    width: 14px;
    height: 14px;
}

.side-notice__text {
    display: block;
}

/* 快捷入口 */
.side-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.side-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    border-radius: var(--radius-sm);
    color: var(--movie-text-muted);
}

.side-action:hover {
    color: var(--movie-text);
}

.side-action__box {
    width: 100%;
    aspect-ratio: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--movie-border-soft);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.side-action:hover .side-action__box {
    background: var(--movie-primary-muted);
    border-color: rgba(232, 184, 109, .35);
    color: var(--movie-primary);
}

.side-action__box .ico {
    width: 17px;
    height: 17px;
}

.side-action__label {
    font-size: 10px;
    color: var(--movie-text-subtle);
    white-space: nowrap;
}

/* 历史 / 收藏 tabs */
.side-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--movie-border-soft);
}

.side-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.side-tab .ico {
    width: 14px;
    height: 14px;
}

.side-tab em {
    font-style: normal;
    font-size: 10px;
    padding: 0 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    color: var(--movie-text-subtle);
}

.side-tab.is-active,
.side-tab:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--movie-text);
}

/* 侧栏滚动区 */
.side-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.side-empty {
    padding: 22px 12px;
    text-align: center;
    border-radius: var(--radius);
    border: 1px dashed var(--movie-border-soft);
    background: rgba(255, 255, 255, .018);
}

.side-empty__ring {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--movie-border-soft);
    color: var(--movie-text-subtle);
}

.side-empty__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--movie-text-muted);
}

.side-empty__desc {
    margin-top: 3px;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.side-resume {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--movie-surface-soft);
    border: 1px solid var(--movie-border-soft);
    transition: border-color .15s ease, background .15s ease;
}

.side-resume:hover {
    border-color: rgba(232, 184, 109, .3);
    background: rgba(255, 255, 255, .05);
}

.side-resume__poster {
    position: relative;
    width: 54px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    flex: none;
    background: #162126;
}

.side-resume__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-resume__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    opacity: 0;
    transition: opacity .15s ease;
}

.side-resume__play .ico {
    width: 20px;
    height: 20px;
}

.side-resume:hover .side-resume__play {
    opacity: 1;
}

.side-resume__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.side-resume__meta strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--movie-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-resume__bar {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    margin-top: 2px;
}

.side-resume__bar i {
    display: block;
    height: 100%;
    background: var(--movie-primary-strong);
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.side-link span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-link .ico {
    width: 14px;
    height: 14px;
    color: var(--movie-text-subtle);
}

.side-link:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--movie-text);
}

/* 登录按钮 */
.side-footer {
    margin-top: auto;
    padding-top: 4px;
}

.side-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6d9ad, #e3b06a);
    color: #1b1205;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 6px 18px rgba(232, 184, 109, .18);
    transition: filter .15s ease, transform .15s ease;
}

.side-login:hover {
    filter: brightness(1.06);
}

.side-login:active {
    transform: translateY(1px);
}

.side-login .ico {
    width: 16px;
    height: 16px;
}

.side-login--user {
    background: rgba(255, 255, 255, .07);
    color: var(--movie-text);
    box-shadow: none;
    border: 1px solid var(--movie-border);
}

/* ---------------- 顶栏 ---------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 var(--page-edge);
    background: linear-gradient(180deg, rgba(11, 17, 19, .94), rgba(11, 17, 19, .72) 70%, rgba(11, 17, 19, 0));
    backdrop-filter: blur(14px);
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.topbar__right {
    justify-content: flex-end;
}

.topbar__center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    line-height: 1.2;
}

.brand__mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.brand__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.brand__name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    white-space: nowrap;
}

.brand__domain {
    font-size: 10px;
    color: var(--movie-text-subtle);
    letter-spacing: .12em;
    white-space: nowrap;
}

.topbar__title {
    text-align: center;
    min-width: 0;
}

.topbar__title h1 {
    font-size: 15px;
    font-weight: 600;
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar__title span {
    display: block;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.nav-pill {
    height: 30px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    font-size: 12px;
    color: var(--movie-text-muted);
    border: 1px solid transparent;
    transition: all .15s ease;
}

.nav-pill:hover {
    color: var(--movie-text);
    background: rgba(255, 255, 255, .05);
}

.nav-pill.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: var(--movie-border);
}

.topbar__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--movie-border);
}

.topbar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar__menu,
.topbar__back {
    display: none;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--movie-text-muted);
    border: 1px solid transparent;
    transition: all .15s ease;
}

.icon-btn:hover {
    color: var(--movie-text);
    background: rgba(255, 255, 255, .06);
    border-color: var(--movie-border-soft);
}

.icon-btn .ico {
    width: 17px;
    height: 17px;
}

.icon-btn--xs {
    width: 24px;
    height: 24px;
}

.icon-btn--xs .ico {
    width: 13px;
    height: 13px;
}

/* ---------------- 页面容器 ---------------- */

.page {
    flex: 1;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 var(--page-edge) 56px;
}

.page--wide {
    max-width: none;
}

.site-footer {
    padding: 26px var(--page-edge) 34px;
    border-top: 1px solid var(--movie-border-soft);
    color: var(--movie-text-subtle);
    font-size: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__links a:hover {
    color: var(--movie-text);
}

/* 移动端底部导航 */
.mobile-nav {
    display: none;
}

/* ==========================================================================
   通用组件
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all .15s ease;
}

.btn .ico {
    width: 14px;
    height: 14px;
}

.btn-primary {
    background: linear-gradient(180deg, #f6d9ad, #e3b06a);
    color: #1b1205;
    font-weight: 700;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-ghost {
    background: rgba(255, 255, 255, .05);
    border-color: var(--movie-border);
    color: var(--movie-text-muted);
}

.btn-ghost:hover {
    color: var(--movie-text);
    background: rgba(255, 255, 255, .08);
}

.btn-outline {
    border-color: rgba(232, 184, 109, .38);
    color: var(--movie-primary);
    background: rgba(232, 184, 109, .06);
}

.btn-outline:hover {
    background: rgba(232, 184, 109, .12);
}

.btn-danger {
    color: var(--movie-danger);
    background: var(--movie-danger-bg);
    border-color: rgba(252, 165, 165, .24);
}

.btn-xs {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 6px;
}

.btn-sm {
    height: 30px;
    font-size: 12px;
}

.btn-lg {
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* 区块标题 */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-head__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
}

.section-head__sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

/* 影片卡 */
.movie-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    scroll-snap-align: start;
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #182428, #0d1518);
    border: 1px solid var(--movie-border-soft);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.movie-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .3s ease;
}

.movie-card:hover .movie-card__poster {
    transform: translateY(-3px);
    border-color: rgba(232, 184, 109, .50);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 184, 109, .12);
}

.movie-card:hover .movie-card__img {
    transform: scale(1.045);
}

.movie-card__badge {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    max-width: calc(100% - 14px);
    padding: 2px 6px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .94);
    background: rgba(4, 11, 13, .62);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
}

.movie-card__heat {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

.movie-card__heat-ico {
    width: 10px;
    height: 10px;
    color: var(--movie-accent);
}

.movie-card__shade {
    position: absolute;
    inset: 30% 0 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(3, 9, 11, .55) 45%, rgba(3, 9, 11, .94));
}

.movie-card__info {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 8px 9px 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.movie-card__title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__episode {
    font-size: 10px;
    color: var(--movie-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card__meta {
    font-size: 10px;
    color: rgba(255, 255, 255, .56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card__progress {
    display: block;
    height: 2px;
    margin-top: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.movie-card__progress i {
    display: block;
    height: 100%;
    background: var(--movie-primary-strong);
}

.movie-card__hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 9, 11, .28);
    opacity: 0;
    transition: opacity .2s ease;
}

.movie-card:hover .movie-card__hover {
    opacity: 1;
}

.movie-card__play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 19, 22, .55);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(4px);
    transform: scale(.9);
    transition: transform .2s ease;
}

.movie-card:hover .movie-card__play {
    transform: scale(1);
}

.movie-card__play .ico {
    width: 17px;
    height: 17px;
    margin-left: 2px;
}

/* 横向影片列表 */
.rail-section {
    margin-top: 34px;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 5 * 16px) / 6.35);
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    margin: 0 -2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.movie-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.movie-rail a,
.movie-rail img {
    -webkit-user-drag: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

/* 空状态 */
.empty-state {
    padding: 54px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--movie-border-soft);
    background: rgba(255, 255, 255, .018);
}

.empty-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--movie-border-soft);
    color: var(--movie-text-subtle);
}

.empty-state__icon .ico {
    width: 24px;
    height: 24px;
}

.empty-state__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--movie-text-muted);
}

.empty-state__desc {
    margin: 4px 0 16px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

/* 头像 / VIP */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.vip-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #2b1d02;
    background: linear-gradient(135deg, #f7d98a, #e9b949);
}

.vip-chip__ico {
    width: 11px;
    height: 11px;
}

/* 标签 / 徽章 */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 11px;
    border-radius: 99px;
    font-size: 12px;
    color: var(--movie-text-muted);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--movie-border-soft);
    transition: all .15s ease;
}

.chip:hover {
    color: var(--movie-text);
    border-color: var(--movie-border);
    background: rgba(255, 255, 255, .07);
}

.chip.is-active {
    color: var(--movie-primary);
    border-color: rgba(232, 184, 109, .42);
    background: var(--movie-primary-muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--movie-text-muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--movie-border-soft);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination__item {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid var(--movie-border-soft);
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
    color: var(--movie-text-muted);
}

.pagination__item:hover {
    color: var(--movie-text);
    background: rgba(255, 255, 255, .07);
}

.pagination__item.is-active {
    color: var(--movie-primary);
    border-color: rgba(232, 184, 109, .45);
    background: var(--movie-primary-muted);
}

.pagination__gap {
    color: var(--movie-text-subtle);
    padding: 0 2px;
}

/* ==========================================================================
   首页
   ========================================================================== */

.home-hero {
    text-align: center;
    padding: 18px 0 6px;
}

.search-modes {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    padding: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--movie-border-soft);
}

.search-mode {
    height: 26px;
    padding: 0 16px;
    border-radius: 99px;
    font-size: 11px;
    color: var(--movie-text-subtle);
    transition: all .15s ease;
}

.search-mode:hover {
    color: var(--movie-text-muted);
}

.search-mode.is-active {
    color: var(--movie-primary);
    background: var(--movie-primary-muted);
    box-shadow: inset 0 0 0 1px rgba(232, 184, 109, .22);
}

.home-hero__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.home-hero__name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(232, 184, 109, .25);
}

.home-hero__domain {
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--movie-text-subtle);
}

.hero-search {
    position: relative;
    max-width: 760px;
    margin: 20px auto 0;
}

.hero-search__box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 8px 0 18px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--movie-border);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-search__box:focus-within {
    border-color: rgba(232, 184, 109, .55);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 12px 38px rgba(0, 0, 0, .34), 0 0 0 3px rgba(232, 184, 109, .09);
}

.hero-search__icon {
    color: var(--movie-text-subtle);
    display: flex;
}

.hero-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: none;
    border: 0;
    outline: none;
    font-size: 14px;
    color: var(--movie-text);
}

.hero-search__input::placeholder {
    color: var(--movie-text-subtle);
}

.hero-search__submit {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6d9ad, #e3b06a);
    color: #1b1205;
    transition: transform .15s ease, filter .15s ease;
}

.hero-search__submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.hero-search__submit .ico {
    width: 17px;
    height: 17px;
}

/* 搜索建议 */
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 6px;
    border-radius: var(--radius);
    background: var(--movie-bg-elevated);
    border: 1px solid var(--movie-border);
    box-shadow: var(--shadow-2);
    display: none;
    max-height: 380px;
    overflow-y: auto;
}

.search-suggest.is-open {
    display: block;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.suggest-item:hover,
.suggest-item.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--movie-text);
}

.suggest-item img {
    width: 30px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #162126;
}

.suggest-item__meta {
    min-width: 0;
    flex: 1;
}

.suggest-item__meta strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--movie-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item__meta span {
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.suggest-item .ico {
    width: 13px;
    height: 13px;
    color: var(--movie-text-subtle);
}

/* 热词 */
.hero-tags {
    max-width: 860px;
    margin: 14px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.hero-tags__label {
    font-size: 10px;
    color: var(--movie-text-subtle);
    padding: 0 2px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 3px 11px 3px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--movie-border-soft);
    font-size: 12px;
    color: var(--movie-text-muted);
    transition: all .15s ease;
}

.hero-tag:hover {
    color: #fff;
    border-color: rgba(232, 184, 109, .35);
    background: rgba(255, 255, 255, .06);
}

.hero-tag img {
    width: 26px;
    height: 34px;
    border-radius: 4px;
    object-fit: cover;
    background: #162126;
}

.hero-tag--ghost {
    height: 40px;
    padding: 0 14px;
    border-style: dashed;
    color: var(--movie-text-subtle);
}

/* 本周追剧 */
.week {
    margin-top: 34px;
}

.week-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.week-head__right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.week-day {
    padding: 10px 8px 9px;
    text-align: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--movie-border-soft);
    transition: all .15s ease;
}

.week-day:hover {
    background: rgba(255, 255, 255, .06);
}

.week-day.is-active {
    background: rgba(232, 184, 109, .10);
    border-color: rgba(232, 184, 109, .5);
    box-shadow: 0 0 0 1px rgba(232, 184, 109, .18) inset, 0 8px 24px rgba(0, 0, 0, .25);
}

.week-day__label {
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.week-day.is-active .week-day__label {
    color: var(--movie-primary);
}

.week-day__num {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--movie-text-muted);
}

.week-day.is-active .week-day__num {
    color: #fff;
}

.week-day__count {
    font-size: 9px;
    color: var(--movie-text-subtle);
}

.week-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.week-type {
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .022);
    border: 1px solid var(--movie-border-soft);
}

.week-type__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.week-type__name {
    font-size: 12px;
    font-weight: 600;
}

.week-type__count {
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.week-type__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.week-item {
    display: flex;
    gap: 7px;
    min-width: 0;
    padding: 3px;
    border-radius: 7px;
    transition: background .15s ease;
}

.week-item:hover {
    background: rgba(255, 255, 255, .05);
}

.week-item__poster {
    position: relative;
    width: 34px;
    height: 46px;
    border-radius: 4px;
    overflow: hidden;
    flex: none;
    background: #162126;
}

.week-item__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.week-item__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.week-item__title {
    font-size: 11px;
    font-weight: 500;
    color: var(--movie-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-item__note {
    font-size: 9.5px;
    color: var(--movie-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 加载更多 */
.load-more {
    margin: 34px auto 0;
    display: flex;
    justify-content: center;
}

.load-more__btn {
    width: min(100%, 620px);
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--movie-border-soft);
    background: rgba(255, 255, 255, .02);
    color: var(--movie-text-subtle);
    font-size: 11px;
}

.load-more__btn:hover {
    color: var(--movie-text-muted);
    background: rgba(255, 255, 255, .04);
}

/* ==========================================================================
   片库 / 搜索页
   ========================================================================== */

.catalog-head {
    padding: 18px 0 4px;
}

.catalog-title {
    font-size: 22px;
    font-weight: 700;
}

.catalog-count {
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.filters {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--movie-border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.filter-row__label {
    width: 56px;
    flex: none;
    padding-top: 4px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.filter-row__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 16px;
    margin-top: 22px;
}

.catalog-empty {
    margin-top: 24px;
}

/* ==========================================================================
   详情页
   ========================================================================== */

.detail-hero {
    position: relative;
    margin: 10px calc(var(--page-edge) * -1) 0;
    padding: 26px var(--page-edge) 24px;
    overflow: hidden;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 22%;
    filter: blur(34px) saturate(1.2);
    opacity: .34;
    transform: scale(1.15);
}

.detail-hero__mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 17, 19, .38), rgba(11, 17, 19, .88) 62%, var(--movie-bg)),
        radial-gradient(800px 400px at 20% 0%, rgba(232, 184, 109, .12), transparent 65%);
}

.detail-hero__inner {
    position: relative;
    display: flex;
    gap: 26px;
    align-items: flex-end;
}

.detail-poster {
    width: 196px;
    flex: none;
    aspect-ratio: 3 / 4.1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--movie-border);
    box-shadow: var(--shadow-2);
    background: #162126;
}

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

.detail-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.detail-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.detail-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.detail-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 24px;
    font-weight: 700;
    color: var(--movie-accent);
    line-height: 1;
}

.detail-rating small {
    font-size: 11px;
    font-weight: 400;
    color: var(--movie-text-subtle);
}

.detail-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-meta .ico {
    width: 13px;
    height: 13px;
    color: var(--movie-text-subtle);
}

.detail-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 24px;
}

.panel {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .022);
    border: 1px solid var(--movie-border-soft);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--movie-border-soft);
}

.panel__title {
    font-size: 14px;
    font-weight: 600;
}

.panel__body {
    padding: 16px;
}

.detail-intro {
    font-size: 13px;
    line-height: 1.85;
    color: var(--movie-text-muted);
}

.detail-facts {
    display: grid;
    gap: 10px;
    font-size: 12px;
}

.detail-facts dt {
    color: var(--movie-text-subtle);
    font-size: 11px;
    margin-bottom: 2px;
}

.detail-facts dd {
    margin: 0;
    color: var(--movie-text-muted);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 8px;
}

.episode-btn {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--movie-border-soft);
    font-size: 12px;
    color: var(--movie-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all .15s ease;
}

.episode-btn.is-version {
    font-size: 10px;
    letter-spacing: -.2px;
}

.episode-btn:hover {
    color: var(--movie-text);
    border-color: var(--movie-border);
    background: rgba(255, 255, 255, .07);
}

.episode-btn.is-active {
    color: var(--movie-primary);
    border-color: rgba(232, 184, 109, .45);
    background: var(--movie-primary-muted);
}

.episode-btn.is-locked {
    color: var(--movie-text-subtle);
    position: relative;
}

.episode-btn.is-locked::after {
    content: "VIP";
    position: absolute;
    top: -5px;
    right: -2px;
    font-size: 8px;
    padding: 0 3px;
    border-radius: 3px;
    background: linear-gradient(135deg, #f7d98a, #e9b949);
    color: #2b1d02;
    font-weight: 700;
}

/* ==========================================================================
   播放页
   ========================================================================== */

.player-page {
    max-width: none;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    margin-top: 6px;
    align-items: start;
}

.player-main {
    min-width: 0;
}

.player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--movie-border-soft);
    box-shadow: var(--shadow-2);
}

.player-stage video,
.player-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.player-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--movie-text-subtle);
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

.player-empty .ico {
    width: 34px;
    height: 34px;
}

/* 弹幕层 */
.danmaku-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8);
    will-change: transform;
    font-size: 20px;
    line-height: 1.2;
}

.danmaku-item[data-size="0"] {
    font-size: 16px;
}

.danmaku-item[data-size="2"] {
    font-size: 25px;
}

.danmaku-item[data-type="1"],
.danmaku-item[data-type="2"] {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 92%;
    white-space: normal;
}

.danmaku-item[data-type="1"] {
    top: 6%;
}

.danmaku-item[data-type="2"] {
    bottom: 12%;
    top: auto;
}

/* 播放器控制条 */
.player-controls {
    position: absolute;
    inset: auto 0 0;
    z-index: 5;
    padding: 26px 14px 10px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
    opacity: 0;
    transition: opacity .2s ease;
}

.player-stage:hover .player-controls,
.player-stage.is-paused .player-controls {
    opacity: 1;
}

.player-progress {
    position: relative;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
}

.player-progress__buffer {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, .28);
}

.player-progress__played {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--movie-primary-strong);
}

.player-progress__dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(232, 184, 109, .7);
}

.player-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    color: rgba(255, 255, 255, .86);
}

.player-bar__btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, .82);
}

.player-bar__btn:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.player-bar__btn .ico {
    width: 17px;
    height: 17px;
}

.player-time {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

.player-bar__spacer {
    flex: 1;
}

.danmaku-input {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 360px;
    height: 30px;
    padding: 0 4px 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
}

.danmaku-input input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    font-size: 11px;
    color: #fff;
}

.danmaku-input input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.danmaku-input button {
    height: 24px;
    padding: 0 9px;
    border-radius: 4px;
    font-size: 11px;
    background: var(--movie-primary-strong);
    color: #1b1205;
    font-weight: 600;
}

/* 播放器右侧 */
.player-side {
    border-radius: var(--radius-lg);
    background: var(--movie-bg-elevated);
    border: 1px solid var(--movie-border-soft);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + 8px);
}

.player-tabs {
    display: flex;
    border-bottom: 1px solid var(--movie-border-soft);
}

.player-tab {
    flex: 1;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: var(--movie-text-muted);
    border-bottom: 2px solid transparent;
}

.player-tab .ico {
    width: 13px;
    height: 13px;
}

.player-tab.is-active {
    color: var(--movie-primary);
    border-bottom-color: var(--movie-primary);
}

.player-panel {
    display: none;
    max-height: 560px;
    overflow-y: auto;
    padding: 12px;
}

.player-panel.is-active {
    display: block;
}

.player-episodes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.player-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

/* 讨论 */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--movie-border-soft);
    margin-bottom: 12px;
}

.comment-form textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--movie-border-soft);
    outline: none;
    font-size: 12px;
    color: var(--movie-text);
}

.comment-form textarea:focus {
    border-color: rgba(232, 184, 109, .4);
}

.comment-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.comment {
    display: flex;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.comment:last-child {
    border-bottom: 0;
}

.comment__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
    overflow: hidden;
    background: #1a2b30;
}

.comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment__body {
    min-width: 0;
    flex: 1;
}

.comment__head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.comment__name {
    color: var(--movie-text-muted);
    font-weight: 500;
}

.comment__text {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--movie-text-muted);
    word-break: break-word;
    white-space: pre-wrap;
}

.comment__actions {
    margin-top: 4px;
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.comment__actions button:hover {
    color: var(--movie-primary);
}

.comment__replies {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-reply {
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.comment-reply b {
    color: var(--movie-text-muted);
    font-weight: 500;
}

/* 播放页信息 */
.player-meta {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .022);
    border: 1px solid var(--movie-border-soft);
}

.player-meta__poster {
    width: 92px;
    flex: none;
    aspect-ratio: 3 / 4.1;
    border-radius: 8px;
    overflow: hidden;
    background: #162126;
}

.player-meta__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-meta__body {
    min-width: 0;
    flex: 1;
}

.player-meta__title {
    font-size: 16px;
    font-weight: 600;
}

.player-meta__sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.player-meta__intro {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--movie-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.player-fab {
    position: fixed;
    right: 26px;
    bottom: 34px;
    z-index: 30;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--movie-border);
    color: var(--movie-text-muted);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-1);
}

.player-fab:hover {
    color: var(--movie-primary);
    border-color: rgba(232, 184, 109, .4);
}

/* ==========================================================================
   追剧周表
   ========================================================================== */

.updates-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.updates-range {
    font-size: 13px;
    font-weight: 600;
}

.updates-hint {
    font-size: 10px;
    color: var(--movie-text-subtle);
    margin-left: auto;
}

.updates-types {
    display: flex;
    gap: 4px;
    margin-top: 18px;
    padding: 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--movie-border-soft);
    width: fit-content;
}

.updates-type {
    padding: 0 22px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.updates-type.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.updates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
}

.updates-head__title {
    font-size: 15px;
    font-weight: 600;
}

.updates-head__count {
    font-size: 11px;
    color: var(--movie-text-subtle);
}

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

.update-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .022);
    border: 1px solid var(--movie-border-soft);
    transition: all .15s ease;
}

.update-card:hover {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(232, 184, 109, .28);
}

.update-card__poster {
    width: 54px;
    height: 74px;
    flex: none;
    border-radius: 6px;
    overflow: hidden;
    background: #162126;
}

.update-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.update-card__title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-card__meta {
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.update-card__tag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--movie-primary);
    background: var(--movie-primary-muted);
    border: 1px solid rgba(232, 184, 109, .22);
    width: fit-content;
}

.update-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.update-card__link {
    color: var(--movie-primary);
    font-size: 10px;
}

/* ==========================================================================
   片库 / 历史 / 片单
   ========================================================================== */

.lib-tabs {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    border-bottom: 1px solid var(--movie-border-soft);
}

.lib-tab {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--movie-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.lib-tab .ico {
    width: 15px;
    height: 15px;
}

.lib-tab.is-active {
    color: var(--movie-primary);
    border-bottom-color: var(--movie-primary);
}

.lib-list {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
}

.lib-row {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: background .15s ease;
}

.lib-row:hover {
    background: rgba(255, 255, 255, .035);
}

.lib-row__poster {
    width: 64px;
    height: 88px;
    flex: none;
    border-radius: 6px;
    overflow: hidden;
    background: #162126;
}

.lib-row__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lib-row__title {
    font-size: 14px;
    font-weight: 600;
}

.lib-row__meta {
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.lib-row__bar {
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    max-width: 380px;
}

.lib-row__bar i {
    display: block;
    height: 100%;
    background: var(--movie-primary-strong);
}

.lib-row__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.playlist-card {
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--movie-border-soft);
    transition: all .15s ease;
}

.playlist-card:hover {
    border-color: rgba(232, 184, 109, .3);
    background: rgba(255, 255, 255, .04);
}

.playlist-card__cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #162126;
    margin-bottom: 10px;
}

.playlist-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-card__title {
    font-size: 13px;
    font-weight: 600;
}

.playlist-card__meta {
    margin-top: 2px;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

/* ==========================================================================
   个人中心 / 会员
   ========================================================================== */

.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-top: 16px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 220px at 12% 0%, rgba(232, 184, 109, .16), transparent 60%),
        rgba(255, 255, 255, .03);
    border: 1px solid var(--movie-border-soft);
}

.profile-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    border: 1px solid rgba(232, 184, 109, .35);
}

.profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__name {
    font-size: 20px;
    font-weight: 700;
}

.profile-card__sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.profile-stats {
    display: flex;
    gap: 26px;
    margin-left: auto;
    text-align: center;
}

.profile-stats__num {
    font-size: 19px;
    font-weight: 700;
}

.profile-stats__label {
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.vip-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.vip-plan {
    position: relative;
    padding: 18px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--movie-border-soft);
    text-align: center;
    transition: all .18s ease;
}

.vip-plan:hover {
    border-color: rgba(243, 201, 105, .45);
    background: rgba(243, 201, 105, .05);
    transform: translateY(-2px);
}

.vip-plan__name {
    font-size: 13px;
    font-weight: 600;
}

.vip-plan__price {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
    color: var(--movie-accent);
}

.vip-plan__price small {
    font-size: 12px;
    font-weight: 400;
}

.vip-plan__orig {
    font-size: 11px;
    color: var(--movie-text-subtle);
    text-decoration: line-through;
}

.vip-plan__desc {
    margin: 8px 0 14px;
    font-size: 11px;
    color: var(--movie-text-subtle);
    min-height: 30px;
}

/* 表单 */
.form-card {
    max-width: 420px;
    margin: 26px auto;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--movie-border-soft);
    box-shadow: var(--shadow-1);
}

.form-card__title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.form-card__sub {
    margin: 5px 0 20px;
    font-size: 11px;
    color: var(--movie-text-subtle);
    text-align: center;
}

.field {
    margin-bottom: 14px;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.field__input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--movie-border-soft);
    outline: none;
    font-size: 13px;
    transition: border-color .15s ease;
}

.field__input:focus {
    border-color: rgba(232, 184, 109, .45);
    background: rgba(255, 255, 255, .055);
}

.field__hint {
    margin-top: 5px;
    font-size: 10px;
    color: var(--movie-text-subtle);
}

.form-alert {
    margin-bottom: 14px;
    padding: 9px 11px;
    border-radius: 7px;
    font-size: 11px;
    background: var(--movie-danger-bg);
    border: 1px solid rgba(252, 165, 165, .22);
    color: var(--movie-danger);
}

.form-alert--ok {
    background: rgba(52, 211, 153, .1);
    border-color: rgba(167, 243, 208, .24);
    color: var(--movie-success);
}

.form-foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.form-foot a {
    color: var(--movie-primary);
}

/* ==========================================================================
   提示 / 弹窗
   ========================================================================== */

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 40px;
    z-index: 200;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.toast {
    padding: 9px 16px;
    border-radius: 8px;
    background: rgba(20, 30, 34, .96);
    border: 1px solid var(--movie-border);
    box-shadow: var(--shadow-2);
    font-size: 12px;
    color: var(--movie-text);
    animation: toast-in .2s ease;
}

.toast--ok {
    border-color: rgba(232, 184, 109, .4);
}

.toast--err {
    border-color: rgba(252, 165, 165, .35);
    color: var(--movie-danger);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal-root:empty {
    display: none;
}

.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade .16s ease;
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

.modal {
    width: min(440px, 100%);
    border-radius: var(--radius-lg);
    background: var(--movie-bg-elevated);
    border: 1px solid var(--movie-border);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    animation: modal-in .18s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--movie-border-soft);
    font-size: 14px;
    font-weight: 600;
}

.modal__body {
    padding: 16px;
}

.modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--movie-border-soft);
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 12px;
    color: var(--movie-text-muted);
}

.modal-option:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--movie-text);
}

.modal-option img {
    width: 34px;
    height: 46px;
    border-radius: 4px;
    object-fit: cover;
}

/* QR */
.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #0b1113;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1360px) {
    .movie-rail {
        grid-auto-columns: calc((100% - 4 * 16px) / 5.35);
    }

    .catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    :root {
        --page-edge: 24px;
    }

    .movie-rail {
        grid-auto-columns: calc((100% - 3 * 14px) / 4.35);
        gap: 14px;
    }

    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .week-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vip-plans {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .detail-body {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(84vw, 300px);
        box-shadow: var(--shadow-2);
    }

    body.sidebar-open .sidebar {
        transform: none;
    }

    body.sidebar-open .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(0, 0, 0, .55);
        backdrop-filter: blur(2px);
    }

    .app__main {
        margin-left: 0 !important;
    }

    .topbar__menu {
        display: inline-flex;
    }

    .topbar__toggle {
        display: none;
    }

    .topbar__back {
        display: inline-flex;
    }

    .detail-body {
        grid-template-columns: 1fr;
    }

    .player-layout {
        grid-template-columns: 1fr;
    }

    .player-side {
        position: static;
    }

    .player-panel {
        max-height: none;
    }
}

@media (max-width: 820px) {
    :root {
        --page-edge: 16px;
        --header-height: 54px;
    }

    .movie-rail {
        grid-auto-columns: calc((100% - 2 * 12px) / 3.3);
        gap: 12px;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .week-types {
        grid-template-columns: 1fr;
    }

    .week-days {
        gap: 5px;
    }

    .week-day {
        padding: 8px 2px 7px;
    }

    .week-day__label {
        font-size: 9px;
        white-space: nowrap;
    }

    .week-day__num {
        font-size: 17px;
        white-space: nowrap;
    }

    .week-day__count {
        display: none;
    }

    .week-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .week-type__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .week-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .week-head__right {
        width: 100%;
        justify-content: space-between;
    }

    .hero-tags {
        max-width: 100%;
    }

    .topbar__nav {
        display: none;
    }

    .topbar__center {
        flex: 0 1 auto;
    }

    .brand__mark {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .brand__name {
        font-size: 17px;
    }

    .mobile-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 70;
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 6px;
        background: rgba(13, 16, 21, .92);
        border: 1px solid rgba(255, 255, 255, .09);
        border-radius: 22px;
        box-shadow: 0 16px 44px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
        backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
    }

    .mobile-nav__item {
        flex: 1;
        min-width: 0;
        height: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 0;
        border-radius: 16px;
        font-size: 10px;
        color: var(--movie-text-subtle);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: color .18s ease, background .18s ease;
    }

    .mobile-nav__item .ico {
        width: 22px;
        height: 22px;
    }

    .mobile-nav__item.is-active {
        color: var(--movie-primary);
        background: var(--movie-primary-muted);
    }

    .mobile-nav__item--primary {
        flex: 0 0 68px;
        background: transparent !important;
        color: var(--movie-primary);
    }

    .mobile-nav__orb {
        width: 52px;
        height: 52px;
        margin-top: -16px;
        display: grid;
        place-items: center;
        border: 3px solid rgba(13, 16, 21, .95);
        border-radius: 50%;
        background: linear-gradient(145deg, #ffe1a6, #e5a43d);
        color: var(--movie-primary-foreground);
        box-shadow: 0 10px 24px rgba(232, 184, 109, .34);
    }

    .mobile-nav__orb .ico {
        width: 23px;
        height: 23px;
        stroke-width: 2.2;
    }

    .mobile-nav__item--primary .mobile-nav__label {
        margin-top: 1px;
        color: var(--movie-primary);
        font-size: 10px;
        font-weight: 600;
    }

    body {
        padding-bottom: 92px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero__inner {
        gap: 16px;
        align-items: flex-start;
    }

    .detail-poster {
        width: 118px;
    }

    .detail-title {
        font-size: 21px;
    }

    .detail-rating {
        font-size: 19px;
    }

    .player-episodes {
        grid-template-columns: repeat(6, 1fr);
    }

    .hero-search__box {
        height: 48px;
    }

    .home-hero__name {
        font-size: 24px;
    }

    .profile-card {
        flex-wrap: wrap;
    }

    .profile-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .playlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-row__label {
        width: auto;
        padding-top: 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 18px;
    }
}

@media (max-width: 520px) {
    .week-types {
        grid-template-columns: 1fr;
    }

    .week-item__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .week-item__poster {
        width: 42px;
        height: 56px;
    }

    .movie-rail {
        grid-auto-columns: calc((100% - 2 * 10px) / 2.35);
        gap: 10px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-tag:nth-child(n+6) {
        display: none;
    }

    .player-fab {
        display: none;
    }

    .vip-plans {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   亮色主题
   ========================================================================== */

[data-theme="movie-dark"] .theme-ico--sun,
[data-theme="movie-light"] .theme-ico--moon { display: none; }
[data-theme="movie-light"] {
    color-scheme: light;
    --movie-bg: #edf5f6;
    --movie-bg-elevated: #fbfefe;
    --movie-bg-soft: #f3f9fa;
    --movie-surface: rgba(6, 74, 84, .055);
    --movie-surface-strong: rgba(6, 74, 84, .106);
    --movie-surface-soft: rgba(6, 74, 84, .035);
    --movie-border: rgba(5, 74, 84, .18);
    --movie-border-soft: rgba(5, 74, 84, .106);
    --movie-text: rgba(8, 27, 31, .92);
    --movie-text-muted: rgba(18, 49, 55, .7);
    --movie-text-subtle: rgba(18, 49, 55, .52);
    --movie-primary: #006878;
    --movie-primary-strong: #00869a;
    --movie-primary-muted: rgba(0, 134, 154, .12);
    --movie-primary-foreground: #ffffff;
}

[data-theme="movie-light"] body::before {
    background:
        radial-gradient(1100px 520px at 52% -8%, rgba(0, 134, 154, .08), transparent 62%),
        radial-gradient(900px 480px at 100% 0%, rgba(243, 201, 105, .10), transparent 60%);
}

[data-theme="movie-light"] .sidebar {
    background: #fbfefe;
    border-right-color: rgba(5, 74, 84, .12);
}

[data-theme="movie-light"] .sidebar__glow {
    opacity: .5;
}

[data-theme="movie-light"] .side-user,
[data-theme="movie-light"] .side-tabs,
[data-theme="movie-light"] .side-action__box,
[data-theme="movie-light"] .side-resume,
[data-theme="movie-light"] .side-empty {
    background: rgba(6, 74, 84, .04);
    border-color: rgba(5, 74, 84, .1);
}

[data-theme="movie-light"] .side-link:hover,
[data-theme="movie-light"] .side-tab.is-active,
[data-theme="movie-light"] .side-tab:hover {
    background: rgba(6, 74, 84, .07);
    color: #081b1f;
}

[data-theme="movie-light"] .side-login--user {
    background: rgba(6, 74, 84, .06);
    color: #081b1f;
}

[data-theme="movie-light"] .topbar {
    background: linear-gradient(180deg, rgba(237, 245, 246, .96), rgba(237, 245, 246, .72) 70%, rgba(237, 245, 246, 0));
}

[data-theme="movie-light"] .brand__name {
    color: #081b1f;
}

[data-theme="movie-light"] .nav-pill.is-active {
    color: #081b1f;
    background: rgba(6, 74, 84, .07);
    border-color: rgba(5, 74, 84, .16);
}

[data-theme="movie-light"] .icon-btn:hover,
[data-theme="movie-light"] .nav-pill:hover {
    background: rgba(6, 74, 84, .06);
    color: #081b1f;
}

[data-theme="movie-light"] .hero-search__box {
    background: #ffffff;
    border-color: rgba(5, 74, 84, .16);
    box-shadow: 0 10px 30px rgba(6, 74, 84, .08);
}

[data-theme="movie-light"] .hero-tag,
[data-theme="movie-light"] .chip,
[data-theme="movie-light"] .week-day,
[data-theme="movie-light"] .week-type,
[data-theme="movie-light"] .filters,
[data-theme="movie-light"] .panel,
[data-theme="movie-light"] .btn-ghost,
[data-theme="movie-light"] .form-card,
[data-theme="movie-light"] .player-side,
[data-theme="movie-light"] .update-card,
[data-theme="movie-light"] .playlist-card,
[data-theme="movie-light"] .vip-plan,
[data-theme="movie-light"] .empty-state,
[data-theme="movie-light"] .pagination__item {
    background: #ffffff;
    border-color: rgba(5, 74, 84, .12);
}

[data-theme="movie-light"] .profile-card {
    background:
        radial-gradient(600px 220px at 12% 0%, rgba(0, 134, 154, .12), transparent 60%),
        #ffffff;
    border-color: rgba(5, 74, 84, .12);
}

[data-theme="movie-light"] .section-head__title,
[data-theme="movie-light"] .catalog-title,
[data-theme="movie-light"] .update-card__title,
[data-theme="movie-light"] .detail-title,
[data-theme="movie-light"] .player-meta__title,
[data-theme="movie-light"] .lib-row__title,
[data-theme="movie-light"] .profile-card__name,
[data-theme="movie-light"] .panel__title,
[data-theme="movie-light"] .updates-head__title,
[data-theme="movie-light"] .week-type__name {
    color: #081b1f;
}

[data-theme="movie-light"] .week-day {
    background: #ffffff;
}

[data-theme="movie-light"] .week-day__label {
    color: #6b7c84;
}

[data-theme="movie-light"] .week-day__num {
    color: #233b44;
}

[data-theme="movie-light"] .week-day.is-active {
    background: rgba(232, 184, 109, .18);
    border-color: rgba(190, 137, 48, .48);
    box-shadow: 0 8px 20px rgba(154, 97, 22, .12), 0 0 0 1px rgba(232, 184, 109, .16) inset;
}

[data-theme="movie-light"] .week-day.is-active .week-day__label,
[data-theme="movie-light"] .week-day.is-active .week-day__num {
    color: #6f470d;
}

[data-theme="movie-light"] .week-type__hint {
    color: #596c74;
}

[data-theme="movie-light"] .field__input,
[data-theme="movie-light"] .comment-form textarea {
    background: #ffffff;
    border-color: rgba(5, 74, 84, .16);
    color: #081b1f;
}

[data-theme="movie-light"] .search-suggest,
[data-theme="movie-light"] .modal {
    background: #ffffff;
}

[data-theme="movie-light"] .mobile-nav {
    background: rgba(251, 254, 254, .92);
    border-color: rgba(5, 74, 84, .14);
    box-shadow: 0 16px 44px rgba(5, 74, 84, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
}

[data-theme="movie-light"] .mobile-nav__orb {
    border-color: rgba(251, 254, 254, .95);
}

[data-theme="movie-light"] .mobile-nav__item.is-active {
    color: #9a6116;
    background: rgba(232, 184, 109, .18);
}

[data-theme="movie-light"] .site-footer {
    border-top-color: rgba(5, 74, 84, .12);
}

[data-theme="movie-light"] .toast {
    background: #ffffff;
    color: #081b1f;
}

/* 细节补充 */
.comment__actions button.is-liked {
    color: var(--movie-primary);
}

.update-card__foot .ico {
    width: 11px;
    height: 11px;
    vertical-align: -2px;
}

.update-card__tag {
    margin-top: 2px;
}

.episode-btn.is-locked::after {
    content: "VIP";
}

.qr-box {
    display: none;
}

@media (max-width: 820px) {
    .settings-grid,
    .download-grid,
    .download-features {
        grid-template-columns: 1fr !important;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 搜索即采集提示 */
.auto-collect {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--movie-primary-muted);
    border: 1px solid rgba(232, 184, 109, .25);
    color: var(--movie-primary);
    font-size: 12px;
}

.auto-collect[hidden] {
    display: none;
}

.auto-collect b {
    color: #fff;
}

.auto-collect__dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--movie-primary-strong);
    animation: auto-collect-pulse 1.2s infinite;
}

@keyframes auto-collect-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 184, 109, .45); }
    70% { box-shadow: 0 0 0 8px rgba(232, 184, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 184, 109, 0); }
}

/* 播放器广告与免广告 */
.player-ad {
    position: absolute;
    inset: 0;
    z-index: 9;
    background: #05090b;
    overflow: hidden;
}

.player-ad__body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-ad__body img,
.player-ad__body video,
.player-ad__body iframe,
.player-ad__body canvas {
    max-width: 100%;
    max-height: 100%;
}

.player-ad__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .86));
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
}

.player-ad__bar [data-ad-skip] {
    margin-left: auto;
}

.player-ad__bar b {
    color: var(--movie-primary);
}

.player-adfree-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(4, 11, 13, .72);
    border: 1px solid rgba(243, 201, 105, .35);
    color: var(--movie-accent);
    font-size: 10px;
    backdrop-filter: blur(6px);
}
/* ==========================================================================
   首页底部 · 完整片库 CTA
   ========================================================================== */
.home-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 42px 0 8px;
    padding: 30px 34px;
    border: 1px solid var(--movie-border-soft);
    border-radius: 18px;
    background:
        radial-gradient(120% 160% at 88% 0%, rgba(142, 231, 242, .10), transparent 55%),
        linear-gradient(135deg, rgba(142, 231, 242, .05), rgba(255, 255, 255, .015) 45%, rgba(243, 201, 105, .04));
    overflow: hidden;
}

.home-cta__glow {
    position: absolute;
    right: -90px;
    top: -150px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 231, 242, .16), transparent 68%);
    pointer-events: none;
}

.home-cta__main {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.home-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(142, 231, 242, .24);
    border-radius: 999px;
    color: var(--movie-accent, #f0c987);
    background: rgba(142, 231, 242, .06);
    font-size: 11px;
    letter-spacing: .04em;
}

.home-cta__title {
    margin: 12px 0 6px;
    color: var(--movie-text);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.home-cta__desc {
    margin: 0;
    color: var(--movie-text-subtle);
    font-size: 12px;
    line-height: 1.8;
}

.home-cta__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.home-cta__types a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border: 1px solid var(--movie-border-soft);
    border-radius: 999px;
    color: var(--movie-text-muted);
    background: rgba(255, 255, 255, .02);
    font-size: 12px;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.home-cta__types a:hover {
    color: var(--movie-text);
    border-color: rgba(142, 231, 242, .35);
    background: rgba(142, 231, 242, .06);
}

.home-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 168px;
}

@media (max-width: 720px) {
    .home-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
        margin-top: 28px;
    }

    .home-cta__title {
        font-size: 18px;
    }

    .home-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
    }
}
/* ==========================================================================
   v2.5.8 补丁：无障碍标题 / 游客剧豆 / 搜索标签行
   ========================================================================== */

.topbar__title-text {
    font-size: 15px;
    font-weight: 600;
    max-width: 46vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.brand__name {
    margin: 0;
    line-height: 1.2;
}

.side-user__progress--guest .side-user__bar {
    display: none;
}

.side-user__progress--guest .side-user__percent {
    color: var(--movie-primary);
}

.side-user__progress--guest .side-user__points {
    color: var(--movie-text-subtle);
}

/* 热门影片标签：长标题不再把封面挤扁 */
.hero-tag span {
    max-width: 132px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-tag img {
    flex: none;
}

@media (max-width: 720px) {
    .hero-tag span {
        max-width: 96px;
    }
}

/* 影片卡片预留尺寸，避免图片加载时的布局跳动 */
.movie-card__img {
    aspect-ratio: 3 / 4.1;
}

.hot-board {
    margin-top: 34px;
}

.hot-board .week-type {
    background: linear-gradient(180deg, rgba(240, 201, 135, .045), rgba(255, 255, 255, .018));
    border-color: rgba(240, 201, 135, .14);
}

.hot-board__item:hover {
    background: rgba(240, 201, 135, .07);
}

.hot-board .week-item__rank {
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(7, 11, 18, .86);
    border: 1px solid rgba(240, 201, 135, .30);
    color: #f0c987;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
}

.hot-board .week-type__count {
    color: rgba(240, 201, 135, .72);
}

.week-type--empty {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 14px;
}

.week-type--empty .week-type__head {
    min-width: 120px;
}

.week-type__hint {
    flex: 1;
    font-size: 11px;
    color: var(--movie-text-subtle);
}

.week-type__actions {
    display: flex;
    gap: 6px;
}

/* ==========================================================================
   v2.6 视觉焕新 · 午夜影院（Midnight Cinema）
   深墨蓝黑底 + 香槟金主色 + 雾青点缀，首页改为剧照沉浸式搜索头图
   ========================================================================== */

.home-hero--cinema {
    position: relative;
    text-align: center;
    padding: 46px 28px 24px;
    border-radius: 26px;
    border: 1px solid rgba(232, 184, 109, .18);
    overflow: hidden;
    background: #0a121b;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.home-hero--cinema::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-bg) center 30% / cover no-repeat;
    opacity: .92;
    transform: scale(1.02);
    filter: saturate(.92) contrast(1.02);
}

.home-hero--cinema::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 11, 18, .20) 0%, rgba(7, 11, 18, .52) 55%, rgba(7, 11, 18, .94) 100%),
        linear-gradient(90deg, rgba(7, 11, 18, .86) 0%, rgba(7, 11, 18, .22) 50%, rgba(7, 11, 18, .88) 100%);
    pointer-events: none;
}

.home-hero--cinema > * {
    position: relative;
    z-index: 2;
}

.home-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 13px;
    border-radius: 99px;
    border: 1px solid rgba(232, 184, 109, .30);
    background: rgba(7, 11, 18, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--movie-text-muted);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: border-color .2s ease, color .2s ease;
}

.home-hero__kicker:hover {
    border-color: rgba(232, 184, 109, .55);
    color: var(--movie-text);
}

.home-hero__kicker span {
    color: var(--movie-primary);
    font-weight: 600;
}

.home-hero__kicker b {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0;
}

.home-hero--cinema .hero-search {
    margin-top: 0;
}

.home-hero--cinema .hero-search__box {
    background: rgba(9, 14, 22, .72);
    border-color: rgba(232, 184, 109, .24);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-hero--cinema .hero-search__box:focus-within {
    border-color: rgba(232, 184, 109, .62);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .5), 0 0 0 4px rgba(232, 184, 109, .10);
}

.home-hero--cinema .search-modes {
    background: rgba(9, 14, 22, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-hero--cinema .hero-tag {
    background: rgba(9, 14, 22, .62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-head__title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 15px;
    margin-right: 9px;
    border-radius: 2px;
    vertical-align: -2px;
    background: linear-gradient(180deg, #f6d9ad, #c9934a);
    box-shadow: 0 0 14px rgba(232, 184, 109, .35);
}

.movie-card__badge {
    background: rgba(7, 11, 18, .78) !important;
    border: 1px solid rgba(232, 184, 109, .25);
    color: #f6d9ad !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 760px) {
    .home-hero--cinema {
        padding: 28px 14px 16px;
        border-radius: 18px;
    }

    .home-hero__kicker {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .home-hero--cinema .hero-search__box {
        height: 50px;
    }

    .home-hero--cinema .hero-tags {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 2px 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-hero--cinema .hero-tags::-webkit-scrollbar {
        display: none;
    }

    .home-hero--cinema .hero-tags__label {
        flex: none;
    }

    .home-hero--cinema .hero-tag {
        flex: none;
    }
}

.home-hero__kicker em {
    font-style: normal;
    color: var(--movie-text-subtle);
    font-size: 10px;
}

.home-hero__kicker {
    max-width: calc(100% - 20px);
    white-space: nowrap;
}

.home-hero__kicker b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 首页头图：左侧本周热播 + 右侧搜索 */
.home-hero--cinema {
    padding: 40px 36px;
    min-height: 320px;
}

.home-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 40px;
    text-align: left;
}

.home-hero__featured {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--movie-primary);
}

.home-hero__eyebrow i {
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--movie-primary), transparent);
}

.home-hero__title {
    max-width: 100%;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: .01em;
}

.home-hero__title a {
    color: #fff;
    text-shadow: 0 6px 36px rgba(0, 0, 0, .55);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
    color: var(--movie-text-muted);
}

.home-hero__meta > span + span::before {
    content: "·";
    margin-right: 10px;
    color: var(--movie-text-subtle);
}

.home-hero__heat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--movie-primary);
}

.home-hero__heat .ico {
    width: 12px;
    height: 12px;
}

.home-hero__desc {
    max-width: 440px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--movie-text-subtle);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.home-hero__searchpane {
    min-width: 0;
    text-align: center;
}

.home-hero--cinema .home-hero__kicker {
    display: none;
}

@media (max-width: 1040px) {
    .home-hero--cinema {
        padding: 28px 20px 20px;
        min-height: 0;
    }

    .home-hero__layout {
        display: block;
    }

    .home-hero__featured {
        display: none;
    }

    .home-hero--cinema .home-hero__kicker {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .home-hero--cinema {
        padding: 24px 14px 16px;
    }
}

.home-hero--cinema .hero-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-hero--cinema .hero-tags::-webkit-scrollbar {
    display: none;
}

.home-hero--cinema .hero-tag {
    flex: none;
    height: 36px;
    padding: 2px 9px 2px 3px;
    font-size: 11px;
}

.home-hero--cinema .hero-tag img {
    width: 23px;
    height: 30px;
}

.home-hero--cinema .hero-tags__label {
    flex: none;
    white-space: nowrap;
}

/* 亮色主题下首页头图保持深色影院质感，避免深底黑字 */
[data-theme="movie-light"] .home-hero--cinema {
    --movie-text: rgba(255, 255, 255, .92);
    --movie-text-muted: rgba(255, 255, 255, .62);
    --movie-text-subtle: rgba(255, 255, 255, .42);
    --movie-border: rgba(255, 255, 255, .14);
    --movie-border-soft: rgba(255, 255, 255, .10);
    --movie-primary: #f0c987;
    --movie-primary-strong: #e8b86d;
    --movie-primary-muted: rgba(232, 184, 109, .14);
    color: var(--movie-text);
}

[data-theme="movie-light"] .home-hero--cinema .btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .78);
}

[data-theme="movie-light"] .home-hero--cinema .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.home-hero__layout--single {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
}

.home-hero--cinema .btn-ghost {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .78);
}

.home-hero--cinema .btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

@media (max-width: 1280px) {
    .home-hero--cinema .hero-tags {
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    }
}



@media (max-width: 520px) {
    .hot-board .week-types {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hot-board .week-types::-webkit-scrollbar {
        display: none;
    }

    .hot-board .week-type {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }
}

/* ==========================================================================
   移动端滚动性能：减少 backdrop-filter 的实时合成开销
   ========================================================================== */
@media (max-width: 820px) {
    .topbar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: linear-gradient(180deg, rgba(11, 17, 19, .98), rgba(11, 17, 19, .94));
    }

    [data-theme="movie-light"] .topbar {
        background: linear-gradient(180deg, rgba(237, 245, 246, .98), rgba(237, 245, 246, .94));
    }

    .mobile-nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(13, 16, 21, .97);
    }

    [data-theme="movie-light"] .mobile-nav {
        background: rgba(251, 254, 254, .97);
    }

    .movie-card__badge {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(7, 11, 18, .92) !important;
    }

    .movie-card__play,
    .player-fab,
    .player-adfree-badge,
    .home-hero__kicker {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .home-hero__kicker {
        background: rgba(7, 11, 18, .88);
    }

    .home-hero--cinema .hero-search__box {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(9, 14, 22, .92);
    }

    .home-hero--cinema .search-modes {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(9, 14, 22, .88);
    }

    .home-hero--cinema .hero-tag {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(9, 14, 22, .90);
    }

    .detail-hero__bg {
        filter: blur(14px) saturate(1.05);
    }
}

@supports (content-visibility: auto) {
    @media (max-width: 820px) {
        .rail-section,
        .hot-board,
        .home-cta {
            content-visibility: auto;
            contain-intrinsic-size: auto 320px;
        }
    }
}

/* 移动端筛选：标签横向滑动，避免筛选区占满首屏 */
@media (max-width: 820px) {
    .filters {
        margin-top: 12px;
        padding: 12px;
        gap: 8px;
    }

    .filter-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .filter-row__label {
        width: 38px;
        padding-top: 0;
        font-size: 10px;
        flex: none;
    }

    .filter-row__items {
        flex-wrap: nowrap;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-row__items::-webkit-scrollbar {
        display: none;
    }

    .filter-row__items .chip {
        flex: 0 0 auto;
    }
}

/* 移动端播放器控件：收紧非核心按钮，保证下一集/全屏在手机上可见 */
@media (max-width: 820px) {
    .player-bar {
        gap: 6px;
    }

    .player-bar #btnVolume,
    .player-bar #btnSettings,
    .player-bar #btnPip,
    .player-bar #btnPrev {
        display: none !important;
    }

    .player-bar .player-bar__spacer {
        display: none !important;
    }

    .player-bar .danmaku-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .player-bar .danmaku-input input {
        width: 100%;
        min-width: 0;
        padding: 0 8px;
        font-size: 11px;
    }

    .player-bar .danmaku-input button {
        padding: 0 7px;
        font-size: 11px;
    }

    .player-bar .player-bar__btn {
        flex: 0 0 26px;
        width: 26px;
        padding: 0;
    }

    .player-time {
        font-size: 10px;
    }
}

/* 移动端详情页：主按钮独占一行，次级按钮收成一行三个 */
@media (max-width: 820px) {
    .detail-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .detail-actions > .btn-primary {
        grid-column: 1 / -1;
    }

    .detail-actions > .btn {
        min-width: 0;
        padding: 0 6px;
        gap: 4px;
        font-size: 11px;
    }

    .detail-actions > .btn .ico {
        width: 15px;
        height: 15px;
        flex: none;
    }
}

/* 移动端底栏：中间的搜索入口只在搜索页高亮，避免和当前 Tab 出现两个选中态 */
@media (max-width: 820px) {
    .mobile-nav__item--primary:not(.is-active) {
        color: var(--movie-text-subtle);
    }

    .mobile-nav__item--primary:not(.is-active) .mobile-nav__orb {
        background: transparent;
        color: var(--movie-text-subtle);
        border-color: rgba(255, 255, 255, .12);
        box-shadow: none;
    }

    .mobile-nav__item--primary:not(.is-active) .mobile-nav__label {
        color: var(--movie-text-subtle);
        font-weight: 500;
    }
}

[data-theme="movie-light"] .mobile-nav__item--primary:not(.is-active) .mobile-nav__orb {
    border-color: rgba(5, 74, 84, .12);
}

/* SJ_UI_20261126：PWA/合规/播放器更多菜单 */
.site-footer__note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--movie-text-subtle);
}

.legal-page {
    padding: 0;
}

.legal-body {
    padding: 20px 22px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--movie-text-muted);
}

.legal-body h2 {
    margin: 22px 0 8px;
    font-size: 15px;
    color: var(--movie-text);
}

.legal-body ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.legal-body li {
    margin: 4px 0;
}

.player-bar #btnMore {
    display: none;
}

@media (max-width: 820px) {
    .player-bar #btnMore {
        display: inline-flex !important;
        flex: 0 0 22px;
        width: 22px;
    }
}

.content-rating {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.7;
    color: var(--movie-text-subtle);
}

.player-more-list {
    display: grid;
    gap: 8px;
}

.player-more-item {
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--movie-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--movie-text);
    font-size: 13px;
}

.player-more-item:hover {
    border-color: rgba(232, 184, 109, .45);
    color: var(--movie-primary);
}
/* ==========================================================================
   2026-11-26 移动端与剧集可用性修复
   ========================================================================== */

.episode-btn.is-episode-hidden {
    display: none;
}

.episode-more {
    width: 100%;
    height: 34px;
    margin-top: 10px;
    border: 1px dashed var(--movie-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    color: var(--movie-text-muted);
    font-size: 12px;
}

.episode-more:hover {
    color: var(--movie-text);
    border-color: var(--movie-primary);
}

.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

/* 日期型集名需要比纯数字更宽一点，避免被截断 */
.episode-btn {
    font-size: 11px;
}

@media (max-width: 860px) {
    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    /* 让短页面的页脚落在固定底栏上方，而不是被 100vh 推到栏下 */
    .app,
    .app__main {
        min-height: calc(100vh - 92px - env(safe-area-inset-bottom));
    }

    .filter-row__items {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .filter-row__items .chip {
        max-width: 100%;
    }

    .updates-types {
        width: auto;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .updates-types::-webkit-scrollbar {
        display: none;
    }

    .updates-type {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0 16px;
    }

    .player-episodes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 2026-11-27 手机端可读性优化：只放大辅助信息，保留主标题和整体布局 */
@media (max-width: 820px) {
    .brand__domain {
        font-size: 11.5px;
    }

    .search-mode {
        height: 30px;
        padding: 0 18px;
        font-size: 13px;
    }

    .home-hero__kicker {
        font-size: 11px;
    }

    .home-hero__meta {
        font-size: 12.5px;
    }

    .home-hero__desc {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .hero-tags__label {
        font-size: 11.5px;
    }

    .hero-tag {
        font-size: 13px;
    }

    .section-head__sub {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .week-head__right {
        font-size: 12.5px;
    }

    .week-type__name {
        font-size: 14px;
    }

    .week-type__count {
        font-size: 11.5px;
    }

    .week-item__title {
        font-size: 13.5px;
        line-height: 1.4;
    }

    .week-item__note {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .movie-card__title {
        font-size: 13.5px;
    }

    .movie-card__episode,
    .movie-card__meta {
        font-size: 11.5px;
    }

    .btn-xs {
        height: 28px;
        font-size: 12px;
    }

    .site-footer {
        font-size: 12px;
    }

    .mobile-nav__item {
        font-size: 11.5px;
    }
}
