/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    max-width: 640px;
    margin: 0 auto;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
	padding-bottom:70px;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button, input {
    border: none;
    outline: none;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #000;
}

.logo {
    width: 120px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: relative;
}

/* 侧边导航菜单 */
.side-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #27ae60;
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 60px;
}

.side-nav.active {
    right: 0;
}

.side-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.side-nav a:hover , .side-nav .active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* 搜索框样式 */
.search-bar {
    padding: 15px;
    background-color: #fff;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    padding: 0 15px;
    background-color: #000;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Banner样式 */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
	min-height:200px;
}
.banner-item img{
	height:100%;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.banner-dot.active {
    background-color: #000;
}

/* 影视列表通用样式 */
.section-title {
    padding: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.movie-list {
    display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: #fff;
}

.movie-item {
    display: flex;
    flex-direction: column;
}

.movie-poster {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.movie-rating {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 3px;
}

.movie-category {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #000;
    color: #fff;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 3px;
}

.movie-title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 友情链接样式 */
.friend-links {
    padding: 15px;
    background-color: #fff;
    margin-top: 10px;
}

.friend-links h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-list a {
    color: #666;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
}

/* 版权信息样式 */
.footer {
    padding: 15px;
    text-align: center;
    background-color: #000;
    color: #fff;
    margin-top: 10px;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

/* 浮动导航样式 */
.fixed-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.fixed-nav-item {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    color: #666;
}

.fixed-nav-item.active {
    color: #000;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-text {
    font-size: 12px;
}

/* 影视列表页样式 */
.filters {
    padding: 15px;
    background-color: #fff;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #666;
}

.filter-options a.active {
    background-color: #000;
    color: #fff;
}

.sort-options {
    display: flex;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sort-options a {
    margin-right: 15px;
    color: #666;
}

.sort-options a.active {
    color: #000;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}

.pagination a.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 影视播放页样式 */
.player-container {
    position: relative;
    width: 100%;
    background-color: #000;
    padding-top: 56.25%; /* 16:9 比例 */
}

.player-container .MacPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movie-info {
    padding: 15px;
    background-color: #fff;
}

.movie-info h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.movie-meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.movie-meta span {
    display: block;
}

.movie-meta strong {
    color: #333;
    margin-right: 5px;
}

.movie-description {
    color: #666;
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px dashed #eee;
	margin-bottom: 15px;
}
.movie-section{
    color: #666;
    line-height: 1.6;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.related-movies {
    margin-top: 10px;
    background-color: #fff;
}
.movie-section-list{
	display: flex;
    flex-wrap: wrap;
    gap: 10px;
	padding:10px;
}
.movie-section-list a {
    padding: 8px 15px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #555;
    transition: all 0.3s ease;
}

.movie-section-list a:hover,
.movie-section-list .active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}
}
/* 响应式调整 */
@media (max-width: 640px) {
    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 320px) {
    .movie-list {
        grid-template-columns: 1fr;
    }
}
