/* 视频详情页特定样式 (Video Detail Page Specific Styles) */

/* 面包屑统一样式 */
.breadcrumb {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

/* 移动端body padding调整 - 为双层导航腾出空间 */
@media screen and (max-width: 768px) {
    body#voddetail {
        padding-top: 110px !important;
    }
}

/* ========================================
   1. 页面布局
   ======================================== */



.detail-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ========================================
   2. 封面图片区域
   ======================================== */

.detail-pic {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-pic img {
    width: 100%;
    height: auto;
    display: block;
}

.play-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.play-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color, #ff6b6b);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ========================================
   3. 视频信息区域
   ======================================== */

.detail-info {
    padding: 10px 0;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item .label {
    color: rgba(255,255,255,0.5);
    margin-right: 8px;
    min-width: 50px;
}

.meta-item .value,
.meta-item span:not(.label) {
    color: #fff;
}

.detail-actor, .detail-director {
    margin-bottom: 15px;
    padding: 10px 0;
    color: #fff;
}

.detail-actor .label, .detail-director .label {
    color: rgba(255,255,255,0.5);
    margin-right: 8px;
}

.detail-content {
    margin-top: 25px;
}

.detail-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.detail-content p {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* ========================================
   4. 播放列表
   ======================================== */

.detail-playlist {
    margin-bottom: 30px;
}

.playlist-group {
    margin-bottom: 30px;
}

.playlist-group:last-child {
    margin-bottom: 0;
}

.detail-playlist h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

.playlist-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.play-item a {
    display: block;
    padding: 10px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.play-item a:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.play-name {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.play-url {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   5. 影评文档区域
   ======================================== */

.vod-doc-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color, #ff6b6b);
}

.vod-doc-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.vod-doc-section .doc-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    line-height: 1.5;
}

.vod-doc-section .doc-content {
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.vod-doc-section .doc-content p {
    margin-bottom: 15px;
}

/* 白色主题样式 */
[data-theme="light"] .vod-doc-section {
    background: rgba(0,0,0,0.04);
    border-left-color: var(--primary-color, #ff6b6b);
}

[data-theme="light"] .vod-doc-section h3 {
    color: #000;
}

[data-theme="light"] .vod-doc-section .doc-title {
    color: rgba(0,0,0,0.75);
}

[data-theme="light"] .vod-doc-section .doc-content {
    color: rgba(0,0,0,0.8);
}

/* 移动端样式 */
@media screen and (max-width: 768px) {
    .vod-doc-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .vod-doc-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .vod-doc-section .doc-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .vod-doc-section .doc-content {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* ========================================
   6. 相关视频
   ======================================== */

.related-videos {
    margin-bottom: 30px;
}

.related-videos h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.related-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-pic {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.related-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.related-title {
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    color: #fff;
}

/* ========================================
   7. 白色主题样式
   ======================================== */

[data-theme="light"] {
    --basic-bg: #f5f5f5 !important;
    --font-color: #000000 !important;
}

/* 主标题 */
[data-theme="light"] .detail-title {
    color: #000 !important;
}

/* Meta区域 */
[data-theme="light"] .detail-meta {
    background: rgba(0,0,0,0.06) !important;
}

[data-theme="light"] .meta-item .label {
    color: #000 !important;
    font-weight: 500;
}

[data-theme="light"] .meta-item .value,
[data-theme="light"] .meta-item span:not(.label) {
    color: rgba(0,0,0,0.7) !important;
}

[data-theme="light"] .meta-item .score {
    color: var(--primary-color, #ff6b6b) !important;
    font-weight: 600;
}

/* 主演导演 */
[data-theme="light"] .detail-actor,
[data-theme="light"] .detail-director {
    color: rgba(0,0,0,0.7) !important;
}

[data-theme="light"] .detail-actor .label,
[data-theme="light"] .detail-director .label {
    color: #000 !important;
    font-weight: 500;
}

/* 简介内容 */
[data-theme="light"] .detail-content h3 {
    color: #000 !important;
}

[data-theme="light"] .detail-content p {
    color: rgba(0,0,0,0.75) !important;
}

/* 播放列表标题 */
[data-theme="light"] .detail-playlist h3,
[data-theme="light"] .related-videos h3 {
    color: #000 !important;
}

/* 播放列表项 */
[data-theme="light"] .play-item a {
    background: rgba(0,0,0,0.06) !important;
    color: #000 !important;
    border-color: rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .play-item a:hover {
    background: rgba(0,0,0,0.12) !important;
    border-color: var(--primary-color, #ff6b6b) !important;
    box-shadow: 0 4px 12px rgba(255,107,107,0.2) !important;
}

[data-theme="light"] .play-name {
    color: #000 !important;
}

[data-theme="light"] .play-url {
    color: rgba(0,0,0,0.5) !important;
}

/* 相关视频 */
[data-theme="light"] .related-title {
    color: #000 !important;
}

/* ========================================
   8. 响应式 - 移动端
   ======================================== */

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }



    .detail-main {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
        /*margin-top: 10px;*/
    }

    .detail-pic {
        max-width: 100%;
        margin-top: 0;
    }

    .detail-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .detail-content h3,
    .detail-playlist h3,
    .related-videos h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .playlist-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .play-item a {
        padding: 10px 15px;
    }

    .play-name {
        font-size: 13px;
    }

    .related-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .related-title {
        font-size: 13px;
    }
}

/* ========================================
   9. 响应式 - 平板
   ======================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .detail-main {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

    .detail-title {
        font-size: 24px;
    }

    .playlist-content {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .related-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ========================================
   10. 响应式 - 大屏
   ======================================== */

@media screen and (min-width: 1025px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .detail-main {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }

    .playlist-content {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .related-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ========================================
   11. 触摸设备优化
   ======================================== */

@media (hover: none) {
    .play-item a:active,
    .related-item:active {
        transform: scale(0.98);
    }
}
