.plot-main {
    padding: 16px 0 48px;
    background: var(--bg-light);
}

.plot-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.plot-content {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.plot-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* ===== 集数列表 ===== */
.plot-ep-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
    /* 桌机：可横向卷动（集数多时）*/
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-mid) transparent;
}

.plot-ep-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: min-content;
    margin: 0;
    padding: 0;
}

.plot-ep {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.plot-ep:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

.plot-ep.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== 文章标题 ===== */
.plot-article-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

/* ===== 正文 ===== */
.plot-article-body {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 14px;
}

.plot-article-body p {
    font-size: 14px;
    color: var(--text);
    line-height: 2;
    margin-bottom: 14px;
    text-indent: 2em;
}

.plot-article-body p:last-child {
    margin-bottom: 0;
}

.plot-img {
    width: 100%;
    border-radius: 6px;
    margin: 10px 0 14px;
    display: block;
}

/* ===== 上一集 / 下一集 ===== */
.plot-nav {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.plot-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.plot-nav-next {
    align-items: flex-end;
    text-align: right;
}

.plot-nav-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.plot-nav-none {
    font-size: 13px;
    color: #ccc;
}

.plot-nav-link {
    font-size: 13px;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.plot-nav-link:hover {
    text-decoration: underline;
}

/* ===== 相关推荐 ===== */
.plot-related-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.plot-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.plot-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.plot-related-grid .vod-card {
    flex: 0 0 calc(20% - 8px);
}

/* ===== Sidebar ===== */
.psb-block {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.psb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.psb-more {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.psb-more:hover {
    color: var(--accent);
}

.psb-rank-top {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.psb-rank-top>a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.psb-rank-thumb {
    width: 50px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.psb-rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

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

.psb-rank-text h5 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psb-rank-text p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
}

.psb-rank-status {
    color: #22c55e !important;
}

.psb-rank-cnt {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.psb-rank-list {
    list-style: none;
    padding: 6px 0;
}

.psb-rank-list>li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.psb-rank-list>li:last-child {
    border-bottom: none;
}

.psb-rank-list>li:hover {
    background: var(--accent-light);
}

.psb-rank-list>li:hover .psb-rank-name {
    color: var(--accent);
}

.psb-rn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-elev);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.psb-rn--1 {
    background: var(--accent);
    color: #fff;
}

.psb-rn--2 {
    background: #f5a623;
    color: #fff;
}

.psb-rn--3 {
    background: #9c6c14;
    color: #fff;
}

.psb-rank-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.psb-rank-cnt {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== RWD ===== */

/* sidebar 预设只桌机显示 */
.plot-sidebar {
    display: none;
}

@media (min-width: 1025px) {
    .plot-sidebar {
        display: block;
    }

    /* 桌机集数列表改显示在右侧栏，主内容区块的复本隐藏 */
    .plot-ep-list--stack {
        display: none;
    }
}

/* 平板 */
@media (max-width: 1024px) {
    .plot-related-grid .vod-card {
        flex: 0 0 calc(25% - 8px);
    }

    /* 集数列表（平板/手机版复本）：固定高度、改为上下滚动 */
    .plot-ep-list--stack {
        max-height: 124px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--border-mid) transparent;
    }

    .plot-ep-list--stack .plot-ep-scroll {
        flex-wrap: wrap;
        min-width: 0;
    }
}

/* 手机 */
@media (max-width: 767px) {
    .plot-main {
        padding: 0 0 68px;
        background: var(--bg-white);
    }

    .plot-container {
        padding: 0;
        flex-direction: column;
        gap: 0;
    }

    /* 片头：白底无阴影 */
    .plot-hero {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
        gap: 10px;
        margin-bottom: 0;
    }

    .plot-hero-title {
        font-size: 15px;
    }

    .plot-hero-meta {
        font-size: 11px;
    }

    /* 集数：跟桌机版一样换行显示 */
    .plot-ep-list {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
        padding: 20px 12px;
        overflow-x: visible;
    }

    .plot-ep-scroll {
        flex-wrap: wrap;
        gap: 8px;
    }

    .plot-ep-list--stack {
        max-height: 117px;
    }

    /* 手机版宽度缩短，超出文字用省略号显示 */
    .plot-ep {
        max-width: 88px;
        font-size: 11px;
        padding: 4px 8px;
    }

    /* 文章标题：左右加 padding */
    .plot-article-title {
        font-size: 15px;
        line-height: 1.5;
        margin: 14px 12px 10px;
        padding-bottom: 10px;
    }

    /* 正文：去掉卡片感 */
    .plot-article-body {
        border-radius: 0;
        box-shadow: none;
        padding: 0 12px 14px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border);
    }

    .plot-article-body p {
        font-size: 14px;
        line-height: 1.9;
    }

    .plot-img {
        border-radius: 4px;
    }

    /* 上下集导览 */
    .plot-nav {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
        padding: 12px;
        flex-direction: row;
        gap: 8px;
    }

    .plot-nav-link {
        font-size: 12px;
    }

    .plot-nav-label {
        font-size: 11px;
    }

    /* 相关推荐：3栏，去掉卡片外框 */
    .plot-related-section {
        border-radius: 0;
        box-shadow: none;
        padding: 14px 12px;
        margin-bottom: 0;
    }

    .plot-related-grid .vod-card {
        flex: 0 0 calc(33.333% - 7px);
    }

    .plot-related-grid {
        gap: 7px;
    }
}

/* 小手机 */
@media (max-width: 479px) {
    .plot-related-grid .vod-card {
        flex: 0 0 calc(33.333% - 5px);
    }

    .plot-related-grid {
        gap: 5px;
    }
}