.drama-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: inherit;
}

.drama-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.drama-card .card-body {
    padding: 1rem;
}

.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 20px;
}

.video-js {
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .drama-card .card-img-top {
        height: 150px;
    }
    
    .drama-card .card-body {
        padding: 0.75rem;
    }
    
    .drama-card .card-title {
        font-size: 0.9rem;
    }
}

/* 分页样式 */
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 搜索页面样式 */
.search-results {
    min-height: 400px;
}

/* 播放页面样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* 播放页面专用样式 */
.video-main-container {
    max-width: 100%;
    margin: 0 auto;
}

.video-player-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-js .vjs-big-play-button {
    background-color: rgba(13, 110, 253, 0.8);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin-left: -40px;
    margin-top: -40px;
}

.video-js:hover .vjs-big-play-button {
    background-color: rgba(13, 110, 253, 1);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.episode-list-container {
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 8px;
}

.episode-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-item:hover:not(.active) {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.episode-item.active {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.video-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #0d6efd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-player-wrapper {
        padding-top: 56.25%; /* 保持16:9比例 */
    }
    
    .episode-list-container {
        max-height: 400px;
        margin-top: 20px;
    }
    
    .video-info {
        padding: 15px;
        margin-bottom: 15px;
    }
}

@media (min-width: 1200px) {
    .video-col {
        flex: 0 0 80%;
        max-width: 80%;
    }
    
    .episode-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1400px) {
    .video-col {
        flex: 0 0 85%;
        max-width: 85%;
    }
    
    .episode-col {
        flex: 0 0 15%;
        max-width: 15%;
    }
}

/* 滚动条样式 */
.episode-list-container::-webkit-scrollbar {
    width: 6px;
}

.episode-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.episode-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.episode-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 基础样式 */
.drama-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.drama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: inherit;
}

/* 竖版封面图片样式 */
.drama-card .card-img-top {
    width: 100%;
    height: 280px; /* 固定高度，竖版比例 */
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.drama-card .card-body {
    padding: 12px;
    min-height: 80px;
}

.drama-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.drama-card .card-text {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    margin-bottom: 20px;
}

.video-js {
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .drama-card .card-img-top {
        height: 200px; /* 移动端稍小一些 */
    }
    
    .drama-card .card-body {
        padding: 10px;
        min-height: 70px;
    }
    
    .drama-card .card-title {
        font-size: 0.85rem;
        height: 2.4em;
    }
}

@media (max-width: 576px) {
    .drama-card .card-img-top {
        height: 180px;
    }
    
    .drama-card .card-body {
        padding: 8px;
        min-height: 65px;
    }
    
    .drama-card .card-title {
        font-size: 0.8rem;
    }
}

/* 分页样式 */
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 搜索页面样式 */
.search-results {
    min-height: 400px;
}

/* 播放页面样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 竖版封面特殊样式 */
.vertical-cover {
    aspect-ratio: 2/3; /* 竖版比例 2:3 */
    object-fit: cover;
}

/* 剧集列表中的竖版封面 */
.episode-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

/* 相关推荐中的竖版封面 */
.related-drama .card-img-top {
    height: 200px;
}

/* 首页热门和最新短剧的竖版布局 */
.hot-dramas .drama-card .card-img-top,
.latest-dramas .drama-card .card-img-top {
    height: 240px;
}

/* 分类页面和搜索结果的竖版布局 */
.category-dramas .drama-card .card-img-top,
.search-results .drama-card .card-img-top {
    height: 260px;
}

/* 详情页相关推荐的竖版布局 */
.related-section .drama-card .card-img-top {
    height: 180px;
}