/* === Container === */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ============================================================
   1905电影网 - 全站样式
   1:1 像素级还原 1905.com 设计风格
   ============================================================ */

/* ==================== CSS 变量 / 色彩体系 ==================== */
:root {
  /* 品牌主色 */
  --red-primary: #c62f2f;
  --red-dark: #a61c1c;
  --red-light: #e64a4a;

  /* 中性色 */
  --white: #ffffff;
  --bg-gray: #f5f5f5;
  --bg-light: #fafafa;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;

  /* 文字色 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-dark: #222222;
  --text-link: #333333;

  /* 功能色 */
  --orange-tag: #ff6d00;
  --blue-tag: #2196f3;
  --green-tag: #4caf50;
  --gold-star: #ffb400;
  --vip-gold: #e8b86d;
  --score-bg: #ffb400;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* 字体 */
  --font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  /* 尺寸 */
  --header-height: 64px;
  --nav-height: 44px;
  --content-width: 1200px;
  --card-width: 218px;
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-gray);
  line-height: 1.6;
  min-width: 1200px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul, ol {
  list-style: none;
}

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

input, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

/* ==================== 顶部通栏 ==================== */
.top-bar {
  background: #222;
  color: #ccc;
  font-size: 12px;
  height: 32px;
  line-height: 32px;
}

.top-bar-inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a {
  color: #ccc;
  margin-right: 16px;
}

.top-bar-left a:hover {
  color: var(--white);
}

.top-bar-right a {
  color: #ccc;
  margin-left: 16px;
}

.top-bar-right a:hover {
  color: var(--white);
}

.top-bar-right .vip-link {
  color: var(--vip-gold);
}

/* ==================== Header ==================== */
.header {
  background: var(--white);
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  flex-shrink: 0;
  margin-right: 30px;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--red-primary);
}

.logo-img {
  height: 40px;
  margin-right: 8px;
}

.logo-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
  line-height: 1;
}

.logo-main {
  display: flex;
  flex-direction: column;
}

.logo-main .brand {
  font-size: 26px;
  font-weight: bold;
  color: var(--red-primary);
  line-height: 1;
}

.logo-main .subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* 平台标识 */
.platform-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}

.platform-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: bold;
  white-space: nowrap;
}

.badge-tencent { background: #12b7f5; color: #fff; }
.badge-youku { background: #00a0e9; color: #fff; }
.badge-kumiao { background: #ff6700; color: #fff; }
.badge-iqiyi { background: #00be06; color: #fff; }

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  flex: 0 0 320px;
}

.search-box input {
  flex: 1;
  height: 36px;
  border: 2px solid var(--red-primary);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
}

.search-box input::placeholder {
  color: #ccc;
}

.search-box button {
  height: 36px;
  width: 60px;
  background: var(--red-primary);
  color: var(--white);
  font-size: 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* 用户操作 */
.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
}

.user-actions a {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.user-actions a:hover {
  color: var(--red-primary);
}

.user-actions .btn-vip {
  background: linear-gradient(135deg, #e8b86d, #d4a550);
  color: #4a3000;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 12px;
}

/* ==================== 主导航 ==================== */
.main-nav {
  background: var(--red-primary);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav-inner {
  width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(0,0,0,0.15);
  color: var(--white);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 2px 2px 0 0;
}

.main-nav .nav-icon {
  margin-right: 4px;
  font-size: 16px;
}

/* ==================== 轮播 Banner ==================== */
.banner-section {
  width: var(--content-width);
  margin: 20px auto 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.banner-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide .banner-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
}

.banner-slide .banner-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.banner-slide .banner-desc {
  font-size: 14px;
  opacity: 0.9;
  max-width: 600px;
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.banner-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* 轮播箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  border: none;
}

.banner-arrow:hover {
  background: rgba(0,0,0,0.6);
}

.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* 即将上映标签 */
.banner-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-tag {
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.banner-tag.coming {
  background: var(--orange-tag);
  color: var(--white);
}

.banner-tag.hot {
  background: var(--red-primary);
  color: var(--white);
}

/* 敬请期待板块 */
.coming-soon {
  width: var(--content-width);
  margin: 16px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.coming-soon-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--red-primary);
  white-space: nowrap;
}

.coming-soon-list {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.coming-soon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.coming-soon-item .date {
  color: var(--red-primary);
  font-weight: bold;
}

/* ==================== 内容区通用样式 ==================== */
.content-section {
  width: var(--content-width);
  margin: 24px auto 0;
}

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

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--red-primary);
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.section-more:hover {
  color: var(--red-primary);
}

/* ==================== 卡片网格 ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ==================== 影片卡片 ==================== */
.movie-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* 卡片封面 */
.movie-card .card-poster {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 比例 */
  overflow: hidden;
  background: linear-gradient(135deg, #d0d0d0, #a0a0a0);
}

.movie-card .card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.movie-card:hover .card-poster img {
  transform: scale(1.08);
}

/* 海报上的标签 */
.poster-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--white);
  font-weight: bold;
  z-index: 2;
}

.poster-tag.quality { background: var(--blue-tag); }
.poster-tag.vip { background: linear-gradient(135deg, #e8b86d, #c9953a); color: #4a3000; }
.poster-tag.score { background: var(--score-bg); color: #fff; }
.poster-tag.episode { background: var(--red-primary); }
.poster-tag.new { background: var(--green-tag); }

/* 评分角标 */
.poster-score {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 13px;
  font-weight: bold;
  color: var(--gold-star);
  z-index: 2;
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 3px;
}

/* 播放按钮覆盖层 */
.poster-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}

.movie-card:hover .poster-play-overlay {
  opacity: 1;
}

.poster-play-overlay .play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red-primary);
}

/* 卡片信息区 */
.movie-card .card-info {
  padding: 10px 12px 12px;
}

.movie-card .card-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.movie-card .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.movie-card .card-meta .type-tag {
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  color: var(--white);
}

.movie-card .card-meta .type-tag.movie { background: var(--blue-tag); }
.movie-card .card-meta .type-tag.tv { background: var(--red-primary); }
.movie-card .card-meta .type-tag.anime { background: #9c27b0; }
.movie-card .card-meta .type-tag.variety { background: #ff9800; }
.movie-card .card-meta .type-tag.doc { background: var(--green-tag); }

.movie-card .card-cast {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

/* ==================== 底部四大分类 ==================== */
.bottom-categories {
  width: var(--content-width);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-block {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.category-block-header .cat-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-block-header .cat-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--red-primary);
  border-radius: 2px;
}

.category-block-header .cat-more {
  font-size: 12px;
  color: var(--text-muted);
}

.category-block-list {
  padding: 8px 16px 12px;
}

.category-block-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
}

.category-block-list li:last-child {
  border-bottom: none;
}

.category-block-list li a {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.category-block-list li a:hover {
  color: var(--red-primary);
}

.category-block-list li a .item-rank {
  color: var(--red-primary);
  font-weight: bold;
  font-size: 12px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #2a2a2a;
  color: #999;
  margin-top: 40px;
  padding: 30px 0 20px;
}

.footer-inner {
  width: var(--content-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.footer-links a {
  color: #bbb;
}

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

.footer-info {
  font-size: 12px;
  line-height: 2;
  color: #888;
}

.footer-info a {
  color: #aaa;
}

.footer-info a:hover {
  color: var(--white);
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.pagination a:hover {
  color: var(--red-primary);
  border-color: var(--red-primary);
}

.pagination .active {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* ==================== 列表页 ==================== */
.list-page-header {
  width: var(--content-width);
  margin: 20px auto 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.list-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.list-breadcrumb a {
  color: var(--text-secondary);
}

.list-breadcrumb span {
  margin: 0 6px;
}

.list-breadcrumb .current {
  color: var(--text-primary);
  font-weight: bold;
}

/* 分类筛选标签 */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-gray);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.filter-tag:hover {
  color: var(--red-primary);
  border-color: var(--red-light);
}

.filter-tag.active {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

.list-content {
  width: var(--content-width);
  margin: 20px auto 0;
}

/* ==================== 详情页 ==================== */
.detail-container {
  width: var(--content-width);
  margin: 20px auto 0;
}

.detail-top {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 30px;
  box-shadow: var(--shadow-md);
}

.detail-poster {
  flex-shrink: 0;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.detail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-tags span {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  background: var(--bg-gray);
  color: var(--text-secondary);
}

.detail-tags span.type {
  background: var(--red-primary);
  color: var(--white);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.detail-rating .score-num {
  font-size: 32px;
  font-weight: bold;
  color: var(--gold-star);
}

.detail-rating .score-text {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-meta {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 2;
}

.detail-meta strong {
  color: var(--text-primary);
  margin-right: 8px;
}

.detail-desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: var(--red-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-play:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--bg-gray);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

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

/* 详情下方推荐 */
.detail-recommend {
  margin-top: 24px;
}

/* ==================== 播放页 ==================== */
.play-container {
  width: var(--content-width);
  margin: 20px auto 0;
}

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

.play-video-area {
  flex: 1;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-player .player-placeholder {
  text-align: center;
  color: #555;
}

.video-player .player-placeholder .big-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s;
}

.video-player .player-placeholder .big-play:hover {
  background: var(--red-primary);
}

.video-player .player-placeholder p {
  font-size: 14px;
  color: #888;
}

/* 播放器控制栏 */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  color: var(--white);
  font-size: 13px;
}

.player-controls .ctrl-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.player-controls .progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-controls .progress-fill {
  height: 100%;
  background: var(--red-primary);
  border-radius: 2px;
  width: 35%;
}

/* 播放页侧栏 - 剧集列表 */
.play-sidebar {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.play-sidebar-header {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.episode-list {
  max-height: 520px;
  overflow-y: auto;
  padding: 12px;
}

.episode-list .episode-group {
  margin-bottom: 12px;
}

.episode-list .episode-group-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: bold;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.episode-item {
  padding: 6px 4px;
  text-align: center;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.episode-item:hover {
  color: var(--red-primary);
  border-color: var(--red-light);
}

.episode-item.active {
  background: var(--red-primary);
  color: var(--white);
  border-color: var(--red-primary);
}

/* 播放页影片信息 */
.play-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.play-info h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.play-info-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* ==================== 响应式 / 移动端 ==================== */
@media (max-width: 1240px) {
  :root {
    --content-width: 960px;
    --card-width: 180px;
  }
  body { min-width: 960px; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-categories { grid-template-columns: repeat(2, 1fr); }
  .play-sidebar { width: 280px; }
}

@media (max-width: 980px) {
  :root { --content-width: 100%; }
  body { min-width: 100%; }
  .header-inner,
  .main-nav-inner,
  .banner-section,
  .content-section,
  .coming-soon,
  .bottom-categories,
  .list-page-header,
  .list-content,
  .detail-container,
  .play-container,
  .footer-inner {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-categories { grid-template-columns: repeat(2, 1fr); }
  .detail-top { flex-direction: column; }
  .detail-poster { width: 200px; margin: 0 auto; }
  .play-main { flex-direction: column; }
  .play-sidebar { width: 100%; }
  .search-box { flex: 0 0 200px; }
  .platform-badges { display: none; }
  .banner-carousel { height: 280px; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bottom-categories { grid-template-columns: 1fr; }
  .main-nav a { padding: 0 10px; font-size: 13px; }
  .top-bar { display: none; }
  .search-box { flex: 0 0 140px; }
  .user-actions { gap: 8px; margin-left: 8px; }
  .user-actions a { font-size: 11px; }
  .banner-carousel { height: 200px; }
  .banner-slide .banner-title { font-size: 18px; }
  .banner-slide .banner-desc { font-size: 12px; }
  .coming-soon { flex-direction: column; }
  .detail-top { padding: 16px; }
  .detail-title { font-size: 20px; }
}

/* ==================== 播放页补充样式 ==================== */
.play-page-wrapper {
  width: var(--content-width);
  margin: 0 auto;
  padding: 20px 0;
}

.play-guess-like {
  width: var(--content-width);
  margin: 24px auto 0;
}

/* ==================== 通用类型标签 ==================== */
.type-tag {
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  color: var(--white);
  background: var(--blue-tag);
}

.type-tag.movie { background: var(--blue-tag); }
.type-tag.tv { background: var(--red-primary); }
.type-tag.anime { background: #9c27b0; }
.type-tag.variety { background: #ff9800; }
.type-tag.doc { background: var(--green-tag); }
