/* ============ 高级轻奢深色主题 · RTL维语影视H5（兼容老内核） ============ */


/* 全局维语字体 */

@font-face {
    font-family: 'Alkoz';
    src: url('alkoz.ttf') format('truetype');
    font-weight: 400 800;
    font-display: swap;
}


/* VIP 横幅专用维语装饰字体（Jezir Classic，书法风格） */

@font-face {
    font-family: 'AlkozVip';
    src: url('vip.ttf') format('truetype');
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --bg: #0b0e1a;
    --bg2: #10142a;
    --surface: rgba(255, 255, 255, .045);
    --surface-strong: rgba(255, 255, 255, .08);
    --glass: rgba(13, 16, 32, .72);
    --border: rgba(255, 255, 255, .07);
    --text: #eef1fa;
    --text2: #9aa3bd;
    --text3: #5d6683;
    --acc1: #7c4dff;
    --acc2: #448aff;
    --grad: linear-gradient(135deg, #7c4dff 0%, #448aff 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --radius: 16px;
    --topbar-h: 56px;
    --tabbar-h: 60px;
}


/* 深色模式（与 :root 等效，显式声明便于阅读） */

html[data-theme="dark"] {
    --bg: #0b0e1a;
    --bg2: #10142a;
    --surface: rgba(255, 255, 255, .045);
    --surface-strong: rgba(255, 255, 255, .08);
    --glass: rgba(13, 16, 32, .72);
    --border: rgba(255, 255, 255, .07);
    --text: #eef1fa;
    --text2: #9aa3bd;
    --text3: #5d6683;
    --acc1: #7c4dff;
    --acc2: #448aff;
    --grad: linear-gradient(135deg, #7c4dff 0%, #448aff 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --radius: 16px;
    --topbar-h: 56px;
    --tabbar-h: 60px;
}


/* 浅色模式：WCAG 2.1 AA 通过 — text 15:1, text2 5.5:1, text3 3.6:1 (大文本/提示) */

html[data-theme="light"] {
    --bg: #f4f6fb;
    --bg2: #e9edf7;
    --surface: rgba(255, 255, 255, .85);
    --surface-strong: #ffffff;
    --glass: rgba(244, 246, 251, .82);
    --border: rgba(20, 30, 70, .10);
    --text: #1a2038;
    --text2: #4a5478;
    --text3: #6a7494;
    --acc1: #6a3fe0;
    --acc2: #2a6cf0;
    --grad: linear-gradient(135deg, #7c4dff 0%, #448aff 100%);
    --shadow: 0 10px 30px rgba(30, 40, 90, .14);
}


/* 主题切换平滑过渡：仅在切换瞬间启用 300ms 颜色相关属性过渡 */

html.theme-anim,
html.theme-anim * {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Alkoz', "UKIJ Tuz Tom", "Noto Naskh Arabic", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(60% 30% at 85% -5%, rgba(124, 77, 255, .16), transparent 60%), radial-gradient(50% 25% at 10% 0%, rgba(68, 138, 255, .12), transparent 60%);
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

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

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

img {
    display: block;
}

.hidden {
    display: none !important;
}

#app {
    min-height: 100vh;
    padding-bottom: calc(var(--tabbar-h) + 20px);
}

body.nav-off #app {
    padding-bottom: 0;
}

body.nav-off #tabbar {
    transform: translateY(110%);
}


/* ============ 顶部导航 ============ */

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: calc(var(--topbar-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background .3s, box-shadow .3s;
}

#topbar.scrolled {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}


/*
 * 顶栏布局（RTL: 右=起始, 左=末尾）
 * 首页: 品牌(logo+名称)自然靠右, 搜索图标自然靠左 — space-between 自动分布
 * 详情/播放页: 品牌靠右, 返回按钮靠左 — order 把返回按钮推到末尾(物理左)
 */

body.view-detail #btn-back,
body.view-play #btn-back {
    order: 1;
}

.topbar-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: transparent;
}


/* 首页/分类页/搜索页：网站名称与“ئىزدەش”标题绝对居中，不挤压缩放动画 */

body.view-home #topbar-title,
body.view-category #topbar-title,
body.view-search #topbar-title {
    position: absolute;
    top: env(safe-area-inset-top);
    bottom: 0;
    left: 88px;
    right: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#topbar-title {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff4e9d, #ff8a47, #ffd84d, #4dff8a, #4d9dff, #9d4dff, #ff4e9d);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 4s ease-in-out infinite, titlePulse 3s ease-in-out infinite;
}

@keyframes rainbowText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titlePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .15s, background .2s;
}

.icon-btn:active {
    transform: scale(.88);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}


/* 顶栏图标卡片：完全透明背景（保留尺寸/圆形/布局/交互）
   其他位置 .icon-btn（播放器控件等）保持原有 surface 背景 */

#topbar .icon-btn {
    background: rgba(0, 0, 0, 0);
    border: 1px solid transparent;
}

#topbar .icon-btn:active {
    background: rgba(0, 0, 0, 0);
}


/* ============ 视图容器 ============ */

#view {
    padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 8px) 14px 20px;
    max-width: 720px;
    margin: 0 auto;
    animation: viewIn .32s ease both;
}


/* 我的页隐藏顶栏后，渐变头贴顶 */

body.is-mine #view {
    padding-top: env(safe-area-inset-top);
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


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

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 2px 10px;
}

.section-head h2 {
    font-size: 16.5px;
    font-weight: 700;
}

.section-head .more {
    font-size: 13px;
    color: var(--text2);
    display: flex;
    align-items: center;
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 13.5px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all .22s;
    white-space: nowrap;
}

.chip.on {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 77, 255, .4);
}

.chip:active {
    transform: scale(.93);
}

.btn-grad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(124, 77, 255, .38);
    transition: transform .15s, box-shadow .2s;
}

.btn-grad:active {
    transform: scale(.94);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 15px;
    transition: transform .15s;
}

.btn-ghost:active {
    transform: scale(.94);
}


/* 影片卡片网格 */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 9px;
    grid-row-gap: 12px;
}

@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 12px;
        grid-row-gap: 14px;
    }
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s;
    animation: cardIn .4s ease both;
    display: block;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.card:active {
    transform: scale(.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.card .poster {
    position: relative;
    height: 0;
    padding-top: 135%;
    overflow: hidden;
    background: var(--bg2);
}

.card .poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.card:active .poster img {
    transform: scale(1.06);
}

.card .poster::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 10, 22, .55), transparent 45%);
}

.card .name {
    padding: 7px 8px 9px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .tag {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    color: #fff;
    background: rgba(10, 12, 26, .55);
    border: 1px solid rgba(255, 255, 255, .14);
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card .src-badge {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 3;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    color: #fff;
    background: rgba(124, 77, 255, .82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
    box-shadow: 0 2px 6px rgba(124, 77, 255, .35);
}


/* 骨架屏 — 高级 shimmer 效果 */

.skel {
    position: relative;
    overflow: hidden;
    background: var(--surface-strong);
    border-radius: var(--radius);
}

.skel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(124, 77, 255, .08) 45%, rgba(68, 138, 255, .12) 50%, rgba(124, 77, 255, .08) 55%, transparent 75%);
    animation: shimmer 1.6s ease-in-out infinite;
}

.skel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .04) 50%, transparent 60%);
    animation: shimmer 2.4s ease-in-out infinite reverse;
}

@keyframes shimmer {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

.skel-poster {
    height: 0;
    padding-top: 135%;
}

.skel-line {
    height: 13px;
    margin-top: 9px;
    border-radius: 8px;
}


/* 骨架入场动画 */

.skel {
    animation: skelIn .4s ease both;
}

@keyframes skelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* 详情页骨架 */

.skel-detail {
    padding: 16px;
}

.skel-detail .skel-row {
    height: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skel-detail .skel-row.w60 {
    width: 60%;
}

.skel-detail .skel-row.w80 {
    width: 80%;
}

.skel-detail .skel-row.w40 {
    width: 40%;
}

.skel-detail .skel-row.w100 {
    width: 100%;
}


/* 集列表胶囊骨架 */

.ep-skel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-skel-chip {
    height: 32px;
    border-radius: 999px;
    flex: 0 0 auto;
}


/* 状态页 */

.state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text2);
    animation: viewIn .3s ease both;
}

.state .glyph {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
}

.state .glyph svg {
    width: 40px;
    height: 40px;
    opacity: .55;
}

.state p {
    font-size: 14.5px;
    margin-bottom: 18px;
}

.state .err-glyph {
    background: linear-gradient(135deg, rgba(124, 77, 255, .14), rgba(68, 138, 255, .14));
}


/* 横向轮播 Banner */

.banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 0;
    padding-top: 52.5%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity .7s ease;
    display: block;
}

.banner .slide.on {
    opacity: 1;
}

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

.banner .slide .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 16px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to top, rgba(6, 8, 18, .82), transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner .dots {
    position: absolute;
    left: 12px;
    bottom: 10px;
    display: flex;
    z-index: 3;
}

.banner .dots i {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .38);
    transition: all .3s;
    margin-left: 5px;
}

.banner .dots i.on {
    width: 18px;
    background: #fff;
}


/* 详情页 */

.detail-hero {
    position: relative;
    margin: -8px -14px 0;
    padding-top: 8px;
}

.detail-bg {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.detail-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg) 6%, rgba(11, 14, 26, .25) 55%, transparent);
}

html[data-theme="light"] .detail-bg::after {
    background: linear-gradient(to top, var(--bg) 6%, rgba(244, 246, 251, .25) 55%, transparent);
}

.detail-meta {
    position: relative;
    margin: -74px 14px 0;
    z-index: 2;
}

.detail-meta h1 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.55;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 9px;
}

.detail-tags .dt {
    padding: 3.5px 11px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    color: var(--text2);
    margin-left: 7px;
    margin-bottom: 6px;
}

.detail-tags .dt.dt-type {
    direction: ltr;
}

.detail-type-sub {
    font-size: 12px;
    color: var(--text2);
    margin: -2px 0 6px 7px;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    margin-top: 15px;
}

.detail-actions .btn-grad {
    flex: 1;
}

.detail-actions .btn-ghost {
    margin-right: 10px;
}

.detail-actions svg {
    width: 19px;
    height: 19px;
}

.detail-content {
    margin-top: 15px;
    font-size: 13.5px;
    color: var(--text2);
    line-height: 2;
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 9px;
}

@media (min-width: 560px) {
    .ep-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ep {
    padding: 9px 0;
    text-align: center;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all .2s;
}

.ep:active {
    transform: scale(.92);
}

.ep.on {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124, 77, 255, .4);
}


/* 分类页 */

.cat-cinema {
    margin-bottom: 4px;
}

.cat-filmcate {
    margin-top: 6px;
}


/* 搜索页 */

.search-box {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    border-radius: 16px;
    background: var(--surface-strong);
    border: 1.5px solid var(--border);
    transition: border-color .25s, box-shadow .25s;
}

.search-box:focus-within {
    border-color: rgba(124, 77, 255, .55);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .12);
}

.search-box svg {
    width: 19px;
    height: 19px;
    color: var(--text3);
    flex: 0 0 auto;
    margin-left: 9px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.search-box input::placeholder {
    color: var(--text3);
}

.search-box input::-webkit-search-cancel-button {
    display: none;
}

.search-box .clear {
    color: var(--text3);
    font-size: 20px;
    line-height: 1;
    padding: 0 2px;
    margin-right: 9px;
}


/* ============ 我的页面（头部透明，颜色填充动画上涌后着色） ============ */


/* 头像卡 + 会员卡共同的定位容器（填充动画坐标参照系） */

.mine-top {
    position: relative;
}


/* 填充层：覆盖整个定位容器，但 clip-path 只露出头像卡圆角矩形 */

.mine-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* 圆形色浆：起点圆心由 JS 内联指定（会员卡底边中点） */

.mine-fill-blob {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    will-change: transform;
}

.mine-fill.is-guest .mine-fill-blob {
    background: linear-gradient(135deg, #ff8a4c 0%, #ff5a5f 48%, #f04e98 100%);
}

.mine-fill.is-member .mine-fill-blob {
    background: linear-gradient(135deg, #20294f 0%, #2b4f96 55%, #3d74b5 100%);
}


/* 上涌填充：950ms，先快后慢，自然减速 */

.mine-fill.run .mine-fill-blob {
    transition: transform 950ms cubic-bezier(.22, .95, .28, 1);
}

.mine-fill.done .mine-fill-blob {
    transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .mine-fill .mine-fill-blob {
        transition: none !important;
    }
    .mine-hero .hero-name,
    .mine-hero .hero-sub {
        transition: none;
    }
}

.mine-hero {
    position: relative;
    z-index: 1;
    margin: 8px -2px 0;
    padding: 19px 16px 25px;
    border-radius: 26px;
    overflow: visible;
    background: transparent;
}

.mine-hero.is-guest {
    cursor: pointer;
}

.mine-hero.is-member {
    padding-bottom: 36px;
}

.hero-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-txt {
    flex: 1;
    min-width: 0;
}

.hero-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}

.hero-sub {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease;
}


/* 填充完成后：文字切回白色（彩底之上） */

.mine-hero.is-filled .hero-name {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.mine-hero.is-filled .hero-sub {
    color: rgba(255, 255, 255, .82);
}

.hero-avatar {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
    transition: transform .15s;
}

.is-guest .hero-avatar {
    background: rgba(255, 255, 255, .95);
}

.hero-avatar svg {
    width: 35px;
    height: 35px;
    color: #f04e98;
}

.is-member .hero-avatar svg {
    color: #2b4f96;
}

.is-guest:active .hero-avatar {
    transform: scale(.94);
}


/* 签到悬浮胶囊（叠在渐变头与卡片之间，左下角） */

.hero-sign {
    position: absolute;
    left: 16px;
    bottom: -19px;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 62%;
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 19, 45, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #ffd66b;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
    box-shadow: 0 10px 24px rgba(10, 15, 40, .38);
    z-index: 3;
}

.hero-sign::before {
    content: '\1F4B0';
    font-size: 19px;
    line-height: 1;
    flex: 0 0 auto;
}

.hero-sign.done,
.hero-sign:disabled {
    background: var(--surface-strong);
    color: var(--text2);
    border: 1px solid var(--border);
    box-shadow: none;
}

.mine-hero.is-member {
    margin-bottom: 0;
}


/* ===== VIP 推广卡（桃色横幅 + 4 彩色异形快捷图标） ===== */

.vip-card {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 2px 14px rgba(31, 35, 48, .06);
}

.vip-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 12px 0;
    min-height: 78px;
    padding: 10px 16px;
    border-radius: 16px;
    background: linear-gradient(115deg, #ffdfb4 0%, #ffcd97 50%, #ffbd7e 100%);
    cursor: pointer;
    transition: filter .2s;
}

.vip-banner:active {
    filter: brightness(.95);
}

.vbt-main {
    font-family: 'AlkozVip', 'Alkoz', "UKIJ Tuz Tom", "Noto Naskh Arabic", "Segoe UI", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #7c3f0c;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0;
    direction: rtl;
}

.quick-actions {
    display: flex;
    padding: 20px 6px 22px;
}

.qa-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: transform .15s;
}

.qa-item:active {
    transform: scale(.92);
}

.qa-item svg {
    width: 50px;
    height: 50px;
    display: block;
}

.qa-label {
    font-size: 12.5px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}


/* ===== 白色分组卡片 + 线性图标行（完全对齐参考稿） ===== */

.mine-list+.mine-list {
    margin-top: 14px;
}


/* 观看/听过入口 */

.mine-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 6px;
}

.mine-tab {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background .2s, transform .15s;
}

.mine-tab:active {
    background: var(--surface-strong);
    transform: scale(.98);
}

.mine-tab .mt-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 77, 255, .2), rgba(68, 138, 255, .2));
    color: var(--acc2);
    flex: 0 0 auto;
    margin-left: 12px;
    box-shadow: 0 2px 10px rgba(124, 77, 255, .15);
}

.mine-tab .mt-icon svg {
    width: 20px;
    height: 20px;
}

.mine-tab .mt-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mine-tab .mt-label {
    font-size: 15px;
    font-weight: 700;
}

.mine-tab .mt-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

.mine-tab .mi-arrow {
    color: var(--text3);
}

.mine-list {
    margin-top: 14px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 2px 14px rgba(31, 35, 48, .06);
}

.mine-item {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 0 22px;
    transition: background .2s;
    cursor: pointer;
}

.mine-item:active {
    background: var(--surface-strong);
}


/* 右侧彩色真实图标（柔色底圆角方块 + 彩色描边） */

.mine-item .mi-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-item .mi-ico svg {
    width: 21px;
    height: 21px;
    display: block;
}

.mine-item .mi-label {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 14px;
    font-size: 15.5px;
    font-weight: 500;
    color: #1f2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mine-item .mi-spacer {
    flex: 1 1 auto;
}


/* 左侧数值（如积分 0） */

.mine-item .mi-value {
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #9aa0ab;
}

.mine-item .mi-arrow {
    flex: 0 0 auto;
    margin-right: 4px;
    font-size: 20px;
    font-weight: 400;
    color: #c2c6ce;
    line-height: 1;
}


/* 深色模式下文字反色（图标色由内联样式控制） */

[data-theme="dark"] .mine-item .mi-label {
    color: var(--text);
}

.switch {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 99px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    transition: background .25s;
    flex: 0 0 auto;
    margin-right: 4px;
}

.switch::after {
    content: "";
    position: absolute;
    top: 2.5px;
    right: 3px;
    width: 19px;
    height: 19px;
    border-radius: 99px;
    background: #fff;
    transition: transform .25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.switch.on {
    background: var(--grad);
    border-color: transparent;
}

.switch.on::after {
    transform: translateX(-19px);
}


/* 历史记录横滑条 */

.h-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
}

.h-card {
    flex: 0 0 118px;
    border-radius: 13px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-left: 10px;
}

.h-card .poster {
    height: 0;
    padding-top: 135%;
    position: relative;
    overflow: hidden;
    background: var(--bg2);
}

.h-card .poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-card .poster .prog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5px;
    background: rgba(255, 255, 255, .2);
}

.h-card .poster .prog i {
    display: block;
    height: 100%;
    background: var(--grad);
}

.h-card .name {
    padding: 7px 9px 9px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 底部Tab */

#tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    transition: transform .3s ease;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 11px;
    transition: color .22s;
}

.tab svg {
    width: 22px;
    height: 22px;
    transition: transform .22s;
}

.tab.on {
    color: var(--acc2);
}

.tab.on svg {
    transform: translateY(-2px) scale(1.08);
}


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

#player-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #000;
    display: flex;
    flex-direction: column;
    animation: playerIn .3s ease both;
}

@keyframes playerIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#video-wrap {
    position: relative;
    width: 100%;
    height: 56.25vw;
    max-height: 42vh;
    background: #000;
    flex: 0 0 auto;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#ctrl {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    opacity: 1;
    transition: opacity .3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 32%, transparent 65%, rgba(0, 0, 0, .55));
}

#ctrl.hide {
    opacity: 0;
    pointer-events: none;
}

.ctrl-top {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #fff;
}

.ctrl-top .icon-btn {
    margin-right: 10px;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}


/* 返回按钮→物理左, 类型标签→物理右 (RTL) */

.ctrl-top #p-back {
    order: 2;
    position: relative;
    z-index: 5;
}

.ctrl-top .p-mode-tag {
    order: 0;
}

.ctrl-top .p-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctrl-center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ctrl-center #btn-bigplay {
    pointer-events: auto;
}

#btn-bigplay {
    width: 62px;
    height: 62px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 48, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    transition: transform .18s;
}

#btn-bigplay:active {
    transform: scale(.86);
}

#btn-bigplay svg {
    width: 28px;
    height: 28px;
}

.ctrl-bottom {
    padding: 8px 12px 12px;
    color: #fff;
}

.ctrl-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.ctrl-row span {
    flex: 0 0 auto;
}

.ctrl-btns {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.ctrl-btns button {
    padding: 6px 11px;
    border-radius: 99px;
    font-size: 12.5px;
    color: #dfe4f5;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .15s;
    margin-left: 6px;
}

.ctrl-btns button:active {
    transform: scale(.9);
}

#seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    outline: none;
    direction: ltr;
    margin: 0 10px;
}

#seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .35), 0 2px 8px rgba(0, 0, 0, .4);
}

#seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .35);
}

#player-body {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
    padding: 16px 14px 30px;
    -webkit-overflow-scrolling: touch;
}

#player-body .section-head {
    margin-top: 4px;
}

#speed-menu {
    position: absolute;
    z-index: 8;
    left: 12px;
    bottom: 86px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: viewIn .2s ease both;
}

#speed-menu button {
    display: block;
    width: 96px;
    padding: 10px 0;
    text-align: center;
    color: var(--text);
    font-size: 13.5px;
    direction: ltr;
}

#speed-menu button.on {
    color: #fff;
    background: var(--grad);
}


/* 加载转圈 */


/* ============ 高级加载动画 ============ */


/* 双环渐变 spinner */

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 99px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-top-color: var(--acc1);
    border-right-color: var(--acc2);
    animation: spin .8s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(124, 77, 255, .25);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* 三点脉冲 loader */

.loader-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.loader-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc1);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    background: var(--acc2);
    animation-delay: .15s;
}

.loader-dots span:nth-child(3) {
    background: var(--acc1);
    animation-delay: .3s;
}

@keyframes dotPulse {
    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .4;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}


/* 全屏路由加载层 */

.route-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: radial-gradient(80% 50% at 50% 40%, rgba(124, 77, 255, .12), transparent 70%), var(--bg);
    animation: loaderFadeIn .25s ease;
}

.route-loader.hide {
    animation: loaderFadeOut .3s ease forwards;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes loaderFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* 品牌加载环 */

.brand-ring {
    position: relative;
    width: 52px;
    height: 52px;
}

.brand-ring::before,
.brand-ring::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.brand-ring::before {
    border-top-color: var(--acc1);
    border-right-color: var(--acc1);
    animation: spin .9s linear infinite;
}

.brand-ring::after {
    border-bottom-color: var(--acc2);
    border-left-color: var(--acc2);
    animation: spin 1.2s linear infinite reverse;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
}

.brand-ring .spinner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 卡片图片淡入 */

.card .poster img {
    opacity: 0;
    transition: opacity .4s ease;
}

.card .poster img.loaded {
    opacity: 1;
}


/* 无限滚动底部 loader */

.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
    color: var(--text3);
    font-size: 13px;
}

.load-more .spinner {
    width: 24px;
    height: 24px;
    border-width: 2px;
}


/* Toast */

#toast {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 220;
    bottom: 86px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

#toast span {
    max-width: 78%;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    color: #fff;
    text-align: center;
    background: rgba(24, 28, 54, .92);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    animation: toastIn .25s ease both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* ============ 底部上滑模态弹窗 ============ */

.sheet-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 180;
    background: rgba(4, 6, 14, .6);
    animation: maskIn .28s ease both;
}

@keyframes maskIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 181;
    max-height: 86vh;
    background: var(--bg2);
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .34s cubic-bezier(.2, .85, .25, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

.sheet-mask.show+.sheet,
.sheet.show {
    transform: translateY(0);
}

.sheet-head {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    padding: 16px 52px 12px;
    border-bottom: 1px solid var(--border);
}

.sheet-head h3 {
    font-size: 16px;
    font-weight: 800;
}

.sheet-close {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
}

.sheet-close:active {
    transform: scale(.88);
}

.sheet-close svg {
    width: 17px;
    height: 17px;
}

.sheet-body {
    padding: 14px 16px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* 收藏弹窗分类标签 */

.fav-tabs {
    display: flex;
    gap: 8px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.fav-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all .25s;
}

.fav-tab.on {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 77, 255, .35);
}

.fav-tab:active {
    transform: scale(.96);
}

.fav-content {
    transition: opacity .2s ease, transform .2s ease;
}


/* 解析完成后复制按钮容器 */

.pr-action {
    padding: 14px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

#pr-copy-btn {
    transition: all .25s ease;
}

#pr-copy-btn:disabled {
    opacity: .7;
    cursor: default;
    transform: none;
}


/* 弹窗内信息行（点击复制） */

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 14px;
    margin-bottom: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .15s, background .2s;
}

.info-row:active {
    transform: scale(.97);
    background: var(--surface-strong);
}

.info-row .ir-label {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text3);
}

.info-row .ir-val {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row .ir-copy {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc2);
}

.info-row .ir-copy svg {
    width: 16px;
    height: 16px;
}

.sheet-pic {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
    background: var(--bg);
}


/* 勾选行 */

.check-row {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 9px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    font-size: 14px;
    transition: all .2s;
}

.check-row .cr-box {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    margin-left: 11px;
    flex: 0 0 auto;
    border: 2px solid var(--text3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.check-row .cr-box svg {
    width: 13px;
    height: 13px;
    color: #fff;
    opacity: 0;
    transition: opacity .15s;
}

.check-row.on {
    border-color: rgba(124, 77, 255, .55);
    background: rgba(124, 77, 255, .08);
}

.check-row.on .cr-box {
    background: var(--grad);
    border-color: transparent;
}

.check-row.on .cr-box svg {
    opacity: 1;
}


/* 关于弹窗 */

.about-logo {
    width: 76px;
    height: 76px;
    margin: 6px auto 12px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(124, 77, 255, .45);
}

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

.about-name {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.about-ver {
    text-align: center;
    font-size: 12.5px;
    color: var(--text3);
    margin: 2px 0 14px;
}

.about-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 2;
    text-align: center;
    margin-bottom: 14px;
}

.about-row {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    font-size: 13px;
}

.about-row .ab-label {
    flex: 0 0 auto;
    color: var(--text3);
    margin-left: 10px;
}

.about-row .ab-val {
    flex: 1;
    min-width: 0;
    color: var(--text);
    word-break: break-all;
}


/* ============ 返回顶部悬浮按钮 ============ */

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: calc(var(--tabbar-h) + 18px);
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(124, 77, 255, .42);
    opacity: 0;
    transform: translateY(20px) scale(.7);
    pointer-events: none;
    transition: all .3s cubic-bezier(.2, .8, .3, 1);
}

.scroll-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.scroll-top:active {
    transform: scale(.85);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
}

body.nav-off .scroll-top {
    bottom: 18px;
}

.scroll-top.p-body {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 101;
}


/* ============ 搜索页范围栏（点击打开影院抽屉） ============ */

.search-scope {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    direction: rtl;
    transition: transform .15s, border-color .2s;
}

.search-scope:active {
    transform: scale(.98);
    border-color: var(--acc1);
}

.ss-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    flex: 0 0 auto;
}

.ss-name {
    flex: 1 1 auto;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--acc1);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-funnel {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--grad);
}

.ss-funnel svg {
    width: 17px;
    height: 17px;
}


/* ============ 搜索框内漏斗按钮（点击打开影院抽屉） ============ */

.search-box>svg.sb-search-ico {
    margin-left: 4px;
    /* 缩短与漏斗按钮的间距 */
}

.sb-funnel {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    background: transparent;
    margin-left: 9px;
    /* 物理左侧间距，与 input 分隔 */
    transition: transform .15s, color .2s, background .2s;
}

.sb-funnel:active {
    transform: scale(.88);
    color: var(--acc1);
    background: var(--surface);
}

.sb-funnel svg {
    width: 18px;
    height: 18px;
}


/* 搜索框下方范围指示行（小字提示当前搜索范围） */

.sb-scope-line {
    margin-top: 8px;
    padding: 0 4px;
    font-size: 12.5px;
    color: var(--text2);
    text-align: right;
    direction: rtl;
}

.sb-scope-line #s-scope-name {
    color: var(--acc1);
    font-weight: 700;
}

.searching-hint {
    text-align: center;
    padding: 24px 0;
    color: var(--text2);
    font-size: 14px;
}


/* ============ 卡片点击特效 ============ */

.card.tap {
    animation: cardTap .4s ease both;
}

@keyframes cardTap {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(.92);
        box-shadow: 0 0 0 4px rgba(124, 77, 255, .3), 0 4px 14px rgba(0, 0, 0, .22);
    }
    100% {
        transform: scale(.96);
    }
}

.h-card.tap {
    transform: scale(.93);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .35);
    transition: all .15s;
}


/* ============ 播放器优化 ============ */

#video-wrap {
    height: 56.25vw;
    max-height: 50vh;
}

@media (min-width: 600px) {
    #video-wrap {
        height: 56.25vw;
        max-height: 60vh;
    }
}

#ctrl {
    user-select: none;
    -webkit-user-select: none;
}

.ctrl-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
    padding-bottom: 16px;
}

#seek {
    height: 5px;
    background: rgba(255, 255, 255, .2);
    border-radius: 99px;
}

#seek::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 5px rgba(124, 77, 255, .3);
}

#btn-bigplay {
    width: 66px;
    height: 66px;
    background: rgba(20, 24, 48, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* 关于弹窗开发者信息行可点击 */

.about-row.tap {
    cursor: pointer;
    transition: all .15s;
}

.about-row.tap:active {
    transform: scale(.97);
    background: var(--surface-strong);
}

.about-row .ab-copy {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--acc2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.about-row .ab-copy svg {
    width: 15px;
    height: 15px;
}


/* ============ 复制弹窗快捷按钮 ============ */

.cp-btns {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.cp-btns button {
    flex: 1;
}


/* ============ 进度弹窗 ============ */

.prog-wrap {
    padding: 4px 0 8px;
}

.prog-info {
    font-size: 13.5px;
    color: var(--text2);
    text-align: center;
    margin-bottom: 12px;
}

.prog-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-strong);
    overflow: hidden;
    margin: 0 2px;
}

.prog-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad);
    transition: width .3s ease;
}

.prog-pct {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 10px 0 4px;
    color: var(--text);
}

.prog-stats {
    font-size: 12px;
    color: var(--text2);
    text-align: center;
    margin-bottom: 10px;
}

.prog-list {
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 6px;
}

.prog-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    margin-bottom: 3px;
    background: var(--surface);
    direction: rtl;
    animation: progItemIn .25s ease both;
}

@keyframes progItemIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prog-item .pi-idx {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
}

.prog-item .pi-stat {
    font-size: 12.5px;
    color: var(--text2);
}

.prog-item .pi-type {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--surface-strong);
    font-size: 10.5px;
    color: var(--text2);
    direction: ltr;
}

.prog-item .pi-url {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    font-size: 11px;
    color: var(--text3);
    text-align: left;
}

.prog-item.ok .pi-idx {
    background: rgba(76, 175, 80, .18);
    color: #4caf50;
}

.prog-item.ok .pi-stat {
    color: #4caf50;
}

.prog-item.fail .pi-idx {
    background: rgba(244, 67, 54, .16);
    color: #f44336;
}

.prog-item.fail .pi-stat {
    color: #f44336;
}

.prog-err {
    text-align: center;
    padding: 18px 0;
    color: var(--text2);
    font-size: 14px;
}


/* 排序控件 */

.prog-sort {
    display: flex;
    gap: 6px;
    margin: 8px 0 4px;
}

.prog-sort button {
    flex: 1;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text2);
    transition: all .2s;
    font-weight: 600;
}

.prog-sort button::after {
    content: ' ↕';
    font-size: 10px;
    opacity: .5;
}

.prog-sort button.on {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.prog-sort button.asc::after {
    content: ' ↑';
    opacity: 1;
}

.prog-sort button.desc::after {
    content: ' ↓';
    opacity: 1;
}


/* ============ 通知滚动条 ============ */

.notice-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.notice-bar:active {
    border-color: var(--acc1);
    background: var(--surface-strong);
}


/* باشبەتتىكى مەڭگۈلۈك «بارلىق ئۇقتۇرۇشنى كۆرۈش» كۇنۇپكىسى ئەمەلدىن قالدۇرۇلدى */

.notice-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--acc2);
}

.notice-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    direction: ltr;
}

.notice-content {
    display: inline-flex;
    white-space: nowrap;
    animation: noticeScroll 20s linear infinite;
    will-change: transform;
}

.notice-text {
    font-size: 13px;
    color: var(--text2);
    padding-left: 24px;
}

@keyframes noticeScroll {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}


/* 通知弹窗 — 图标标题栏右侧绝对定位, 标题居中 */

.sheet-title-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--acc2);
}

.sheet-title-icon svg {
    width: 20px;
    height: 20px;
}

.notice-popup {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 77, 255, .09), rgba(68, 138, 255, .06));
    border: 1px solid rgba(124, 77, 255, .16);
}

.notice-popup-text {
    font-size: 14px;
    line-height: 2;
    color: var(--text);
    text-align: justify;
}


/* =====================================================================
   双模式播放器（kino=电影视频 / asar=小说音频）
   —— 固定深色、毛玻璃、自绘滑条、唱片旋转、老内核兼容（物理定位）
   ===================================================================== */


/* ---------- 冷启动加载层 / 通用错误态 ---------- */

.p-boot {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(90% 60% at 50% 18%, rgba(124, 77, 255, .18), transparent 70%), #0b0e1a;
    animation: loaderFadeIn .3s ease;
}

.p-boot.hide {
    animation: loaderFadeOut .35s ease forwards;
}

.p-boot .brand-ring {
    width: 52px;
    height: 52px;
}

.p-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: #fff;
    background: rgba(6, 8, 18, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.p-error .glyph {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .72);
}

.p-error .glyph svg {
    width: 100%;
    height: 100%;
}

.p-error p {
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
}

.p-error .btn-grad {
    padding: 9px 24px;
    font-size: 14px;
}


/* ===================== 视频模式 ===================== */

#player-page.video-mode {
    background: #000;
}

#v-media {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}


/* 毛玻璃控制条 */

.glass-bar {
    background: rgba(10, 12, 26, .52);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
}

.ctrl-top.glass-bar {
    gap: 10px;
    padding-top: calc(10px + env(safe-area-inset-top));
}

.ctrl-bottom.glass-bar {
    background: linear-gradient(to top, rgba(7, 9, 20, .78) 20%, rgba(7, 9, 20, .32) 72%, transparent);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.p-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-mode-tag {
    flex: 0 0 auto;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(124, 77, 255, .4);
    border: 1px solid rgba(167, 139, 250, .45);
}


/* 中央播放钮 */

#btn-bigplay {
    width: 68px;
    height: 68px;
    color: #fff;
    background: rgba(20, 24, 48, .5);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .4);
}

#btn-bigplay svg {
    width: 30px;
    height: 30px;
}

#btn-bigplay.loading {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

#btn-bigplay.loading .brand-ring::before {
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, .4);
}

#btn-bigplay.loading .brand-ring::after {
    border-bottom-color: rgba(255, 255, 255, .6);
    border-left-color: rgba(255, 255, 255, .3);
}


/* 双击快进/快退中央提示 */

.v-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    background: rgba(12, 15, 32, .56);
    border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
}

.v-tip svg {
    position: relative;
    width: 44px;
    height: 44px;
}

.v-tip b {
    position: absolute;
    bottom: 17px;
    left: 50%;
    margin-left: -8px;
    font-size: 11px;
    font-weight: 800;
    font-style: normal;
    width: 16px;
    text-align: center;
}

.v-tip.show {
    animation: tipPop .7s ease both;
}

.v-tip.tip-fwd {
    border-color: rgba(68, 138, 255, .55);
    box-shadow: 0 0 26px rgba(68, 138, 255, .3);
}

.v-tip.tip-back {
    border-color: rgba(255, 255, 255, .32);
}

@keyframes tipPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.6);
    }
    22% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.96);
    }
}


/* 进度行 */

.pc-prog {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 2px;
    direction: ltr;
}

.pc-time {
    flex: 0 0 auto;
    min-width: 39px;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .86);
    font-variant-numeric: tabular-nums;
}


/* 中央主控钮行（物理方位：左=上一集/快退，右=快进/下一集） */

.pc-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 3px 0 2px;
    direction: ltr;
}

.pc-btn {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    transition: transform .15s, background .2s;
}

.pc-btn svg {
    width: 23px;
    height: 23px;
}

.pc-btn.sec {
    width: 47px;
    height: 47px;
    color: rgba(255, 255, 255, .93);
}

.pc-btn.sec svg {
    width: 27px;
    height: 27px;
}

.pc-btn.pc-big {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.pc-btn.pc-big svg {
    width: 27px;
    height: 27px;
}

.pc-btn.sm {
    width: 38px;
    height: 38px;
}

.pc-btn.sm svg {
    width: 20px;
    height: 20px;
}

.pc-btn.txt {
    width: auto;
    padding: 0 13px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
}

.pc-btn:active {
    transform: scale(.86);
}

.pc-btn.on {
    color: #fff;
    background: rgba(124, 77, 255, .5);
}


/* ±10s 图标内的数字角标 */

.pc-btn.sec b {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 16px;
    margin-left: -8px;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
    font-style: normal;
}


/* 底排：音量/亮度/倍速 …… PiP/全屏 */

.pc-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 2px 0;
}

.pc-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
}


/* 弹出式小面板（音量/亮度滑条） */

.pc-wrap {
    position: relative;
    display: inline-flex;
}

.pc-pop {
    position: absolute;
    bottom: calc(100% + 13px);
    left: 50%;
    z-index: 22;
    padding: 9px 12px;
    border-radius: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity .18s, transform .18s;
    background: rgba(16, 19, 38, .9);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.pc-pop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.pc-pop::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(16, 19, 38, .9);
}


/* 倍速弹层（JS 以 fixed 定位） */

.speed-pop {
    z-index: 40;
    width: 98px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 16px;
    background: rgba(16, 19, 38, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .6);
    animation: speedPopIn .18s ease both;
}

.speed-pop button {
    padding: 9px 0;
    border: none;
    border-radius: 11px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    direction: ltr;
    transition: background .15s;
}

.speed-pop button:active {
    background: rgba(255, 255, 255, .12);
}

.speed-pop button.on {
    color: #fff;
    background: var(--grad);
}

@keyframes speedPopIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.speed-pop.below {
    animation: speedPopInBelow .18s ease both;
}

@keyframes speedPopInBelow {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}


/* ---------- 自绘滑条（LTR；rail/buf/fill/knob） ---------- */

.pbar {
    position: relative;
    flex: 1;
    height: 22px;
    display: flex;
    align-items: center;
    cursor: pointer;
    direction: ltr;
    touch-action: none;
}

.pbar-rail,
.pbar-buf,
.pbar-fill {
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 99px;
}

.pbar-rail {
    right: 0;
    background: rgba(255, 255, 255, .22);
}

.pbar-buf {
    width: 0;
    background: rgba(255, 255, 255, .34);
}

.pbar-fill {
    width: 0;
    background: linear-gradient(to right, #7c4dff, #448aff);
    box-shadow: 0 0 9px rgba(124, 77, 255, .65);
}

.pbar-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .32), 0 2px 6px rgba(0, 0, 0, .45);
    transform: translate(-50%, -50%);
}

.pbar:active .pbar-knob {
    width: 16px;
    height: 16px;
}

.pbar.sm {
    flex: 0 0 auto;
    width: 94px;
    height: 20px;
}

.pbar.sm .pbar-knob {
    width: 12px;
    height: 12px;
}


/* 播放器内剧集区固定深色（不受浅色主题影响） */

#player-page.video-mode #player-body {
    background: #0b0e1a;
    color: #eef1fa;
}

#player-page.video-mode #player-body .section-head h2 {
    color: #fff;
}

#player-page #player-body .ep {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .1);
    color: #c6cde3;
}

#p-eps .ep {
    animation: chipIn .38s ease both;
}

#p-eps .ep:nth-child(2) {
    animation-delay: .03s;
}

#p-eps .ep:nth-child(3) {
    animation-delay: .06s;
}

#p-eps .ep:nth-child(4) {
    animation-delay: .09s;
}

#p-eps .ep:nth-child(5) {
    animation-delay: .12s;
}

#p-eps .ep:nth-child(6) {
    animation-delay: .15s;
}

#p-eps .ep:nth-child(7) {
    animation-delay: .18s;
}

#p-eps .ep:nth-child(8) {
    animation-delay: .21s;
}


/* 全屏：视频区铺满 */

#video-wrap:fullscreen,
#video-wrap:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-height: none;
    background: #000;
}

#player-page.is-fs #video-wrap {
    height: 100%;
    max-height: none;
}


/* ===================== 音频（小说）模式 ===================== */

#player-page.audio-mode {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(to bottom, #161334 0%, #0d1024 52%, #090b18 100%);
}

.media-hidden {
    position: fixed;
    top: 0;
    left: -200px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


/* 模糊海报背景 */

.a-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    background: #10132a;
}

.a-bg img {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    opacity: .55;
    filter: blur(42px) saturate(1.25);
}

.a-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(11, 13, 30, .5) 0%, rgba(11, 13, 30, .78) 58%, rgba(9, 11, 24, .97) 100%);
}


/* 顶部栏 */

.a-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 8px;
}

.a-head .a-back {
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    order: 2;
    position: relative;
    z-index: 5;
}

.a-head .a-kicker {
    order: 0;
}

.a-head .a-head-r {
    order: 1;
}

.a-kicker {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .78);
}

.a-head-r {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
}


/* 可滚动主体 */

.a-scroll {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 22px calc(30px + env(safe-area-inset-bottom));
    text-align: center;
}


/* 旋转唱片 */

.a-discwrap {
    position: relative;
    width: 70vw;
    max-width: 272px;
    margin: 16px auto 20px;
    animation: viewIn .45s ease both;
}

.a-disc {
    position: relative;
    width: 70vw;
    max-width: 272px;
    height: 70vw;
    max-height: 272px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    border: 7px solid rgba(255, 255, 255, .13);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 11px rgba(255, 255, 255, .04), inset 0 0 0 1px rgba(255, 255, 255, .12);
    animation: spinDisc 24s linear infinite;
    animation-play-state: paused;
}

.a-disc img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.a-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
    border-radius: 50%;
    background: var(--grad);
    border: 2px solid rgba(255, 255, 255, .85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.a-discwrap.playing .a-disc {
    animation-play-state: running;
}

@keyframes spinDisc {
    to {
        transform: rotate(360deg);
    }
}

.a-load {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.a-load .brand-ring {
    width: 40px;
    height: 40px;
}


/* 标题信息 */

.a-name {
    width: 100%;
    padding: 0 8px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
    word-break: break-word;
    animation: viewIn .5s .04s ease both;
}

.a-subline {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .66);
    animation: viewIn .5s .08s ease both;
}

.a-dot {
    opacity: .7;
}


/* 进度行 */

.a-prog {
    width: 100%;
    max-width: 450px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    animation: viewIn .5s .12s ease both;
}

.a-prog .pc-time {
    color: rgba(255, 255, 255, .8);
}


/* 主控制行 */

.a-ctrl {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    direction: ltr;
    animation: viewIn .5s .16s ease both;
}

.a-btn {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform .15s;
}

.a-btn svg {
    width: 22px;
    height: 22px;
}

.a-btn.sec {
    width: 52px;
    height: 52px;
    background: transparent;
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.a-btn.sec svg {
    width: 27px;
    height: 27px;
}

.a-btn.sec b {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 16px;
    margin-left: -8px;
    text-align: center;
    font-size: 8.5px;
    font-weight: 800;
    font-style: normal;
}

.a-big {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 12px 30px rgba(124, 77, 255, .52);
    transition: transform .15s;
}

.a-big svg {
    width: 30px;
    height: 30px;
}

.a-btn:active,
.a-big:active {
    transform: scale(.9);
}


/* 次级行：音量 / 倍速 */

.a-subrow {
    width: 100%;
    max-width: 450px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: viewIn .5s .2s ease both;
}

.a-sub-r {
    display: none;
}

.a-chip {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform .15s;
}

.a-chip svg {
    width: 19px;
    height: 19px;
}

.a-chip.txt {
    width: auto;
    height: 38px;
    padding: 0 17px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    direction: ltr;
}

.a-chip:active {
    transform: scale(.9);
}


/* 剧集区 */

.a-eps {
    width: 100%;
    max-width: 520px;
    margin-top: 26px;
    text-align: right;
}

.a-eps .section-head {
    margin: 0 2px 9px;
}

.a-eps .section-head h2 {
    color: #fff;
}

.a-chips {
    display: flex;
    gap: 9px;
    padding: 3px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    -webkit-overflow-scrolling: touch;
}

.a-chips::-webkit-scrollbar {
    display: none;
}

.a-chips .a-chip {
    width: 43px;
    height: 39px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: chipIn .34s ease both;
}

.a-chips .a-chip:nth-child(2) {
    animation-delay: .03s;
}

.a-chips .a-chip:nth-child(3) {
    animation-delay: .06s;
}

.a-chips .a-chip:nth-child(4) {
    animation-delay: .09s;
}

.a-chips .a-chip:nth-child(5) {
    animation-delay: .12s;
}

.a-chips .a-chip:nth-child(6) {
    animation-delay: .15s;
}

.a-chips .a-chip:nth-child(7) {
    animation-delay: .18s;
}

.a-chips .a-chip:nth-child(8) {
    animation-delay: .21s;
}

.a-chips .a-chip:nth-child(9) {
    animation-delay: .24s;
}

.a-chips .a-chip:nth-child(10) {
    animation-delay: .27s;
}

.a-chips .a-chip.on {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124, 77, 255, .45);
}

.chips-loading {
    display: flex;
    align-items: center;
    padding: 6px 2px;
}

.a-empty {
    padding: 10px 2px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
}

.a-error {
    width: 100%;
    max-width: 420px;
    margin: 18px auto 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.a-error p {
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: translateY(9px) scale(.9);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* ---------- 响应式 ---------- */

@media (min-width: 600px) {
    #player-page.video-mode #video-wrap {
        height: 56.25vw;
        max-height: 62vh;
    }
    .a-disc,
    .a-discwrap {
        max-width: 286px;
    }
    .a-disc {
        max-height: 286px;
    }
}

@media (max-height: 520px) {
    /* 横屏矮屏：压缩音频页唱片与间距 */
    .a-discwrap {
        width: 38vh;
        margin: 8px auto 10px;
    }
    .a-disc {
        width: 38vh;
        height: 38vh;
    }
    .a-prog {
        margin-top: 12px;
    }
    .a-ctrl {
        margin-top: 10px;
    }
    .a-subrow {
        margin-top: 12px;
    }
    .a-eps {
        margin-top: 16px;
    }
}


/* ============ 聚合登录弹窗 ============ */

.auth-field {
    margin-bottom: 14px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--acc1);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .15);
}

.auth-input::placeholder {
    color: var(--text3);
}

.auth-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-pwd-wrap .auth-input {
    padding-left: 14px;
    padding-right: 44px;
}

.auth-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    transition: color .2s;
}

.auth-pwd-toggle:active {
    color: var(--acc1);
}

.auth-code-wrap {
    display: flex;
    gap: 8px;
}

.auth-code-wrap .auth-input {
    flex: 1;
}

.auth-code-btn {
    flex: 0 0 auto;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--surface-strong);
    border: 1.5px solid var(--border);
    color: var(--acc1);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    transition: transform .15s;
}

.auth-code-btn:active {
    transform: scale(.94);
}

.auth-code-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(124, 77, 255, .35);
    transition: transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.auth-btn:active {
    transform: scale(.97);
}

.auth-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13.5px;
}

.auth-link {
    color: var(--text2);
    cursor: pointer;
    transition: color .2s;
}

.auth-link:active {
    color: var(--acc1);
}

.auth-alert {
    background: rgba(255, 71, 87, .12);
    border: 1px solid rgba(255, 71, 87, .3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #ff6b7a;
    margin-bottom: 12px;
    animation: authAlertIn .25s ease;
}

@keyframes authAlertIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--text3);
    font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 12px;
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding-bottom: 6px;
}

.auth-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.auth-social-btn:active {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}


/* 服务条款复选框 */

.agree-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 14px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    line-height: 1.6;
}

.agree-checkbox input {
    display: none;
}

.agree-checkmark {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 5px;
    border: 1.5px solid var(--text3);
    position: relative;
    transition: all .2s;
}

.agree-checkbox input:checked+.agree-checkmark {
    background: var(--grad);
    border-color: transparent;
}

.agree-checkbox input:checked+.agree-checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agree-label-text {
    flex: 1;
}


/* 服务条款弹窗内容 */

.agree-content {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 16px;
    line-height: 1.8;
    font-size: 14px;
    color: var(--text2);
}

.agree-content p {
    margin-bottom: 12px;
}

.agree-loading {
    text-align: center;
    color: var(--text3);
    padding: 20px 0;
}

.agree-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.agree-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


/* 登录门禁卡片 */

.gate-card {
    margin-top: 40px;
    text-align: center;
    padding: 36px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.gate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 77, 255, .35);
}

.gate-icon svg {
    width: 30px;
    height: 30px;
}

.gate-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.gate-desc {
    font-size: 13.5px;
    color: var(--text2);
    margin-bottom: 22px;
}

.gate-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.gate-btns .btn-grad,
.gate-btns .btn-ghost {
    width: 200px;
    padding: 12px;
}


/* ============ 高级登录注册页（品牌头 + 滑动标签 + 行内校验） ============ */

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 0 16px;
    direction: rtl;
}

.auth-brand-logo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-brand-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.auth-brand-txt {
    text-align: right;
}

.auth-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.auth-brand-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}


/* 滑动分段标签 */

.auth-tabs {
    position: relative;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
}

.auth-tab-glider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 50%;
    border-radius: 11px;
    background: var(--grad);
    box-shadow: 0 4px 14px rgba(124, 77, 255, .38);
    transition: right .3s cubic-bezier(.2, .85, .25, 1);
}

.auth-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text2);
    transition: color .25s;
    -webkit-tap-highlight-color: transparent;
}

.auth-tab.on {
    color: #fff;
}


/* 三视图切换 */

.auth-pane {
    display: none;
}

.auth-pane.on {
    display: block;
    animation: authPaneIn .3s ease both;
}

@keyframes authPaneIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}


/* 行内校验错误 */

.auth-fmsg {
    display: none;
    font-size: 12px;
    line-height: 1.45;
    color: #ff6b7a;
    margin-top: 5px;
}

.auth-field.has-err .auth-fmsg {
    display: block;
    animation: authAlertIn .22s ease;
}

.auth-input.invalid {
    border-color: rgba(255, 71, 87, .75);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, .13);
}


/* 忘记密码行（RTL 下贴左） */

.auth-forgot-row {
    display: flex;
    justify-content: flex-start;
    margin: -2px 0 12px;
}


/* 忘记密码视图返回链接 */

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    transition: color .2s;
    direction: rtl;
}

.auth-back:active {
    color: var(--acc1);
}

.auth-back span {
    font-size: 17px;
    line-height: 1;
}


/* 按钮加载小转圈 */

.auth-spin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    display: inline-block;
    animation: authSpin .7s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ============ 会员中心卡片（积分 / VIP / 签到 / 卡密） ============ */

.mc-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
    background: radial-gradient(120% 160% at 100% 0%, rgba(255, 184, 77, .16), transparent 55%), var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    direction: rtl;
}

.mc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.mc-vip {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text2);
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-vip.is-vip {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffd66b, #ffb23e);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 178, 62, .4);
}

.mc-pts {
    font-size: 13px;
    color: var(--text2);
    white-space: nowrap;
}

.mc-pts-num {
    font-size: 17px;
    font-weight: 800;
    color: var(--acc1);
}


/* ============ 开通会员入口按钮 ============ */

.mc-vip-open {
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffe08a, #ffb23e 60%, #ff8a3d);
    color: #3a2200;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(255, 150, 40, .35);
    transition: transform .15s, box-shadow .2s;
    cursor: pointer;
}

.mc-vip-open:active {
    transform: scale(.97);
}

.mc-vip-open .mvo-crown {
    font-size: 20px;
    line-height: 1;
}

.mc-vip-open .mvo-txt {
    flex: 1;
    text-align: center;
}

.mc-vip-open .mvo-arrow {
    font-size: 20px;
    font-weight: 900;
    opacity: .75;
}


/* ============ 开通会员弹窗 ============ */

.vip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text2);
    gap: 14px;
}

.vip-spin {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--acc1);
    border-radius: 50%;
    animation: vipSpin .8s linear infinite;
}

@keyframes vipSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ============ 开通会员弹窗 v2（高级风格） ============ */

.v2-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 77, 255, .14), rgba(80, 130, 255, .08));
    border: 1px solid rgba(124, 77, 255, .25);
    direction: rtl;
}

.v2-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc1);
    overflow: hidden;
}

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

.v2-avatar svg {
    width: 24px;
    height: 24px;
}

.v2-uinfo {
    flex: 1;
    min-width: 0;
}

.v2-uname {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-uid {
    font-size: 12px;
    color: var(--text2);
    margin-top: 2px;
}


/* 商品卡横向三选一 */

.v2-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.v2-card {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 16px 6px 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: transform .15s, border-color .2s, box-shadow .2s;
}

.v2-card:active {
    transform: scale(.97);
}

.v2-card.on {
    border-color: #6c5cff;
    background: linear-gradient(180deg, rgba(108, 92, 255, .12), var(--surface));
    box-shadow: 0 6px 20px rgba(108, 92, 255, .25);
}

.v2-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6c5cff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-check svg {
    width: 11px;
    height: 11px;
}

.v2-days {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.v2-card.on .v2-days {
    color: #6c5cff;
}

.v2-dunit {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 8px;
}

.v2-price {
    font-size: 14px;
    font-weight: 800;
    color: #ff7a45;
}

.v2-card.on .v2-price {
    color: #6c5cff;
}


/* 卡密兑换区 */

.v2-redeem {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    direction: rtl;
}

.v2-rhead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.v2-ricon {
    font-size: 16px;
}

.v2-rtitle {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.v2-rrow {
    display: flex;
    gap: 8px;
}

.v2-rinput {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    letter-spacing: .5px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.v2-rinput:focus {
    border-color: #6c5cff;
    box-shadow: 0 0 0 3px rgba(108, 92, 255, .15);
}

.v2-rbtn {
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 12px;
    border: 1.5px solid #6c5cff;
    background: transparent;
    color: #6c5cff;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    transition: transform .15s, opacity .2s, background .2s;
    cursor: pointer;
}

.v2-rbtn:active {
    transform: scale(.95);
    background: rgba(108, 92, 255, .1);
}


/* ==========================================================================
   ئارقا سۇپا مەزمۇنلىرىنىڭ H5 كۆرۈنۈشى (2026-09-19)
   app_open / position ads / notices / points center
   ========================================================================== */


/* ---------- 1. قوزغىلىش پۈتۈن ئېكران ئېلانى (app_open) ---------- */

.appopen-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(5, 7, 16, .82);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    animation: aoFade .28s ease;
}

@keyframes aoFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.appopen-box {
    position: relative;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    cursor: pointer;
}

.appopen-box img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

.appopen-tag,
.pa-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff5f8d, #ff9d5c);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255, 95, 141, .4);
}

.appopen-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appopen-close:disabled {
    opacity: .35;
}

.appopen-close:active {
    transform: scale(.92);
}


/* ---------- 2. ئورۇن ئېلانلىرى (detail_bottom / mine_top) ---------- */

.position-ad {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg2);
}

.position-ad img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.position-ad:active {
    opacity: .85;
}

.detail-ad-wrap,
.mine-ad-wrap {
    padding: 0 14px;
    margin-top: 12px;
}


/* ---------- 3. ئۇقتۇرۇش كارتىسى / تىزىملىكى ---------- */

.notice-sheet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.nsc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.nsc-head h4 {
    margin: 0;
    font-size: 17px;
    color: var(--text);
}

.nsc-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--grad);
}

.nsc-icon svg {
    width: 20px;
    height: 20px;
}

.nsc-body p {
    margin: 0 0 9px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text);
}

.nsc-all {
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--acc2);
    border-radius: 12px;
    padding: 9px;
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.nsc-all:active {
    background: var(--surface-strong);
}

.notice-list-box {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.notice-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.notice-row:active {
    background: var(--surface-strong);
}

.nr-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--acc2);
    background: rgba(68, 138, 255, .14);
}

.nr-icon svg {
    width: 18px;
    height: 18px;
}

.nr-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.nr-main b {
    font-size: 14.5px;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nr-main small {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}


/* ---------- 3.5 ئۇقتۇرۇش ئوقۇلغانلىق ھالىتى / ئوقۇلمىغان سانى ---------- */

.notice-unread-badge {
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff5a6e, #f02e4a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(240, 46, 74, .4);
}

.notice-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.nlh-count {
    font-size: 13px;
    font-weight: 600;
    color: #ff5a6e;
}

.nlh-count.zero {
    color: var(--text2);
    font-weight: 500;
}

.nlh-all-read {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--acc1), var(--acc2));
    cursor: pointer;
}

.nlh-all-read:active {
    opacity: .8;
}

.nr-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.nr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff4d63;
    box-shadow: 0 0 0 3px rgba(255, 77, 99, .16);
}

.nr-read {
    font-size: 11.5px;
    color: var(--text2);
}


/* ئوقۇلمىغان قۇر: كۆك نۇرلۇق ئارقا كۆرۈنۈش — «يېڭى ئۇقتۇرۇش» */

.notice-row.is-unread {
    background: rgba(68, 138, 255, .13);
    border-color: rgba(68, 138, 255, .30);
}

.notice-row.is-unread:active {
    background: rgba(68, 138, 255, .20);
}


/* ئوقۇلغان قۇر: نورمال يۈزە، تېكىست/سىن خىرە */

.notice-row.is-read .nr-main b {
    font-weight: 500;
    color: var(--text2);
}

.notice-row.is-read .nr-icon {
    color: var(--text2);
    background: var(--surface-strong);
}


/* ---------- 4. جۇغلانما مەركىزى (points center) ---------- */

.pc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.pc-balance {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-balance b {
    font-size: 26px;
    line-height: 1.1;
    color: var(--text);
}

.pc-balance span {
    font-size: 12px;
    color: var(--text2);
}

.pc-vip {
    margin-right: auto;
    font-size: 12.5px;
    color: var(--text2);
    background: var(--surface-strong);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.pc-vip.is-vip {
    color: #ffd66b;
    background: rgba(245, 185, 60, .13);
}

.pc-reward {
    margin: 10px 0 12px;
    font-size: 13px;
    color: var(--text2);
    text-align: center;
}

.pc-rules {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.pc-rule {
    flex-shrink: 0;
    width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 4px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pc-rule b {
    font-size: 12.5px;
    color: var(--text);
}

.pc-rule span {
    font-size: 10.5px;
    color: var(--text2);
}

.pc-rule em {
    font-style: normal;
    font-size: 12px;
    color: var(--acc2);
}

.pc-rule.next {
    border-color: rgba(124, 77, 255, .55);
    background: rgba(124, 77, 255, .12);
    box-shadow: 0 4px 14px rgba(124, 77, 255, .2);
}

.pc-tabs {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 10px;
}

.pc-tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text2);
    font-family: inherit;
    font-size: 13.5px;
    padding: 8px;
    border-radius: 9px;
    cursor: pointer;
}

.pc-tabs button.on {
    color: #fff;
    background: var(--grad);
}

/* R7b/R7d: 积分中心/我的购买弹窗的小节标题 */
.pc-list-head {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text2);
    margin: 14px 2px 8px;
    direction: rtl;
}

.pc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* R7d: 积分中心底部兑换区（复用 .v2-exchange 视觉，去除底部大边距） */
.pc-exchange {
    margin-top: 18px;
    margin-bottom: 4px;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
}

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

.pcr-main b {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcr-main small {
    font-size: 11px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcr-amt {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.pcr-amt.plus {
    color: #2ecc71;
}

.pcr-amt.minus {
    color: #ff6b6b;
}

.pcr-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pcr-right i {
    font-style: normal;
    font-size: 13px;
    color: var(--text);
}

.pc-badge {
    font-size: 10.5px;
    font-style: normal;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.pc-badge.green {
    color: #2ecc71;
    background: rgba(46, 204, 113, .13);
}

.pc-badge.orange {
    color: #f5a623;
    background: rgba(245, 166, 35, .14);
}

.pc-badge.gray {
    color: var(--text2);
    background: var(--surface-strong);
}

.pc-badge.red {
    color: #ff6b6b;
    background: rgba(255, 107, 107, .13);
}

.pc-more,
.pc-end {
    text-align: center;
    font-size: 12px;
    color: var(--text3);
    padding: 8px;
}

.v2-rbtn:disabled {
    opacity: .5;
}

.v2-rhint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text2);
    opacity: .7;
    text-align: center;
}


/* جۇغلانما نومۇرغا ئەزالىق ئېلىش رايونى */

.v2-exchange {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    direction: rtl;
}

.v2-mypoints {
    margin-right: auto;
    font-size: 11.5px;
    color: #f59e0b;
    font-weight: 700;
}

.v2-exbtn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, .35);
    cursor: pointer;
}

.v2-exbtn:active {
    transform: scale(.98);
}

.v2-exbtn:disabled {
    opacity: .55;
    cursor: default;
    box-shadow: none;
}

.v2-exprice {
    font-size: 13.5px;
    font-weight: 700;
    opacity: .95;
}


/* 统一支付按钮 */

.v2-pay {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: 0;
    background: linear-gradient(135deg, #6c5cff, #4a7bff);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(108, 92, 255, .4);
    transition: transform .15s, opacity .2s;
    cursor: pointer;
}

.v2-pay:active {
    transform: scale(.98);
}

.v2-pay:disabled {
    opacity: .6;
    cursor: default;
}

.v2-pay-price {
    font-size: 15px;
    font-weight: 700;
    opacity: .95;
}

.v2-agree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 4px 0 12px;
    font-size: 12.5px;
    color: var(--text2);
    direction: rtl;
    cursor: pointer;
    user-select: none;
}

.v2-foot {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text2);
    opacity: .65;
    text-align: center;
    direction: rtl;
}


/* ============ 首页后台广告位 ============ */

.home-admin-ad {
    position: relative;
    display: block;
    margin-top: 12px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    line-height: 0;
}

.home-admin-ad img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
}

.home-admin-ad .haa-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}


/* ============ 影院列表侧滑抽屉 ============ */

.cd-mask {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 190;
    background: rgba(4, 6, 14, 0);
    opacity: 0;
    transition: opacity .4s ease;
}

.cd-mask.show {
    background: rgba(4, 6, 14, .58);
    opacity: 1;
}

.cd-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 82vw;
    z-index: 191;
    display: flex;
    flex-direction: column;
    background: var(--bg2);
    direction: rtl;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .4s cubic-bezier(.2, .85, .25, 1);
    will-change: transform;
}

.cd-left {
    left: 0;
    border-radius: 0 22px 22px 0;
    border-right: 1px solid var(--border);
    box-shadow: 14px 0 50px rgba(0, 0, 0, .5);
    transform: translateX(-105%);
}

.cd-right {
    right: 0;
    border-radius: 22px 0 0 22px;
    border-left: 1px solid var(--border);
    box-shadow: -14px 0 50px rgba(0, 0, 0, .5);
    transform: translateX(105%);
}

.cd-left.show,
.cd-right.show {
    transform: translateX(0);
}

.cd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}

.cd-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.cd-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    background: var(--surface);
    border: 1px solid var(--border);
}

.cd-close svg {
    width: 17px;
    height: 17px;
}

.cd-close:active {
    transform: scale(.9);
}

.cd-list {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
}

.cd-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--text2);
    font-size: 13.5px;
}

.cd-sep {
    height: 1px;
    margin: 6px 10px;
    background: var(--border);
}

.cd-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--text);
    text-align: right;
    transition: background .2s, transform .15s;
}

.cd-item:active {
    transform: scale(.98);
}

.cd-item.on {
    background: rgba(124, 77, 255, .14);
}

.cd-item-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc2);
    background: var(--surface-strong);
}

.cd-item.on .cd-item-ico {
    color: #fff;
    background: var(--grad);
}

.cd-item-ico svg {
    width: 20px;
    height: 20px;
}

.cd-item-name {
    flex: 1 1 auto;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-item.on .cd-item-name {
    color: var(--acc1);
    font-weight: 800;
}

.cd-check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--acc1);
}

.cd-check svg {
    width: 22px;
    height: 22px;
}


/* ============ 我的页：用户信息模态窗 ============ */

.mine-hero.is-member {
    cursor: pointer;
}

.mine-hero.is-member:active .hero-row {
    opacity: .8;
}

.ui-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.ui-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 2px solid rgba(124, 77, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ui-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}

.ui-badge {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text2);
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--surface-strong);
}

.ui-head.is-vip .ui-badge {
    color: #ffd84d;
    background: rgba(245, 158, 11, .16);
}


/* ============ 完整用户信息页面（routes.userinfo） ============ */

.ui-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: calc(env(safe-area-inset-bottom) + 120px);
}


/* ---- 顶部用户信息卡片 ---- */

.ui-page-head {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px 20px 20px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ui-big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--acc1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ui-big-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ui-head-info {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

.ui-big-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.ui-vip-chip {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    flex: 0 0 auto;
}

.ui-vip-chip.normal {
    background: var(--surface-strong);
    color: var(--text2);
}

.ui-account-line,
.ui-id-line {
    font-size: 13px;
    color: var(--text2);
    margin-top: 3px;
}

.ui-account-line span,
.ui-id-line span {
    color: var(--text);
    font-weight: 600;
}


/* 邮箱状态行（未绑定 / 已绑定 —— 点击可进入邮箱表单） */

.ui-email-row {
    width: 100%;
    margin-top: 8px;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px dashed var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color .2s, background .2s;
}

.ui-email-row:active {
    border-color: var(--acc1);
}

.ui-email-row.bound {
    border-style: solid;
    border-color: var(--border);
}

.ui-email-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    direction: rtl;
}

.ui-email-label {
    font-size: 12px;
    color: var(--text2);
    font-weight: 700;
}

.ui-email-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-email-val.muted {
    color: var(--text3);
    font-weight: 500;
    font-style: italic;
}

.ui-email-change {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
}


/* ---- 功能卡片（密码 / 邮箱 内嵌表单） ---- */

.ui-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 16px 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.ui-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.ui-card-sub {
    font-size: 12.5px;
    color: var(--text2);
    margin-top: 4px;
    line-height: 1.7;
}


/* 入口卡片（密码/邮箱）：横向布局——左侧图标 + 中间文字 + 右侧按钮 */

.ui-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.ui-card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ui-card-icon svg {
    width: 22px;
    height: 22px;
}

.ui-card-icon.pwd-ico {
    background: linear-gradient(135deg, #ff8a47, #ff4e9d);
}

.ui-card-icon.em-ico {
    background: linear-gradient(135deg, #448aff, #7c4dff);
}

.ui-card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ui-card-text .ui-card-title {
    font-size: 15px;
}

.ui-card-text .ui-card-sub {
    margin-top: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-action-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 11px;
}

.ui-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.ui-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text2);
}

.ui-field label small {
    font-weight: 500;
    color: var(--text3);
}

.ui-field .inp {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.ui-field .inp::placeholder {
    color: var(--text3);
}

.ui-field .inp:focus {
    border-color: var(--acc1);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, .22);
}

.ui-field .inp:disabled {
    background: var(--surface-strong);
    color: var(--text3);
    cursor: not-allowed;
}


/* 邮箱验证码行：左侧输入 + 右侧发送按钮 */

.ui-field-inline {
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

.ui-inline-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-send-code {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    height: 46px;
    white-space: nowrap;
}

.ui-send-code:disabled {
    opacity: .55;
    pointer-events: none;
}


/* ---- 表单提交按钮（复用 btn-grad，加 busy 状态） ---- */

.ui-submit {
    margin-top: 4px;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 800;
}

.btn-grad.busy,
.btn-ghost.busy {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-grad.busy::after,
.btn-ghost.busy::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: ui-spin .7s linear infinite;
}

@keyframes ui-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-ghost.busy::after {
    border-color: rgba(124, 77, 255, .28);
    border-top-color: var(--acc1);
}


/* ---- 底部两个操作按钮（固定或随表单排到最下） ---- */

.ui-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding: 6px 0 22px;
}

.ui-logout-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 800;
    color: #ef4444;
    border-color: rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .08);
}

.ui-logout-btn:active {
    color: #fff;
    background: rgba(239, 68, 68, .9);
    border-color: transparent;
}

.ui-switch-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 800;
}


/* ---- 平板 / 桌面：表单改两列布局 ---- */

@media (min-width: 640px) {
    .ui-card {
        padding: 22px 22px 18px;
    }
    .ui-field-inline {
        flex-direction: row;
    }
    .ui-footer {
        flex-direction: row;
    }
    .ui-footer .ui-logout-btn,
    .ui-footer .ui-switch-btn {
        flex: 1 1 0;
    }
}


/* ============ 三步向导弹窗（密码修改 / 邮箱绑定 / 邮箱修改） ============ */

.wz-steps {
    padding: 4px 0 2px;
}


/* 步骤进度指示：1 — 2 — 3 */

.wz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 18px;
    direction: ltr;
    /* 进度条从左到右递进 */
}

.wz-dot {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text3);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background .25s, color .25s, transform .25s;
}

.wz-dot.on {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    transform: scale(1.08);
}

.wz-line {
    flex: 0 0 22px;
    height: 2px;
    background: var(--border);
    transition: background .25s;
}

.wz-line.on {
    background: var(--acc1);
}

.wz-body {
    direction: rtl;
    animation: wzFade .3s ease both;
}

@keyframes wzFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wz-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    text-align: center;
}

.wz-sub {
    font-size: 12.5px;
    color: var(--text2);
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.6;
}

.wz-mail-tip {
    margin: -4px 0 14px;
    font-size: 12.5px;
    color: var(--text2);
    text-align: center;
    direction: ltr;
}

.wz-mail-tip b {
    color: var(--acc1);
    font-weight: 700;
}


/* 字段错误提示 */

.wz-err {
    margin-top: 4px;
    font-size: 12px;
    color: #ff5a6e;
    min-height: 14px;
    line-height: 1.4;
}


/* 行内字段（验证码 + 重发按钮） */

.wz-body .ui-field-inline {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.wz-body .ui-inline-left {
    flex: 1 1 auto;
    min-width: 0;
}

.wz-recend {
    flex: 0 0 auto;
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 11px;
    white-space: nowrap;
    min-width: 92px;
}

.wz-recend:disabled {
    opacity: .7;
    cursor: not-allowed;
}


/* 主要按钮（向导内） */

.wz-next,
.wz-done {
    width: 100%;
    margin-top: 18px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
}

.wz-next:disabled,
.wz-done:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* 步骤3 结果页 */

.wz-result {
    text-align: center;
    padding: 8px 0 4px;
    animation: wzFade .3s ease both;
}

.wz-result-ico {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wz-result-ico svg {
    width: 32px;
    height: 32px;
}

.wz-result.ok .wz-result-ico {
    color: #fff;
    background: linear-gradient(135deg, #3ad29c, #1abc9c);
    box-shadow: 0 8px 22px rgba(58, 210, 156, .35);
}

.wz-result.fail .wz-result-ico {
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    box-shadow: 0 8px 22px rgba(238, 82, 83, .35);
}

.wz-result-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.wz-result-msg {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.6;
    padding: 0 8px;
}


/* invalid 字段：边框高亮 */

.wz-body .inp.invalid,
.ui-field .inp.invalid {
    border-color: #ff5a6e !important;
    box-shadow: 0 0 0 4px rgba(255, 90, 110, .12);
}


/* ============================================================
 * UI 调整（2026-09-19）：顶栏头像 / 我的页徽标 / 主题弹窗 /
 * 邀请合作弹窗 / 全部清空按钮
 * ============================================================ */


/* 顶栏：已登录时 logo 位置显示用户头像（圆环高亮） */

.topbar-logo.is-avatar {
    background: var(--surface-strong);
    box-shadow: 0 0 0 2px var(--acc1);
}


/* 我的页：通知行未读数徽标 */

.mi-badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}


/* 主题选择弹窗（复用 check-row，加副标题两行布局） */

.theme-opt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-opt .to-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-opt .to-txt b {
    font-size: 14px;
    font-weight: 700;
}

.theme-opt .to-txt small {
    font-size: 11.5px;
    opacity: .62;
}


/* 合作邀请弹窗 */

.invite-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invite-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px dashed var(--acc1);
    background: var(--surface);
}

.icb-label {
    font-size: 12px;
    opacity: .68;
}

.icb-code {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--acc1);
    direction: ltr;
}

.invite-url-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.iub-label {
    font-size: 12px;
    opacity: .68;
}

.iub-url {
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
    opacity: .85;
    background: var(--surface-strong);
    border-radius: 8px;
    padding: 8px 10px;
}

.iub-copy {
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.invite-rule {
    font-size: 12px;
    line-height: 1.8;
    opacity: .72;
    text-align: center;
}

.invite-list-head {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.invite-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.invite-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.invite-row .ir-no {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--acc1);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-row .ir-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invite-row .ir-main b {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-row .ir-main small {
    font-size: 11px;
    opacity: .6;
}

.invite-row .ir-reward {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--acc1);
}


/* 清空缓存弹窗：全部清空按钮 */

.clr-all-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border-radius: 12px;
    border: 1.5px solid rgba(239, 68, 68, .45);
    background: transparent;
    color: #ef4444;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.clr-all-btn:active {
    background: rgba(239, 68, 68, .12);
}