/* 详情页专用样式 */

/* 详情页容器 */
.vod-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 影片信息区 */
.detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.detail-poster {
    position: relative;
    width: 300px;
    height: 450px;
    overflow: hidden;
    background-color: #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1200px 100%;
}

.detail-poster img.loaded {
    opacity: 1;
    animation: none;
    background: none;
}

/* 影片标题 */
.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 评分 */
.detail-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.score-label {
    font-size: 14px;
    color: #999;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
}

/* 元数据 */
.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.meta-label {
    color: #666;
    min-width: 60px;
    font-weight: 500;
}

.meta-value {
    color: #333;
    flex: 1;
    word-break: break-word;
}

/* 简介 */
.detail-synopsis {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #0066cc;
    border-radius: 2px;
}

.detail-synopsis p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 操作按钮 */


.detail-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0066cc 0%, #0050a0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-play:hover {
    background: linear-gradient(135deg, #0050a0 0%, #004080 100%);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    text-decoration: none;
    transform: translateY(-2px);
}

.play-icon {
    font-size: 18px;
}

.play-text {
    letter-spacing: 0.5px;
}


/* 分享按钮 */
.share-widget {
    position: relative;
    display: inline-flex;
}

.share-trigger {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
}

.share-trigger:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 30;
}

.share-widget:hover .share-menu,
.share-widget:focus-within .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.share-item:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

.share-copy {
    width: 100%;
}

/* 剧集列表区 */
.episode-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
}

.episode-container {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
}

.episode-line {
    margin-bottom: 20px;
}

.episode-line:last-child {
    margin-bottom: 0;
}

.line-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #0066cc;
}

.episode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-btn:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    text-decoration: none;
}

/* 剧情简介 */
.synopsis-section {
    margin-bottom: 40px;
}

.synopsis-content {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

.synopsis-content p {
    margin: 0 0 12px 0;
}

.synopsis-content p:last-child {
    margin-bottom: 0;
}

/* 影片信息表格 */
.info-section {
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.info-row {
    display: flex;
    gap: 15px;
}

.info-label {
    min-width: 80px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
    flex: 1;
    word-break: break-word;
}

.tag-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

.tag-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* 标签区 */
.tags-section {
    margin-bottom: 40px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-btn:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
    text-decoration: none;
}



/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1200px 0;
    }
    100% {
        background-position: 1200px 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-trigger {
        min-height: 40px;
        font-size: 13px;
        padding: 0 14px;
    }

    .share-menu {
        right: auto;
        left: 0;
    }

    .vod-detail-container {
        padding: 15px;
    }

    .detail-header {
        grid-template-columns: 200px 1fr;
        gap: 20px;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .detail-poster {
        width: 200px;
        height: 300px;
    }

    .detail-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .score-value {
        font-size: 20px;
    }

    .detail-meta {
        gap: 10px;
        margin-bottom: 15px;
    }

    .meta-item {
        font-size: 13px;
        gap: 8px;
    }

    .meta-label {
        min-width: 50px;
    }

    .btn-play {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .episode-container {
        padding: 15px;
    }

    .episode-buttons {
        gap: 8px;
    }

    .episode-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .synopsis-content {
        font-size: 13px;
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .recommend-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .tags-container {
        gap: 8px;
    }

    .tag-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .detail-header {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 100%;
        height: auto;
        padding-bottom: 66.67%;
        position: relative;
    }

    .detail-poster img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-meta {
        gap: 8px;
    }

    .meta-item {
        font-size: 12px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

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




/* Dark theme polish */
.detail-actions {
    background: transparent;
    border: 0;
    padding: 0;
}

body[data-theme="dark"] .detail-header {
    border-bottom-color: #2b2f35;
}

body[data-theme="dark"] .detail-title {
    color: #f2f2f2;
}

body[data-theme="dark"] .score-label,
body[data-theme="dark"] .meta-label {
    color: #9aa1a8;
}

body[data-theme="dark"] .meta-value {
    color: #d7dce2;
}

body[data-theme="dark"] .detail-synopsis {
    background: #171b21;
    border-left-color: var(--primary);
}

body[data-theme="dark"] .detail-synopsis p,
body[data-theme="dark"] .synopsis-content,
body[data-theme="dark"] .info-value {
    color: #c8ced6;
}

body[data-theme="dark"] .episode-container,
body[data-theme="dark"] .synopsis-content,
body[data-theme="dark"] .info-grid {
    background: #17191c;
    border: 1px solid #2a2d33;
}

body[data-theme="dark"] .line-title,
body[data-theme="dark"] .section-title {
    color: #f0f0f0;
}

body[data-theme="dark"] .episode-btn,
body[data-theme="dark"] .tag-btn,
body[data-theme="dark"] .share-trigger {
    background: #1f2328;
    border-color: #32363d;
    color: #d9dee5;
}

body[data-theme="dark"] .share-menu {
    background: #1a1d22;
    border-color: #2f343c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

body[data-theme="dark"] .share-item {
    background: #232830;
    border-color: #333946;
    color: #e3e8ef;
}

body[data-theme="dark"] .share-item:hover {
    background: var(--cta);
    border-color: var(--cta);
    color: #fff;
}