@charset "UTF-8";

:root {
    --bg: #101112;
    --surface: #191a1c;
    --surface2: #202123;
    --line: #ffffff10;
    --text: #f2f1ed;
    --muted: #8e8f92;
    --gold: #d4b585;
    --gold-light: #edcf9e;
    --radius: 12px;
    --max: 1440px;
    color-scheme: dark
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif
}

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

button,
input,
select {
    font: inherit
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    color: inherit
}

button:disabled {
    cursor: not-allowed;
    opacity: .45
}

button,
input,
select {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px
}

input,
select {
    color: var(--text);
    padding: 11px 14px;
    min-width: 0
}

button {
    padding: 9px 15px
}

button:hover,
a:hover {
    color: var(--gold-light)
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px
}

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

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

h1,
h2,
h3 {
    font-weight: 600
}

h1 {
    font-size: 38px;
    line-height: 1.35
}

h2 {
    font-size: 25px;
    letter-spacing: .5px
}

h3 {
    font-size: 16px
}

small,
.muted {
    color: var(--muted)
}

.wrap {
    width: min(calc(100% - 96px), var(--max));
    margin-inline: auto
}

.icon {
    width: 21px;
    height: 21px;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

.skip {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 100;
    background: var(--gold);
    color: #181818;
    padding: 12px
}

.skip:focus {
    top: 12px
}

.topbar {
    height: 86px;
    position: relative;
    z-index: 30;
    border-bottom: 1px solid #ffffff06;
    background: #101112f5
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 42px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap
}

.brand-mark {
    width: 34px;
    height: 37px;
    background: linear-gradient(135deg, #e3c795, #b28e5c);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    position: relative
}

.brand-mark:after {
    content: "";
    position: absolute;
    inset: 9px 13px 9px 7px;
    background: #101112;
    clip-path: polygon(0 0, 100% 50%, 0 100%)
}

.brand-name {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 4px
}

.brand-en {
    font-size: 9px;
    letter-spacing: 3.5px;
    display: block;
    line-height: 1.1;
    color: var(--gold)
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    white-space: nowrap
}

.desktop-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    color: #aaa
}

.desktop-nav a.active {
    color: var(--gold);
    font-weight: 600
}

.desktop-nav a.active:after {
    content: "";
    position: absolute;
    bottom: 17px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--gold)
}

.header-right {
    margin-left: auto;
    display: flex;
    gap: 22px;
    align-items: center
}

.search-box {
    display: flex;
    align-items: center;
    width: 240px;
    background: #222325;
    border: 1px solid #ffffff08;
    border-radius: 50px;
    padding: 0 7px 0 16px
}

.search-box input {
    background: none;
    border: 0;
    outline: none;
    width: 100%;
    padding: 9px 0;
    font-size: 12px
}

.search-box button {
    background: none;
    border: 0;
    padding: 7px;
    color: var(--gold)
}

.header-action {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    white-space: nowrap
}

.header-action .icon {
    width: 19px
}

.hero {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    background: #121719
}

.hero-slide {
    position: relative;
    min-height: 530px;
    display: flex;
    align-items: center
}

.hero-slide[hidden] {
    display: none
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%
}

.hero-slide:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #101112 0%, #101112dc 18%, #1011124a 48%, #1011120a 72%), linear-gradient(0deg, #101112 0%, transparent 35%)
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 18px;
    padding-bottom: 68px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    display: flex;
    gap: 12px;
    align-items: center
}

.eyebrow:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold)
}

.hero-copy h1 {
    font-family: "Songti SC", "SimSun", serif;
    font-weight: 500;
    font-size: 62px;
    letter-spacing: 7px;
    margin: 18px 0 12px;
    max-width: 700px
}

.hero-sub {
    font-size: 18px;
    letter-spacing: 3px;
    color: #d4d1cb;
    margin-bottom: 18px
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #a4a4a5;
    font-size: 12px
}

.meta>*+*:before {
    content: "·";
    margin-right: 10px;
    color: #666
}

.meta .rating {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700
}

.hero-description {
    color: #a6a6a6;
    max-width: 415px;
    font-size: 13px;
    line-height: 1.9;
    margin-top: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 23px;
    border: 1px solid #ffffff16;
    border-radius: 7px;
    background: #ffffff09;
    color: #dedede;
    white-space: nowrap
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #201c15;
    font-weight: 600
}

.btn-primary:hover {
    background: var(--gold-light);
    color: #181512
}

.hero-controls {
    position: absolute;
    z-index: 4;
    bottom: 44px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 8px
}

.hero-controls button {
    width: 25px;
    height: 4px;
    min-height: 0;
    border: 0;
    border-radius: 2px;
    background: #ffffff40;
    padding: 0
}

.hero-controls button.active {
    width: 44px;
    background: var(--gold)
}

.hero-controls .hero-caption {
    font: 11px/1 Arial;
    color: #aaa;
    margin-right: 10px;
    letter-spacing: 2px
}

.channel-strip {
    display: grid;
    grid-template-columns: 1.1fr repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0 30px;
    border-bottom: 1px solid var(--line)
}

.channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 8px;
    transition: background .2s
}

.channel:hover {
    background: #ffffff05
}

.channel .icon {
    color: var(--gold);
    width: 26px;
    height: 26px
}

.channel b {
    display: block;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap
}

.channel small {
    font-size: 11px
}

.channel:first-child {
    background: #d4b5850a
}

.section {
    margin-top: 36px
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px
}

.section-heading .kicker {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px
}

.section-heading .more {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    color: #a6a5a2;
    display: flex;
    align-items: center;
    gap: 5px
}

.section-heading .more .icon {
    width: 15px
}

.tabs {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap
}

.tabs a,
.tabs button {
    font-size: 13px;
    color: #999;
    border: 0;
    background: none;
    padding: 5px 0
}

.tabs .active {
    color: var(--gold)
}

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

.drama-card {
    min-width: 0
}

.poster {
    display: block;
    position: relative;
    aspect-ratio: 2/2.8;
    border-radius: 9px;
    overflow: hidden;
    background: #252629
}

.poster>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.poster:after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, #0009);
    pointer-events: none
}

.poster:hover>img,
.poster:hover>.sample-poster {
    transform: scale(1.045)
}

.sample-poster {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #232427 0%, #17181a 100%);
    background-size: 600% 100%;
    background-position: var(--pos) center;
    transition: transform .45s
}

.poster-title {
    position: absolute;
    z-index: 2;
    bottom: 36px;
    left: 0;
    right: 0;
    text-align: center;
    font: 28px/1.4 "Songti SC", "SimSun", serif;
    letter-spacing: 4px;
    color: #fff8e8;
    text-shadow: 0 2px 8px #000
}

.poster-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: #1b1b1bbd;
    backdrop-filter: blur(5px);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    z-index: 2;
    color: #e7d4b4
}

.poster-badge.hot {
    background: #b48b55;
    color: #fff
}

.poster-note {
    position: absolute;
    bottom: 9px;
    right: 10px;
    z-index: 2;
    font-size: 11px;
    color: #eee
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3;
    opacity: 0;
    transition: opacity .2s;
    background: #0002
}

.poster-play .icon {
    width: 45px;
    height: 45px;
    padding: 10px;
    border: 1px solid #fff8;
    border-radius: 50%;
    background: #0004;
    color: white
}

.poster:hover .poster-play {
    opacity: 1
}

.card-title {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 11px;
    align-items: center
}

.card-title h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500
}

.card-title .score {
    color: var(--gold);
    font: italic 16px Georgia, serif
}

.card-sub {
    font-size: 11px;
    color: #77797e;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.editorial {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 28px 35px;
    border: 1px solid #c8a96b25;
    border-radius: 10px;
    background: radial-gradient(ellipse at 85% 50%, #62503333, transparent 60%), #191817;
    position: relative;
    overflow: hidden
}

.editorial .editorial-number {
    font: italic 60px/1 Georgia, serif;
    color: #c9ae763d
}

.editorial .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 7px
}

.editorial h2 {
    font: 24px "Songti SC", "SimSun", serif;
    letter-spacing: 2px
}

.editorial p {
    font-size: 12px;
    color: #8f8d86;
    margin-top: 8px
}

.editorial>.btn {
    margin-left: auto;
    border-color: #d4b58550;
    color: var(--gold);
    background: none
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.ranking-panel {
    box-sizing: border-box;
    padding: 24px;
    background: #191a1b;
    border: 1px solid var(--line);
    border-radius: 10px
}

.ranking-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px
}

.ranking-title .icon {
    color: var(--gold)
}

.ranking-title h3 {
    font-size: 19px
}

.ranking-title small {
    margin-left: auto;
    font-size: 10px
}

.rank-item {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px
}

.rank-no {
    font: italic 22px Georgia, serif;
    width: 20px;
    flex-shrink: 0;
    color: #67696b;
    white-space: nowrap
}

.rank-item:nth-child(-n+4) .rank-no {
    color: var(--gold)
}

.rank-thumb {
    width: 46px;
    height: 61px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0
}

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

.rank-info {
    min-width: 0;
    flex: 1
}

.rank-info h3 {
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500
}

.rank-info small {
    font-size: 10px
}

.rank-item>span:last-child {
    font-size: 11px;
    color: #b69c74;
    flex-shrink: 0;
    white-space: nowrap
}

.footer {
    margin-top: 65px;
    border-top: 1px solid var(--line);
    padding: 36px 0 25px
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.footer-description {
    font-size: 12px;
    color: #777;
    margin-top: 12px
}

.footer-links {
    display: flex;
    gap: 26px;
    font-size: 12px;
    color: #999
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #585a5d;
    font-size: 10px;
    border-top: 1px solid var(--line);
    margin-top: 27px;
    padding-top: 20px;
    letter-spacing: .5px
}

.mobile-nav {
    display: none
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 35px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: #242527d9;
    z-index: 20
}

.page-head {
    padding: 43px 0 28px
}

.page-head .eyebrow {
    margin-bottom: 10px
}

.page-head p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 13px
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #777;
    font-size: 12px;
    padding: 24px 0
}

.breadcrumbs .icon {
    width: 13px
}

.filter-panel {
    padding: 24px 28px;
    background: #191a1b;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 30px
}

.filter-row {
    display: flex;
    gap: 24px;
    align-items: baseline;
    margin: 6px 0 17px
}

.filter-row:last-child {
    margin-bottom: 3px
}

.filter-label {
    color: #74767c;
    min-width: 35px;
    font-size: 12px
}

.filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filter-options a {
    padding: 4px 14px;
    font-size: 13px;
    color: #aaa;
    border-radius: 5px
}

.filter-options a.active {
    color: var(--gold);
    background: #d4b58515
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 26px 0
}

.results-toolbar small {
    font-size: 12px
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 15px;
    flex-wrap: wrap
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 37px;
    padding: 0 11px;
    border-radius: 5px;
    background: #1e1f21;
    color: #929499
}

.pagination .active {
    background: var(--gold);
    color: #181818
}

.pagination .page-total {
    background: none;
    font-size: 11px
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed #ffffff18;
    border-radius: 10px;
    grid-column: 1/-1;
    color: #999
}

.empty-state .icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin-bottom: 15px
}

.empty-state h2 {
    color: #ccc;
    font-size: 20px;
    margin-bottom: 8px
}

.empty-state p {
    font-size: 13px
}

.empty-state .btn {
    margin-top: 20px
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #161819;
    border-bottom: 1px solid var(--line)
}

.detail-glow {
    position: absolute;
    inset: 0;
    opacity: .11;
    background: radial-gradient(120% 90% at 50% 20%, rgba(212,181,133,.30) 0%, rgba(212,181,133,0) 65%);
    filter: blur(20px);
    pointer-events: none
}

.detail-main {
    display: flex;
    position: relative;
    gap: 42px;
    padding: 12px 0 45px
}

.detail-cover {
    width: 200px;
    flex-shrink: 0
}

.detail-cover .poster {
    aspect-ratio: 2/2.9
}

.detail-info {
    padding-top: 9px;
    max-width: 790px
}

.detail-info h1 {
    margin: 12px 0 15px;
    font-family: "Songti SC", "SimSun", serif;
    letter-spacing: 3px;
    font-size: 42px
}

.detail-info .description {
    line-height: 1.9;
    color: #aaa;
    margin: 18px 0;
    font-size: 13px;
    max-width: 680px
}

.detail-facts {
    font-size: 12px;
    color: #7e8186;
    line-height: 2
}

.detail-rating {
    margin-left: auto;
    align-self: center;
    text-align: center;
    flex-shrink: 0
}

.detail-rating strong {
    font: italic 54px Georgia, serif;
    color: var(--gold)
}

.detail-rating span {
    display: block;
    font-size: 11px;
    color: #888
}

.content-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px
}

.panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #18191b;
    padding: 25px
}

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

.source-tabs button {
    padding: 8px 20px;
    background: #252629;
    color: #b6b6b6
}

.source-tabs button.active {
    background: #d4b58517;
    border-color: #d4b58560;
    color: var(--gold)
}

.episode-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 15px;
    color: #818389;
    font-size: 12px;
    gap: 12px
}

.episode-toolbar button {
    background: none;
    border: 0;
    color: #9b9c9e;
    font-size: 12px;
    padding: 4px
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 9px;
    max-height: 370px;
    overflow: auto;
    scrollbar-width: thin
}

.episode-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    background: #242527;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 12px;
    color: #b6b8bc;
    padding: 7px 3px;
    word-break: break-all;
    text-align: center
}

.episode-grid a.active {
    color: var(--gold);
    border-color: #d4b58570;
    background: #d4b58514
}

.episode-grid a:hover {
    border-color: var(--gold);
    color: var(--gold)
}

.plot {
    margin-top: 30px;
    color: #96999d;
    line-height: 2;
    font-size: 13px
}

.plot h2 {
    font-size: 21px;
    color: #ddd;
    margin-bottom: 12px
}

.aside-title {
    font-size: 18px;
    margin: 5px 0 22px
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #08090a
}

.player-stage {
    aspect-ratio: 16/9;
    position: relative;
    min-width: 0;
    background: #050606;
    display: flex;
    align-items: center;
    justify-content: center
}

.player-stage>iframe,
.player-stage>video,
.player-stage .MacPlayer,
.player-stage #player {
    width: 100%;
    height: 100%;
    border: 0
}

.player-stage .MacPlayer table,
.player-stage .MacPlayer iframe {
    width: 100%;
    height: 100%
}

.player-side {
    background: #1b1c1e;
    padding: 23px;
    min-width: 0;
    max-height: 590px;
    overflow: auto
}

.player-side h2 {
    font-size: 21px;
    margin-bottom: 4px
}

.player-side .source-tabs {
    margin-top: 20px
}

.player-side .episode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 335px
}

.player-side .episode-toolbar {
    margin-top: 15px
}

.player-side .source-tabs button {
    padding: 6px 12px;
    font-size: 11px
}

.player-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap
}

.player-bottom .actions {
    margin: 0
}

.player-bottom h1 {
    font-size: 21px
}

.player-bottom .btn {
    padding: 8px 16px;
    min-height: 37px;
    font-size: 12px
}

.sample-player {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background: linear-gradient(#121316, #08090b);
    text-align: center;
    padding: 20px
}

.sample-player .big-play {
    border: 1px solid #d4b58570;
    border-radius: 50%;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: #d4b58510
}

.sample-player .big-play .icon {
    width: 28px;
    height: 28px
}

.sample-player p {
    color: #777;
    font-size: 12px
}

.sample-player h3 {
    font-size: 22px;
    font-weight: 400
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.topic-card {
    position: relative;
    min-height: 215px;
    overflow: hidden;
    border-radius: 10px;
    background: #272425;
    display: flex;
    align-items: flex-end
}

.topic-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.topic-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, #080a0cf5)
}

.topic-copy {
    position: relative;
    z-index: 2;
    padding: 24px
}

.topic-copy h2 {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 26px;
    letter-spacing: 2px
}

.topic-copy p {
    font-size: 12px;
    color: #beb4a5;
    margin-top: 7px
}

.topic-card:nth-child(2) {
    background: linear-gradient(135deg, #304837, #101b16)
}

.topic-card:nth-child(3) {
    background: linear-gradient(135deg, #482d2b, #241318)
}

.local-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px
}

.auth-layout {
    min-height: 590px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(90deg, #16171a, #101112 70%)
}

.auth-intro {
    align-self: center;
    padding: 80px
}

.auth-intro h1 {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 46px;
    letter-spacing: 4px
}

.auth-intro p {
    color: #a19c92;
    margin-top: 15px
}

.auth-card {
    align-self: center;
    justify-self: center;
    width: min(380px, calc(100% - 32px));
    padding: 32px;
    border: 1px solid var(--line);
    background: #1b1c1eea;
    border-radius: 12px
}

.auth-card h1 {
    font-size: 25px;
    margin-bottom: 5px
}

.auth-card>p {
    font-size: 12px;
    color: #888;
    margin-bottom: 25px
}

.form-field {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: #aaa
}

.form-field input {
    display: block;
    width: 100%;
    margin-top: 7px;
    background: #121315
}

.auth-card .btn-primary {
    width: 100%;
    margin-top: 24px
}

.auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 18px;
    color: var(--gold)
}

.form-message {
    font-size: 12px;
    color: var(--gold);
    margin-top: 12px;
    min-height: 20px
}

.verify-row {
    display: flex;
    gap: 10px;
    align-items: center
}

.verify-row input {
    width: 100%
}

.verify-row img {
    cursor: pointer;
    height: 40px;
    max-width: 120px;
    border-radius: 4px
}

.prose {
    max-width: 900px;
    margin: 40px auto;
    line-height: 2;
    color: #aaa
}

.prose h1,
.prose h2 {
    color: #e7e4de;
    margin: 20px 0 10px
}

.prose h2 {
    font-size: 21px
}

.prose p {
    margin: 10px 0
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 11px 24px;
    border: 1px solid #d4b58555;
    background: #25221eee;
    color: #ead3ad;
    border-radius: 8px;
    z-index: 100;
    font-size: 13px;
    max-width: 90%;
    text-align: center
}

.notice {
    background: #d4b5850a;
    border: 1px solid #d4b58525;
    color: #b1a38f;
    border-radius: 8px;
    padding: 12px 17px;
    font-size: 12px;
    margin: 20px 0
}

.search-large {
    display: flex;
    max-width: 680px;
    gap: 10px;
    margin-top: 20px
}

.search-large input {
    flex: 1
}

.search-large button {
    padding: 10px 25px
}

.hidden,
[hidden] {
    display: none
}

.lights-out .topbar,
.lights-out .breadcrumbs,
.lights-out .footer,
.lights-out main>.section {
    opacity: .13
}

.lights-out .player-layout {
    box-shadow: 0 0 0 100vmax #000b;
    position: relative;
    z-index: 35
}

.lights-out .player-bottom {
    position: relative;
    z-index: 36
}

.loading {
    padding: 45px;
    text-align: center;
    color: var(--muted)
}

@media(min-width:1700px) {

    .hero,
    .hero-slide {
        min-height: 600px
    }

    .hero-copy h1 {
        font-size: 72px
    }

    .hero-controls {
        right: calc((100vw - 1440px)/2)
    }
}

@media(max-width:1250px) {
    .wrap {
        width: calc(100% - 64px)
    }

    .header-inner {
        gap: 28px
    }

    .desktop-nav {
        gap: 22px
    }

    .header-right {
        gap: 16px
    }

    .search-box {
        width: 200px
    }

    .header-action span {
        display: none
    }

    .hero,
    .hero-slide {
        min-height: 490px
    }

    .hero-copy h1 {
        font-size: 54px
    }

    .channel-strip {
        gap: 3px
    }

    .channel {
        padding: 12px 7px;
        gap: 8px
    }

    .channel small {
        font-size: 10px
    }

    .poster-grid {
        gap: 20px 15px
    }

    .poster-title {
        font-size: 24px
    }

    .content-columns {
        grid-template-columns: minmax(0, 1fr) 270px
    }

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

    .player-side {
        padding: 18px
    }

    .player-side .episode-grid {
        max-height: 250px
    }

    .ranking-panel {
        padding: 20px
    }
}

@media(max-width:1000px) {
    .wrap {
        width: calc(100% - 40px)
    }

    .header-inner {
        gap: 24px
    }

    .desktop-nav {
        gap: 18px
    }

    .header-right .header-action {
        display: none
    }

    .search-box {
        width: 185px
    }

    .hero-copy h1 {
        font-size: 49px
    }

    .hero-slide:after {
        background: linear-gradient(90deg, #101112ee, #10111266 55%, #10111211), linear-gradient(0deg, #101112, transparent 50%)
    }

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

    .channel:nth-child(n+5) {
        display: none
    }

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

    .home-picks .drama-card:nth-child(n+5) {
        display: none
    }

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

    .ranking-panel:last-child {
        display: none
    }

    .content-columns {
        grid-template-columns: 1fr
    }

    .detail-rating {
        display: none
    }

    .content-columns aside {
        display: none
    }

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

    .player-side {
        max-height: none;
        padding: 22px
    }

    .player-side .episode-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        max-height: 190px
    }

    .player-side .source-tabs {
        margin-top: 14px
    }

    .topic-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .auth-intro {
        padding: 40px
    }

    .auth-intro h1 {
        font-size: 36px
    }

    .footer-links {
        gap: 18px
    }
}

@media(max-width:700px) {
    body {
        font-size: 13px
    }

    .wrap {
        width: calc(100% - 32px)
    }

    .topbar {
        height: 66px
    }

    .header-inner {
        gap: 12px
    }

    .brand-mark {
        width: 25px;
        height: 29px
    }

    .brand-name {
        font-size: 22px;
        letter-spacing: 3px
    }

    .brand-en {
        font-size: 7px;
        letter-spacing: 2.4px
    }

    .brand {
        gap: 8px
    }

    .desktop-nav {
        display: none
    }

    .header-right {
        gap: 0;
        flex: 1;
        margin-left: 14px
    }

    .search-box {
        width: 100%;
        max-width: 240px;
        margin-left: auto;
        padding-left: 13px
    }

    .search-box input {
        font-size: 11px
    }

    .search-box button {
        padding: 6px
    }

    .hero,
    .hero-slide {
        min-height: 475px
    }

    .hero-art {
        object-position: 65% top
    }

    .hero-slide:after {
        background: linear-gradient(0deg, #101112 0%, #101112e0 18%, #10111250 60%, #10111205), linear-gradient(90deg, #10111265, transparent)
    }

    .hero-copy {
        padding-top: 187px;
        padding-bottom: 55px;
        align-self: flex-end
    }

    .hero-copy h1 {
        font-size: 39px;
        letter-spacing: 5px;
        margin: 10px 0
    }

    .hero-sub {
        font-size: 13px;
        margin-bottom: 12px;
        letter-spacing: 2px
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 2px
    }

    .hero-description {
        font-size: 11px;
        max-width: 90%;
        margin-top: 12px;
        -webkit-line-clamp: 1
    }

    .meta {
        font-size: 10px;
        gap: 8px
    }

    .meta>*+*:before {
        margin-right: 8px
    }

    .meta .rating {
        font-size: 14px
    }

    .hero-copy .actions {
        margin-top: 19px
    }

    .btn {
        min-height: 40px;
        padding: 8px 19px;
        font-size: 12px
    }

    .hero-controls {
        right: 18px;
        bottom: 23px
    }

    .hero-controls .hero-caption {
        font-size: 9px
    }

    .hero-controls button {
        width: 18px;
        height: 3px
    }

    .hero-controls button.active {
        width: 29px
    }

    .channel-strip {
        padding: 3px 0 18px;
        gap: 2px
    }

    .channel {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 11px 3px;
        background: none
    }

    .channel .icon {
        width: 24px;
        height: 24px
    }

    .channel b {
        font-size: 12px
    }

    .channel small {
        font-size: 9px
    }

    .section {
        margin-top: 27px
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 15px
    }

    .section-heading h2 {
        font-size: 20px
    }

    .section-heading .kicker {
        display: none
    }

    .section-heading .more {
        font-size: 11px
    }

    .section-heading .tabs {
        gap: 13px;
        margin-left: 0
    }

    .section-heading .tabs a {
        font-size: 11px
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 10px
    }

    .home-picks .drama-card:nth-child(n+5) {
        display: block
    }

    .poster {
        border-radius: 6px;
        aspect-ratio: 2/3
    }

    .poster-title {
        font-size: 18px;
        letter-spacing: 2px;
        bottom: 29px
    }

    .poster-badge {
        top: 6px;
        left: 6px;
        font-size: 8px;
        padding: 1px 5px
    }

    .poster-note {
        font-size: 9px;
        bottom: 6px;
        right: 6px
    }

    .card-title {
        margin-top: 8px
    }

    .card-title h3 {
        font-size: 12px
    }

    .card-title .score {
        font-size: 13px
    }

    .card-sub {
        font-size: 9px;
        margin-top: 2px
    }

    .editorial {
        padding: 22px 18px;
        margin-top: 28px;
        gap: 13px
    }

    .editorial-number {
        display: none
    }

    .editorial h2 {
        font-size: 19px;
        letter-spacing: 1px
    }

    .editorial p {
        font-size: 10px;
        max-width: 180px
    }

    .editorial .eyebrow {
        font-size: 8px
    }

    .editorial>.btn {
        font-size: 10px;
        padding: 7px 12px;
        min-height: 34px
    }

    .ranking-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .ranking-panel {
        padding: 20px
    }

    .ranking-panel:nth-child(n+2) {
        display: none
    }

    .ranking-title {
        margin-bottom: 12px
    }

    .ranking-title h3 {
        font-size: 17px
    }

    .rank-item {
        margin-top: 16px
    }

    .rank-thumb {
        width: 44px;
        height: 57px
    }

    .footer {
        margin-top: 36px;
        padding: 26px 0 100px
    }

    .footer-top {
        align-items: flex-start;
        gap: 20px
    }

    .footer .brand-name {
        font-size: 21px
    }

    .footer-description {
        font-size: 10px;
        max-width: 170px
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px 14px;
        font-size: 10px;
        padding-top: 5px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        font-size: 9px;
        margin-top: 20px;
        padding-top: 16px
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #151618f5;
        border-top: 1px solid #ffffff10;
        padding: 9px 0 max(9px, env(safe-area-inset-bottom));
        z-index: 40;
        backdrop-filter: blur(14px)
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #7f8288;
        font-size: 10px;
        min-width: 55px
    }

    .mobile-nav a.active {
        color: var(--gold)
    }

    .mobile-nav .icon {
        width: 21px;
        height: 21px
    }

    .back-top {
        bottom: 85px;
        right: 12px;
        width: 32px;
        height: 32px;
        padding: 5px
    }

    .page-head {
        padding: 30px 0 22px
    }

    .page-head h1 {
        font-size: 29px
    }

    .page-head p {
        font-size: 11px
    }

    .filter-panel {
        padding: 17px 13px
    }

    .filter-row {
        gap: 10px;
        margin: 3px 0 13px
    }

    .filter-label {
        font-size: 11px;
        min-width: 25px
    }

    .filter-options {
        gap: 4px
    }

    .filter-options a {
        padding: 4px 9px;
        font-size: 11px
    }

    .tabs {
        gap: 18px
    }

    .tabs a {
        font-size: 12px
    }

    .results-toolbar small {
        font-size: 10px
    }

    .pagination {
        gap: 5px
    }

    .pagination a,
    .pagination span {
        min-width: 31px;
        height: 32px;
        padding: 0 8px;
        font-size: 11px
    }

    .breadcrumbs {
        font-size: 10px;
        padding: 18px 0
    }

    .detail-main {
        gap: 18px;
        padding-bottom: 28px
    }

    .detail-cover {
        width: 114px
    }

    .detail-info {
        padding: 0;
        min-width: 0
    }

    .detail-info h1 {
        font-size: 27px;
        letter-spacing: 1px;
        margin: 8px 0 10px
    }

    .detail-info .eyebrow {
        font-size: 8px
    }

    .detail-info .description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        margin: 12px 0
    }

    .detail-facts {
        font-size: 10px
    }

    .detail-info .actions {
        gap: 8px;
        margin-top: 14px
    }

    .detail-info .btn {
        font-size: 11px;
        padding: 7px 11px;
        min-height: 34px
    }

    .detail-info .btn .icon {
        width: 15px;
        height: 15px
    }

    .panel {
        padding: 17px 14px
    }

    .episode-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
        max-height: 290px
    }

    .episode-grid a {
        font-size: 11px;
        min-height: 35px
    }

    .source-tabs button {
        font-size: 11px;
        padding: 7px 14px
    }

    .player-wrap {
        width: 100%
    }

    .player-wrap>.breadcrumbs,
    .player-wrap>.player-bottom,
    .player-wrap>.section {
        margin-inline: 16px
    }

    .player-layout {
        border-radius: 0;
        border-inline: 0
    }

    .player-stage {
        aspect-ratio: 16/10
    }

    .player-side {
        padding: 18px 16px
    }

    .player-side h2 {
        font-size: 19px
    }

    .player-side .episode-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: 185px
    }

    .player-bottom h1 {
        font-size: 18px
    }

    .player-bottom .btn {
        font-size: 10px;
        padding: 7px 11px;
        min-height: 33px
    }

    .player-bottom .actions {
        gap: 7px
    }

    .sample-player h3 {
        font-size: 18px
    }

    .sample-player p {
        font-size: 10px
    }

    .sample-player .big-play {
        width: 49px;
        height: 49px
    }

    .topic-grid {
        grid-template-columns: 1fr
    }

    .topic-card {
        min-height: 200px
    }

    .auth-layout {
        grid-template-columns: 1fr;
        min-height: 560px;
        background: linear-gradient(#16171a, #101112)
    }

    .auth-intro {
        padding: 30px 22px 15px
    }

    .auth-intro h1 {
        font-size: 28px
    }

    .auth-intro p {
        font-size: 12px;
        margin-top: 8px
    }

    .auth-card {
        margin: 20px 0 35px;
        padding: 25px
    }

    .prose {
        margin: 25px auto;
        font-size: 13px
    }

    .prose h1 {
        font-size: 28px
    }

    .toast {
        bottom: 85px;
        min-width: 180px
    }

    .search-large input {
        width: 0
    }

    .search-large button {
        padding-inline: 18px
    }

    .local-head {
        align-items: flex-start
    }

    .local-head button {
        font-size: 11px;
        padding: 7px 10px
    }

    .empty-state {
        padding: 45px 15px
    }

    .empty-state h2 {
        font-size: 18px
    }
}

.sample-poster {
    background-size: 600% auto;
    background-position: var(--pos) 32%
}

.full-ranks .ranking-panel {
    display: block
}

.hero-fallback {
    min-height: 530px;
    display: flex;
    align-items: center
}

.hero-fallback h1 {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 52px;
    margin: 15px 0
}

.hero-fallback .btn {
    margin-top: 20px
}

.hero-fallback .hero-copy {
    padding-top: 60px
}

@media(max-width:700px) {
    .hero-fallback {
        min-height: 430px
    }

    .hero-fallback h1 {
        font-size: 35px
    }

    .hero-fallback .hero-copy {
        padding-top: 70px
    }

    .poster-title {
        font-size: 17px
    }

    .full-ranks .ranking-panel {
        display: block
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none;
        animation: none
    }
}

/* 好故事随时看好故事随时看好故事随时看??? */
.mobile-app-download {
    display: none;
}

@media (max-width: 700px) {
    :root {
        --mobile-nav-height: calc(46px + max(9px, env(safe-area-inset-bottom)));
        --mobile-app-height: 56px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-app-height));
    }

    .footer {
        padding-bottom: 26px;
    }

    .mobile-nav {
        height: var(--mobile-nav-height);
    }

    .mobile-app-download {
        display: block;
        position: fixed;
        bottom: var(--mobile-nav-height);
        left: 0;
        right: 0;
        height: var(--mobile-app-height);
        z-index: 40;
        padding: 8px 16px;
        border-top: 1px solid #d4b58530;
        background: #191a1cf5;
        backdrop-filter: blur(14px);
    }

    .mobile-app-link {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 100%;
    }

    .mobile-app-icon {
        width: 32px;
        height: 32px;
        color: var(--gold);
    }

    .mobile-app-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-app-copy strong {
        font-size: 13px;
        font-weight: 600;
    }

    .mobile-app-copy small {
        font-size: 10px;
    }

    .mobile-app-button {
        margin-left: auto;
        flex-shrink: 0;
        padding: 8px 14px;
        border-radius: 6px;
        background: var(--gold);
        color: #201c15;
        font-size: 12px;
        font-weight: 600;
    }

    .back-top,
    .toast {
        bottom: calc(var(--mobile-nav-height) + var(--mobile-app-height) + 12px);
    }
}

/* ===== 长串防溢出（2026-11-14）：脏数据里的 aaa… 会把标题撑破 ===== */
h1, h2, h3, h4, p, small, strong, b,
.detail-hero h1,
[data-drama-name],
.player-title,
.card-title h3,
.rank-info h3,
.intro-title,
.section-heading h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 单行标题依旧省略号截断（但允许在任何位置断行）*/
.card-title h3,
.rank-info h3 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 详情页大标题最多两行 */
.detail-hero h1,
[data-drama-name] {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 防止任何主容器横向滚动 */
html, body { max-width: 100%; overflow-x: hidden; }

/* ===== 详情页附加字段（导演/主演/语言/分类/标签）===== */
.detail-fields {
    margin-top: 14px;
    display: grid;
    gap: 6px;
}
.detail-fields p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
    display: flex;
    gap: 10px;
}
.detail-fields p span {
    flex-shrink: 0;
    min-width: 32px;
    color: #6c6d70;
}
.detail-fields p b {
    font-weight: 400;
    color: #b9b7b1;
    overflow-wrap: anywhere;
}
@media (max-width: 700px) {
    .detail-fields p { font-size: 11px; }
    .detail-fields { margin-top: 10px; gap: 4px; }
}

/* ===== editorial 下的高分精选（4 列）===== */
.editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 18px;
}
@media (max-width: 1000px) {
    .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

/* ===== 播放源切换（a 标签版，2026-11-14）===== */
.source-tabs a.source-tab {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #b6b6b6;
    background: #252629;
    border: 1px solid transparent;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
}
.source-tabs a.source-tab:hover {
    color: var(--text);
    background: #2d2e31;
}
.source-tabs a.source-tab.active {
    color: var(--gold);
    background: #d4b58517;
    border-color: #d4b58560;
    font-weight: 600;
}
@media (max-width: 700px) {
    .source-tabs { gap: 8px; margin-bottom: 10px; }
    .source-tabs a.source-tab { padding: 6px 14px; font-size: 12px; }
}

/* ===== 移动端适配补丁 2026-11-14 ===== */
/* ① 面包屑：长剧名不撑破容器 */
.breadcrumbs {
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}
.breadcrumbs span,
.breadcrumbs a:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
}

/* ② 详情字段：长名单（主演）可换行，不撑破 */
.detail-fields { min-width: 0; }
.detail-fields p { min-width: 0; }
.detail-fields p b {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ③ 详情信息列允许收缩 */
.detail-info { min-width: 0; }
.detail-info h1 { min-width: 0; }

/* ④ 移动端详情卡：封面缩小、按钮不挤 */
@media (max-width: 700px) {
    .detail-main {
        gap: 14px;
        padding: 8px 0 28px;
    }
    .detail-cover { width: 118px; }
    .detail-info { padding-top: 0; }
    .detail-info h1 { font-size: 24px; letter-spacing: 1px; margin: 8px 0 10px; }
    .detail-info .eyebrow { font-size: 10px; }
    .detail-fields p { font-size: 11px; }
    .detail-fields p span { min-width: 28px; }
    .detail-rating { display: none; }        /* 移动端藏起大评分，省空间 */
    .detail-hero .actions { gap: 8px; }
    .detail-hero .actions .btn {
        font-size: 12px;
        padding: 8px 14px;
        min-height: 36px;
    }
    .breadcrumbs { padding: 14px 0; font-size: 11px; }
    .breadcrumbs span, .breadcrumbs a:last-of-type { max-width: 48vw; }
}

@media (max-width: 430px) {
    .detail-cover { width: 104px; }
    .detail-info h1 { font-size: 21px; }
}

/* ===== 详情页集数汇总（替代选集网格）===== */
.episode-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 4px;
}
.episode-summary .ep-badge {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--gold);
    background: #d4b58517;
    border: 1px solid #d4b58540;
    border-radius: 5px;
    white-space: nowrap;
}
.episode-summary .ep-play {
    font-size: 13px;
    color: var(--muted);
    transition: color .18s;
}
.episode-summary .ep-play:hover { color: var(--gold); }
@media (max-width: 700px) {
    .episode-summary { gap: 8px 10px; }
    .episode-summary .ep-badge { font-size: 11px; padding: 3px 10px; }
    .episode-summary .ep-play { font-size: 12px; }
}

/* ===== 详情页选集（按源分组）===== */
.ep-source { margin-top: 14px; }
.ep-source-name {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    padding-left: 2px;
}
.ep-source:first-of-type { margin-top: 12px; }
@media (max-width: 700px) {
    .ep-source { margin-top: 12px; }
    .ep-source-name { font-size: 11px; margin-bottom: 6px; }
}

/* ===== 详情页多源 tab 切换 ===== */
[data-src-panel] { display: none; }
[data-src-panel].is-on { display: block; }
.ep-source { margin-top: 12px; }


/* ===== 底部导航高亮（2026-11-14，替代已移除的 home.js）=====
   body[data-page] 由各页 HTML 指定，这里映射到对应 data-nav */
.mobile-nav a { color: #7c7c80; }
.mobile-nav a[data-nav="home"] { }
body[data-page="home"] .mobile-nav a[data-nav="home"],
body[data-page="list"] .mobile-nav a[data-nav="library"],
body[data-page="search"] .mobile-nav a[data-nav="library"] {
    color: var(--gold);
}
body[data-page="home"] .mobile-nav a[data-nav="home"] .icon,
body[data-page="list"] .mobile-nav a[data-nav="library"] .icon,
body[data-page="search"] .mobile-nav a[data-nav="library"] .icon {
    color: var(--gold);
}

/* ===== 会员中心（2026-11-14）===== */
.user-page { padding-bottom: 40px; }

.user-card {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 22px 0 18px;
    padding: 20px 22px;
    background: #161819;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.user-avatar {
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #d4b58517;
    border: 1px solid #d4b58540;
    color: var(--gold);
}
.user-avatar .icon { width: 26px; height: 26px; }
.user-meta { min-width: 0; flex: 1; }
.user-meta h1 {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}
.user-meta .user-sub { margin: 0; font-size: 12px; color: var(--muted); }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.user-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.user-tabs a {
    padding: 7px 16px;
    font-size: 13px;
    color: #b6b6b6;
    background: #252629;
    border: 1px solid transparent;
    border-radius: 6px;
    white-space: nowrap;
    transition: color .18s, background .18s, border-color .18s;
}
.user-tabs a:hover { color: var(--text); background: #2d2e31; }
.user-tabs a.active {
    color: var(--gold);
    background: #d4b58517;
    border-color: #d4b58560;
    font-weight: 600;
}

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

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.empty-state p { margin: 0 0 16px; }

.user-panel {
    padding: 22px;
    background: #161819;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.user-panel h2 {
    font-family: "Songti SC", "SimSun", serif;
    font-size: 18px;
    margin: 0 0 16px;
}
.kv-list { display: grid; gap: 10px; margin-bottom: 18px; }
.kv-list div {
    display: flex;
    gap: 12px;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.kv-list span { flex-shrink: 0; width: 80px; color: #6c6d70; }
.kv-list b { font-weight: 400; color: #b9b7b1; overflow-wrap: anywhere; }

@media (max-width: 1000px) { .user-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .user-card { padding: 16px; gap: 12px; }
    .user-meta h1 { font-size: 19px; }
    .user-actions { width: 100%; }
    .user-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 10px; }
    .user-tabs a { font-size: 12px; padding: 6px 12px; }
    .user-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== 头像上传页（2026-11-14）===== */
.portrait-box {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.portrait-preview {
    position: relative;
    width: 140px; height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1d20;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.portrait-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.portrait-fallback {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #6c6d70;
}
.portrait-form { flex: 1; min-width: 240px; }
.portrait-tip {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}
.portrait-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.portrait-actions .btn { cursor: pointer; }
.portrait-status { margin: 0; font-size: 12px; }
@media (max-width: 700px) {
    .portrait-box { gap: 18px; }
    .portrait-preview { width: 110px; height: 110px; }
    .portrait-actions .btn { flex: 1; justify-content: center; }
}


/* ===== 顶栏用户区（2026-11-15）===== */
.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: #1f2023;
    border: 1px solid rgba(255, 255, 255, .06);
    color: #cfcec9;
    font-size: 13px;
    max-width: 160px;
    transition: border-color .18s, color .18s;
}
.header-user:hover { border-color: rgba(212, 181, 133, .45); color: var(--gold); }
.header-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #2a2b2e;
}
.header-uname {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 96px;
}
.header-logout { color: #8e8f92; }
.header-logout:hover { color: #e2705f; }

@media (max-width: 1000px) {
    .header-user { display: none; }     /* 移动端用底部导航，顶栏不重复 */
    .header-logout { display: none; }
}


/* ===== 榜单页：三面板（2026-11-15）===== */
.ranking-grid.full-ranks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.ranking-grid.full-ranks .ranking-panel { min-width: 0; }
@media (max-width: 1180px) {
    .ranking-grid.full-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .ranking-grid.full-ranks { grid-template-columns: minmax(0, 1fr); }
}

/* ===== rank-no-safe：序号不被长标题挤压（2026-11-15）===== */
.ranking-panel .rank-item { min-width: 0; }
.ranking-panel .rank-no {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    white-space: nowrap;
    font-style: italic;
}
.ranking-panel .rank-thumb { flex: 0 0 auto; }
.ranking-panel .rank-info { flex: 1 1 auto; min-width: 0; }
.ranking-panel .rank-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ranking-panel .rank-num { flex: 0 0 auto; white-space: nowrap; }

/* ===== 分类总览页（2026-11-15）===== */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #191a1c;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    color: #cfcec9;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
    min-width: 0;
}
.type-card:hover {
    border-color: rgba(212, 181, 133, .45);
    background: #1f2023;
    color: var(--gold);
    transform: translateY(-1px);
}
.type-card b {
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}
.type-card small {
    flex: 0 0 auto;
    font-size: 11px;
    color: #6c6d70;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .05);
}
.type-card .icon {
    width: 14px; height: 14px;
    flex: 0 0 auto;
    opacity: .5;
}
.type-card:hover .icon { opacity: 1; }

@media (max-width: 700px) {
    .type-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .type-card { padding: 11px 12px; gap: 8px; }
    .type-card b { font-size: 13px; }
}

/* ===== library-grid-6：列表/搜索/分类页改紧凑 6 列（2026-11-15）=====
   原来 .poster-grid 是 3 列大卡（原站首页风格），
   列表页 24 部剧会占 8 行 × 450px ⇒ 页面过长 ✗ */
.poster-grid.library-has-pg {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 16px;
}
@media (max-width: 1400px) {
    .poster-grid.library-has-pg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .poster-grid.library-has-pg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .poster-grid.library-has-pg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .poster-grid.library-has-pg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

/* ===== poster-ratio-fix：海报统一 2:2.8，图片裁切填满（2026-11-15）=====
   外链图床的海报尺寸不一致 ⇒ 卡片高度参差不齐 ✗ */
.drama-card .poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 2.8;
    overflow: hidden;
    background: #1c1d20;
}
.drama-card .poster > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== 追剧按钮已收藏态（2026-11-15）===== */
.btn[data-favorite].is-done {
    color: var(--gold);
    border-color: rgba(212, 181, 133, .55);
    background: rgba(212, 181, 133, .10);
}
.btn[data-favorite][disabled] { opacity: .6; cursor: default; }

/* ===== no-poster：海报缺失占位（2026-11-15）===== */
.poster.is-broken {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1d20;
    border: 1px dashed rgba(255, 255, 255, .10);
}
.poster.is-broken::after {
    content: "暂无海报";          /* 覆盖原来的渐变遮罩 */
    position: static;
    inset: auto;
    background: none;
    color: #6c6d70;
    font-size: 12px;
    letter-spacing: 1px;
    pointer-events: none;
}
.poster.is-broken > img { display: none; }
.poster.is-broken .poster-play { display: none; }
.poster.is-broken .poster-note { display: none; }

/* ===== 首屏 hero（2026-11-15）=====
   原模板有 .home-intro / .intro-slide / .intro-benefits 结构，
   但 theme.css 里**完全没有对应样式** ⇒ 首屏是裸文字 ✗ */
.home-intro {
    position: relative;
    margin: 22px 0 26px;
    padding: 52px 60px 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    background:
        radial-gradient(120% 160% at 8% 0%, rgba(212, 181, 133, .14) 0%, transparent 55%),
        linear-gradient(115deg, #1b1c1f 0%, #131416 58%, #1a1712 100%);
    overflow: hidden;
}
.home-intro::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 181, 133, .10) 0%, transparent 70%);
    pointer-events: none;
}

.intro-slides { position: relative; }
.intro-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease;
    pointer-events: none;
}
.intro-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* JS 未执行时（.is-ready 未加）至少显示第一屏，避免空白 */
.intro-slides:not(.is-ready) .intro-slide:first-child {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.home-intro .eyebrow {
    font-size: 11px;
    letter-spacing: 2.4px;
    color: #8c7a5c;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.home-intro .intro-title {
    font-family: "Songti SC", "SimSun", serif;
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.22;
    letter-spacing: 2px;
    margin: 0 0 14px;
    color: #f4f2ee;
}
.home-intro .intro-title em {
    font-style: normal;
    color: var(--gold);
}
.home-intro p {
    margin: 0 0 22px;
    font-size: 14px;
    color: #8e8f92;
    letter-spacing: .5px;
}
.home-intro .intro-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-intro .intro-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 12px;
    color: #b9b7b1;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
}
.home-intro .intro-benefits li span { color: var(--gold); font-size: 11px; }

@media (max-width: 900px) {
    .home-intro { padding: 34px 26px 32px; border-radius: 12px; }
    .home-intro .intro-title { letter-spacing: 1px; }
}
@media (max-width: 700px) {
    .home-intro { margin: 14px 0 18px; padding: 26px 18px 24px; }
    .home-intro .eyebrow { margin-bottom: 10px; letter-spacing: 1.6px; }
    .home-intro .intro-title { font-size: 26px; margin-bottom: 10px; }
    .home-intro p { font-size: 12px; margin-bottom: 16px; }
    .home-intro .intro-benefits { gap: 7px; }
    .home-intro .intro-benefits li { padding: 5px 10px; font-size: 11px; }
}


/* ===== 语义容器（无样式也无害，补最小尺寸防塌陷）===== */
.episode-block { min-width: 0; }
.user-list { min-width: 0; }
.portrait-panel { min-width: 0; }
.editorial-picks { padding-top: 6px; }


/* ===== 播放器封面层（2026-11-15，配合按需加载）===== */
.player-stage { position: relative; }
.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #101112;
    cursor: pointer;
    overflow: hidden;
}
.player-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
    filter: blur(1px) saturate(.9);
    pointer-events: none;
}
.player-cover-play {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3c795, #b28e5c);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
    transition: transform .18s;
}
.player-cover-play svg {
    width: 26px; height: 26px;
    fill: #12130f;
    margin-left: 3px;
}
.player-cover:hover .player-cover-play { transform: scale(1.06); }
.player-cover-text {
    position: relative;
    font-size: 13px;
    letter-spacing: 2px;
    color: #e8e6e1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.player-cover.is-loading .player-cover-text::after { content: " 加载中…"; color: var(--gold); }
.player-cover.is-hidden { display: none; }

@media (max-width: 700px) {
    .player-cover-play { width: 50px; height: 50px; }
    .player-cover-play svg { width: 21px; height: 21px; }
    .player-cover-text { font-size: 12px; }
}


/* ============================================================
   ADS.CSS（已合并，2026-11-15）
   ------------------------------------------------------------
   原来 include.html 引两个文件：
     <link ... theme.css>  <link ... ads.css>
   合并原因：HTTP/1.1 下少一个请求；gzip 后还能再省约 800B
   ★ 顺序必须保持「theme 在前 / ads 在后」（有 8 个选择器重叠，
     依赖后者覆盖前者：.brand-en / .home-intro / .intro-slide 等）
   ★ 源文件 ads.css 保留在 _backup，如需拆分可从这里恢复
   ============================================================ */

/* MOSU v1.4: compact HTML ads and complete home video rows. */
.brand-en {
    letter-spacing: 1.6px
}

.home-intro {
    text-align: center;
    padding-top: 38px;
    padding-bottom: 34px;
    background: none
}

.home-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    justify-content: center
}

.home-intro .intro-title {
    margin: 12px 0 12px;
    font: 750 44px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 1px;
    overflow-wrap: anywhere
}

.home-intro .intro-title em {
    font-style: normal;
    color: var(--gold-light)
}

.intro-slides {
    display: grid
}

.intro-slide {
    grid-area: 1/1;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .35s ease, transform .35s ease
}

.intro-slides:not(.is-ready)>.intro-slide:first-child,
.intro-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none
}

@media(prefers-reduced-motion:reduce) {
    .intro-slide {
        transition: none;
        transform: none
    }
}

.home-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 12px
}

.intro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 12px;
    margin-top: 10px
}

.intro-link .icon {
    width: 15px;
    height: 15px
}

.intro-benefits {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 20px;
    padding: 0
}

.intro-benefits li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #d4b58520;
    border-radius: 7px;
    background: #d4b58506;
    color: #d9c3a0;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap
}

.intro-benefits li>span {
    color: var(--gold-light);
    font-size: 13px
}

.intro-button {
    justify-content: center;
    min-height: 44px;
    padding: 11px 26px;
    margin-top: 0;
    border-radius: 24px;
    background: linear-gradient(110deg, #ebcfa0, #c5a06b);
    color: #201a12;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 6px 24px #d4b58514
}

.intro-button:hover {
    color: #101112;
    background: #edcf9e
}

.single-category-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.single-category-links .channel {
    min-width: 0
}

.pg-slot {
    margin: 20px 0;
    min-width: 0
}

.pg-slot:not(:has(*)),
.pg-slot[hidden],
.pg-slot[data-pgx-empty] {      /* ★ :has() Chrome 105 才支持 ⇒ 用属性兜底 */
    display: none
}

.ad-link {
    color: inherit
}

.pg-slot-banner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.ad-banner {
    display: block;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
    height: 80px;
}

.ad-banner-art {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-label {
    font-size: 10px;
    color: var(--muted)
}

.ad-banner>.ad-label {
    position: absolute;
    right: 6px;
    top: 5px;
    background: #101112bb;
    padding: 1px 4px
}

.pg-slot-icons,
.pg-slot-text {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px 10px;
    align-items: start
}

.ad-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 0;
    text-align: center;
    background: none;
    border: 0
}

.ad-icon-art {
    display: block;
    flex: none;
    width: 50px;
    height: 50px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: contain;
    padding: 0
}

.ad-icon strong,
.ad-icon-copy {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ad-icon small,
.ad-icon .ad-label {
    display: none
}

.pg-slot-text {
    padding: 0;
    background: none;
    border: 0;
    gap: 10px
}

.ad-text {
    display: block;
    min-width: 0;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #d4b58555;
    border-radius: 7px;
    background: linear-gradient(135deg, #d4b58512, #d4b58505);
    color: #ecd2a9;
    font-size: 13px;
    line-height: 1.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .2s, background-color .2s
}

.ad-text:hover,
.ad-text:focus-visible {
    border-color: #d4b585bb;
    background-color: #d4b58518;
    color: #ffe1b1
}

.ad-text-arrow,
.ad-text .ad-label {
    display: none
}

.ad-card {
    min-width: 0
}

.ad-card .card-title h3 {
    font-weight: 500
}

.library-results {
    display: contents
}

.library-has-pg:not(:has(.drama-card))>.ad-card {
    display: none
}

.home-picks .poster-grid .drama-card {
    display: block
}

@media(min-width:701px) {

    .home-picks .poster-grid,
    .home-latest .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:700px) {
    .home-intro {
        padding-top: 26px;
        padding-bottom: 26px
    }

    .home-intro .intro-title {
        font-size: 28px;
        letter-spacing: 0;
        margin: 10px 0
    }

    .home-intro .eyebrow {
        font-size: 9px;
        letter-spacing: 2px
    }

    .home-intro p {
        font-size: 11px
    }

    .intro-benefits {
        gap: 7px;
        margin: 18px auto;
        max-width: 360px
    }

    .intro-benefits li {
        padding: 6px 8px;
        font-size: 10px
    }

    .intro-benefits li>span {
        font-size: 11px
    }

    .intro-button {
        min-height: 42px;
        padding: 10px 23px;
        font-size: 12px
    }

    .single-category-links {
        gap: 4px
    }

    .single-category-links .channel {
        display: flex;
        padding: 10px 2px
    }

    .single-category-links .channel small {
        display: none
    }

    .pg-slot {
        margin: 16px 0
    }

    .pg-slot-banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px
    }

    .pg-slot-icons,
    .pg-slot-text {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px 4px
    }

    .ad-icon-art {
        width: 50px;
        height: 50px;
        border-radius: 8px
    }

    .ad-icon strong,
    .ad-icon-copy {
        font-size: 10.5px
    }

    .ad-text {
        padding: 7px 1px;
        font-size: 11px;
        line-height: 1.8;
        border-radius: 6px
    }

    .player-wrap>.pg-slot {
        margin-inline: 16px
    }
}

/* ===== 防溢出补丁（2026-11-14）：原站广告图在窄屏会撑破容器 ===== */
.ad-link,
.pg-slot-banner > .ad-link,
.pg-slot-icons > .ad-link,
.pg-slot-text > .ad-link {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ad-banner-art,
.ad-icon-art {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 广告位整体不允许横向溢出 */
.pg-slot {
    max-width: 100%;
    overflow: hidden;
}

/* ===== pgx 广告位适配 v5（2026-11-14）=====
   v4 强制 aspect-ratio:812/400 + object-fit:cover
     ⇒ 后台换任何尺寸的图都会被裁成 2:1 ✗
   v5 ⇒ **高度完全由图片原始比例决定**（传 2:1 就显 2:1，传 4:1 就显 4:1） */
.pg-slot .pgx-pos,
.pg-slot-banner .pgx-pos {
    display: contents;
}
.pg-slot-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* ★ PC：2 张一行 */
    gap: 12px;
    align-items: start;
}
.pg-slot-banner .pgx-pos > a {
    display: block;
    width: 100%;
    height: auto;              /* ★ 不固定，由图片撑开 */
    border-radius: 6px;
    overflow: hidden;
    background: #1a1b1d;
}
.pg-slot-banner .pgx-pos > a img {
    display: block;
    width: 100%;
    height: auto;              /* ★ 按原始宽高比 */
    object-fit: contain;
}
@media (max-width: 1000px) {
    .pg-slot-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .pg-slot-banner { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== 分类页排序 tabs（2026-11-16）=====
   原来 .tabs 完全没有样式 ⇒ 三个裸链接（截图反馈）*/
.sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.sort-tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    color: #b6b6b6;
    background: #1d1e21;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    transition: color .18s, border-color .18s, background .18s;
}
.sort-tab:hover {
    color: var(--gold);
    border-color: rgba(212, 181, 133, .45);
}
.sort-tab.active {
    color: #12130f;
    font-weight: 600;
    background: linear-gradient(135deg, #e3c795, #b28e5c);
    border-color: transparent;
}
@media (max-width: 700px) {
    .sort-tabs { gap: 6px; margin-bottom: 14px; }
    .sort-tab { height: 31px; padding: 0 13px; font-size: 12px; }
}

/* ===== ADS-BANNER-BLOCK-FIX（2026-11-16）=====
   根因：.pg-slot-banner 是 grid(2列)，而 pgx 只生成**一个**子元素 .pgx-pos
        ⇒ .pgx-pos 只占容器 50% 宽 ⇒ 内部 4 张广告挤在半宽里排成 3+1 ✗
   修法：容器改回 block（宽 100%），由 .pgx-pos 自己 grid 排 */
.pg-slot-banner {
    display: block;
    grid-template-columns: none;
}
.pg-slot-banner .pgx-pos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* ★ PC：2 张一行 */
    gap: 14px;
    width: 100%;
}
@media (max-width: 700px) {
    .pg-slot-banner .pgx-pos {
        grid-template-columns: 1fr;      /* ★ 移动端：一条广告一行 */
        gap: 8px;
    }
}

/* ===== 分页器（2026-11-16 对齐源站版）=====
   源站布局：[上一页] [5] [6] [7✓] [8] [9] [下一页]  共 676 部
   ⇒ 一行显示：当前页 ±2 共 5 个页码，首尾不额外显示 1/末页、无省略号
   ⇒ 总数紧跟在右侧，不独占一行 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.pagination > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
    color: #b6b6b6;
    background: #1d1e21;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}
.pagination > a:hover {
    color: var(--gold);
    border-color: rgba(212, 181, 133, .45);
    background: #212226;
}
.pagination > a.active {
    color: #12130f;
    font-weight: 600;
    background: linear-gradient(135deg, #e3c795, #b28e5c);
    border-color: transparent;
}
.pagination > a.pg-nav {
    padding: 0 16px;
    letter-spacing: .5px;
}
.pagination > .page-total {
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 0;
    height: auto;
    min-width: 0;
    font-size: 12px;
    color: #6c6d70;
    background: none;
    border: 0;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .pagination { gap: 6px; margin: 22px 0 8px; padding-top: 18px; }
    .pagination > a { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12px; }
    .pagination > a.pg-nav { padding: 0 12px; }
    .pagination > .page-total { font-size: 11px; margin-left: 2px; }
}

/* ===== INTRO-CENTER（2026-11-14）=====
   问题：.home-intro 只设了 padding（左右 60px），没有 text-align
        ⇒ 首屏标题/副标题/权益标签全部**左对齐**，视觉重心偏左 ✗
   修法：容器居中 + flex 子元素 justify-content: center */
.home-intro {
    text-align: center;
}
.home-intro .eyebrow {
    justify-content: center;
}
.home-intro .intro-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.home-intro p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}
.home-intro .intro-benefits {
    justify-content: center;
}
@media (max-width: 700px) {
    .home-intro {
        padding: 36px 22px 34px;
    }
}

/* ===== INTRO-CENTER-2（2026-11-14）=====
   ★ 真正的根因：.home-intro 同时是 .wrap
     .wrap   { width: min(calc(100% - 96px), var(--max)); margin-inline: auto }
     .home-intro { margin: 22px 0 26px }        ← 同特异性(0,1,0)、行号靠后
   ⇒ margin 简写把 margin-inline: auto 覆盖成 0
   ⇒ 卡片左贴边（实测 boxLeft=0，应为 48）✗
   修法：末尾用**单独属性** margin-left/right: auto 覆盖简写的左右值 */
.home-intro {
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 700px) {
    .home-intro {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== PGX-AD-IMG（2026-11-14）=====
   广告素材以 background-image 呈现（不用 <img>）
   原因：素材是 .js 后缀的 GIF，服务器按后缀返回 application/javascript，
        现代浏览器的 <img> 会做 MIME 校验 ⇒ 拒绝渲染 ✗
        CSS 背景图不校验 MIME ⇒ 能正常显示 ✓ */
.pgx-media {
    display: block;
    width: 100%;
    height: 0;                    /* ★ 配合内联 padding-top:X% 撑出高度（兼容 Chrome 87）*/
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 6px;
    overflow: hidden;
    background-color: #1a1b1d;
}
/* 旧 <img> 规则保留兼容（服务端若仍输出 img） */
.pg-slot-banner .pgx-pos > a img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== DETAIL-BTN-COMPACT（2026-11-14）=====
   详情页「免费观看 / 加入追剧」两个按钮偏宽，收紧水平内边距与图标间距
   只作用于 .actions 内，不影响其它页面的 .btn */
.actions .btn {
    padding: 10px 16px;
    gap: 7px;
    min-height: 42px;
    font-size: 14px;
}
.actions .btn .icon {
    width: 17px;
    height: 17px;
}
@media (max-width: 700px) {
    .actions .btn {
        padding: 9px 13px;
        gap: 6px;
    }
}


/* ===== PG-SLOT-ICONS-WIDE（2026-11-14）=====
   ① 图标广告位（article_top_btn_ads）：素材是 200×200 ~ 1024×1024 方图
      ⇒ 用 auto-fill 网格，PC 自适应列数，移动固定 4 列
   ② 超宽横幅位（home_list_bottom）：素材 950×110
      ⇒ PC 2 列、移动 1 列，高度由 aspect-ratio 自动撑开 */
.pg-slot-icons {
    display: grid;
    /* ★ 固定 5 列 + 限宽居中：与参考图一致，避免 PC 上"靠左一小撮、右边大片空白" */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-width: 640px;
    margin: 18px auto 8px;
}
.pg-slot-icons .pgx-pos {
    display: contents;
}
.pg-slot-icons .pgx-media {
    padding-top: 100% !important;     /* ★ 方图：覆盖内联的素材比例（Chrome 87 兼容）*/
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pg-slot-icons a:hover .pgx-media {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.pg-slot-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    /* 它插在 .wrap 之外 ⇒ 自己对齐到容器宽度 */
    width: min(calc(100% - 96px), var(--max));
    margin: 26px auto 14px;
}
.pg-slot-wide .pgx-pos {
    display: contents;
}

@media (max-width: 700px) {
    .pg-slot-icons {
        grid-template-columns: repeat(5, minmax(0, 1fr));   /* ★ 移动最小一行 5 列 */
        gap: 6px;
        margin: 14px 0 4px;
    }
    .pg-slot-icons .pgx-media {
        border-radius: 8px;
    }
    .pg-slot-wide {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* ===== PG-SLOT-FIXED-BAR（2026-11-14）=====
   复用原 .mobile-app-download 的位置规格（body 已预留 --mobile-app-height 的 padding-bottom）
   ⇒ 把「APP 下载条」的位置改成「底部固定广告条」
   · 只在 ≤700px 显示
   · 高度 = --mobile-app-height（68px）
   · 素材 950×110 ⇒ contain 居中，上下留少量背景
   · 只显示第一条（多条叠在 68px 里会挤）*/
.pg-slot-fixed {
    display: none;
}
.pg-slot-fixed.is-on {
    display: block;
    position: fixed;
    /* ★ 变量在 @media(max-width:700px) 的 :root 里定义，
       若未命中（或变量丢失）bottom 会退化成 auto ⇒ 元素不固定
       ⇒ 这里显式给 fallback（nav 55px / 条 68px）*/
    bottom: 55px;
    bottom: var(--mobile-nav-height, 55px);
    left: 0;
    right: 0;
    height: 56px;
    height: var(--mobile-app-height, 56px);
    z-index: 45;
    padding: 6px 14px;
    border-top: 1px solid #d4b58530;
    background: #191a1cf5;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.pg-slot-fixed .pg-slot {
    margin: 0;
    min-width: 0;
    height: 100%;
}
.pg-slot-fixed .pgx-pos {
    /* ★ 轮播需要绝对定位叠放 ⇒ 不能用 display:contents */
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.pg-slot-fixed .pgx-media {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 0 !important;        /* ★ 底条用固定高度，不要 padding 撑 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 5px;
    background-color: #111214;
}
/* ★ 底条轮播：直接子链接绝对定位叠放，只让 .is-on-slide 显示 */
.pg-slot-fixed .pgx-pos > a {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}
.pg-slot-fixed .pgx-pos > a.is-on-slide {
    opacity: 1;
    pointer-events: auto;
}
/* 关闭按钮 */
.pg-slot-fixed-close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #b9b9bd;
    cursor: pointer;
    z-index: 2;
}
.pg-slot-fixed-close svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}
.pg-slot-fixed-close:hover {
    background: rgba(0, 0, 0, .8);
    color: #fff;
}
@media (min-width: 701px) {
    .pg-slot-fixed {
        display: none !important;
    }
}


/* ===== PG-POPUP-HOMEPOP（2026-11-15）=====
   首页弹窗广告（pos_code = home_pop）
   · 素材 610×680 竖图，容器 max-width 610，高度按素材比例
   · 遮罩点击 / 右上 × 均可关闭
   · 关闭后 localStorage 记 24h，期间不再弹
   · 多张素材只显示第一张（弹窗不做轮播，避免干扰）*/
.pg-popup[hidden] {
    display: none;
}
.pg-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.pg-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.pg-popup-box {
    position: relative;
    width: min(610px, 100%);
    max-height: calc(100vh - 36px);
    border-radius: 14px;
    overflow: hidden;
    background: #141518;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    animation: pgPopIn .26s ease both;
}
@keyframes pgPopIn {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.pg-popup-box .pg-slot {
    margin: 0;
    min-width: 0;
}
.pg-popup-box .pgx-pos {
    display: contents;
}
.pg-popup-box .pgx-media {
    display: block;
    width: 100%;
    height: 0;                        /* 由内联 padding-top 撑出 610:680 */
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #141518;
}
/* 弹窗逐条显示：当前条加 .is-on-pop，其余隐藏（JS 控制索引）*/
.pg-popup-box .pgx-pos > a {
    display: none;
}
.pg-popup-box .pgx-pos > a.is-on-pop {
    display: block;
}
.pg-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .62);
    color: #d8d8dc;
    cursor: pointer;
    z-index: 3;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pg-popup-close:hover {
    background: rgba(0, 0, 0, .85);
    color: #fff;
}
.pg-popup-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
}
@media (max-width: 700px) {
    .pg-popup {
        padding: 14px;
    }
    .pg-popup-box {
        border-radius: 12px;
    }
}
