/* 全局样式 - 影视站通用CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --secondary-color: #141414;
    --text-color: #ffffff;
    --gray-color: #808080;
    --hover-color: #b20710;
    --bg-dark: #000000;
    --bg-section: #1a1a1a;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    background-color: var(--bg-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 15px;
    border-radius: 4px;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background-color: rgba(229, 9, 20, 0.1);
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #333;
    background-color: #222;
    color: var(--text-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: var(--hover-color);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* 轮播图 */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
}

.banner-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.banner-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-info p {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 15px;
    max-width: 600px;
}

.banner-info .tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(229, 9, 20, 0.8);
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #555;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #666;
}

/* 分区标题 */
.section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.section-header a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.section-header a:hover {
    color: var(--primary-color);
}

/* 影片网格 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    background-color: var(--bg-section);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.3);
}

.movie-card .poster {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}

.movie-card .poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover .poster img {
    transform: scale(1.1);
}

.movie-card .quality {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.movie-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .play-icon {
    opacity: 1;
}

.movie-card .play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.movie-card .info {
    padding: 15px;
}

.movie-card .info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card .info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.movie-card .info h3 a:hover {
    color: var(--primary-color);
}

.movie-card .info .meta {
    font-size: 13px;
    color: var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-card .info .rating {
    color: #ffd700;
    font-weight: bold;
}

/* 影片列表视图 */
.movie-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-list-item {
    display: flex;
    background-color: var(--bg-section);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}

.movie-list-item .poster {
    width: 150px;
    min-width: 150px;
    height: 210px;
    position: relative;
    overflow: hidden;
}

.movie-list-item .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-list-item .content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.movie-list-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.movie-list-item h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.movie-list-item h3 a:hover {
    color: var(--primary-color);
}

.movie-list-item .description {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-list-item .meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-color);
}

.movie-list-item .meta-info span {
    display: flex;
    align-items: center;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--bg-section);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
}

/* 侧边栏 */
.sidebar {
    background-color: var(--bg-section);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar ul li a:hover {
    background-color: rgba(229, 9, 20, 0.1);
    color: var(--primary-color);
    padding-left: 15px;
}

.sidebar ul li a .count {
    color: var(--gray-color);
    font-size: 12px;
}

/* 筛选器 */
.filter-section {
    background-color: var(--bg-section);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    min-width: 80px;
    font-size: 14px;
    color: var(--gray-color);
}

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

.filter-options a {
    padding: 6px 15px;
    background-color: #222;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-options a:hover,
.filter-options a.active {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* 详情页 */
.detail-container {
    background-color: var(--bg-section);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-poster {
    position: relative;
    flex-shrink: 0;
}

.detail-poster img {
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.detail-info .subtitle {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.detail-info .rating-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-info .rating {
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
}

.detail-info .rating-text {
    font-size: 14px;
    color: var(--gray-color);
}

.meta-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.meta-table tr {
    border-bottom: 1px solid #333;
}

.meta-table td {
    padding: 12px 10px;
    font-size: 14px;
}

.meta-table td:first-child {
    color: var(--gray-color);
    width: 100px;
}

.meta-table td:last-child {
    color: var(--text-color);
}

.meta-table a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.3s;
}

.meta-table a:hover {
    color: var(--primary-color);
}

.description-section {
    margin: 20px 0;
}

.description-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.description-section p {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.8;
}

/* 播放器区域 */
.player-section {
    background-color: var(--bg-section);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.player-info h2 {
    font-size: 20px;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.episode-list {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid #333;
}

.episode-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.episode-grid a {
    padding: 10px;
    background-color: #2a2a2a;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.episode-grid a:hover {
    background-color: #333;
    border-color: #555;
    transform: translateY(-2px);
}

.episode-grid a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
}

/* 评论区 */
.comment-section {
    background-color: var(--bg-section);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.comment-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #222;
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
}

.comment-time {
    font-size: 12px;
    color: var(--gray-color);
}

.comment-text {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.6;
}

/* 底部 */
footer {
    background-color: var(--bg-dark);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    font-size: 14px;
    color: var(--gray-color);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: var(--gray-color);
}

.footer-bottom a {
    color: var(--gray-color);
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

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

    .detail-poster {
        max-width: 200px;
        margin: 0 auto;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .search-box {
        max-width: 100%;
    }

    .banner {
        height: 300px;
    }

    .banner-info {
        padding: 20px;
    }

    .banner-info h2 {
        font-size: 24px;
    }

    .banner-info p {
        font-size: 14px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

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

    .movie-list-item .poster {
        width: 100%;
        height: 300px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        min-width: auto;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .detail-info h1 {
        font-size: 24px;
    }
}

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

    .section-header h2 {
        font-size: 20px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 14px;
    }
}

