﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* 导航栏样式 */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    /* padding: 0 5%; */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 50px;
    margin-left: 10px;
}

.logo-img {
    height: 50px;
}

.logo i {
    margin-right: 10px;
    color: #f87171;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-evenly;
}

.nav-menu li {
    margin: 0 15px;
    position: relative;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.nav-menu a {
    display: inline-block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #60a5fa;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #60a5fa;
    border-radius: 2px;
}

.search-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.search-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 30px;
    padding: 6px 10px;
    color: #e2e8f0;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #60a5fa;
    width: 300px;
    background: rgba(30, 41, 59, 1);
}

.user-actions {
    display: flex;
    margin-left: 20px;
}

.btn {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    border: 1px solid #334155;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #1e293b;
    border-color: #60a5fa;
}

/* 轮播图区域 */
.hero-section {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: 20px 5% 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel {
    height: 100%;
    position: relative;
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.carousel-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.carousel-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.carousel-badge {
    display: inline-block;
    background: #f87171;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.carousel-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #60a5fa;
    color: #0f172a;
    transform: scale(1.1);
}

/* 内容区域 */
.movies-list {
    margin: 20px 10px;
}

.header+.movies-list {
    margin-top: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e293b;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #f87171;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #f87171;
}

.view-more {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #60a5fa;
}

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

.movie-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.movie-card-img>a {
    display: flex;
    aspect-ratio: 0.65;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    position: relative;
}

.movie-card-img img {
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

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

.movie-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}
.movie-card-meta>span:first-child {
    max-width: 60%;
    overflow: hidden;
    /* white-space: nowrap; */
    height: 20px;
}

.movie-rating {
    color: #fbbf24;
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0000003d;
    color: white;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 10px;
    /* font-weight: bold; */
    z-index: 2;
}

/* 页脚 */
.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #60a5fa;
}

.copyright {
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
}

/* 筛选区域 */
.filter-section {
    padding: 10px 10px;
}

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

.filter-title {
    font-size: 36px;
    font-weight: 700;
    color: #60a5fa;
}

.results-count {
    color: #94a3b8;
    font-size: 18px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-bottom: 40px; */
}

.filter-group {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 10px;
    flex: 1;
    min-width: 250px;
    border: 1px solid #334155;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.filter-group-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #f87171;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.filter-group-title i {
    margin-right: 12px;
}

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

.filter-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 3px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(to right, #60a5fa, #f87171);
    color: #0f172a;
    border-color: transparent;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
}

.filter-btn-large {
    padding: 14px 32px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.filter-btn-large i {
    margin-right: 10px;
}

/* 分页 */
/* 容器 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  flex-wrap: wrap;
}

/* 重置 li */
.pagination li { list-style: none; }

/* 基础按钮：数字页、1/792、“下一页/尾页”都统一风格 */
.pagination li > a,
.pagination .num {
  min-width: 45px;           /* 用 min-width 兼容“下一页/尾页”的文字 */
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  border: 1px solid #334155;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* 悬停 */
.pagination li > a:hover {
  background: linear-gradient(to right, #60a5fa, #f87171);
  color: #0f172a;
  border-color: transparent;
}

/* 激活/当前页（li.active） */
.pagination li.active > a,
.pagination li.active > .num {
  background: linear-gradient(to right, #60a5fa, #f87171);
  color: #0f172a;
  border-color: transparent;
  cursor: default;
}

/* 按下轻微压感 */
.pagination li > a:active { transform: translateY(1px); }

/* 焦点可见（键盘可达性） */
.pagination li > a:focus { outline: none; }
.pagination li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45);
}

/* 响应式：小屏仅显示 1/792（.visible-xs），隐藏 .hidden-xs 的数字页 */
.visible-xs { display: none; } /* 默认隐藏移动端专用项 */
@media (max-width: 480px) {
  .pagination { gap: 8px; }
  .pagination li.hidden-xs { display: none; }
  .pagination .visible-xs { display: inline-flex; }
  .pagination li > a,
  .pagination .num {
    min-width: 40px;
    height: 36px;
    font-size: 14px;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .pagination li > a,
  .pagination .num { transition: none; }
}


/* 面包屑导航 */
.bread {
    max-width: 1200px;
    margin: 10px 10px 0;
    /* padding: 0 20px; */
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bread a {
    color: #cbd5e1;
    text-decoration: none;
}

.bread a:hover {
    text-decoration: underline;
}

/* 电影顶部信息区 */
.detail .movie-header {
    position: relative;
    /* height: 85vh; */
    overflow: hidden;
    margin: 0 10px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.detail .movie-content {
    display: flex;
    padding: 10px 0;
    height: 100%;
    position: relative;
}

.detail .movie-img {
    width: 260px;
    min-height: 100px;
    max-width: 60%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
}

.detail .movie-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    height: auto;
    vertical-align: middle;
}
.detail .movie-img .fa-play {
    font-size: 20px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #00000069;
    border-radius: 50%;
    padding: 15px;
    color: #fff;
    background: linear-gradient(to right, #60a5fa, #7e22ce);
}
.detail .movie-info {
    margin-left: 50px;
    flex: 1;
    position: relative;
    /* padding-top: 20px; */
}

.detail .movie-name {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 5px auto; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.detail .movie-subtitle {
    font-size: 14px;
    color: #94a3b8;
    /*margin-bottom: 10px;*/
    font-weight: 500;
    text-align: center;
}

.detail .movie-meta {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.detail .meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #cbd5e1;
}

.detail .meta-item i {
    margin-right: 8px;
    color: #60a5fa;
    font-size: 16px;
}
.meta-item.meta-rating>i,
.meta-item.meta-rating>span{
    color: #fbbf24;
}
.detail .movie-rating {
    /* background: rgba(30, 41, 59, 0.9); */
    /* padding: 10px 20px; */
    /* border-radius: 30px; */
    display: flex;
    align-items: center;
    /* font-weight: 600; */
}

.detail .movie-rating .rating-value {
    /* color: #fbbf24; */
    font-size: 16px;
    margin-left: 5px;
}

.detail .rating-stars {
    color: #fbbf24;
    font-size: 20px;
    margin-right: 10px;
}
.movie-actor h3 {
    font-size: 16px;
        color: #fff;
        text-align: center;
        margin-top: 10px;
}
.movie-actor ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    justify-content: center;
    margin-top: 5px;
}
.movie-actor li {
    text-align: center;
    /* font-size: 14px; */
    color: #cbd5e1;
}
.action-buttons {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.action-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}

.action-btn i {
    margin-right: 10px;
    font-size: 22px;
}

.play-btn {
    background: linear-gradient(to right, #60a5fa, #7e22ce);
    color: white;
    flex: 1;
    max-width: 300px;
    text-decoration: none;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(96, 165, 250, 0.4);
}

.secondary-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border: 1px solid #334155;
}

.secondary-btn:hover {
    background: rgba(71, 85, 105, 0.8);
    color: white;
}

.tags {
    display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 10px 0 0;
        /* text-align: center; */
        justify-content: center;
}

.tag {
    background: rgba(30, 41, 59, 0.8);
    /* color: #fff; */
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #334155;
}

/* 详情内容区 */
.detail-section {
    margin: 10px 10px 10px;
}

.section-title2 {
    font-size: 16px;
        font-weight: 700;
        color: #60a5fa;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        padding-bottom: 10px;
        border-bottom: 3px solid #1e293b;
        position: relative;
}

.section-title2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 110px;
    height: 3px;
    background: linear-gradient(to right, #60a5fa, #f87171);
    border-radius: 3px;
}

.section-title2 i {
    margin-right: 15px;
    color: #f87171;
    font-size: 18px;
}

.overview {
    font-size: 14px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 10px;
    /* max-width: 900px; */
    text-indent: 28px;
}

/* Tab 切换选项卡 */
.tab-box {
    margin-top: 5px;
}

.tab-title {
    margin-bottom: 10px;
    overflow: auto;
    white-space: nowrap;
    text-align: center;
}

.tab-title button {
    background: transparent;
    color: #cbd5e1;
    padding: 5px;
    border: none;
    /* border-radius: 6px; */
    cursor: pointer;
    font-size: 14px;
    /* transition: background-color 0.3s ease; */
    margin: 0 5px;
}

.tab-title button.active {
    /* background-color: #dc3545; */
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid #fff;
    /* background: linear-gradient(to right, #60a5fa, #f87171); */
    color: #fff;
}

.play-list .tab-bd {
    display: none;
    padding: 10px;
    border-radius: 6px;
}
.movies-list .tab-title {
    overflow: hidden;
    margin:0;
}
.movies-list button {
    margin: 0;
    padding: 0 3px;
    height: 28px;
    line-height: 28px;
    font-size: 13px;
}
.movies-list .tab-title button.active {
    font-size: 13px;
}

.tab-bd.active {
    display: block;
}
.play .tab-bd {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.tab-bd ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-bd li a {
    display: inline-block;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-bd li a.active,
.tab-bd li a:hover {
    background: linear-gradient(to right, #60a5fa, #f87171);
    color: #fff;
    border-color: transparent;
}

.tab-bd a {
    color: #cbd5e1;
    text-decoration: none;
}
.movie-play {
    margin-top: 10px;
}
#playerCnt {
    position: relative;
    /* width: 100%; */
    height: 500px;
    background-color: #111;
    /* border-radius: 10px; */
    /* margin-bottom: 10px; */
    margin-left: -15px;
    margin-right: -15px;
}

.duration {
    color: #60a5fa;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .detail .movie-header {
        height: auto;
    }

    .detail .movie-content {
        flex-direction: column;
        /* padding: 20px 10px; */
    }

    .detail .movie-img {
        margin: 0 auto;
    }

    .detail .movie-info {
        margin-left: 0;
    }

    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 400px;
    }

    .nav-menu li {
        margin: 0 1.5%;
    }

    .detail .movie-name {
        font-size: 20px;
    }

    .detail .movie-subtitle {
        /* font-size: 22px; */
    }

    .action-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    #playerCnt {
        height: 200px;
    }
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }

    .nav-menu {
        order: 3;
        /* margin-top: 10px; */
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        height: 300px;
        margin: 10px 3% 30px;
    }

    .carousel-title {
        font-size: 28px;
    }

    .carousel-subtitle {
        font-size: 16px;
    }

    .search-box {
        width: 180px;
    }

    .search-box:focus {
        width: 180px;
    }

    .detail .movie-header {
        margin: 10px;
    }

    .detail .movie-content {
        /* padding: 20px 10px; */
    }

    /* .detail .movie-img {
        width: 240px;
        height: 360px;
    } */

    /* .detail .section-title {
        font-size: 28px;
    } */
}

@media (max-width: 576px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .carousel-content {
        padding: 20px;
    }

    .episode-card {
        flex-direction: column;
    }

    .episode-img {
        width: 100%;
        height: 180px;
    }
}
