/* ==========================================
   全局基础样式
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    min-width: 320px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: #ff6600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   顶部导航栏
   ========================================== */
.top-bar {
    background-color: #0f0f0f;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6600, #ff3300);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.logo-text {
    background: linear-gradient(135deg, #ff6600, #ff9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 平台标识 */
.platform-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.platform-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.badge-tencent {
    background-color: #1495e5;
}

.badge-youku {
    background-color: #00a1e9;
}

.badge-kumiao {
    background-color: #e63b2b;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #ff6600;
}

.search-box button {
    padding: 8px 16px;
    background-color: #ff6600;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #ff8533;
}

/* 导航栏 */
.main-nav {
    background-color: #222;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.nav-item {
    padding: 12px 20px;
    color: #ccc;
    font-size: 15px;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background-color: rgba(255, 102, 0, 0.1);
    border-bottom-color: #ff6600;
}

.nav-item.active {
    color: #ff6600;
}

/* 更新提示 */
.update-bar {
    background-color: #2a2a2a;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    color: #ff6600;
    border-bottom: 1px solid #333;
}

/* ==========================================
   轮播Banner
   ========================================== */
.banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.banner-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.banner-placeholder .play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.banner-placeholder .play-icon:hover {
    transform: scale(1.1);
}

.banner-placeholder .play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 28px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.banner-info h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.banner-info p {
    font-size: 14px;
    color: #ccc;
    max-width: 600px;
}

/* 轮播控制 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(255, 102, 0, 0.8);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #ff6600;
    transform: scale(1.2);
}

/* ==========================================
   主内容区
   ========================================== */
.main-content {
    padding: 30px 0;
}

/* 板块标题 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: #ff6600;
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: #999;
    transition: color 0.2s;
}

.section-more:hover {
    color: #ff6600;
}

/* ==========================================
   影视卡片网格
   ========================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.movie-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.movie-cover {
    position: relative;
    width: 100%;
    padding-top: 115%;
    overflow: hidden;
    background: #333;
}

.movie-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.05);
}

/* 电影海报 - 带名称的渐变背景 */
.movie-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.movie-poster .poster-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.movie-poster .poster-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    word-break: break-all;
    max-height: 60px;
    overflow: hidden;
}

.movie-poster .poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}

/* 不同颜色方案的海报背景 */
.poster-color-1 {
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #9b2226 100%);
}
.poster-color-2 {
    background: linear-gradient(135deg, #457b9d 0%, #1d3557 50%, #0d1b2a 100%);
}
.poster-color-3 {
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 50%, #1a3c40 100%);
}
.poster-color-4 {
    background: linear-gradient(135deg, #e9c46a 0%, #f4a261 50%, #e76f51 100%);
}
.poster-color-5 {
    background: linear-gradient(135deg, #6a0572 0%, #8b2f97 50%, #ab83a1 100%);
}
.poster-color-6 {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #52b788 100%);
}
.poster-color-7 {
    background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 50%, #c77dff 100%);
}
.poster-color-8 {
    background: linear-gradient(135deg, #ff6d00 0%, #ff8500 50%, #ff9e00 100%);
}
.poster-color-9 {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
}
.poster-color-10 {
    background: linear-gradient(135deg, #d00000 0%, #dc2f02 50%, #e85d04 100%);
}
.poster-color-11 {
    background: linear-gradient(135deg, #5f0f40 0%, #9a031e 50%, #fb8b24 100%);
}
.poster-color-12 {
    background: linear-gradient(135deg, #003049 0%, #669bbc 50%, #d6ad60 100%);
}

.movie-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 40px;
}

/* 标签 */
.movie-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.tag {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.tag-hd {
    background-color: #e63b2b;
}

.tag-new {
    background-color: #ff6600;
}

.tag-vip {
    background-color: #1495e5;
}

.tag-score {
    background-color: #ff9933;
}

.tag-episode {
    background-color: #4caf50;
}

/* 评分/状态标签 */
.movie-info-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
}

.info-score {
    color: #ffcc00;
    font-weight: bold;
}

.info-episode {
    color: #4caf50;
}

.info-quality {
    color: #ff6600;
}

/* 卡片信息 */
.movie-meta {
    padding: 12px;
}

.movie-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.movie-card:hover .movie-name {
    color: #ff6600;
}

.movie-actor {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.movie-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   排行列表
   ========================================== */
.rank-list {
    margin-bottom: 40px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #333;
    transition: background-color 0.2s;
}

.rank-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.rank-num {
    width: 28px;
    height: 28px;
    background: #333;
    color: #999;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num {
    background: #ff6600;
    color: #fff;
}

.rank-item:nth-child(2) .rank-num {
    background: #ff8533;
    color: #fff;
}

.rank-item:nth-child(3) .rank-num {
    background: #ff9933;
    color: #fff;
}

.rank-title {
    flex: 1;
    font-size: 14px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item:hover .rank-title {
    color: #ff6600;
}

/* ==========================================
   两列布局（卡片+排行）
   ========================================== */
.section-two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
}

/* ==========================================
   分页
   ========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #333;
    color: #fff;
}

.page-link.active {
    background: #ff6600;
    color: #fff;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   底部分类列表
   ========================================== */
.footer-category {
    background: #111;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-cat-item h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-cat-item h3 a {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.footer-cat-item h3 a:hover {
    color: #ff6600;
}

.footer-cat-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.footer-cat-list li a {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.footer-cat-list li a:hover {
    color: #ff6600;
}

.footer-cat-list li a .cat-num {
    color: #666;
    font-size: 12px;
}

/* ==========================================
   底部链接板块
   ========================================== */
.site-footer-links {
    padding: 40px 0 30px;
}

.site-footer-links .container {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-links-col h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}

.footer-links-col ul li a:hover {
    color: #ff6600;
}

/* ==========================================
   页脚
   ========================================== */
.site-footer {
    background: #0a0a0a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    margin: 0 10px;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ff6600;
}

.footer-copy {
    font-size: 12px;
    color: #555;
}

/* ==========================================
   分类列表页样式 (list.html)
   ========================================== */
.list-page {
    padding: 20px 0;
}

.list-header {
    margin-bottom: 30px;
}

.list-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.list-breadcrumb {
    font-size: 13px;
    color: #666;
}

.list-breadcrumb a {
    color: #888;
}

.list-breadcrumb a:hover {
    color: #ff6600;
}

/* 筛选器 */
.filter-bar {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.filter-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-label {
    width: 60px;
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
    padding-top: 3px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    padding: 4px 12px;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-option:hover {
    background: #333;
    color: #fff;
}

.filter-option.active {
    background: #ff6600;
    color: #fff;
}

/* 列表页卡片 - 横向排列 */
.list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.list-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.list-card .movie-cover {
    padding-top: 55%;
}

.list-card .movie-cover-placeholder {
    font-size: 24px;
}

/* ==========================================
   详情页样式 (detail.html)
   ========================================== */
.detail-page {
    padding: 30px 0;
}

.detail-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.detail-poster {
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
}

.detail-poster img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.detail-poster-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 60px;
}

.detail-info h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta-item {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.detail-meta-item span {
    color: #ccc;
}

.detail-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.score-num {
    font-size: 32px;
    font-weight: bold;
    color: #ff6600;
}

.score-stars {
    display: flex;
    gap: 3px;
}

.star {
    width: 16px;
    height: 16px;
    background: #ffcc00;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.empty {
    background: #444;
}

.detail-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.btn-play {
    padding: 12px 30px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-play:hover {
    background: #ff8533;
}

.btn-play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
}

.btn-collect {
    padding: 12px 30px;
    background: transparent;
    color: #ff6600;
    border: 1px solid #ff6600;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-collect:hover {
    background: rgba(255, 102, 0, 0.1);
}

/* 播放列表 */
.play-list-section {
    margin-bottom: 40px;
}

.play-list-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.play-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.play-list-item {
    padding: 8px 16px;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}

.play-list-item:hover {
    background: #ff6600;
    color: #fff;
}

/* 猜你喜欢 */
.guess-section {
    margin-top: 40px;
}

/* ==========================================
   播放页样式 (play.html)
   ========================================== */
.play-page {
    padding: 20px 0;
}

.play-container {
    background: #000;
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
}

.play-placeholder .big-play {
    width: 100px;
    height: 100px;
    background: rgba(255, 102, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.play-placeholder .big-play:hover {
    transform: scale(1.1);
}

.play-placeholder .big-play::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 36px;
    border-color: transparent transparent transparent #fff;
    margin-left: 8px;
}

.play-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

/* 播放页选集 */
.play-episode-selector {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.episode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.episode-header h3 {
    font-size: 16px;
    color: #fff;
}

/* ==========================================
   占位图片样式
   ========================================== */
.placeholder-img {
    background: linear-gradient(135deg, #333, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

/* ==========================================
   响应式设计
   ========================================== */

/* 平板 */
@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-two-col {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 200px;
    }

    .detail-poster-placeholder {
        height: 280px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner {
        height: 250px;
    }

    .banner-info h2 {
        font-size: 20px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
        width: 100%;
    }

    .platform-badges {
        display: none;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .main-nav .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .main-nav .container::-webkit-scrollbar {
        display: none;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
    }

    .detail-poster {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .detail-info h1 {
        font-size: 22px;
    }

    .footer-category-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .banner {
        height: 180px;
    }

    .banner-info {
        padding: 15px;
    }

    .banner-info h2 {
        font-size: 16px;
    }

    .section-title {
        font-size: 16px;
    }

    .movie-meta {
        padding: 8px;
    }

    .movie-name {
        font-size: 13px;
    }
}
