/* 视频详情页面样式 */
/* 背景由 common-background.css 提供 */

/* 页面容器 */
.video-detail-page {
    min-height: calc(100vh - 60px);
    padding: 150px 15px 60px;
}

.video-detail-page .container {
    max-width: 1200px;
}

/* 标题区域 */
.video-detail-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.video-detail-title-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.title-divider-full {
    width: 100%;
    height: auto;
    display: block;
}

.video-detail-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: "SimHei", "Microsoft YaHei", sans-serif;
    letter-spacing: 3px;
    white-space: nowrap;
    padding: 5px 20px;
}

/* 内容卡片 */
.video-content-card {
    background: #FFF9E6;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-card {
    max-width: 900px;
    margin: 0 auto 20px;
}

/* 视频标题 */
.video-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 视频播放器 */
.video-player-container {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD699 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.video-player {
    width: 100%;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 元数据区域 */
.video-meta-section {
    padding: 20px 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    flex: 1;
    min-width: 200px;
}

.meta-label {
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

.meta-value {
    color: #333;
}

.work-id-badge {
    background: #D4A574;
    color: #FFF;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
}

/* 参赛者信息 */
.participant-info-section {
    background: #FFFEF9;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #E5D4A3;
}

.section-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E5D4A3;
}

.participant-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.participant-photo-wrapper {
    flex-shrink: 0;
}

.participant-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #D4A574;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.photo-label {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.participant-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 8px 0;
}

.detail-label {
    font-weight: bold;
    color: #666;
    margin-right: 8px;
}

.detail-value {
    color: #333;
}

/* 互动区域 */
.interaction-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #FFFEF9;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #E5D4A3;
}

.vote-display {
    text-align: center;
}

.vote-number {
    font-size: 48px;
    font-weight: bold;
    color: #D4A574;
    line-height: 1;
}

.vote-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-section {
    text-align: center;
    margin-top: 30px;
}

.btn-action {
    background: linear-gradient(135deg, #F5E6C8 0%, #E5D4A3 100%);
    border: 1px solid #D4A574;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #E5D4A3 0%, #D4A574 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-vote.voted {
    background: linear-gradient(135deg, #FFB6C1 0%, #FFA07A 100%);
    border-color: #FF6B9D;
    color: #8B0000;
}

/* 视频描述 */
.video-description-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #E5D4A3;
}

.description-text {
    color: #333;
    line-height: 1.8;
    font-size: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.description-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-expand {
    background: transparent;
    border: none;
    color: #D4A574;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    color: #8B4513;
}

/* 评论卡片 */
.comments-card {
    background: #FFF9E6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.comments-header {
    background: linear-gradient(135deg, #F5E6C8 0%, #E5D4A3 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #D4A574;
}

.comments-header h6 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.comments-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* 评论表单 */
.comment-form-wrapper {
    padding: 20px;
    border-bottom: 1px solid #E5D4A3;
}

.comment-input {
    width: 100%;
    border: 1px solid #E5D4A3;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-input:focus {
    outline: none;
    border-color: #D4A574;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #F5E6C8 0%, #E5D4A3 100%);
    border: 1px solid #D4A574;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: bold;
    color: #8B4513;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-comment:hover {
    background: linear-gradient(135deg, #E5D4A3 0%, #D4A574 100%);
}

.comment-login-prompt {
    padding: 20px;
    text-align: center;
    color: #666;
}

.comment-login-prompt a {
    color: #D4A574;
    font-weight: bold;
}

/* 评论列表 */
.comments-list {
    padding: 10px 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #F5F5DC;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #FFFEF9;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4A574;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEABD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #8B4513;
    border: 2px solid #D4A574;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #D4A574;
}

.no-comments p {
    margin: 0;
}

/* 评论分页 */
.comments-pagination {
    padding: 15px 20px;
    border-top: 1px solid #E5D4A3;
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    list-style: none;
    padding: 0;
}

.pagination-list li a,
.pagination-list li span {
    padding: 6px 12px;
    border-radius: 6px;
    background: #FFFEF9;
    border: 1px solid #E5D4A3;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-list li.active a {
    background: #D4A574;
    color: #FFF;
    border-color: #D4A574;
}

.pagination-list li a:hover {
    background: #F5E6C8;
}

.pagination-list li.disabled span {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .interaction-section {
        flex-direction: column;
        text-align: center;
    }

    .comments-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .video-detail-page {
        padding: 20px 0 30px !important;
    }
    
    .video-detail-page .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }

    .video-detail-header {
        margin-bottom: 20px !important;
        padding: 0 15px;
    }

    .video-detail-title-wrapper {
        margin-bottom: 0 !important;
    }

    .title-divider-full {
        display: none !important;
    }

    .video-detail-title {
        position: static !important;
        transform: none !important;
        font-size: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1.2;
    }

    .video-content-card, .comments-card {
        border-radius: 0 !important;
        padding: 25px 15px;
        margin-bottom: 15px;
        border-left: none;
        border-right: none;
    }

    .participant-content {
        flex-direction: column;
    }

    .participant-details {
        grid-template-columns: 1fr;
    }

    .meta-row {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}
