/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 容器 */
.containerxq {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
}

/* 主内容区域 */
.main-content {
    flex: 3;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.movie-detail-containerxq {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.movie-posterxq {
    flex: 0 0 300px;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.movie-ifoxq {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.movie-ifoxq h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007bff;
}

.movie-ifoxq p {
    margin: 5px 0;
    color: #555;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.movie-ifoxq strong {
    font-weight: bold;
    color: #333;
}

/* 剧情介绍 */
.movie-descriptionxq {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.movie-descriptionxq h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* 播放链接 */
.playerxq {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.episodesxq a {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.episodesxq a:hover {
    background-color: #0056b3;
}

/* 推荐影片区域 */
.tjxq {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tjxq h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
    border-left: 5px solid #f90;
    padding-left: 10px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.recommend-item {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.recommend-img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.recommend-name {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

/* 热播榜样式 */
.sidebarxq {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebarxq h3 {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 5px solid #f90;
    padding-left: 10px;
}

.hot-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hot-rank-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.hot-rank-number {
    color: #007bff;
    margin-right: 10px;
    font-weight: bold;
}

.hot-rank-tag {
    font-size: 12px;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .containerxq {
        flex-direction: column;
    }

    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .movie-posterxq {
        flex: 0 0 250px;
        max-width: 250px;
    }

    .sidebarxq {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-posterxq {
        flex: 0 0 200px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .recommend-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .movie-detail-containerxq {
        flex-direction: column;
    }

    .movie-posterxq {
        width: 100%;
        max-width: none;
    }
}
