/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

h1,
h2,
h3 {
    color: #2c3e50;
}

/* 头部样式 */
header {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* 导航栏样式 */
nav {
    background-color: #2980b9;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

nav button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

nav button:hover {
    background-color: #3498db;
}

/* 搜索区域样式 */
#searchSection {
    margin-bottom: 2rem;
}

#searchSection input[type="text"] {
    padding: 0.5rem;
    width: 60%;
    margin-right: 1rem;
}

#searchSection button {
    padding: 0.5rem 1rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}

/* 搜索结果样式 */
.movie-results {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
}

.movie-item {
    width: calc(33.333% - 1rem);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.movie-item:hover {
    transform: translateY(-5px);
}

.movie-item img {
    max-width: 100%;
    height: auto;
}

/* 视频播放器样式 */
#videoPlayer {
    background-color: white;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#mainPlayer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* 下拉菜单样式 */
.episode-dropdown {
    position: relative;
    display: inline-block;
}

.episode-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 300px;
    overflow-y: auto;
}

.episode-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.episode-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.episode-dropdown:hover .episode-dropdown-content {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .movie-item {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .movie-item {
        width: 100%;
    }
}