/* =============== TV 详情页面 - PC端 =============== */

body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

/* =============== 背景层 =============== */
.tv-detail-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.tv-detail-bg__image {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    filter: blur(50px);
}

.tv-detail-bg__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0) 100%);
}

/* =============== 页面内容 =============== */
.tv-detail {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* =============== 左右布局容器 =============== */
.tv-layout {
    display: flex;
    align-items: flex-start;
    padding-left: 60px;
    padding-right: 60px;
}

/* 左侧：封面区 */
.tv-layout__left {
    flex-shrink: 0;
    width: 240px;
    margin-right: 40px;
}

/* 右侧：剧信息 + 推荐列表 */
.tv-layout__right {
    flex: 1;
    min-width: 0;
}

/* =============== 剧信息区 =============== */
.tv-info {
    position: relative;
    padding-bottom: 30px;
}

/* 分割线 */
.tv-info::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* 封面区 */
.tv-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-cover__image {
    width: 240px;
    aspect-ratio: 30 / 41;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 封面图的高度，用于右侧对齐 */
.tv-cover__poster-wrap {
    position: relative;
}

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

.tv-cover__play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    height: 52px;
    margin-top: 20px;
    border: none;
    border-radius: 999px;
    background: #ff4463;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.tv-cover__play:hover {
    background: #e63950;
    transform: scale(1.03);
}

/* 详情区 */
.tv-meta {
    display: flex;
    flex-direction: column;
}

.tv-meta__title {
    font-family: 'Lalezar', cursive;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}

.tv-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.tv-meta__tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.tv-meta__episodes {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.tv-meta__desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
}

/* =============== 推荐列表区 =============== */
.tv-recommend {
    margin-top: 40px;
}

.tv-recommend__title {
    font-family: 'Lalezar', cursive;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
}

.tv-recommend__row {
    position: relative;
}

.tv-recommend__viewport {
    overflow: hidden;
    width: 100%;
}

.tv-recommend__track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    will-change: transform;
}

.tv-recommend__arrow {
    position: absolute;
    /* 与图片垂直中心对齐 */
    top: calc(50% - 25px);
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tv-recommend__arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.tv-recommend__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tv-recommend__arrow--prev {
    /* 按钮中心与列表左边缘对齐 (按钮宽度30px，中心15px) */
    left: -15px;
}

.tv-recommend__arrow--next {
    /* 按钮中心与列表右边缘对齐 (按钮宽度30px，中心15px) */
    right: -15px;
}

.tv-recommend__row:not(.is-scrollable) .tv-recommend__arrow {
    display: none;
}

/* 推荐卡片 */
.recommend-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}

.recommend-card__inner {
    position: relative;
    width: 100%;
}

.recommend-card__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
}

.recommend-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-card:hover .recommend-card__poster img {
    transform: scale(1.08);
}

/* 黑色遮罩 */
.recommend-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
    pointer-events: none;
    border-radius: 10px;
}

.recommend-card:hover .recommend-card__overlay {
    opacity: 1;
}

/* 播放按钮 */
.recommend-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ff4463;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
    pointer-events: none;
}

.recommend-card__play i {
    font-size: 20px;
    color: #fff;
    margin-left: 3px;
}

.recommend-card:hover .recommend-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.recommend-card__title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 占位背景 */
.recommend-card__poster--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}
