/* ========== 影视内容页 - 深度详情布局 ========== */

/* 英雄区 */
.content-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 600px;
    overflow: hidden;
    background: var(--color-dark);
}
.content-hero .hero-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.content-hero .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.5) 40%,
            rgba(0,0,0,0.85) 100%);
}
.content-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(30px, 6vw, 60px) clamp(20px, 5vw, 50px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.content-hero .hero-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.content-hero .hero-genre-tags span {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: var(--font-xs);
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}
.content-hero .hero-title {
    font-size: clamp(var(--font-3xl), 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.content-hero .hero-subtitle {
    font-size: var(--font-md);
    color: rgba(255,255,255,0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.content-hero .hero-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: #3d2a00;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--font-lg);
}
.content-hero .hero-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 28px;
    font-weight: 700;
    font-size: var(--font-md);
    text-decoration: none;
    width: fit-content;
    transition: var(--transition-normal);
    animation: pulse-btn 2s infinite;
    letter-spacing: 0.5px;
}
@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 37, 95, 0.5); }
    50% { box-shadow: 0 0 0 14px rgba(239, 37, 95, 0); }
}
.content-hero .hero-cta:hover {
    background: #d61e50;
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 8px 24px rgba(239, 37, 95, 0.45);
}

/* 元数据表格 */
.meta-table-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}
.meta-table-wrap {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.meta-table-wrap h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-dark);
    padding: 20px 24px 0;
    text-align: center;
}
.meta-table {
    width: 100%;
    border-collapse: collapse;
}
.meta-table tr {
    border-bottom: 1px solid #f2f2f2;
}
.meta-table tr:last-child {
    border-bottom: none;
}
.meta-table td {
    padding: 14px 20px;
    font-size: var(--font-sm);
    vertical-align: top;
}
.meta-table td.meta-label {
    font-weight: 600;
    color: var(--color-dark);
    width: 100px;
    white-space: nowrap;
    background: #fafbfc;
    border-right: 3px solid var(--color-primary);
    text-align: right;
    padding-right: 16px;
}
.meta-table td.meta-value {
    color: var(--color-text);
    line-height: 1.6;
    padding-left: 20px;
}

/* 剧情摘要 */
.synopsis-section {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}
.synopsis-section h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    position: relative;
    padding-left: 14px;
}
.synopsis-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 3px;
}
.synopsis-text {
    font-size: var(--font-md);
    color: var(--color-text-light);
    line-height: 2;
    text-align: justify;
}
.synopsis-text::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 4px;
    color: var(--color-primary);
    font-weight: 700;
}

/* 照片画廊 */
.gallery-section {
    margin: 32px 0;
}
.gallery-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 14px;
    position: relative;
}
.gallery-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 3px;
}
.gallery-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.gallery-strip::-webkit-scrollbar {
    height: 4px;
}
.gallery-strip::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
.gallery-strip .gallery-thumb {
    flex-shrink: 0;
    width: 220px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: var(--transition-normal);
    background: #e8ecf1;
}
.gallery-strip .gallery-thumb:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}
.gallery-strip .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 演员轮播 */
.cast-section {
    margin: 32px 0;
}
.cast-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 14px;
    position: relative;
}
.cast-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 3px;
}
.carousel-scroll {
    position: relative;
}
.carousel-scroll .carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0;
}
.carousel-scroll .carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-scroll .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    z-index: 5;
    transition: var(--transition-fast);
}
.carousel-scroll .carousel-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.carousel-scroll .carousel-prev { left: -16px; }
.carousel-scroll .carousel-next { right: -16px; }
.cast-card {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
    cursor: pointer;
}
.cast-card .cast-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 6px;
    border: 3px solid var(--color-border);
    transition: var(--transition-fast);
    background: #e8ecf1;
}
.cast-card:hover .cast-photo {
    border-color: var(--color-primary);
    transform: scale(1.08);
}
.cast-card .cast-name {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

/* 相关影片 */
.related-section {
    margin: 32px 0 16px;
}
.related-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 14px;
    position: relative;
}
.related-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 3px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.related-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid transparent;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #fde0e7;
}
.related-card .related-img-wrap {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e8ecf1;
}
.related-card .related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.related-card:hover .related-img-wrap img {
    transform: scale(1.06);
}
.related-card .related-info {
    padding: 10px 12px 12px;
}
.related-card .related-info h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 3px;
}
.related-card .related-info .related-year {
    font-size: var(--font-xs);
    color: #aaa;
}

/* 两列评论布局 */
.comment-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 900px) {
    .comment-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}
.comment-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-fast);
}
.comment-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-dark);
}
.comment-card .comment-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.comment-card .comment-card-user {
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--color-text);
}
.comment-card .comment-card-time {
    font-size: var(--font-xs);
    color: #aaa;
    margin-left: auto;
}
.comment-card .comment-card-body {
    font-size: var(--font-sm);
    color: #555;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 599px) {
    .content-hero {
        height: 50vh;
        min-height: 320px;
    }
    .meta-table td {
        padding: 10px 12px;
        font-size: var(--font-xs);
    }
    .meta-table td.meta-label {
        width: 70px;
        padding-right: 10px;
    }
    .meta-table td.meta-value {
        padding-left: 12px;
    }
    .gallery-strip .gallery-thumb {
        width: 160px;
    }
    .carousel-scroll .carousel-btn {
        display: none;
    }
}