/* Play Page Custom CSS - Movie Template */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --bg-primary: #0f1419;
    --bg-secondary: #1a2027;
    --bg-card: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #b0b6be;
    --text-muted: #7d8590;
    --border: #30363d;
    --radius: 8px;
    --gold: #ffc107;
    --success: #22c55e;
    --info: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 头部 */
.header {
    background: rgba(15, 20, 25, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 6px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 13px;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* 搜索框带热搜下拉 */
.search-wrapper {
    position: relative;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    width: 200px;
    color: var(--text-primary);
    outline: none;
}

.search-box button {
    background: var(--primary);
    border: none;
    padding: 10px 18px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

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

/* 热搜下拉框 */
.hot-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 8px;
    padding: 16px;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 320px;
}

.hot-search-dropdown.show {
    display: block;
}

.hot-search-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-search-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.hot-search-item:hover {
    background: var(--bg-secondary);
}

.hot-search-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.hot-search-rank.top1 {
    background: #ff4757;
    color: white;
}

.hot-search-rank.top2 {
    background: #ff6b35;
    color: white;
}

.hot-search-rank.top3 {
    background: #ffc107;
    color: #000;
}

.hot-search-rank.normal {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.hot-search-text {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-search-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary);
}

.mobile-search {
    display: none;
    list-style: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* 主内容 */
.main {
    margin-top: 64px;
    padding-top: 30px;
}

/* 播放器卡片 */
.player-card {
    background: linear-gradient(135deg, #1a2332 0%, #1e2d42 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.player-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

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

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.play-large {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.player-tips {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-secondary);
    font-size: 14px;
}

.tip-icon {
    color: var(--gold);
}

/* 播放器下方操作栏 */
.player-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.player-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-title .badge {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.action-btn.liked {
    color: #ff4757;
    border-color: #ff4757;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* 选集播放区 - 紧跟播放器 */
.episode-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid var(--border);
}

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

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.source-tab {
    padding: 8px 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.source-tab:hover,
.source-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-btn {
    min-width: 70px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

.episode-btn:hover,
.episode-btn.active,
.episode-btn.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 推荐模块 - 导演/主演/类型推荐 */
.recommend-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    border: 1px solid var(--border);
}

.recommend-section .related-grid .pic-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-section .related-grid .pic-list > li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-section .related-grid .pic-list > li > h3.name {
    font-size: 13px;
    margin: 8px 0 0;
    line-height: 1.4;
}

.recommend-section .related-grid .pic-list > li > h3.name a {
    color: var(--text-primary);
    text-decoration: none;
}

.recommend-section .related-grid .pic-list > li > h3.name a:hover {
    color: var(--primary);
}

/* 主要内容区布局 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    min-width: 0;
}

/* 影片信息卡 */
.movie-info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.movie-info-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.movie-info-header > .movie-poster {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    flex: 0 0 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.movie-info-header > .movie-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-info-content {
    flex: 1;
    min-width: 0;
}

.movie-info-content h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.movie-rating-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.rating-big {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-score {
    font-size: 42px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.rating-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* 用户评分交互 */
.user-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.user-rating-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.user-rating-stars {
    display: flex;
    gap: 4px;
}

.user-rating-stars span {
    font-size: 24px;
    color: var(--border);
    cursor: pointer;
    transition: color 0.2s;
}

.user-rating-stars span:hover,
.user-rating-stars span.active {
    color: var(--gold);
}

.movie-meta-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
    min-width: 50px;
}

.meta-value {
    color: var(--text-primary);
}

.meta-value a {
    color: var(--primary);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-quick-desc {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.movie-quick-desc-label {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.movie-quick-desc p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tag {
    padding: 5px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* 剧情简介 - 独立区域 */
.movie-desc-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.movie-desc-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.movie-desc-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* 剧情简介 */
.movie-desc {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.movie-desc h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.movie-desc p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    min-height: 60px;
}

.movie-desc p:empty::before {
    content: "暂无简介信息";
    color: var(--text-muted);
    font-style: italic;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-title .icon {
    color: var(--primary);
}

.sidebar-card-body {
    padding: 16px 20px;
}

/* 排行榜列表 */
.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.rank-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

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

.rank-item:hover {
    color: var(--primary);
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.rank-num.top1 {
    background: linear-gradient(135deg, #ff6b35, #ff8f65);
    color: white;
}

.rank-num.top2 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.rank-num.top3 {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: white;
}

.rank-num.normal {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.rank-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-heat {
    font-size: 12px;
    color: var(--text-muted);
}

/* 本月热播榜 */
.hot-list {
    display: flex;
    flex-direction: column;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

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

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

.hot-item .num {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    width: 20px;
}

.hot-item .title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关推荐 - 专业布局 */
.related-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 50px 0 60px;
    margin-top: 30px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.related-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-title .title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.related-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.related-title .title-sub {
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

.more-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.more-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.more-link span {
    transition: transform 0.2s;
}

.more-link:hover span {
    transform: translateX(4px);
}

/* 相关影片网格容器 */
.related-grid {
    padding: 0;
    margin: 0;
}

/* 相关影片网格 - 2行6列 = 12个 */
.related-grid .pic-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 适配 {相关影片HTML} 输出的 <li> 结构 */
.related-grid .pic-list > li,
.related-grid .pic-list > .col-lg-6 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-grid .pic-img {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-grid .pic-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.related-grid .pic-img img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-grid .pic-img:hover img {
    transform: scale(1.08);
}

.related-grid .pic-img .score {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.related-grid .pic-img .tips {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.related-grid .pic-img .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 隐藏重复的标题，只保留图片上的标题 */
.related-grid .name {
    display: none;
}

/* 让图片容器有圆角底部 */
.related-grid .pic-img {
    border-radius: 12px;
}

.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* FAQ模块 */
.faq-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-card);
}

.faq-question .icon {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.open .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.open .faq-answer {
    padding: 16px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* 合作伙伴和友情链接 */
.footer-partners,
.footer-friends {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.footer-partners h4,
.footer-friends h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 12px;
}

.partner-links,
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-links a,
.friend-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}

.partner-links a:hover,
.friend-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.footer-sitemap {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
}

.footer-sitemap a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

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

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-copyright p {
    margin-bottom: 6px;
}

.copyright-en {
    font-size: 12px;
    opacity: 0.8;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式 */
@media (max-width: 1200px) {
    .related-grid .pic-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .content-layout {
        grid-template-columns: 1fr 280px;
    }

    .recommend-section .related-grid .pic-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-grid .pic-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-title .title-sub {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .search-wrapper {
        display: none;
    }

    .nav-menu.mobile-show .mobile-search {
        display: block;
        padding: 12px 16px;
        border-top: 1px solid var(--border);
    }

    .nav-menu.mobile-show .mobile-search form {
        display: flex;
        background: var(--bg-secondary);
        border-radius: 24px;
        border: 1px solid var(--border);
        overflow: hidden;
    }

    .nav-menu.mobile-show .mobile-search input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 10px 16px;
        color: var(--text-primary);
        outline: none;
        font-size: 14px;
    }

    .nav-menu.mobile-show .mobile-search button {
        background: var(--primary);
        border: none;
        padding: 10px 18px;
        color: white;
        cursor: pointer;
    }

    .menu-toggle {
        display: flex;
    }

    .movie-info-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .movie-info-header > .movie-poster {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        flex: 0 0 88px;
        margin: 0;
    }

    .movie-meta-list {
        grid-template-columns: 1fr;
    }

    .related-grid .pic-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .recommend-section .related-grid .pic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .movie-info-content h1 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .rating-score {
        font-size: 32px;
    }

    .movie-rating-bar {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .user-rating {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 12px;
        width: 100%;
    }

    .movie-quick-desc {
        margin-top: 10px;
        padding-top: 8px;
    }

    .movie-quick-desc p {
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.6;
    }

    .content-sidebar {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .player-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .related-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .related-title h2 {
        font-size: 20px;
    }

    .related-title .title-icon {
        width: 36px;
        height: 36px;
    }

    .related-grid .pic-img .title {
        font-size: 12px;
        padding: 30px 10px 10px;
    }
}

@media (max-width: 480px) {
    .movie-info-header > .movie-poster {
        width: 76px;
        min-width: 76px;
        max-width: 76px;
        flex: 0 0 76px;
    }

    .movie-info-content h1 {
        font-size: 18px;
    }

    .rating-score {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .related-grid .pic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .recommend-section .related-grid .pic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .episode-grid {
        gap: 8px;
    }

    .episode-btn {
        min-width: 60px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .related-grid .pic-img .score {
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
    }

    .related-grid .pic-img .tips {
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }

    .related-grid .pic-img .title {
        font-size: 11px;
        padding: 25px 8px 8px;
    }
}

/* 移动端导航 */
.nav-menu.mobile-show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
}

.nav-menu.mobile-show a {
    padding: 12px 16px;
}

/* 版权声明 */
.vt-template-copyright {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Sidebar news grid (extracted from inline style) */
[class~="sidebar-news-grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
