/* =========================================================
   云影 TV · 电视端首页样式
   画布基准：1920 x 1080（保留原像素画布 + 等比缩放）
   色彩与间距严格对照设计稿
   ========================================================= */

:root {
    /* 画布 */
    --canvas-w: 1920px;
    --canvas-h: 1080px;

    /* 颜色 */
    --bg: #0B0F17;             /* 页面底色 rgb(11,15,23) */
    --accent: #5B8CFF;         /* 品牌强调色 */
    --accent-2: #8A6BFF;       /* 强调渐变尾色 */
    --text: #FFFFFF;
    --text-90: rgba(255, 255, 255, 0.9);
    --text-70: rgba(255, 255, 255, 0.7);
    --text-60: rgba(255, 255, 255, 0.6);
    --text-55: rgba(255, 255, 255, 0.55);
    --hairline: rgba(255, 255, 255, 0.2);
    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-solid: #232C40;  /* 头像底色 rgb(35,44,64) */

    /* 字号 */
    --fs-brand: 30px;
    --fs-channel: 28px;
    --fs-clock: 26px;
    --fs-hero-title: 60px;
    --fs-hero-meta: 24px;
    --fs-hero-desc: 24px;
    --fs-badge: 22px;
    --fs-btn: 28px;
    --fs-row-title: 32px;
    --fs-more: 22px;
    --fs-card-title: 26px;
    --fs-card-meta: 20px;

    /* 间距与圆角 */
    --page-pad-x: 56px;
    --nav-h: 88px;
    --hero-h: 460px;
    --row-gap: 32px;
    --card-gap: 24px;
    --radius-card: 16px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #05070B;
    overflow: hidden;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
}

/* 舞台：居中承载 1920x1080 画布 */
.stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.tv-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--canvas-w);
    height: var(--canvas-h);
    background: var(--bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: top left;
}

button { font-family: inherit; color: inherit; }

/* =========================================================
   顶部导航栏
   ========================================================= */
.top-nav {
    height: var(--nav-h);
    flex: 0 0 var(--nav-h);
    padding: 0 var(--page-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark { display: flex; }

.brand-name {
    font-size: var(--fs-brand);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.channel-nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.channel-label {
    font-size: var(--fs-channel);
    font-weight: 500;
    color: var(--text-60);
    transition: color 0.18s ease;
}

/* 选中指示条：默认隐藏，选中/聚焦时点亮 */
.channel-bar {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.18s ease;
}

.channel.is-active .channel-label,
.channel.is-focused .channel-label {
    color: var(--text);
    font-weight: 700;
}

.channel.is-active .channel-bar { background: var(--accent); }
.channel.is-focused .channel-bar { background: rgba(91, 140, 255, 0.6); }

.status-bar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.clock {
    font-family: "Inter", "Noto Sans SC", sans-serif;
    font-size: var(--fs-clock);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}

.icon { display: flex; }

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--surface-solid);
    overflow: hidden;
}

/* =========================================================
   焦点推荐位
   ========================================================= */
.hero {
    position: relative;
    flex: 0 0 var(--hero-h);
    height: var(--hero-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 资源站给的多是低分辨率竖图，这里只当氛围色用，放大 + 重模糊掩盖像素 */
    transform: scale(1.2);
    filter: blur(46px) saturate(1.6) brightness(0.6);
    transition: opacity 0.36s ease;
}

/* 主视觉：竖版海报按原比例单独成块放在右侧，不被拉伸。
   不铺独立底板、不描 1px 白边 —— 只留一层很柔的投影，
   让它像是从氛围光里浮起来的，而不是贴上去的一张卡片。 */
.hero-art {
    position: absolute;
    top: 54px;
    right: 96px;
    z-index: 2;
    width: 264px;
    height: 352px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

/* 推荐位轮播指示点 */
.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}
.hero-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.3s ease, background 0.3s ease;
}
.hero-dot.is-active { width: 24px; background: var(--accent); }

/* 底部渐变：35% 处透明 → 底部 95% 底色 */
.hero-shade-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(11, 15, 23, 0) 35%,
        rgba(11, 15, 23, 0.95) 100%);
}

/* 左侧渐变：80% 底色 → 透明，保证文字可读 */
.hero-shade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px;
    height: 100%;
    background: linear-gradient(to right,
        rgba(11, 15, 23, 0.8) 0%,
        rgba(11, 15, 23, 0) 100%);
}

/* 文案块垂直居中：内容实际高约 416px，原来写死 top:56px 会算到 472px，
   超出 460px 的栏高，按钮底部被 .hero 的 overflow:hidden 整条切平。
   改成 50% + 位移后，无论简介长短都居中，也不再溢出。 */
.hero-info {
    position: absolute;
    left: 64px;
    top: 50%;
    transform: translateY(-50%);
    width: 920px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-badge {
    align-self: flex-start;
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: var(--fs-badge);
    font-weight: 500;
    color: var(--text-90);
}

/* 片名最多一行：推荐位没有人工截断，遇到超长片名会折成两行，
   文案块整体撑高后又会被 .hero 裁掉，这里直接兜住。 */
.hero-title {
    margin: 0;
    font-size: var(--fs-hero-title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    margin: 0;
    font-size: var(--fs-hero-meta);
    color: var(--text-70);
}

.hero-desc {
    margin: 0;
    width: 760px;
    font-size: var(--fs-hero-desc);
    line-height: 36px;
    color: var(--text-60);
    /* 简介最多三行，多了省略，避免文案块撑破推荐栏高度 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 4px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 44px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: var(--fs-btn);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    box-shadow: 0 10px 32px rgba(92, 140, 255, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-90);
    font-weight: 500;
}

/* 焦点态：白色描边环 */
.btn.is-focused { transform: scale(1.03); }

.btn-primary.is-focused {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 14px 40px rgba(92, 140, 255, 0.7);
}

.btn-ghost.is-focused {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* =========================================================
   内容推荐区（底部内容按画布裁切，暗示可下滑）
   ========================================================= */
.content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 36px var(--page-pad-x) 0;
    display: flex;
    flex-direction: column;
    gap: var(--row-gap);
    overflow: hidden;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.row-bar {
    width: 6px;
    height: 30px;
    border-radius: 3px;
    background: var(--accent);
}

.row-title {
    margin: 0;
    font-size: var(--fs-row-title);
    font-weight: 600;
}

.row-more {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-right: -12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--fs-more);
    color: var(--text-55);
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
}

.row-more.is-focused {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.card-track {
    display: flex;
    gap: var(--card-gap);
}

/* 卡片：设计稿中的卡片本身无边框，焦点态通过封面环呈现 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.card-thumb {
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-landscape { width: 428px; }
.card-landscape .card-thumb { width: 428px; height: 240px; }

.card-poster { width: 260px; }
.card-poster .card-thumb { width: 260px; height: 390px; }

.card-title {
    font-size: var(--fs-card-title);
    font-weight: 500;
    color: var(--text-90);
    transition: color 0.18s ease;
}

.card-meta {
    font-size: var(--fs-card-meta);
    color: var(--text-55);
    transition: color 0.18s ease;
}

/* 竖版海报：信息浮层默认隐藏，聚焦/悬停时浮现 */
.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: linear-gradient(to top, rgba(11, 15, 23, 0.95), rgba(11, 15, 23, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-poster.is-focused .card-overlay,
.card-poster:hover .card-overlay { opacity: 1; }

.card.is-focused .card-thumb {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px #FFFFFF, 0 18px 44px rgba(0, 0, 0, 0.65);
}

.card.is-focused .card-title { color: var(--text); }
.card.is-focused .card-meta { color: var(--text-70); }

/* 空状态：内容筹备中 */
.empty-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 64px 0 0 2px;
}

.empty-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-90);
}

.empty-desc {
    margin: 0;
    font-size: 24px;
    color: var(--text-55);
}

/* =========================================================
   操作反馈（避免静默交互）
   ========================================================= */
.toast {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translate(-50%, 12px);
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(24px);
    font-size: 24px;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 键盘可达性：屏蔽浏览器默认焦点框，统一用 .is-focused 呈现 */
.focusable:focus { outline: none; }

/* 链接复位：卡片、频道、按钮统一由自身样式控制外观 */
a { color: inherit; text-decoration: none; }

/* =========================================================
   可滚动内容区
   电视端不靠滚动条，靠焦点驱动滚动（main.js 里 scrollIntoView）
   ========================================================= */
.content-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 88px;
    scrollbar-width: none;
}
.content-scroll::-webkit-scrollbar { width: 0; height: 0; }

/* 资源站不可用时的推荐位兜底 */
.hero-fallback {
    background: linear-gradient(120deg, #121A2B 0%, #0B0F17 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
   推荐栏 · 整栏全图
   运营自制主视觉，一张图铺满整栏（高度沿用 --hero-h）。
   用 cover 裁切而不是 contain：电视端宁可裁掉边角，也不要两侧留黑。
   ========================================================= */
.hero-full { display: block; }

.hero-full-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-full-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 底部压一层渐变：图上要压「名称 + 简介」，所以比原先只有一个角标时铺得更深 */
.hero-full-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56%;
    background: linear-gradient(to bottom,
        rgba(11, 15, 23, 0) 0%,
        rgba(11, 15, 23, 0.42) 46%,
        rgba(11, 15, 23, 0.92) 100%);
    pointer-events: none;
}

.hero-full-badge {
    position: absolute;
    left: 64px;
    top: 56px;
    z-index: 3;
}

/* =========================================================
   推荐栏 · 图片上的文字层（整栏全图 / 动态图共用）
   运营自出的图上不带任何文字，光一张图观众不知道在推什么，
   所以统一在左下角压「名称 + 简介」；两段都可留空。
   ========================================================= */
.hero-cap {
    position: absolute;
    left: 64px;
    right: 160px;
    bottom: 46px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;   /* 点穿到图片/链接上，遥控器焦点依旧只有一个 */
}

.hero-cap-title {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    color: var(--text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-cap-desc {
    margin: 0;
    max-width: 1040px;
    font-size: var(--fs-hero-desc);
    line-height: 36px;
    color: var(--text-90);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
    /* 简介最多两行，多了省略——免得压掉整张主视觉 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*
 * 遥控器焦点态：整图描一圈白边。
 * 描边必须画在最上层——底下的压暗渐变会把白边糊掉，
 * 所以放到 ::before（层级高于文字与渐变）。
 */
.hero-full-link.is-focused::before,
.hero-gal-item.is-focused::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

/* =========================================================
   推荐栏 · 动态图轮播
   多张图叠放，逐张淡入淡出；也可以只放一张 GIF，那样就是纯动态图。
   ========================================================= */
.hero-gallery { position: relative; }

.hero-gal-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-gal-item.is-on {
    opacity: 1;
    pointer-events: auto;
}

.hero-gal-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 每张图自带一层底部压暗：亮图上直接压白字会读不出来（焦点描边见上面的 ::before） */
.hero-gal-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56%;
    background: linear-gradient(to bottom,
        rgba(11, 15, 23, 0) 0%,
        rgba(11, 15, 23, 0.42) 46%,
        rgba(11, 15, 23, 0.92) 100%);
    pointer-events: none;
}

.hero-gal-dots {
    position: absolute;
    right: 56px;
    bottom: 26px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   通用：小按钮 / 栏目副标题 / 卡片角标
   ========================================================= */
.btn-sm { padding: 12px 28px; font-size: 22px; gap: 10px; }

.row-sub {
    font-size: 22px;
    color: var(--text-55);
    padding-left: 4px;
}

.row-bar-rank { background: linear-gradient(180deg, #FFC46B, #FF8A3D); }

.card-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(11, 15, 23, 0.72);
    backdrop-filter: blur(8px);
    font-size: 18px;
    color: var(--text-90);
    font-variant-numeric: tabular-nums;
}

.card-thumb { position: relative; }

/* =========================================================
   页头（列表 / 排行 / 播放共用）
   ========================================================= */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.page-head-left { display: flex; align-items: center; gap: 16px; }

.page-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-count { font-size: 22px; color: var(--text-55); }
.page-note { font-size: 20px; color: var(--text-55); }

/* 搜索框 */
.search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    width: 720px;
}

.search-icon { display: flex; }

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 24px;
    color: var(--text);
    padding: 10px 0;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* 筛选条 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.filter-label { font-size: 22px; color: var(--text-55); margin-right: 4px; }

.filter-chip {
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 22px;
    color: var(--text-70);
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.filter-chip.is-active {
    background: rgba(91, 140, 255, 0.22);
    border-color: rgba(91, 140, 255, 0.7);
    color: var(--text);
    font-weight: 600;
}

.filter-chip.is-focused {
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
}

/* =========================================================
   结果网格（列表页：一行 8 张，密度高于首页）
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 40px 24px;
}

.card-grid .card-poster { width: 100%; }

.card-grid .card-poster .card-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
}

.card-grid .card-title { font-size: 22px; }
.card-grid .card-meta { font-size: 18px; }

/* =========================================================
   翻页
   ========================================================= */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 56px 0 20px;
}

.pager-btn,
.pager-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 64px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    color: var(--text-70);
    font-variant-numeric: tabular-nums;
}

.pager-num.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
}

.pager-btn.is-disabled { opacity: 0.32; }

.pager-btn.is-focused,
.pager-num.is-focused {
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
}

.pager-gap { color: var(--text-55); font-size: 24px; }

/* =========================================================
   首页榜单条
   ========================================================= */
.rank-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rank-no {
    flex: 0 0 44px;
    font-family: "Inter", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.32);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.rank-no.is-top { color: #FFC46B; }

.rank-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 123px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-solid);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rank-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rank-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-90);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta { font-size: 20px; color: var(--text-55); }
.rank-plays { font-size: 20px; color: rgba(91, 140, 255, 0.95); }

.rank-card.is-focused {
    background: rgba(91, 140, 255, 0.16);
    border-color: rgba(91, 140, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 14px 34px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}
.rank-card.is-focused .rank-name { color: var(--text); }

/* =========================================================
   排行榜页：前三名
   ========================================================= */
.podium { display: flex; gap: 26px; margin-bottom: 44px; }

.podium-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 24px 26px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 前三名用金 / 银 / 铜做一层极淡的底衬，不抢内容 */
.podium-1 { background: linear-gradient(120deg, rgba(255, 190, 92, 0.16), rgba(255, 255, 255, 0.03) 62%); border-color: rgba(255, 190, 92, 0.26); }
.podium-2 { background: linear-gradient(120deg, rgba(190, 205, 226, 0.15), rgba(255, 255, 255, 0.03) 62%); border-color: rgba(190, 205, 226, 0.24); }
.podium-3 { background: linear-gradient(120deg, rgba(206, 147, 100, 0.15), rgba(255, 255, 255, 0.03) 62%); border-color: rgba(206, 147, 100, 0.24); }

.podium-thumb {
    position: relative;
    flex: 0 0 156px;
    display: block;
    width: 156px;
    height: 208px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-solid);
}
.podium-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.podium-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.podium-medal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    font-family: "Inter", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0B0F17;
    background: linear-gradient(140deg, #FFE0A3, #FFB259);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.podium-2 .podium-medal { background: linear-gradient(140deg, #E8EEF8, #B9C6DA); }
.podium-3 .podium-medal { background: linear-gradient(140deg, #F0C9A4, #CE9364); }

.podium-flag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(91, 140, 255, 0.92);
    font-size: 17px;
    color: #FFFFFF;
}

.podium-name {
    max-width: 100%;
    font-size: 30px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.podium-meta { font-size: 21px; color: var(--text-55); }
.podium-plays {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    color: rgba(91, 140, 255, 0.95);
}

.podium-card.is-focused {
    transform: translateY(-6px);
    background: rgba(91, 140, 255, 0.14);
    box-shadow: 0 0 0 3px #FFFFFF, 0 20px 48px rgba(0, 0, 0, 0.6);
}
.podium-card.is-focused .podium-name { color: var(--text); }

/* =========================================================
   排行榜页：4 名往后
   ========================================================= */
.rank-table { display: flex; flex-direction: column; gap: 12px; }

.rank-row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 24px;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.rank-row-no {
    flex: 0 0 56px;
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rank-row-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-solid);
}
.rank-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rank-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-row-name { font-size: 26px; font-weight: 600; color: var(--text-90); }
.rank-manual {
    margin-left: 12px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: rgba(91, 140, 255, 0.22);
    font-size: 18px;
    font-style: normal;
    color: #A9C2FF;
}
.rank-row-meta { font-size: 20px; color: var(--text-55); }

/* 播放量条：一眼能看出名次差距 */
.rank-bar {
    position: relative;
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.rank-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #5B8CFF, #8A6BFF);
}

.rank-row-plays {
    flex: 0 0 200px;
    text-align: right;
    font-size: 21px;
    color: rgba(255, 255, 255, 0.65);
    font-variant-numeric: tabular-nums;
}

.rank-row.is-focused {
    background: rgba(91, 140, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.rank-row.is-focused .rank-row-name { color: var(--text); }

/* =========================================================
   播放页
   ========================================================= */
.play-main { display: flex; gap: 32px; align-items: flex-start; }

.player-col { flex: 0 0 1140px; width: 1140px; }

.player-wrap {
    position: relative;
    width: 1140px;
    height: 641px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* 播放框衬底：资源站给的多是竖版海报，直接铺进 16:9 会左右留黑，
   用同一张图放大模糊垫底，中间再让海报原比例居中，观感完整很多 */
.player-backdrop { position: absolute; inset: 0; overflow: hidden; }
.player-backdrop img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    filter: blur(26px) saturate(1.25) brightness(0.55);
}
.player-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 45%, rgba(6, 9, 15, 0.08), rgba(6, 9, 15, 0.6));
}

/* 视频本身透明，未播放时让底衬透出来 */
.player-video { width: 100%; height: 100%; display: block; object-fit: contain; background: transparent; position: relative; }

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

.dm-item {
    position: absolute;
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
    will-change: transform;
    font-size: 28px;
}

/* 滚动距离由脚本按「屏宽 + 自身宽度」计算后写入 --dm-dist，避免写死画布宽度 */
@keyframes dm-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--dm-dist, -1400px)); }
}

.dm-item.dm-scroll { animation-name: dm-scroll; animation-timing-function: linear; animation-fill-mode: forwards; }
.dm-item.dm-top { left: 50%; transform: translateX(-50%); }
.dm-item.dm-bottom { left: 50%; transform: translateX(-50%); }

/* 状态遮罩 */
.player-mask {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 11, 18, 0.72);
    backdrop-filter: blur(4px);
    transition: opacity 0.25s ease;
}
.player-mask.is-hidden { opacity: 0; pointer-events: none; }

.player-mask-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    text-align: center;
    padding: 0 40px;
}

.player-mask-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 54px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.player-mask-text { margin: 0; font-size: 28px; font-weight: 600; color: var(--text); }
.player-mask-sub { margin: 0; font-size: 22px; color: var(--text-60); }

/* 控制条 */
.player-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: 88px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(to top, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.55) 70%, rgba(5, 7, 11, 0));
}

.pb-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 21px;
    color: var(--text-90);
    cursor: pointer;
}
.pb-btn.is-focused { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.24); }
.pb-btn.is-on { background: rgba(91, 140, 255, 0.35); border-color: rgba(91, 140, 255, 0.8); }

.pb-time {
    font-family: "Inter", sans-serif;
    font-size: 21px;
    color: var(--text-70);
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.pb-progress {
    flex: 1 1 auto;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.pb-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #5B8CFF, #8A6BFF);
    transition: width 0.25s linear;
}

.pb-label { white-space: nowrap; }

/* 播放中的选集浮层 */
.player-float {
    position: absolute;
    right: 20px;
    top: 20px;
    bottom: 108px;
    z-index: 6;
    width: 520px;
    padding: 20px 22px;
    border-radius: var(--radius-card);
    background: rgba(11, 15, 23, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    display: none;
    flex-direction: column;
    gap: 16px;
}
.player-float.is-open { display: flex; }

.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf-title { font-size: 24px; font-weight: 600; }
.pf-close { font-size: 21px; color: var(--text-60); padding: 6px 14px; border-radius: var(--radius-pill); }
.pf-close.is-focused { color: var(--text); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }

.pf-lines { display: flex; gap: 10px; flex-wrap: wrap; }

.pf-eps {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-content: start;
}
.pf-eps .ep { width: 100%; text-align: center; padding: 12px 6px; font-size: 19px; }

/* 弹幕发送条 */
.dm-bar {
    margin-top: 16px;
    height: 72px;
    padding: 0 12px 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-bar-label { font-size: 22px; color: var(--text-55); flex: 0 0 auto; }

.dm-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 23px;
    color: var(--text);
}
.dm-input::placeholder { color: rgba(255, 255, 255, 0.38); }

.dm-colors { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.dm-color {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--c);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}
.dm-color.is-active { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.dm-color.is-focused { transform: scale(1.12); }

/* 右侧信息栏 */
.play-side {
    flex: 1 1 auto;
    min-width: 0;
    height: 641px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.play-title {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
}

.play-meta { margin: 0; font-size: 22px; color: var(--text-60); }

.play-stats { display: flex; gap: 34px; }
.ps-item { display: flex; flex-direction: column; gap: 4px; }
.ps-item em { font-size: 19px; font-style: normal; color: var(--text-55); }
.ps-item b {
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-90);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.play-actions { display: flex; gap: 14px; }

.side-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-head { display: flex; align-items: center; gap: 12px; }
.side-title { font-size: 28px; font-weight: 600; }
.side-note { font-size: 20px; color: var(--text-55); margin-left: auto; }

.line-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.line-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 21px;
    color: var(--text-70);
    transition: background 0.16s ease, box-shadow 0.16s ease;
}
.lt-tag { font-size: 17px; color: var(--text-55); }
.lt-tag.is-warn { color: #FFC46B; }

.line-tab.is-active {
    background: rgba(91, 140, 255, 0.22);
    border-color: rgba(91, 140, 255, 0.7);
    color: var(--text);
    font-weight: 600;
}
.line-tab.is-active .lt-tag { color: #A9C2FF; }
.line-tab.is-focused { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); color: var(--text); }

/* 剧集列表 */
.ep-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-content: start;
    padding-bottom: 8px;
}
.ep-list::-webkit-scrollbar { width: 0; }

.ep {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 20px;
    color: var(--text-70);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep.is-active {
    background: rgba(91, 140, 255, 0.28);
    border-color: rgba(91, 140, 255, 0.85);
    color: var(--text);
    font-weight: 600;
}
.ep.is-focused { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92); color: var(--text); }
.ep-empty { font-size: 22px; color: var(--text-55); grid-column: 1 / -1; }

/* =========================================================
   剧情简介
   ========================================================= */
.play-desc { margin-top: 44px; }

.desc-body { display: flex; gap: 56px; margin-top: 20px; }

.desc-text {
    flex: 0 0 1100px;
    margin: 0;
    font-size: 23px;
    line-height: 38px;
    color: var(--text-60);
}

.desc-meta { flex: 1 1 auto; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.desc-meta > div { display: flex; gap: 16px; }
.desc-meta dt { flex: 0 0 68px; margin: 0; font-size: 21px; color: var(--text-55); }
.desc-meta dd {
    margin: 0;
    font-size: 21px;
    color: var(--text-70);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
