/* ==================== 详情页样式 ==================== */

/* CSS 变量定义 */
:root {
    --detail-bg: #0f0f1a;
    --detail-card-bg: rgba(26, 26, 46, 0.6);
    --detail-accent: #e5091d;
    --detail-hover: #ff4158;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(229, 9, 29, 0.3);
}

/* ==================== 视频播放器区域 ==================== */
.video-player-container {
    width: 100%;
    margin-bottom: 2rem;
    background: var(--detail-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.video-player-container:hover {
    box-shadow: 0 12px 48px rgba(229, 9, 29, 0.4), 0 0 60px rgba(229, 9, 29, 0.5);
    transform: translateY(-2px);
}

#dplayer {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

/* DPlayer 自定义样式覆盖 */
#dplayer .dplayer-bar-wrap {
    padding: 5px 7px;
}

#dplayer .dplayer-controller {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

#dplayer .dplayer-icon {
    fill: var(--text-primary);
    transition: all 0.2s ease;
}

#dplayer .dplayer-icon:hover {
    fill: var(--detail-accent);
    transform: scale(1.1);
}

#dplayer .dplayer-quality-item {
    color: var(--text-primary);
}

#dplayer .dplayer-label {
    background: var(--detail-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

#dplayer .dplayer-danmaku {
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#dplayer .dplayer-title {
    color: var(--text-primary);
    font-size: 14px;
}

#dplayer .dplayer-full {
    color: var(--text-primary);
}

#dplayer .dplayer-volume-bar {
    background: rgba(255, 255, 255, 0.2);
}

#dplayer .dplayer-volume-bar-inner {
    background: var(--detail-accent);
}

#dplayer .dplayer-played {
    background: var(--detail-accent);
}

#dplayer .dplayer-thumb {
    background: var(--detail-accent);
    border-color: var(--detail-accent);
}

#dplayer .dplayer-info-panel {
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

#dplayer .dplayer-info-panel-close {
    color: var(--detail-accent);
}

#dplayer .dplayer-setting {
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid var(--border-glass);
}

#dplayer .dplayer-setting-item:hover {
    background: rgba(229, 9, 29, 0.2);
}

/* 加载状态 */
#dplayer .dplayer-loading-icon {
    display: none;
}

/* ==================== 响应式设计 - 桌面端 (>992px) ==================== */
@media (min-width: 992px) {
    .video-player-container {
        max-width: 100%;
    }
}

/* ==================== 响应式设计 - 平板端 (768px-992px) ==================== */
@media (max-width: 992px) {
    .video-player-container {
        margin-bottom: 1.5rem;
    }
    
    #dplayer {
        aspect-ratio: 16/9;
    }
}

/* ==================== 响应式设计 - 移动端 (<768px) ==================== */
@media (max-width: 768px) {
    .video-player-container {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .video-player-container:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    #dplayer {
        aspect-ratio: 16/9;
    }
    
    /* 移动端优化 DPlayer 控件 */
    #dplayer .dplayer-controller {
        padding: 8px;
    }
    
    #dplayer .dplayer-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    #dplayer .dplayer-time {
        font-size: 12px;
    }
    
    #dplayer .dplayer-label {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    #dplayer .dplayer-danmaku-item {
        font-size: 14px !important;
    }
    
    /* 移动端弹幕自动缩小 */
    #dplayer .dplayer-danmaku {
        font-size: 12px;
    }
}

/* ==================== 响应式设计 - 小屏手机 (<480px) ==================== */
@media (max-width: 480px) {
    .video-player-container {
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
    #dplayer {
        aspect-ratio: 16/9;
    }
    
    /* 进一步缩小控件 */
    #dplayer .dplayer-controller {
        padding: 6px;
    }
    
    #dplayer .dplayer-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    #dplayer .dplayer-time {
        font-size: 11px;
    }
    
    #dplayer .dplayer-danmaku {
        font-size: 11px;
    }
    
    #dplayer .dplayer-label {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* ==================== 页面主体 ==================== */
.detail-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    position: relative;
    padding-top: 70px;
    overflow-x: hidden;
}

/* ==================== 顶部背景图区域 ==================== */
.detail-backdrop {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 500px;
    overflow: hidden;
    z-index: 0;
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 26, 0.3) 0%,
        rgba(15, 15, 26, 0.8) 50%,
        rgba(15, 15, 26, 1) 100%
    );
    z-index: 1;
}

.backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(3px);
    transform: scale(1.1);
    animation: backdropPulse 20s ease-in-out infinite;
}

@keyframes backdropPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

/* ==================== 主容器 ==================== */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* ==================== 海报区域 ==================== */
.detail-poster-section {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poster-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2/3;
}

.poster-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(229, 9, 29, 0.4), 0 0 60px rgba(229, 9, 29, 0.5);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.poster-wrapper:hover .poster-overlay {
    opacity: 1;
}

.play-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.9) 0%, rgba(255, 65, 88, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(229, 9, 29, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(229, 9, 29, 0.8);
    }
}

.play-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e5091d 0%, #ff4158 100%);
    box-shadow: 0 0 60px rgba(229, 9, 29, 1);
}

.play-btn svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* 徽章组 */
.badge-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 20px;
    color: #ffc107;
    font-weight: 700;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.rating-badge svg {
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.5));
}

.status-badge {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--detail-accent) 0%, var(--detail-hover) 100%);
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.4);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ==================== 信息区域 ==================== */
.detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 标题区域 */
.title-section {
    margin-bottom: 1rem;
}

.media-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.media-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    border-left: 4px solid var(--detail-accent);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* 元信息 */
.meta-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.meta-item svg {
    color: var(--detail-accent);
    filter: drop-shadow(0 2px 4px rgba(229, 9, 29, 0.5));
}

/* 分类标签 */
.genre-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.15) 0%, rgba(255, 65, 88, 0.15) 100%);
    border: 1px solid rgba(229, 9, 29, 0.4);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.genre-tag:hover {
    background: linear-gradient(135deg, var(--detail-accent) 0%, var(--detail-hover) 100%);
    border-color: var(--detail-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.4);
}

/* 简介区域 */
.overview-section {
    padding: 2rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(229, 9, 29, 0.3);
}

.section-title svg {
    color: var(--detail-accent);
    filter: drop-shadow(0 2px 4px rgba(229, 9, 29, 0.5));
}

.overview-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* 演职人员区域 */
.credits-section {
    display: grid;
    gap: 2rem;
}

.director-section {
    padding: 1.5rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.director-info {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 3px solid var(--detail-accent);
}

.cast-section {
    padding: 1.5rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.cast-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.cast-card:hover {
    background: rgba(229, 9, 29, 0.15);
    border-color: var(--detail-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 9, 29, 0.3);
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(229, 9, 29, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cast-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cast-character {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ==================== 相似推荐区域 ==================== */
.similar-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.section-title-large svg {
    color: var(--detail-accent);
    filter: drop-shadow(0 2px 8px rgba(229, 9, 29, 0.5));
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--detail-accent);
    box-shadow: 0 12px 40px rgba(229, 9, 29, 0.4), var(--shadow-glow);
}

.video-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 1rem;
}

.video-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffc107;
    font-weight: 700;
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    z-index: 9999;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(229, 9, 29, 0.2);
    border-top-color: var(--detail-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 40px rgba(229, 9, 29, 0.5);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== 错误提示 ==================== */
.error-message {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    z-index: 9999;
    text-align: center;
}

.error-message svg {
    color: var(--detail-accent);
    filter: drop-shadow(0 4px 12px rgba(229, 9, 29, 0.5));
    margin-bottom: 1.5rem;
}

.error-message p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.retry-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--detail-accent) 0%, var(--detail-hover) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(229, 9, 29, 0.4);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 9, 29, 0.6);
}

/* ==================== 播放器内跳转按钮 ==================== */
.platform-jump-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.platform-jump-button button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--detail-accent) 0%, #ff4158 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(229, 9, 29, 0.4);
}

.platform-jump-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(229, 9, 29, 0.6);
    background: linear-gradient(135deg, #ff4158 0%, var(--detail-accent) 100%);
}

.platform-jump-button button:hover svg {
    transform: rotate(360deg);
}

.platform-jump-button button svg {
    transition: transform 0.3s ease;
}
.platform-jump-button p {
    color: red;
    max-width: 300px;
    margin-top: 12px;
    word-wrap: wrap;
    text-align: center;
    font-weight: 600;
}

/* ==================== 响应式设计 ==================== */

/* 桌面端 (1400px) */
@media (max-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板端 (1200px) */
@media (max-width: 1200px) {
    .detail-container {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
    }

    .media-title {
        font-size: 2.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板端 (992px) */
@media (max-width: 992px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-poster-section {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    .media-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .media-tagline {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid var(--detail-accent);
        padding-left: 0;
        padding-bottom: 0.75rem;
    }

    .meta-info {
        justify-content: center;
    }

    .genre-tags {
        justify-content: center;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 移动端 (768px) */
@media (max-width: 768px) {
    .detail-page {
        padding-top: 60px;
    }

    .detail-backdrop {
        top: 60px;
        height: 350px;
    }

    .detail-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .detail-poster-section {
        display: none;
        max-width: 280px;
    }

    .media-title {
        font-size: 1rem;
    }

    .media-tagline {
        font-size: 1rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .cast-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .cast-avatar {
        width: 60px;
        height: 60px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .similar-section {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }

    .section-title-large {
        font-size: 1.5rem;
    }

    /* ==================== 播放器内跳转按钮 ==================== */
    .platform-jump-button button {
        gap: 0.75rem;
        padding: 0.575rem 1rem;
        font-size: .9rem;
    }

    .platform-jump-button p {
        color: red;
        margin-top: 12px;
        font-size: .7rem;
    }
}

/* 小屏手机 (480px) */
@media (max-width: 480px) {
    .detail-page {
        padding-top: 56px;
    }

    .detail-backdrop {
        top: 56px;
        height: 280px;
    }

    .detail-container {
        padding: 1rem;
    }

    .detail-poster-section {
        max-width: 100%;
    }

    .media-tagline {
        font-size: 0.85rem;
    }

    .meta-item {
        font-size: 0.85rem;
    }

    .genre-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .overview-section {
        padding: 1.25rem;
    }

    .overview-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cast-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .cast-avatar {
        width: 50px;
        height: 50px;
    }

    .cast-name {
        font-size: 0.85rem;
    }

    .cast-character {
        font-size: 0.7rem;
    }

    .video-grid {
        gap: 0.75rem;
    }

    .video-info {
        padding: 0.75rem;
    }

    .video-title {
        font-size: 0.85rem;
    }

    .video-meta {
        font-size: 0.75rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .detail-backdrop {
        height: 100vh;
    }

    .detail-container {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }

    .media-title {
        font-size: 1.5rem;
    }
}

/* ==================== 新增样式：圆形评分徽章 ==================== */
.rating-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.rating-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.rating-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rating-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.rating-progress {
    fill: none;
    stroke: url(#ratingGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
    transition: stroke-dashoffset 1s ease-in-out;
}

.rating-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

#rating-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-max {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.vote-count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== 热度徽章 ==================== */
.popularity-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 20px;
    color: #ff5722;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
}

.popularity-badge svg {
    filter: drop-shadow(0 2px 4px rgba(255, 87, 34, 0.5));
}

/* ==================== 详细信息网格 ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(229, 9, 29, 0.1);
    border-color: var(--detail-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 29, 0.2);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(229, 9, 29, 0.2) 0%, rgba(255, 65, 88, 0.2) 100%);
    border-radius: 12px;
    color: var(--detail-accent);
}

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

.info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 原始标题 ==================== */
.original-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(229, 9, 29, 0.5);
}

/* ==================== 完整演职人员区域 ==================== */
.full-credits-section {
    padding: 2rem;
    background: var(--detail-card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.subsection-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(229, 9, 29, 0.3);
}

.subsection-title:first-child {
    margin-top: 0;
}

/* 导演网格 */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* 主演网格 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* 其他演职人员列表 */
.crew-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.crew-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.crew-card:hover {
    background: rgba(229, 9, 29, 0.15);
    border-color: var(--detail-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(229, 9, 29, 0.3);
}

.crew-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(229, 9, 29, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crew-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.crew-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.crew-department {
    color: var(--detail-accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== 响应式优化 ==================== */

/* 桌面端 (1400px) */
@media (max-width: 1400px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板端 (1200px) */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directors-grid,
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 平板端 (992px) */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directors-grid,
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* 移动端 (768px) */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .rating-circle {
        width: 100px;
        height: 100px;
    }

    #rating-value {
        font-size: 1.75rem;
    }

    .directors-grid,
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 1rem;
    }

    .crew-list {
        grid-template-columns: 1fr;
    }
}

/* 小屏手机 (480px) */
@media (max-width: 480px) {
    .rating-badge-large {
        padding: 1rem;
    }

    .rating-circle {
        width: 80px;
        height: 80px;
    }

    #rating-value {
        font-size: 1.5rem;
    }

    .rating-max {
        font-size: 0.8rem;
    }

    .info-item {
        padding: 1rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .original-title {
        font-size: 1rem;
    }

    .directors-grid,
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crew-avatar {
        width: 50px;
        height: 50px;
    }
}


