/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e50914;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.logo img {
    height: 60px;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-nav a.active,
.main-nav a:hover {
    background-color: #e50914;
    color: #fff;
}

.main-nav i {
    margin-right: 5px;
}

.search-box {
    margin-left: auto;
    flex: 0 0 auto;
}

.search-box form {
    display: flex;
}

.search-box input {
    width: 250px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #e50914;
}

.search-box button {
    background-color: #e50914;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #c10812;
}

/* Banner样式 */
.banner {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.banner-container {
    position: relative;
    height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.banner-btn:hover {
    background-color: rgba(229, 9, 20, 0.8);
}

.banner-btn.prev {
    left: 20px;
}

.banner-btn.next {
    right: 20px;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: #e50914;
    transform: scale(1.2);
}

/* 影视列表样式 */
.movie-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e50914;
    color: #333;
}

.section-title i {
    color: #e50914;
    margin-right: 10px;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.movie-poster {
    position: relative;
    display: block;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e50914;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* 筛选区域样式 */
.filter-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-weight: 500;
    margin-right: 15px;
    color: #333;
    min-width: 60px;
}

.filter-item {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 8px 8px 0;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-item.active,
.filter-item:hover {
    background-color: #e50914;
    color: #fff;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.page-btn, .page-num {
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover, .page-num:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #e50914;
}

.page-num.active {
    background-color: #e50914;
    color: #fff;
    border-color: #e50914;
}

.page-ellipsis {
    padding: 0 10px;
    color: #666;
}

/* 播放页样式 */
.movie-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.movie-title h1 {
    font-size: 24px;
    color: #333;
}

.movie-title span {
    font-size: 18px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.player-section {
    margin-bottom: 30px;
}

.player-container {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}


#videoPlayer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-info, .detail-desc {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-info h3, .detail-desc h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-info h3 i, .detail-desc h3 i {
    color: #e50914;
    margin-right: 10px;
}

.detail-info ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-info ul li strong {
    display: inline-block;
    width: 70px;
    color: #666;
}

.detail-desc p {
    margin-bottom: 15px;
    text-align: justify;
}

.sources-section {
    margin-bottom: 30px;
}

.sources-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.sources-section h3 i {
    color: #e50914;
    margin-right: 10px;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.source-btn.active,
.source-btn:hover {
    background-color: #e50914;
    color: #fff;
    border-color: #e50914;
}

/* 友情链接样式 */
.friend-links {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.friend-links h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.friend-links h3 i {
    color: #e50914;
    margin-right: 10px;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links a {
    color: #666;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #e50914;
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 50px;
}

.copyright {
    text-align: center;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 10px;
}

.copyright a {
    color: #999;
    margin: 0 5px;
}

.copyright a:hover {
    color: #fff;
}

/* 加载动画 */
.loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .movie-detail {
        grid-template-columns: 1fr;
    }
    
    .banner-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        margin-right: 0;
    }
    
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .banner-container {
        height: 220px;
    }
    
    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .banner-container {
        height: 180px;
    }
    
    .banner-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn, .page-num {
        padding: 5px 10px;
        font-size: 14px;
    }
    
    .movie-title h1 {
        font-size: 20px;
    }
    
    .movie-title span {
        font-size: 16px;
    }
}
