/* plot_detail.css — 分集劇情詳細頁 */

.plot-main {
    padding: 24px 0 60px;
}

.plot-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: start;
}

/* ===== 主内容 ===== */
.plot-content {
    min-width: 0;
}

/* 片頭 */
.plot-hero {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.plot-hero-thumb {
    width: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.plot-hero-thumb img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

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

.plot-hero-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.plot-badge {
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-elevated);
    color: var(--text-2);
    border: 1px solid var(--border-2);
}

.plot-badge--type {
    background: var(--accent-grad);
    color: #fff;
    border-color: transparent;
}

.plot-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.plot-hero-meta {
    margin-bottom: 14px;
}

.plot-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent-grad);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: filter .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(255, 46, 99, 0.32);
}

.plot-play-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* 集數導航 */
.plot-ep-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.plot-ep-nav-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 12px;
}

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

.plot-ep-btn {
    padding: 5px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-2);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

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

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

/* 正文 */
.plot-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.plot-article-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.plot-article-body {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.9;
}

/* 上下集導航 */
.plot-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.plot-nav-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.plot-nav-item--next {
    text-align: right;
}

.plot-nav-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.plot-nav-item--next .plot-nav-label {
    justify-content: flex-end;
}

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

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

.plot-nav-none {
    font-size: 13px;
    color: var(--text-3);
}

/* 相關推薦 */
.plot-related {}

.plot-section-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
}

/* .plot-related-grid 已合併為 main.css 的 .vod-row，不再重複定義 */

/* ===== 右側 Sidebar ===== */
.plot-sidebar {}

/* ===== RWD ===== */
@media (max-width: 1024px) {
    .plot-container {
        grid-template-columns: 1fr;
    }

    .plot-sidebar {
        display: none;
    }
}

@media (max-width: 600px) {
    .plot-main {
        padding-bottom: 80px;
    }

    .plot-hero {
        flex-direction: column;
    }

    .plot-hero-thumb {
        width: 100px;
    }

    .plot-nav {
        grid-template-columns: 1fr;
    }
}
