/* ============================================================
   全站样式表 - 电影影视网站
   纯CSS3，无外部依赖
   ============================================================ */

/* === CSS Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

input,
button {
    font-family: inherit;
    border: none;
    outline: none;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================================
   顶部导航栏 Header
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff6b35;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

/* 平台标识 */
.platform-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.platform-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.tag-tx {
    background: #1a98ff;
    color: #fff;
}

.tag-yk {
    background: #00b4ff;
    color: #fff;
}

.tag-km {
    background: #ff6600;
    color: #fff;
}

.tag-mg {
    background: #e60012;
    color: #fff;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: #bbb;
    border-radius: 4px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ff6b35;
    border-radius: 1px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0 14px;
    height: 36px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 53, 0.4);
}

.search-box input {
    background: transparent;
    color: #e0e0e0;
    font-size: 0.85rem;
    width: 160px;
}

.search-box input::placeholder {
    color: #666;
}

.search-btn {
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    color: #ff6b35;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ============================================================
   首屏 Banner 轮播
   ============================================================ */
.banner-section {
    margin-top: 60px;
    position: relative;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 0;
}

.banner-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.banner-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.5) 40%,
            rgba(10, 10, 10, 0.2) 70%,
            rgba(10, 10, 10, 0.05) 100%);
}

.banner-info {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 60px 0 0 60px;
}

.banner-tag {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
}

.banner-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.banner-score {
    color: #ff6b35;
    font-size: 1.3rem;
    font-weight: 700;
}

.banner-meta {
    color: #999;
    font-size: 0.8rem;
}

.banner-desc {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    padding: 10px 28px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Banner 控制按钮 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.banner-arrow:hover {
    background: rgba(255, 107, 53, 0.7);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.banner-dot.active {
    background: #ff6b35;
    width: 24px;
    border-radius: 5px;
}

/* 上映日期标签 */
.release-date-tag {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
}

.release-date-tag .date-label {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 2px;
}

.release-date-tag .date-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

/* ============================================================
   敬请期待板块
   ============================================================ */
.upcoming-section {
    padding: 30px 0 10px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #ff6b35;
    border-radius: 2px;
}

.section-more {
    font-size: 0.85rem;
    color: #888;
    transition: color 0.2s;
}

.section-more:hover {
    color: #ff6b35;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.upcoming-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.upcoming-card:hover {
    transform: translateY(-6px);
}

.upcoming-card .card-poster {
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
}

.upcoming-card .card-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.upcoming-card .card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6b35;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 2;
}

.upcoming-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    z-index: 2;
}

.upcoming-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-card .card-date {
    font-size: 0.7rem;
    color: #ff6b35;
}

/* ============================================================
   内容区通用卡片网格
   ============================================================ */
.content-section {
    padding: 25px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.movie-card {
    display: block;
    background: #141414;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 107, 53, 0.3);
}

.movie-card .card-poster-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #1a1a1a;
}

.movie-card .card-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-poster-img {
    transform: scale(1.08);
}

/* 清晰度标签 */
.movie-card .quality-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff6b35;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* 评分 */
.movie-card .rating-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffbe0b;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

.movie-card .card-body {
    padding: 10px 12px 12px;
}

.movie-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card:hover .card-title {
    color: #ff6b35;
}

.movie-card .card-meta {
    font-size: 0.7rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.movie-card .card-meta span {
    white-space: nowrap;
}

.movie-card .card-desc {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card .card-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}

.movie-card .card-stars .star {
    color: #ffbe0b;
    font-size: 0.65rem;
}

.movie-card .card-stars .score-text {
    color: #ffbe0b;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 4px;
}

/* ============================================================
   底部分类区域
   ============================================================ */
.category-section {
    padding: 20px 0 40px;
}

.category-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tab {
    padding: 10px 24px;
    font-size: 0.95rem;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.category-tab:hover {
    color: #e0e0e0;
}

.category-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.category-panels {}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 20px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #1a1a1a;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-btn:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.page-btn.active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   页脚 Footer
   ============================================================ */
.footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0 20px;
    color: #666;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: #666;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: #555;
}

/* ============================================================
   滚动到顶部按钮
   ============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 53, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

/* ============================================================
   列表页 List Page
   ============================================================ */
.list-main {
    margin-top: 60px;
    padding: 20px 0;
}

.list-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 25px;
}

.list-header h1 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.list-header .breadcrumb {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.list-header .breadcrumb a {
    color: #ff6b35;
}

.list-header .breadcrumb span {
    margin: 0 6px;
}

.list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.8rem;
    background: #1a1a1a;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-btn:hover {
    background: #2a2a2a;
    color: #e0e0e0;
}

.filter-btn.active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.list-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ============================================================
   详情页 Detail Page
   ============================================================ */
.detail-main {
    margin-top: 60px;
    padding: 0;
}

.detail-hero {
    position: relative;
    padding: 40px 0;
    background: #0d0d0d;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(40px);
    opacity: 0.15;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
}

.detail-poster {
    flex-shrink: 0;
    width: 240px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.detail-info .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-info .detail-tags span {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
}

.detail-info .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
}

.detail-info .detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-info .detail-meta .meta-label {
    color: #666;
}

.detail-info .detail-meta .meta-value {
    color: #ff6b35;
}

.detail-score-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.detail-score-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffbe0b;
}

.detail-score-text {
    font-size: 0.8rem;
    color: #888;
}

.detail-desc {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    gap: 12px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-fav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border-radius: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-fav:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 详情页相关区块 */
.detail-content-section {
    padding: 30px 0;
}

.episode-section {
    margin-top: 20px;
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-btn {
    width: 46px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #1a1a1a;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.episode-btn:hover {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: rgba(255, 107, 53, 0.3);
}

.episode-btn.active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

/* ============================================================
   播放页 Play Page
   ============================================================ */
.play-main {
    margin-top: 60px;
    background: #000;
    min-height: calc(100vh - 60px);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    color: #666;
}

.video-placeholder .play-icon-big {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-placeholder .play-icon-big:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

.video-placeholder p {
    font-size: 0.9rem;
    color: #666;
}

/* 播放器控制栏 */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #141414;
    gap: 12px;
}

.player-controls .ctrl-btn {
    background: transparent;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
}

.player-controls .ctrl-btn:hover {
    color: #ff6b35;
}

.player-controls .progress-bar-wrap {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-controls .progress-bar-fill {
    height: 100%;
    background: #ff6b35;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s linear;
}

.player-controls .time-display {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

/* 播放页剧集选择 */
.play-episodes {
    padding: 20px;
    background: #0d0d0d;
}

.play-episodes .episode-section-title {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 12px;
}

/* 播放页下方推荐 */
.play-recommend {
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   响应式 - 平板
   ============================================================ */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .upcoming-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .list-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .banner-carousel {
        height: 320px;
    }
    .banner-info {
        padding: 40px 0 0 30px;
        max-width: 400px;
    }
    .banner-title {
        font-size: 1.6rem;
    }
    .platform-tags {
        display: none;
    }
    .search-box input {
        width: 120px;
    }
    .detail-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-poster {
        width: 200px;
    }
    .detail-actions {
        justify-content: center;
    }
}

/* ============================================================
   响应式 - 手机
   ============================================================ */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .list-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .banner-carousel {
        height: 240px;
    }
    .banner-info {
        padding: 20px 0 0 20px;
        max-width: 280px;
    }
    .banner-title {
        font-size: 1.2rem;
    }
    .banner-desc {
        display: none;
    }
    .banner-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0a0a0a;
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu a {
        padding: 12px 20px;
        border-radius: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-box {
        display: none;
    }
    .platform-tags {
        display: none;
    }
    .header-inner {
        height: 50px;
    }
    .banner-section {
        margin-top: 50px;
    }
    .list-main {
        margin-top: 50px;
    }
    .detail-main {
        margin-top: 50px;
    }
    .play-main {
        margin-top: 50px;
    }
    .release-date-tag {
        right: 10px;
        padding: 8px 14px;
    }
    .release-date-tag .date-num {
        font-size: 1.1rem;
    }
    .detail-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-poster {
        width: 160px;
    }
    .detail-info h1 {
        font-size: 1.3rem;
    }
    .detail-actions {
        flex-direction: column;
        align-items: center;
    }
    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .category-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .banner-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    .banner-dot.active {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .movie-card .card-title {
        font-size: 0.8rem;
    }
    .movie-card .card-meta {
        font-size: 0.65rem;
    }
    .movie-card .card-desc {
        display: none;
    }
    .banner-carousel {
        height: 200px;
    }
    .banner-info {
        padding: 15px 0 0 15px;
        max-width: 200px;
    }
    .banner-title {
        font-size: 1rem;
    }
    .banner-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .banner-rating {
        gap: 5px;
    }
}

/* 平板/窄窗口下导航横向滚动，避免栏目名被压缩成竖排 */
@media (max-width: 1199px) {
  .nav-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-menu a {
    white-space: nowrap;
  }
}

/* 播放页顶部补偿（fixed header 60px） */
.play-page {
  margin-top: 60px;
}