/* =========================================================
   黑金横幅影视模板 · 纯黑背景版
   说明：前端视觉重制，保留原 PHP 数据、TDK、静态链接规则。
   ========================================================= */

:root {
    --bg: #000;
    --bg2: #080808;
    --panel: #1d1d1d;
    --panel2: #2b2b2b;
    --soft: rgba(255,255,255,.08);
    --soft2: rgba(255,255,255,.14);
    --text: #fff;
    --sub: rgba(255,255,255,.72);
    --muted: rgba(255,255,255,.48);
    --red: #f12b2b;
    --orange: #ff7c24;
    --blue: #21b9ff;
    --green: #19d289;
    --radius: 18px;
    --max: 1760px;
    --headerH: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
    margin: 0;
    background: #000;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; background: #000; }
.page-wrap {
    width: min(var(--max), calc(100% - 88px));
    margin: 0 auto;
}

/* 顶部：深灰横条风格 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(60, 56, 56, .94);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
    backdrop-filter: blur(16px);
}
.header-inner {
    height: var(--headerH);
    width: min(1840px, calc(100% - 26px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    width: 270px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.brand-play {
    width: 62px;
    height: 62px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f62b2b, #e01818);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(239,43,43,.32);
    color: #222;
}
.brand-play i { color: rgba(0,0,0,.6); font-size: 36px; margin-left: 3px; }
.brand-words { line-height: 1; display: block; min-width: 0; }
.brand-words strong {
    display: block;
    font-size: 31px;
    font-weight: 1000;
    letter-spacing: -2px;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.brand-words em {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 2.5px;
    font-weight: 900;
    color: rgba(255,255,255,.86);
    text-align: right;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.main-nav a {
    color: rgba(255,255,255,.9);
    font-size: 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 48px;
    padding: 0 2px;
    transition: .2s ease;
}
.main-nav a i { font-size: 22px; color: rgba(255,255,255,.88); }
.main-nav a:hover,
.main-nav a.active { color: var(--blue); }
.main-nav a.active i { color: var(--blue); }
.nav-more i { margin-left: -3px; }

.header-search {
    width: min(430px, 25vw);
    height: 52px;
    border-radius: 28px;
    background: linear-gradient(90deg, #6b7f83, #7b5d63);
    display: flex;
    align-items: center;
    padding: 0 5px 0 24px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.header-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    min-width: 0;
}
.header-search input::placeholder { color: rgba(255,255,255,.66); }
.rank-mini {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    margin: 0 8px 0 4px;
    white-space: nowrap;
}
.header-search button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: #fff;
    background: var(--orange);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 22px;
}
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-actions a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    color: rgba(255,255,255,.92);
    font-weight: 800;
    font-size: 13px;
}
.header-actions i { font-size: 25px; }
.login-dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #27c6ff, #3b41c7 70%);
    display: grid !important;
    place-items: center;
    color: #fff !important;
}
.login-dot i { font-size: 30px; }
.login-dot span { display: none; }

.mobile-head { display: none; }
.mobile-tabbar { display: none; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin: 24px 0 20px;
    font-weight: 700;
}
.breadcrumb a { color: var(--sub); }
.breadcrumb strong { color: #fff; }

/* 首页大图 */
.home-hero-large {
    position: relative;
    min-height: 720px;
    margin-top: calc(-1 * var(--headerH));
    padding-top: var(--headerH);
    overflow: hidden;
    background: #000;
}
.hero-bg-full {
    position: absolute;
    inset: 0;
    background-position: center 22%;
    background-size: cover;
    filter: blur(0) saturate(1.04);
    opacity: .82;
    transform: scale(1.04);
}
.hero-black-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.54) 38%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.75) 100%),
        linear-gradient(0deg, #000 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.18) 100%);
}
.hero-main-content {
    position: relative;
    z-index: 2;
    width: min(1840px, calc(100% - 90px));
    margin: 0 auto;
    min-height: 500px;
    padding-top: 210px;
    display: grid;
    grid-template-columns: minmax(480px, 720px) 360px;
    justify-content: space-between;
    gap: 50px;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero-kicker i { color: #ff4b7e; }
.hero-left-copy h1 {
    font-size: clamp(52px, 5.4vw, 92px);
    line-height: .98;
    margin: 28px 0 18px;
    letter-spacing: -4px;
    font-weight: 1000;
    text-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-meta span {
    color: rgba(255,255,255,.86);
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 800;
}
.hero-left-copy p {
    width: min(600px, 100%);
    color: rgba(255,255,255,.76);
    line-height: 1.85;
    font-size: 18px;
    margin: 0 0 28px;
    text-shadow: 0 4px 16px rgba(0,0,0,.65);
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.watch-btn {
    min-width: 148px;
    height: 66px;
    padding: 0 30px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.18));
    color: #fff;
    font-weight: 1000;
    font-size: 19px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 18px 36px rgba(0,0,0,.3);
    backdrop-filter: blur(12px);
}
.watch-btn i { font-size: 25px; }
.heart-btn, .detail-icon-btn {
    height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.heart-btn { width: 64px; font-size: 28px; }

.hero-rank-list {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: right;
}
.rank-line {
    display: block;
    cursor: pointer;
    color: rgba(255,255,255,.76);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0 3px 12px rgba(0,0,0,.48);
    transition: .2s ease;
}
.rank-line span { display: block; }
.rank-line em { font-size: 14px; color: rgba(255,255,255,.5); font-style: normal; }
.rank-line.active,
.rank-line:hover { color: #fff; font-size: 34px; }

.hero-channel-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 3;
    width: min(1840px, calc(100% - 90px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 42px;
    align-items: center;
}
.strip-notice {
    height: 66px;
    border-radius: 34px;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    color: rgba(255,255,255,.9);
    font-size: 18px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}
.strip-tags { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.strip-tags a {
    height: 42px;
    padding: 0 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    backdrop-filter: blur(8px);
}
.strip-tags a:hover { background: var(--blue); color: #fff; }

/* 首页/列表筛选 */
.home-wrap { margin-top: -20px; position: relative; z-index: 5; }
.channel-filter-board {
    background: #262626;
    border: 1px solid rgba(255,255,255,.06);
    padding: 24px 28px;
    margin: 0 0 42px;
    box-shadow: 0 16px 38px rgba(0,0,0,.35);
}
.channel-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 48px;
    padding: 3px 0;
}
.channel-row strong {
    color: rgba(255,255,255,.58);
    font-size: 18px;
    font-weight: 1000;
    line-height: 40px;
}
.channel-links {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.channel-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 0;
    flex: 0 0 auto;
    padding: 0 16px;
    border-radius: 18px;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}
.channel-row a.active,
.channel-row a:hover {
    background: var(--blue);
    color: #fff;
}
.list-board { margin-top: 22px; }

/* 内容区 */
.content-section { margin: 40px 0 60px; }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-bottom: 14px;
}
.section-head h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -1px;
}
.section-head span { color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.more-link, .page-meter {
    height: 38px;
    padding: 0 18px;
    border-radius: 22px;
    background: #2b2b2b;
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.78);
    font-weight: 900;
}
.grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 30px 22px;
}
.card { display: block; min-width: 0; }
.card-poster {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: #151515;
    box-shadow: 0 12px 30px rgba(0,0,0,.38);
}
.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}
.card:hover .card-poster img { transform: scale(1.06); filter: brightness(1.1); }
.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.58), transparent 54%);
}
.card-hot-tag {
    position: absolute;
    right: 8px;
    top: 8px;
    min-height: 26px;
    max-width: 78%;
    padding: 4px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd78b, #ff9c33);
    color: #6e3100;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 1000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.card-score {
    position: absolute;
    right: 9px;
    bottom: 7px;
    color: var(--blue);
    font-style: normal;
    font-size: 20px;
    font-weight: 1000;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.card-text { margin-top: 10px; min-width: 0; }
.card-text strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 1000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-text span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.empty-state {
    min-height: 180px;
    border-radius: var(--radius);
    background: #161616;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 900;
}

/* 列表页 */
.list-page { padding-top: 10px; }
.list-filter-hero {
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    overflow: hidden;
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 34px 42px;
    border: 1px solid rgba(255,255,255,.08);
}
.filter-hero-bg, .detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(.95);
    opacity: .34;
    transform: scale(1.08);
}
.filter-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.52));
}
.filter-hero-info, .filter-hero-actions { position: relative; z-index: 2; }
.filter-hero-info h1 { margin: 0 0 10px; font-size: 46px; font-weight: 1000; }
.filter-hero-info p { margin: 0; color: var(--sub); font-weight: 800; }
.filter-hero-info em { color: var(--blue); font-style: normal; }
.filter-hero-actions { display: flex; gap: 12px; }
.filter-hero-actions a {
    height: 42px;
    padding: 0 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}
.filter-hero-actions a:hover { background: var(--blue); }
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 70px;
}
.page-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #232323;
    color: rgba(255,255,255,.8);
    display: grid;
    place-items: center;
    font-weight: 1000;
}
.page-btn.active { background: var(--blue); color: #fff; }
.page-btn.dots { background: transparent; }

/* 详情页 */
.detail-hero-flat {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 76px 0 58px;
    background: #000;
}
.detail-bg-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.86), rgba(65,55,50,.72), rgba(0,0,0,.84)),
        linear-gradient(0deg, #000 0%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.65) 100%);
}
.detail-layout-flat {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 110px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr 360px;
    gap: 42px;
    align-items: start;
}
.detail-poster-big {
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    background: #151515;
    box-shadow: 0 25px 70px rgba(0,0,0,.5);
}
.detail-poster-big img { width: 100%; height: 100%; object-fit: cover; }
.detail-breadcrumb { margin-top: 0; }
.detail-main-info h1 {
    margin: 0 0 18px;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 1000;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tag-row span {
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 900;
}
.detail-people { color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.8; }
.detail-people p { margin: 0 0 6px; }
.detail-people b { color: rgba(255,255,255,.55); }
.detail-desc {
    color: rgba(255,255,255,.74);
    line-height: 1.85;
    max-width: 920px;
    margin: 20px 0 34px;
}
.detail-actions .watch-btn {
    background: linear-gradient(135deg, #ff8b2e, #ff6524);
    height: 58px;
    min-width: 146px;
}
.rating-card {
    min-height: 340px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.08);
    padding: 30px;
    backdrop-filter: blur(18px);
}
.rating-number { color: #ffae22; font-size: 46px; font-weight: 1000; line-height: 1; }
.rating-text { margin-top: -34px; padding-left: 82px; }
.rating-text strong { display: block; font-size: 18px; }
.rating-text span { color: var(--muted); font-size: 13px; }
.stars { margin: 30px 0; color: rgba(255,255,255,.45); font-size: 34px; letter-spacing: 3px; }
.qr-box {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 24px;
    display: grid;
    place-items: center;
    gap: 10px;
    color: rgba(255,255,255,.72);
    font-weight: 900;
}
.qr-box i { font-size: 110px; color: #fff; line-height: .85; }
.detail-content { margin-top: 0; }
.text-panel {
    background: transparent;
    border: none;
    margin: 34px 0 46px;
    color: rgba(255,255,255,.7);
}
.text-panel h2 {
    display: inline-flex;
    height: 44px;
    padding: 0 18px;
    border-radius: 24px;
    background: var(--blue);
    align-items: center;
    color: #fff;
    margin: 0 0 22px;
    font-size: 18px;
}
.synopsis-text { line-height: 2; font-size: 18px; color: rgba(255,255,255,.7); }
.ep-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px;
}
.ep-btn {
    min-height: 48px;
    border-radius: 12px;
    background: #303030;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.86);
    font-weight: 900;
    padding: 0 10px;
    text-align: center;
}
.ep-btn:hover, .ep-btn.active { background: var(--blue); color: #fff; }

/* 播放页 */
.black-play { padding-top: 8px; }
.player-stage { margin-top: 18px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: stretch; }
.player-title-side {
    background: #191919;
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
}
.player-title-side h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.player-title-side p { color: var(--muted); margin: 12px 0 0; }
.player-card {
    background: #050505;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 22px 60px rgba(0,0,0,.5);
}
.player-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}
.vp-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: none;
    background: rgba(255,124,36,.96);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    cursor: pointer;
    box-shadow: 0 18px 48px rgba(255,124,36,.3);
}
.player-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.player-placeholder i { font-size: 68px; }
.play-title-row {
    margin: 24px 0 36px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.play-title-row h2 { margin: 0; font-size: 28px; }
.play-title-row p { margin: 6px 0 0; color: var(--muted); }
.play-next-actions { display: flex; gap: 12px; }

/* 搜索 */
.search-hero {
    padding: 48px;
    border-radius: 22px;
    background: linear-gradient(135deg, #191919, #0b0b0b);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 42px;
}
.search-hero h1 { margin: 22px 0 24px; font-size: 44px; }
.search-page-box {
    max-width: 820px;
    height: 64px;
    border-radius: 34px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 6px 0 22px;
    border: 1px solid rgba(255,255,255,.1);
}
.search-page-box > i { font-size: 24px; color: var(--muted); margin-right: 8px; }
.search-page-box input { flex: 1; background: transparent; border: none; outline: none; color: #fff; min-width: 0; }
.search-page-box button {
    height: 52px;
    padding: 0 28px;
    border-radius: 28px;
    border: none;
    background: var(--orange);
    color: #fff;
    font-weight: 1000;
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #050505;
    margin-top: 60px;
    padding: 42px 0 50px;
    color: var(--muted);
}
.footer-inner { width: min(var(--max), calc(100% - 88px)); margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 1000; color: #fff; margin-bottom: 16px; }
.footer-brand .brand-play { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand .brand-play i { font-size: 22px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-weight: 800; }

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 70;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    font-size: 24px;
    display: none;
    cursor: pointer;
}
.back-to-top.visible { display: grid; place-items: center; }
.fade-in { animation: fadeIn .24s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1380px) {
    .header-inner { gap: 18px; }
    .brand { width: 230px; }
    .brand-words strong { font-size: 27px; }
    .main-nav { gap: 14px; }
    .main-nav a { font-size: 16px; }
    .header-search { width: 340px; }
    .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .detail-layout-flat { grid-template-columns: 280px 1fr 300px; }
}

@media (max-width: 980px) {
    :root { --headerH: 68px; }
    body { padding-bottom: 72px; }
    .page-wrap, .footer-inner { width: calc(100% - 20px); }
    .site-header { background: rgba(73,68,66,.97); }
    .header-inner { display: none; }
    .mobile-head {
        height: var(--headerH);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }
    .mobile-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .mobile-brand .brand-play { width: 52px; height: 52px; border-radius: 9px; }
    .mobile-brand .brand-play i { font-size: 31px; }
    .mobile-brand .brand-words strong { font-size: 27px; max-width: 205px; overflow: hidden; text-overflow: ellipsis; }
    .mobile-brand .brand-words em { font-size: 10px; letter-spacing: 2px; }
    .mobile-icons { display: flex; align-items: center; gap: 14px; }
    .mobile-icons a { color: #fff; font-size: 24px; }
    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 58px;
        background: rgba(74,69,68,.96);
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 -8px 28px rgba(0,0,0,.32);
    }
    .tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 12px; font-weight: 900; }
    .tab-item i { font-size: 22px; }
    .tab-item.active { color: var(--blue); }

    .home-hero-large {
        min-height: 320px;
        margin-top: 0;
        padding-top: 0;
    }
    .hero-bg-full { background-position: center top; transform: scale(1.02); opacity: .9; }
    .hero-black-layer { background: linear-gradient(0deg, #252525 0%, rgba(0,0,0,.2) 46%, rgba(0,0,0,.55) 100%); }
    .hero-main-content {
        width: 100%;
        min-height: 260px;
        padding: 118px 10px 34px;
        display: block;
    }
    .hero-left-copy h1 { font-size: 22px; letter-spacing: 0; margin: 8px 0 8px; line-height: 1.15; max-width: 85%; }
    .hero-kicker { height: 25px; padding: 0; background: transparent; border-radius: 0; box-shadow: none; color: var(--blue); }
    .hero-meta { gap: 6px; margin-bottom: 6px; }
    .hero-meta span { height: 22px; font-size: 12px; padding: 0 7px; }
    .hero-left-copy p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 0;
        max-width: 94%;
    }
    .hero-actions, .hero-rank-list, .hero-channel-strip { display: none; }
    .home-wrap { margin-top: 0; }
    .channel-filter-board {
        margin: 0 -10px 24px;
        padding: 18px 10px 10px;
        border-left: 0;
        border-right: 0;
        background: #282828;
        overflow: hidden;
    }
    .channel-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    .channel-row::-webkit-scrollbar { display: none; }
    .channel-row strong { flex: 0 0 auto; width: 48px; font-size: 14px; line-height: 34px; }
    .channel-row a {
        height: 32px;
        margin: 0;
        padding: 0 14px;
        font-size: 14px;
        flex: 0 0 auto;
    }
    .content-section { margin: 28px 0 38px; }
    .section-head { margin-bottom: 14px; padding-bottom: 9px; }
    .section-head h2 { font-size: 19px; }
    .more-link, .page-meter { height: 30px; padding: 0 10px; font-size: 13px; background: transparent; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .card-poster { border-radius: 8px; aspect-ratio: 16/9; }
    .card-text strong { font-size: 15px; text-align: center; }
    .card-text span { font-size: 12px; text-align: center; }
    .card-hot-tag { font-size: 11px; min-height: 22px; }
    .card-score { font-size: 14px; }

    .breadcrumb { display: none; }
    .list-filter-hero { display: none; }
    .list-board { margin: 0 -10px 24px; }
    .pagination { justify-content: flex-end; margin: 10px 0 34px; }
    .page-btn { min-width: 34px; height: 34px; font-size: 13px; }

    .detail-hero-flat { min-height: auto; padding: 16px 0 18px; background: linear-gradient(135deg, #162838, #3d302d 60%, #111); }
    .detail-bg { opacity: .18; filter: blur(20px); }
    .detail-bg-mask { background: linear-gradient(120deg, rgba(0,0,0,.64), rgba(0,0,0,.3)); }
    .detail-layout-flat {
        width: calc(100% - 20px);
        grid-template-columns: 128px 1fr;
        gap: 14px;
    }
    .detail-poster-big { border-radius: 10px; }
    .rating-card { grid-column: 1 / -1; min-height: 74px; padding: 14px 18px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
    .rating-number { font-size: 34px; }
    .rating-text { margin: 0; padding: 0; }
    .stars { margin: 2px 0 0; font-size: 15px; }
    .qr-box { display: none; }
    .detail-main-info h1 { font-size: 17px; margin: 0 0 8px; line-height: 1.25; }
    .tag-row { gap: 6px; margin-bottom: 8px; }
    .tag-row span { height: auto; border: none; background: transparent; padding: 0; font-size: 13px; color: rgba(255,255,255,.75); }
    .detail-people { display: none; }
    .detail-desc { display: none; }
    .detail-actions { margin-top: 14px; }
    .detail-actions .watch-btn { height: 36px; min-width: 94px; padding: 0 12px; border-radius: 18px; font-size: 13px; }
    .detail-icon-btn { height: 34px; padding: 0 10px; border-radius: 16px; font-size: 13px; }
    .text-panel { margin: 22px 0 28px; }
    .text-panel h2 { height: 34px; font-size: 14px; padding: 0 13px; }
    .synopsis-text { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.62); }
    .ep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .ep-btn { min-height: 38px; border-radius: 8px; font-size: 13px; }

    .player-stage { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
    .player-title-side { display: none; }
    .player-card { border-radius: 0; margin-left: -10px; margin-right: -10px; border-left: 0; border-right: 0; }
    .vp-big-play { width: 58px; height: 58px; font-size: 30px; }
    .play-title-row { margin: 14px 0 24px; padding: 14px; border-radius: 12px; align-items: flex-start; }
    .play-title-row h2 { font-size: 18px; }
    .play-next-actions { flex-direction: column; gap: 8px; }

    .search-hero { padding: 24px 16px; border-radius: 14px; margin-top: 12px; }
    .search-hero h1 { font-size: 24px; margin: 15px 0; }
    .search-page-box { height: 50px; padding-left: 14px; }
    .search-page-box button { height: 40px; padding: 0 16px; }
    .site-footer { display: none; }
    .back-to-top { right: 14px; bottom: 78px; width: 42px; height: 42px; background: #444; }
}

@media (max-width: 370px) {
    .mobile-brand .brand-words strong { font-size: 22px; max-width: 175px; }
    .grid { gap: 16px 8px; }
    .ep-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}


/* v2 修复：PC 筛选项排列、隐藏列表页结果统计、首页右侧榜单联动 */
.list-filter-hero .filter-hero-info p { display: none !important; }
.channel-filter-board .channel-row { overflow: visible; }
.channel-filter-board .channel-links a.active { min-width: 74px; }
.hero-rank-list .rank-line.active { color: #fff; }
.hero-rank-list .rank-line:focus { outline: none; color: #fff; }
@media (max-width: 760px) {
    .channel-row { grid-template-columns: 46px minmax(0, 1fr); gap: 8px; min-height: 34px; }
    .channel-row strong { font-size: 14px; line-height: 30px; }
    .channel-links { gap: 8px 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .channel-links::-webkit-scrollbar { display: none; }
    .channel-row a { height: 30px; padding: 0 12px; font-size: 13px; }
}
