/* ==========================================================================
   tv-detail.css — 详情页（腾讯视频风）
   ========================================================================== */

.tv-detail-hero {
    position: relative;
    margin-top: 0;
    padding: 40px 0 36px;
    overflow: hidden;
    background: #0d1015;
}

.tv-detail-hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center 30%;
    filter: blur(34px) saturate(120%);
    transform: scale(1.12);
    opacity: .55;
}

.tv-detail-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0d1015 2%, rgba(13, 16, 21, .86) 40%, rgba(13, 16, 21, .66) 100%);
}

.tv-detail-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.tv-detail-poster {
    flex: 0 0 208px;
    width: 208px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #1b1f27;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.tv-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-detail-main {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    padding-top: 4px;
}

.tv-detail-main h1 {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
    color: #fff;
}

.tv-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tv-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .12);
}

.tv-chip-score {
    color: #ffb02e;
    font-weight: 700;
    background: rgba(255, 176, 46, .14);
}

.tv-chip-hl {
    color: #7fdcff;
    background: rgba(10, 167, 255, .16);
}

.tv-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: rgba(255, 255, 255, .74);
}

.tv-detail-meta em {
    font-style: normal;
    color: rgba(255, 255, 255, .46);
    margin-right: 8px;
}

.tv-detail-blurb {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 20px;
    max-width: 780px;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .68);
}

.tv-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-ghost-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .18s;
}

.tv-ghost-btn:hover {
    background: rgba(255, 255, 255, .24);
}

/* ------------------------------------------------------------- 选集面板 */

.tv-ep-panel {
    border-radius: 14px;
    background: #fff;
    padding: 6px 20px 18px;
    box-shadow: 0 4px 18px rgba(15, 25, 40, .05);
}

.tv-ep-source {
    padding-top: 12px;
}

.tv-ep-source+.tv-ep-source {
    margin-top: 8px;
    border-top: 1px solid var(--tv-line, #ededf1);
}

.tv-ep-source-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.tv-ep-source-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #14161a;
}

.tv-ep-source-head span {
    font-size: 12px;
    color: #a8aeb8;
}

.tv-ep-source-head i {
    font-style: normal;
    font-size: 12px;
    color: #a8aeb8;
    margin-left: auto;
}

.tv-ep-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.tv-ep-list a {
    display: block;
    height: 36px;
    line-height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    background: #f4f6f9;
    color: #3f454f;
    font-size: 12.5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .16s, color .16s;
}

.tv-ep-list a:hover {
    background: linear-gradient(135deg, #00c2ff, #0a6bff);
    color: #fff;
}

/* ------------------------------------------------------------- 剧情简介 */

.tv-detail-content {
    border-radius: 14px;
    background: #fff;
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.9;
    color: #454b55;
    box-shadow: 0 4px 18px rgba(15, 25, 40, .05);
}

.tv-detail-content p {
    margin: 0 0 10px;
}

.tv-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ------------------------------------------------------------- 响应式 */

@media (max-width: 1024px) {
    .tv-ep-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tv-detail-hero {
        padding: 20px 0 22px;
    }

    .tv-detail-inner {
        gap: 14px;
    }

    .tv-detail-poster {
        flex: 0 0 108px;
        width: 108px;
        border-radius: 8px;
    }

    .tv-detail-main {
        padding-top: 0;
    }

    .tv-detail-main h1 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .tv-chip {
        height: 22px;
        font-size: 11.5px;
        padding: 0 8px;
    }

    .tv-detail-meta {
        font-size: 12px;
        gap: 4px 14px;
        margin-bottom: 8px;
    }

    .tv-detail-blurb {
        display: none;
    }

    .tv-detail-actions {
        gap: 8px;
        margin-top: 4px;
    }

    .tv-play-btn,
    .tv-ghost-btn {
        height: 34px;
        padding: 0 16px;
        font-size: 13px;
    }

    .tv-ep-panel {
        padding: 4px 12px 14px;
        border-radius: 12px;
    }

    .tv-ep-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        max-height: 260px;
    }

    .tv-ep-list a {
        height: 32px;
        line-height: 32px;
        font-size: 12px;
    }

    .tv-detail-content {
        padding: 14px 16px;
        font-size: 13px;
    }
}
