/* 視頻詳情頁面專用樣式 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(170, 60, 255, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(170, 60, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(170, 60, 255, 0); }
}

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

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes titleGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes categoryFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes categoryHeaderFadeIn {
    0% { 
        opacity: 0; 
        transform: translateX(-15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes metaItemFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(5px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes videoCardFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(10px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes contentFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(3px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 視頻詳情頁面專用樣式 */
.video-detail-page-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
}

.video-detail-page-wrapper .m24_main_wrapper {
    background-color: #121212 !important;
}

/* 視頻播放區域樣式 */
.custom-video-player-section {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(45, 27, 61, 0.8));
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(170, 60, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(170, 60, 255, 0.1);
}

.custom-video-player-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #aa3cff, #ff6b9d, #aa3cff, transparent);
    animation: borderFlow 3s linear infinite;
}

.custom-video-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #aa3cff, #ff6b9d, #aa3cff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.custom-video-player {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.custom-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

/* 視頻標籤樣式 */
.custom-video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.custom-video-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.15), rgba(255, 107, 157, 0.1));
    border: 1px solid rgba(170, 60, 255, 0.3);
    border-radius: 20px;
    color: #aa3cff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-video-tag:hover {
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.25), rgba(255, 107, 157, 0.2));
    border-color: rgba(170, 60, 255, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(170, 60, 255, 0.3);
}

/* 視頻信息區域 */
.custom-video-info {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.custom-video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.custom-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(170, 60, 255, 0.3);
    overflow: hidden;
}

.custom-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-author-info h5 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 16px;
}

.custom-author-info a {
    color: #aa3cff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-author-info a:hover {
    color: #ff6b9d;
}

.custom-video-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.custom-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.custom-stat-item i {
    color: #aa3cff;
}

/* 操作按鈕 */
.custom-video-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.custom-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid rgba(170, 60, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-action-btn:hover {
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.2), rgba(255, 107, 157, 0.2));
    border-color: rgba(170, 60, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(170, 60, 255, 0.3);
}

.custom-action-btn i {
    color: #aa3cff;
}

/* 側邊欄樣式 */
.custom-sidebar {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(170, 60, 255, 0.2);
    margin-bottom: 20px;
}

.custom-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #aa3cff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(170, 60, 255, 0.3);
}

/* 相關視頻列表 */
.custom-related-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.custom-related-video {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(170, 60, 255, 0.15);
}

.custom-related-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(170, 60, 255, 0.4);
}

.custom-related-video img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.custom-related-video-info {
    padding: 10px;
}

.custom-related-video-title {
    font-size: 13px;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-related-video-time {
    font-size: 11px;
    color: #999;
}

/* 評論區域 */
.custom-comment-section {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.custom-comment-title {
    font-size: 18px;
    font-weight: 600;
    color: #aa3cff;
    margin-bottom: 20px;
}

.custom-comment-input {
    width: 100%;
    min-height: 100px;
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(170, 60, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.custom-comment-input:focus {
    outline: none;
    border-color: #aa3cff;
    box-shadow: 0 0 10px rgba(170, 60, 255, 0.2);
}

.custom-comment-submit {
    background: linear-gradient(135deg, #aa3cff, #ff6b9d);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(170, 60, 255, 0.4);
}

/* 評論列表 */
.custom-comment-list {
    margin-top: 25px;
}

.custom-comment-item {
    background: rgba(45, 45, 45, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(170, 60, 255, 0.1);
}

.custom-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.custom-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-comment-author {
    font-weight: 600;
    color: #aa3cff;
}

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

.custom-comment-content {
    color: #e0e0e0;
    line-height: 1.5;
}

/* 麵包屑導航 */
.custom-breadcrumb {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(170, 60, 255, 0.2);
}

.custom-breadcrumb a {
    color: #aa3cff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-breadcrumb a:hover {
    color: #ff6b9d;
}

/* 標題提示框樣式 */
.title-tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(45, 27, 61, 0.95));
    color: #f0f0f0;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 320px;
    word-wrap: break-word;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid rgba(170, 60, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(170, 60, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    line-height: 1.5;
}

.title-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 頁面標題區域樣式 */
.video-detail-title-section {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(45, 27, 61, 0.8));
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(170, 60, 255, 0.3);
}

.video-detail-title-content {
    text-align: center;
}

.video-detail-title-content h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #aa3cff, #ff6b9d, #aa3cff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.video-detail-title-content p {
    color: #ccc;
    font-size: 18px;
    margin: 0;
    opacity: 0.8;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .custom-video-player-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .custom-video-title {
        font-size: 24px;
    }
    
    .custom-video-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-action-btn {
        justify-content: center;
    }
    
    .custom-related-videos {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .video-detail-title-content h1 {
        font-size: 28px;
    }
    
    .video-detail-title-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .custom-video-player-section {
        padding: 15px;
    }
    
    .custom-video-title {
        font-size: 20px;
    }
    
    .custom-video-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .custom-related-videos {
        grid-template-columns: 1fr;
    }
    
    .video-detail-title-content h1 {
        font-size: 24px;
    }
    
    .video-detail-title-content p {
        font-size: 14px;
    }
} 