/* 剧集详情页与分集独立页面（TVM58EpisodeHub）前台样式
   尽量复用 TVMao58 主题已有的 .g-box7 / .m_jq / .m_Box15 / .ndfj，只补充本插件新增结构。 */

.tvhub-info .tvhub-noposter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    margin: 0 0 6px;
    border: 1px dashed #dfe6e2;
    border-radius: 3px;
    background: linear-gradient(135deg, #f4f8f6 0%, #e9f1ed 100%);
    color: #9aa9a3;
    font-size: 12px;
    letter-spacing: 1px;
}

.tvhub-sec-title {
    margin-top: 26px;
}

/* 分集区 */
.tvhub-episodes {
    margin: 8px 0 26px;
    padding: 0 0 6px;
}

.tvhub-ep-sum {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.tvhub-ep-sum b {
    color: #07835f;
    font-size: 15px;
}

.tvhub-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.5;
}

.tvhub-state {
    background: #eef8f3;
    border: 1px solid #cfe8dc;
    color: #07835f;
}

.tvhub-latest {
    color: #ba3434;
    font-weight: 600;
    text-decoration: none;
}

.tvhub-latest:hover {
    text-decoration: underline;
}

.tvhub-ep-grid {
    margin-top: 4px !important;
}

.tvhub-ep-grid .tvhub-ep-link.is-current {
    border-color: #07835f;
    background: #07835f;
    color: #fff;
    font-weight: 700;
}

.tvhub-ep-grid .tvhub-ep-link.is-current:hover {
    background: #066e50;
    color: #fff;
}

.tvhub-ep-scroll {
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
}

.tvhub-ep-empty {
    margin: 6px 0 18px;
    padding: 16px;
    border: 1px dashed #e2e8e5;
    background: #fafcfb;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* 分集页顶部作品信息条 */
.tvhub-ephead {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 4px 0 18px;
    padding: 14px;
    border: 1px solid #ecefed;
    border-radius: 4px;
    background: #fff;
}

.tvhub-ephead-pic {
    flex: 0 0 92px;
    width: 92px;
}

.tvhub-ephead-pic img {
    display: block;
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 3px;
}

.tvhub-ephead-main {
    min-width: 0;
    flex: 1 1 auto;
}

.tvhub-crumb {
    margin: 0 0 8px;
    color: #888;
    font-size: 12px;
    line-height: 1.7;
}

.tvhub-crumb a {
    color: #07835f;
    text-decoration: none;
}

.tvhub-crumb a:hover {
    text-decoration: underline;
}

.tvhub-crumb span {
    margin: 0 6px;
    color: #ccc;
}

.tvhub-crumb em {
    font-style: normal;
    color: #333;
    font-weight: 600;
}

.tvhub-ephead-meta {
    margin: 0 0 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

.tvhub-ephead-tip {
    display: inline-block;
    margin: 0;
    padding: 3px 10px;
    border-left: 3px solid #ba3434;
    background: #fbf7f7;
    color: #ba3434;
    font-size: 13px;
    font-weight: 600;
}

/* 上一集 / 下一集 */
.tvhub-epnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.tvhub-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dce7e2;
    border-radius: 3px;
    background: #fafcfb;
    color: #07835f;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.tvhub-btn:hover {
    border-color: #0a7;
    background: #eef8f3;
}

.tvhub-btn.is-primary {
    border-color: #07835f;
    background: #07835f;
    color: #fff;
}

.tvhub-btn.is-primary:hover {
    background: #066e50;
    color: #fff;
}

.tvhub-btn.is-disabled {
    border-color: #eee;
    background: #f7f7f7;
    color: #bbb;
    cursor: default;
}

.tvhub-epback {
    margin: 0 0 14px;
    color: #999;
    font-size: 12px;
}

.tvhub-epback a {
    color: #07835f;
    text-decoration: none;
}

.tvhub-epback a:hover {
    text-decoration: underline;
}

.tvhub-extra {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 720px) {
    .tvhub-info .tvhub-noposter {
        height: 165px;
    }

    .tvhub-ephead {
        gap: 10px;
        padding: 10px;
    }

    .tvhub-ephead-pic {
        flex-basis: 68px;
        width: 68px;
    }

    .tvhub-ephead-pic img {
        height: 96px;
    }

    .tvhub-ephead-meta {
        font-size: 12px;
    }

    .tvhub-epnav .tvhub-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 8px;
    }

    .tvhub-ep-scroll {
        max-height: 280px;
    }
}
