/* ============================================
   1905风格影视网站模板 - 统一样式表
   主色调：白色 + 品牌红 + 深灰
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #c12c2c;
  --primary-dark: #a02020;
  --primary-light: #e84545;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --bg-dark: #1a1a1a;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --header-height: 64px;
  --max-width: 1280px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input {
  outline: none;
  border: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header 顶部导航
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.header-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
  background: rgba(193, 44, 44, 0.06);
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Header Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 6px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.header-search:focus-within {
  border-color: var(--primary);
  background: var(--bg-white);
}

.header-search input {
  background: transparent;
  width: 140px;
  font-size: 14px;
  color: var(--text);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search .search-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.btn-login {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: #fff;
}

.btn-vip {
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #5a3e1b;
}

.btn-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-slide .slide-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-slide .slide-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-slide .slide-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-slide .slide-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-slide .slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.hero-slide .slide-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Banner Controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dots span.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Section Title
   ============================================ */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title .more {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-title .more:hover {
  color: var(--primary);
}

/* ============================================
   Movie Card 电影卡片
   ============================================ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.movie-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.movie-card .card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e0e0e0;
}

.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 .card-poster .poster-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  color: #fff;
}

.tag-vip {
  background: linear-gradient(135deg, var(--gold), #c9942c);
}

.tag-hot {
  background: var(--primary);
}

.tag-new {
  background: #4caf50;
}

.movie-card .card-poster .poster-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold-light);
  font-weight: 600;
}

.movie-card .card-poster .poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.movie-card:hover .poster-play {
  opacity: 1;
  pointer-events: auto;
}

.poster-play .play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: var(--transition);
}

.poster-play .play-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.movie-card .card-info {
  padding: 12px 14px;
}

.movie-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card .card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}

.movie-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================
   Horizontal Scroll 横向滚动区域
   ============================================ */
.scroll-section {
  position: relative;
}

.scroll-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.scroll-wrapper .movie-card {
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
}

.scroll-arrow:hover {
  background: var(--primary);
  color: #fff;
}

.scroll-arrow.prev {
  left: -12px;
}

.scroll-arrow.next {
  right: -12px;
}

/* ============================================
   Quick Nav 快捷分类导航
   ============================================ */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quick-nav-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.quick-nav-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-nav-item .nav-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.qn-red {
  background: rgba(193, 44, 44, 0.1);
  color: var(--primary);
}
.qn-blue {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}
.qn-green {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}
.qn-orange {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.quick-nav-item .nav-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.quick-nav-item .nav-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Page Header 页面标题区
   ============================================ */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 600;
}

/* ============================================
   Filter Bar 筛选栏
   ============================================ */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.filter-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   Pagination 分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  font-size: 14px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pagination button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   Detail Page 详情页
   ============================================ */
.detail-main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 32px 0;
}

.detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  background: #e0e0e0;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-info .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-info .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.detail-info .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-info .meta-item .label {
  color: var(--text-muted);
}

.detail-info .meta-item .value {
  color: var(--text);
}

.detail-info .rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-info .rating .score {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.detail-info .rating .stars {
  color: var(--gold);
  font-size: 18px;
}

.detail-info .rating .count {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-info .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-info .tags span {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text-light);
}

.detail-info .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-play:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-white);
  color: var(--text);
  border-radius: 24px;
  font-size: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-fav:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Cast 演职员表 */
.detail-cast {
  margin-top: 40px;
}

.detail-cast h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}

.detail-cast h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.cast-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cast-item {
  text-align: center;
  cursor: pointer;
}

.cast-item .cast-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 8px;
  overflow: hidden;
  background: #e0e0e0;
}

.cast-item .cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-item .cast-name {
  font-size: 14px;
  font-weight: 500;
}

.cast-item .cast-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Related Section 相关推荐
   ============================================ */
.related-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-left: 14px;
  position: relative;
}

.related-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

/* ============================================
   VIP Page VIP信息页
   ============================================ */
.vip-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.vip-hero .vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #5a3e1b;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.vip-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.vip-hero .subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* VIP Features */
.vip-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 48px 0;
}

.vip-feature-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.vip-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.vip-feature-item .feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.fi-red {
  background: rgba(193, 44, 44, 0.1);
  color: var(--primary);
}
.fi-gold {
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold);
}
.fi-blue {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}
.fi-green {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.vip-feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.vip-feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-section {
  padding: 32px 0 48px;
}

.pricing-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf5, #fff);
}

.pricing-card .popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.pricing-card .plan-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card .plan-price {
  margin-bottom: 16px;
}

.pricing-card .plan-price .currency {
  font-size: 18px;
  color: var(--primary);
  vertical-align: top;
}

.pricing-card .plan-price .amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.pricing-card .plan-price .period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card .plan-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card .plan-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card .plan-features li::before {
  content: "✓";
  color: #4caf50;
  font-weight: 700;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  background: var(--primary);
  color: #fff;
}

.btn-plan:hover {
  background: var(--primary-dark);
}

.pricing-card.featured .btn-plan {
  background: linear-gradient(135deg, var(--gold), #c9942c);
}

.pricing-card.featured .btn-plan:hover {
  opacity: 0.9;
}

/* VIP FAQ */
.vip-faq {
  padding: 32px 0 48px;
}

.vip-faq h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item .faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

.faq-item .faq-q:hover {
  color: var(--primary);
}

.faq-item .faq-q .arrow {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-item .faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ============================================
   Breadcrumb 面包屑
   ============================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: #ccc;
}

/* ============================================
   Footer 页脚
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-col ul li {
  padding: 4px 0;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ============================================
   Ranking 排行模块
   ============================================ */

/* --- 排行区域双栏布局 --- */
.rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- 排名列表 --- */
.rank-list {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rank-list .rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.rank-list .rank-item:last-child {
  border-bottom: none;
}

.rank-list .rank-item:hover {
  background: rgba(193, 44, 44, 0.03);
}

/* 序号 */
.rank-list .rank-num {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--bg);
}

.rank-list .rank-num.top1 {
  background: linear-gradient(135deg, #f5a623, #f7c844);
  color: #fff;
  font-size: 16px;
}

.rank-list .rank-num.top2 {
  background: linear-gradient(135deg, #a0aab4, #c8d0d8);
  color: #fff;
  font-size: 15px;
}

.rank-list .rank-num.top3 {
  background: linear-gradient(135deg, #cd7f32, #e0a060);
  color: #fff;
  font-size: 14px;
}

/* 排名海报缩略图 */
.rank-list .rank-poster {
  width: 52px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}

.rank-list .rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 排名信息 */
.rank-list .rank-info {
  flex: 1;
  min-width: 0;
}

.rank-list .rank-info .rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.rank-list .rank-info .rank-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 排名右侧热度 */
.rank-list .rank-hot {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.rank-list .rank-hot .trend-up {
  color: var(--primary);
}
.rank-list .rank-hot .trend-down {
  color: #4caf50;
}
.rank-list .rank-hot .trend-same {
  color: var(--text-muted);
}

/* --- 排行Tab切换 --- */
.rank-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.rank-tabs .rank-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.rank-tabs .rank-tab:hover {
  color: var(--primary);
}

.rank-tabs .rank-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.rank-tabs .rank-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.rank-tab-content {
  display: none;
}

.rank-tab-content.active {
  display: block;
}

/* --- 热力进度条 --- */
.heat-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heat-bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.heat-bar .heat-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 0.8s ease;
}

.heat-bar-wrap .heat-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  min-width: 40px;
  text-align: right;
}

/* --- 紧凑排行卡片 --- */
.rank-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.rank-card-mini:last-child {
  border-bottom: none;
}

.rank-card-mini:hover {
  color: var(--primary);
}

.rank-card-mini .mini-num {
  width: 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

.rank-card-mini:nth-child(1) .mini-num,
.rank-card-mini:nth-child(2) .mini-num,
.rank-card-mini:nth-child(3) .mini-num {
  color: var(--primary);
}

.rank-card-mini .mini-title {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-card-mini .mini-score {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

/* --- 侧边排行卡片 --- */
.sidebar-rank {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-rank h3 {
  font-size: 16px;
  font-weight: 600;
  padding-left: 14px;
  position: relative;
  margin-bottom: 16px;
}

.sidebar-rank h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

/* --- 全宽排行大区 --- */
.rank-full-section {
  margin-top: 32px;
}

.rank-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.rank-col-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rank-col-card .rank-col-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-col-card .rank-col-header .col-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rank-col-card .rank-col-header h3 {
  font-size: 16px;
  font-weight: 600;
}

/* ============================================
   Toast 轻提示
   ============================================ */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg.toast-info {
  background: rgba(50, 50, 50, 0.92);
}

.toast-msg.toast-success {
  background: rgba(76, 175, 80, 0.92);
}

/* ============================================
   Video Player Overlay
   ============================================ */
.player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.player-overlay.active {
  background: rgba(0, 0, 0, 0.92);
  opacity: 1;
}

.player-close {
  position: fixed;
  top: 20px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
}

.player-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.player-container {
  width: 90%;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 10000;
}

.player-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-poster-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.player-big-icon {
  display: block;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  animation: pulse-play 1.5s ease-in-out infinite;
}

@keyframes pulse-play {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

.player-movie-name {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.player-quality {
  font-size: 12px;
  color: var(--primary-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.player-loading {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.player-progress-bar {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 10px;
  overflow: hidden;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.player-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.player-controls-bar {
  background: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
}

.ctrl-btn:hover {
  color: #fff;
}

.ctrl-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: -8px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}
.py-32 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.py-48 {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ============================================
   Mobile Menu Overlay
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-white);
  z-index: 1001;
  padding: 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .close-btn {
  display: block;
  margin-left: auto;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 20px;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

/* ============================================
   Responsive 响应式
   ============================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-main {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }

  .cast-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .vip-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-banner {
    height: 340px;
  }

  .hero-slide .slide-title {
    font-size: 28px;
  }

  .rank-full-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rank-row {
    gap: 16px;
  }
}

/* Small Tablet (≤768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  /* Header */
  .header-nav {
    display: none;
  }

  .header-search {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Movie Grid */
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .scroll-wrapper .movie-card {
    min-width: 150px;
    max-width: 150px;
  }

  /* Hero */
  .hero-banner {
    height: 280px;
  }

  .hero-slide .slide-title {
    font-size: 24px;
  }

  .hero-slide .slide-desc {
    font-size: 13px;
  }

  .hero-slide .slide-btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  /* Section */
  .section-title h2 {
    font-size: 17px;
  }

  /* Detail */
  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 220px;
  }

  .detail-info h1 {
    font-size: 22px;
  }

  .cast-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  /* VIP */
  .vip-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .vip-hero h1 {
    font-size: 26px;
  }

  /* Rank responsive */
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-full-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Quick Nav */
  .quick-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .movie-card .card-info {
    padding: 8px 10px;
  }

  .movie-card .card-title {
    font-size: 13px;
  }

  .hero-banner {
    height: 220px;
  }

  .hero-slide .slide-title {
    font-size: 20px;
  }

  .hero-slide .slide-desc {
    display: none;
  }

  .hero-slide .slide-tag {
    font-size: 11px;
  }

  .hero-controls {
    bottom: 12px;
    gap: 8px;
  }

  .quick-nav-item {
    padding: 14px;
    gap: 10px;
  }

  .quick-nav-item .nav-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .quick-nav-item .nav-text h4 {
    font-size: 13px;
  }

  .cast-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cast-item .cast-avatar {
    width: 60px;
    height: 60px;
  }

  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-card .plan-price .amount {
    font-size: 36px;
  }

  .filter-bar {
    padding: 12px;
    gap: 8px;
  }

  .btn-login,
  .btn-vip {
    padding: 4px 14px;
    font-size: 12px;
  }

  /* Rank responsive */
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-full-grid {
    grid-template-columns: 1fr;
  }

  .rank-tabs .rank-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ========================================
   静态编码页样式
   ======================================== */
.main-content {
  padding-top: 20px;
  min-height: 60vh;
}
.static-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.static-page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.static-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.static-page-body {
  line-height: 1.8;
  color: var(--text);
}
.static-section {
  margin-bottom: 30px;
}
.static-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}
.static-section p {
  margin-bottom: 12px;
}
.static-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-light);
}
.static-section li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .static-page { margin: 20px 10px; padding: 25px 15px; }
  .static-page-header h1 { font-size: 22px; }
  .static-section h2 { font-size: 18px; }
}