/* 电影推荐卡片容器 */
.movie-recommender-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 电影滑动容器 */
.movie-slider-wrapper {
    position: relative;
    width: 100%;
}

/* 电影卡片滑动区域 */
.movie-slider {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* 单个电影卡片 */
.movie-card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 20px;
    position: relative;
}

/* 电影封面容器 */
.movie-cover-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 电影封面图片 */
.movie-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.movie-cover-wrapper:hover .movie-cover {
    transform: scale(1.05);
}

/* 电影评分 */
.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* 播放按钮（已隐藏，因为点击标题播放） */
.play-button {
    display: none !important;
}

/* 电影标题 */
.movie-title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* 电影标题前的小播放图标 */
.play-icon-small {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ff6b6b;
    margin-right: 5px;
    margin-bottom: 1px;
}

/* 电影标题悬停效果 */
.movie-title:hover {
    color: #ff6b6b;
}

/* 滑动控制按钮 */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

/* 上一张按钮 */
.prev-slide {
    left: -20px;
}

/* 下一张按钮 */
.next-slide {
    right: -20px;
}

/* 控制按钮悬停效果 */
.slider-control:hover {
    background: rgba(255, 255, 255, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .movie-card {
        width: 150px;
        margin-right: 15px;
    }
    
    .movie-cover-wrapper {
        height: 225px;
    }
}

/* 移除小播放图标样式 */
.play-icon-small {
    display: none;
}

/* 电影标题样式 */
.movie-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 电影操作区域样式 */
.movie-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 5px;
}

/* 预告片按钮样式 */
.trailer-button {
    flex: 1;
    margin-right: 5px;
    padding: 8px 15px;
    background-color: transparent;
    color: #666;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.trailer-button:hover {
    background-color: #ff4444;
    color: white;
}

/* 下载按钮样式 */
.download-button {
    flex: 1;
    margin-left: 5px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #45a049;
    color: white;
}