/* ============================================================
   Green Template — 清新绿色自然风
   色板：背景#f0f7f0 主色#2d8f4e 强调#1a6834
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --c-bg: #f0f7f0;
    --c-bg-card: #ffffff;
    --c-primary: #2d8f4e;
    --c-primary-dark: #1a6834;
    --c-primary-light: #e8f5ec;
    --c-primary-border: #b2dfbf;
    --c-text: #1e2d22;
    --c-text-sub: #5a7060;
    --c-text-mute: #9ab0a0;
    --c-border: #d4e8d8;
    --c-shadow: 0 2px 8px rgba(0,0,0,.08);
    --c-shadow-hover: 0 4px 16px rgba(45,143,78,.18);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;
    --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    scroll-behavior: smooth;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}

a:hover {
    color: var(--c-primary-dark);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   顶部导航 .topbar
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-icon {
    font-size: 22px;
    line-height: 1;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* 顶部导航链接 */
.top-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
    display: none;
}

.top-nav-link {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--c-text-sub);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.top-nav-link.active {
    font-weight: 600;
}

/* 搜索栏 .search-bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    background: var(--c-bg);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(45,143,78,.12);
}

.search-bar-input {
    border: none;
    background: transparent;
    padding: 7px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--c-text);
    width: 180px;
    outline: none;
}

.search-bar-input::placeholder {
    color: var(--c-text-mute);
}

.search-bar-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.search-bar-btn:hover {
    background: var(--c-primary-dark);
}

/* 大搜索框（搜索页） */
.search-bar--big {
    width: 100%;
    max-width: 540px;
    margin-top: 12px;
}

.search-bar--big .search-bar-input {
    width: 100%;
    padding: 10px 18px;
    font-size: 15px;
}

.search-bar--big .search-bar-btn {
    padding: 10px 22px;
    font-size: 15px;
}

/* ============================================================
   页面内容区
   ============================================================ */

.page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ============================================================
   首页 Hero 区 .hero-wrap
   ============================================================ */

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    margin-bottom: 32px;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    overflow: hidden;
}

.hero-main {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.hero-poster {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.hero-poster img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.hero-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
    margin-top: 4px;
}

.hero-meta-line {
    font-size: 13px;
    color: var(--c-text-sub);
}

.hero-summary {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hero-btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-play:hover {
    background: var(--c-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45,143,78,.3);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-more:hover {
    background: var(--c-primary-border);
    color: var(--c-primary-dark);
}

/* Hero 侧边热播列表 .hero-side */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--c-border);
    overflow: hidden;
}

.hot-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    transition: background 0.12s;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item:hover {
    background: var(--c-primary-light);
}

.hot-item-thumb {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 76px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

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

.hot-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.hot-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.hot-item-title:hover {
    color: var(--c-primary);
}

.hot-item-meta {
    font-size: 12px;
    color: var(--c-text-mute);
}

/* ============================================================
   内容区块 .content-section
   ============================================================ */

.content-section {
    margin-bottom: 28px;
}

.section-bar {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary-light);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-primary);
    background: var(--c-primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--c-primary);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--c-primary-light);
    transition: background 0.12s;
    flex-shrink: 0;
}

.section-more:hover {
    background: var(--c-primary-border);
    color: var(--c-primary-dark);
}

/* ============================================================
   视频卡片网格 .movie-grid / .movie-box
   ============================================================ */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.movie-grid--compact {
    grid-template-columns: repeat(5, 1fr);
}

/* 单个卡片 */
.movie-box {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.movie-box:hover {
    box-shadow: var(--c-shadow-hover);
    transform: translateY(-2px);
}

/* 封面图区域 */
.movie-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--c-primary-light);
}

.movie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-box:hover .movie-img {
    transform: scale(1.04);
}

/* hover 绿色边框 */
.movie-box:hover .movie-img-wrap {
    outline: 2px solid var(--c-primary);
    outline-offset: -2px;
}

/* 播放遮罩 */
.movie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,104,52,.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.movie-box:hover .movie-overlay {
    background: rgba(26,104,52,.45);
}

.overlay-play {
    color: #fff;
    font-size: 28px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}

.movie-box:hover .overlay-play {
    opacity: 1;
    transform: scale(1);
}

/* 封面角标 */
.movie-tags {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.thumb-tag {
    font-size: 11px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
}

.thumb-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 11px;
    background: var(--c-primary);
    color: #fff;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* hero-side也用thumb-badge */
.hot-item-thumb .thumb-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
}

/* 卡片文字区 */
.movie-info {
    padding: 10px 10px 12px;
}

.movie-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-name a {
    color: var(--c-text);
}

.movie-name a:hover {
    color: var(--c-primary);
}

.movie-meta {
    font-size: 12px;
    color: var(--c-text-mute);
    margin-bottom: 4px;
}

.movie-desc {
    font-size: 12px;
    color: var(--c-text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   药丸标签 .tag-pill（分类/筛选）
   ============================================================ */

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border: 1px solid var(--c-primary-border);
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    cursor: pointer;
    text-decoration: none;
}

.tag-pill:hover {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.tag-pill.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    font-weight: 600;
}

/* ============================================================
   分类页头部 .cat-header
   ============================================================ */

.cat-header {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff;
    padding: 24px 0 20px;
    margin: -20px -16px 20px;
}

.cat-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.cat-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cat-count {
    font-size: 14px;
    opacity: 0.85;
}

/* 筛选区 .filter-zone */
.filter-zone {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.filter-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-sub);
    padding-top: 5px;
    min-width: 36px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============================================================
   分页 .pager / .page-btn
   ============================================================ */

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--c-bg-card);
    color: var(--c-text-sub);
    border: 1.5px solid var(--c-border);
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    font-family: inherit;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-color: var(--c-primary-border);
}

.page-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    font-weight: 700;
}

/* ============================================================
   详情页 .detail-wrap
   ============================================================ */

.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 播放卡片 .player-card */
.player-card {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    overflow: hidden;
}

.player-head {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--c-border);
}

.player-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.player-meta {
    font-size: 13px;
    color: var(--c-text-sub);
}

.player-stage {
    position: relative;
    background: #000;
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.player-empty {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ccc;
    font-size: 15px;
}

.fallback-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    font-size: 14px;
    font-weight: 500;
}

.fallback-link:hover {
    background: var(--c-primary-border);
}

/* 播放源列表 */
.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
}

.source-btn {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-family: inherit;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border: 1.5px solid var(--c-primary-border);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.source-btn:hover,
.source-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

/* 影片信息卡片 .info-card */
.info-card {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    padding: 18px 20px;
}

.info-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-primary-light);
    color: var(--c-text);
}

.info-summary {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.75;
    margin-bottom: 14px;
}

.info-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.info-field {
    display: flex;
    gap: 6px;
    font-size: 13px;
    align-items: baseline;
}

.info-field-label {
    flex-shrink: 0;
    color: var(--c-text-mute);
    min-width: 36px;
}

.info-field-val {
    color: var(--c-text);
    font-weight: 500;
    word-break: break-word;
}

/* 侧边栏 */
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 80px;
}

/* 海报卡片 .poster-card */
.poster-card {
    position: relative;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    overflow: hidden;
}

.poster-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.poster-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,104,52,.85));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 16px 10px 8px;
    text-align: center;
}

/* 观影提示 .side-tips */
.side-tips {
    background: var(--c-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--c-shadow);
    padding: 14px 16px;
}

.side-tips-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary-dark);
    margin-bottom: 8px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tips-list li {
    font-size: 13px;
    color: var(--c-text-sub);
    padding-left: 14px;
    position: relative;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-size: 11px;
    top: 2px;
}

/* ============================================================
   搜索页 .search-hero
   ============================================================ */

.search-hero {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    padding: 32px 0 28px;
    margin: -20px -16px 24px;
}

.search-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.search-hero-count {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    margin-bottom: 0;
}

.search-hero-count strong {
    color: #fff;
}

/* 搜索页大搜索框 */
.search-hero .search-bar--big {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
}

.search-hero .search-bar--big:focus-within {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.2);
    background: #fff;
}

.search-hero .search-bar--big .search-bar-input {
    color: var(--c-text);
    background: transparent;
}

.search-hero .search-bar--big:not(:focus-within) .search-bar-input {
    color: #fff;
}

.search-hero .search-bar--big:not(:focus-within) .search-bar-input::placeholder {
    color: rgba(255,255,255,.7);
}

/* ============================================================
   空状态 .empty-tip
   ============================================================ */

.empty-tip {
    text-align: center;
    padding: 48px 20px;
    color: var(--c-text-sub);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-tip h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--c-text);
}

.empty-tip p {
    font-size: 14px;
}

/* ============================================================
   页脚 .site-footer
   ============================================================ */

.site-footer {
    background: var(--c-primary-dark);
    color: rgba(255,255,255,.75);
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 16px;
}

.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.footer-cats strong {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    margin-right: 4px;
}

.footer-cats a {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.08);
    transition: background 0.12s, color 0.12s;
}

.footer-cats a:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.6;
}

.footer-copy {
    font-size: 12px;
    opacity: 0.5;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   移动端菜单状态
   ============================================================ */

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .top-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 2px solid var(--c-border);
        padding: 12px 16px;
        gap: 4px;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        z-index: 99;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .menu-open .top-nav {
        display: flex;
    }

    .top-nav-link {
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
        width: 100%;
    }

    .search-bar {
        display: none;
    }

    .topbar-inner {
        gap: 10px;
    }
}

/* ============================================================
   响应式：平板 1024以下
   ============================================================ */

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

    .movie-grid--compact {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero-side {
        border-left: none;
        border-top: 1px solid var(--c-border);
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hot-item {
        width: 50%;
        border-right: 1px solid var(--c-border);
    }

    .hot-item:nth-child(2n) {
        border-right: none;
    }

    .detail-wrap {
        grid-template-columns: 1fr 200px;
    }
}

/* ============================================================
   响应式：手机 640以下
   ============================================================ */

@media (max-width: 640px) {
    .hero-wrap {
        border-radius: 0;
        margin: 0 -16px 20px;
    }

    .hero-main {
        flex-direction: column;
        padding: 16px;
    }

    .hero-poster {
        width: 100%;
    }

    .hero-poster img {
        height: 200px;
        width: 100%;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .movie-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .poster-card {
        width: 140px;
        flex-shrink: 0;
    }

    .side-tips {
        flex: 1;
    }

    .info-fields {
        grid-template-columns: 1fr;
    }

    .cat-header {
        margin: -20px -16px 16px;
    }

    .search-hero {
        margin: -20px -16px 20px;
    }

    .hero-side {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 16px;
    }

    .movie-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-zone {
        padding: 12px 14px;
    }
}

/* 精彩影评区块 */
.review-card {
    background: var(--c-primary-light);
    border: 1px solid var(--c-primary-border);
    border-left: 4px solid var(--c-primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-text);
}

.review-section {
    margin-top: 24px;
}

/* 折叠按钮样式 */
.filter-toggle-btn { display:inline-block; margin:6px 0 4px; padding:4px 14px; font-size:12px; cursor:pointer; background:#f0f0f0; border:1px solid #ddd; border-radius:4px; color:#666; }
.filter-toggle-btn:hover { color:#333; border-color:#bbb; }