* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}
/* 电影胶片背景图案 */
body::before {
  content: '🎬 🎥 🍿 🎞️ 🎬 🎥 🍿 🎞️ 🎬 🎥 🍿 🎞️ 🎬 🎥 🍿 🎞️ 🎬 🎥 🍿 🎞️';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  font-size: 36px;
  line-height: 72px;
  color: rgba(59,130,246,.07);
  pointer-events: none;
  z-index: 0;
  word-wrap: break-word;
  overflow: hidden;
}
.container { max-width: 1000px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

.back-link { display: inline-block; margin-bottom: 20px; color: #94a3b8; text-decoration: none; font-size: 14px; }
.back-link:hover { color: #fff; }

.header { text-align: center; padding: 20px 0 30px; }
.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p { color: #94a3b8; font-size: 14px; }

/* 搜索框 */
.search-box { display: flex; gap: 12px; margin-bottom: 30px; }
.search-box input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: #3b82f6; }
.search-box button {
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}
.search-box button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,.4); }

/* 搜索结果网格 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #3b82f6, #0ea5e9);
  border-radius: 2px;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.movie-card {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
  border: 1px solid rgba(255,255,255,.1);
}
.movie-card:hover {
  transform: translateY(-5px);
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.movie-poster {
  width: 100%;
  height: 220px;
  position: relative;
  background: #1e293b;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  background: rgba(30,58,138,.9);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.movie-info { padding: 12px; }
.movie-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-meta { font-size: 12px; color: #94a3b8; }

/* 详情页 */
.detail-page { display: none; }
.detail-page.show { display: block; }
.search-page.hide { display: none; }

.detail-header {
  display: flex;
  gap: 24px;
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.1);
}
.detail-poster {
  width: 180px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-name { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-tag {
  padding: 4px 12px;
  background: rgba(59,130,246,.2);
  border-radius: 999px;
  font-size: 12px;
  color: #93c5fd;
}
.detail-blurb {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* 播放器 */
.player-section {
  background: rgba(0,0,0,.4);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.1);
}
.player-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-player video { width: 100%; height: 100%; }

/* 剧集列表 */
.episodes-section {
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}
.episode-btn {
  padding: 10px 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.episode-btn:hover { background: rgba(59,130,246,.2); border-color: rgba(59,130,246,.4); }
.episode-btn.active {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-color: #3b82f6;
  color: #fff;
}

.empty { text-align: center; color: #64748b; padding: 50px 0; font-size: 14px; }

/* 滚动条样式 */
.episodes-grid::-webkit-scrollbar { width: 6px; }
.episodes-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 3px; }
.episodes-grid::-webkit-scrollbar-thumb { background: rgba(59,130,246,.4); border-radius: 3px; }

/* 手机版响应式设计 */
@media (max-width: 768px) {
  .container { padding: 12px; }
  .header { padding: 15px 0 20px; }
  .header h1 { font-size: 22px; }

  .search-box { flex-direction: column; gap: 10px; }
  .search-box button { width: 100%; padding: 16px; font-size: 16px; }

  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .movie-poster { height: 180px; }

  .detail-header { flex-direction: column; gap: 16px; padding: 16px; }
  .detail-poster { width: 130px; height: 180px; margin: 0 auto; }
  .detail-name { font-size: 20px; text-align: center; }
  .detail-tags { justify-content: center; }

  .player-section { padding: 14px; }
  .episodes-section { padding: 14px; }
  .episodes-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
/* ================================================================
   苦海影视 · 影院身份（2026-11-07）
   ----------------------------------------------------------------
   板块个性：黑场放映厅。底色压到影院黑，只留一束琥珀色的放映光；
   海报卡像胶片框，hover 时海报发亮、边框点亮成琥珀色。
   原来铺满屏幕的 🎬 emoji 换成胶片格子条纹。
   本段纯追加覆盖，不改上面已有规则。
   ================================================================ */
:root {
  --cine-black: #0a0a0b;
  --cine-panel: #131315;
  --cine-line: rgba(224,163,62,.28);
  --cine-amber: #e0a33e;
  --cine-text: #f2ece0;
  --cine-dim: #9a938a;
}

body {
  background: var(--cine-black);
  background-image:
    radial-gradient(90% 60% at 50% -8%, rgba(224,163,62,.16) 0%, transparent 62%),
    linear-gradient(180deg, #0a0a0b 0%, #08080a 60%, #0b0a09 100%);
  color: var(--cine-text);
}
/* 胶片条纹 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(224,163,62,.045) 0 2px,
    transparent 2px 26px
  );
  pointer-events: none;
  z-index: 0;
}

.header h1 {
  font-family: "Songti SC", "SimSun", Georgia, serif;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff4dd 0%, var(--cine-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p { color: var(--cine-dim); letter-spacing: .5px; }
.back-link { color: var(--cine-dim); }
.back-link:hover { color: var(--cine-amber); }

.search-box input {
  background: #101011;
  border: 1px solid var(--cine-line);
  color: var(--cine-text);
  border-radius: 4px;
}
.search-box input::placeholder { color: #7d7770; }
.search-box input:focus { border-color: var(--cine-amber); box-shadow: 0 0 0 3px rgba(224,163,62,.14); }
.search-box button {
  background: linear-gradient(135deg, var(--cine-amber), #b8791f);
  color: #1a1206;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 1px;
}
.search-box button:hover { box-shadow: 0 0 24px rgba(224,163,62,.4); }

.section-title { color: var(--cine-text); letter-spacing: 1.5px; }
.section-title::before { background: linear-gradient(180deg, var(--cine-amber), #8a5a12); }

.movie-card {
  background: var(--cine-panel);
  border: 1px solid rgba(224,163,62,.16);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.movie-card:hover {
  border-color: rgba(224,163,62,.6);
  box-shadow: 0 16px 40px rgba(0,0,0,.7), 0 0 28px rgba(224,163,62,.22);
}
.movie-poster { border-radius: 2px; }
.movie-name { color: var(--cine-text); font-family: "Songti SC", "SimSun", serif; letter-spacing: .5px; }
.movie-meta { color: var(--cine-dim); }
.movie-status {
  background: rgba(10,10,11,.82);
  color: var(--cine-amber);
  border: 1px solid rgba(224,163,62,.4);
  border-radius: 3px;
}

.detail-page { background: transparent; }
.detail-poster { border-radius: 4px; box-shadow: 0 14px 40px rgba(0,0,0,.65); }
.detail-name {
  font-family: "Songti SC", "SimSun", serif;
  color: var(--cine-text);
  letter-spacing: 1px;
}
.detail-tag {
  background: transparent;
  border: 1px solid var(--cine-line);
  color: var(--cine-amber);
  border-radius: 3px;
}
.detail-blurb { color: #cfc7ba; line-height: 1.9; }

.player-section { background: #000; border: 1px solid rgba(224,163,62,.2); border-radius: 4px; }
.player-title { color: var(--cine-amber); letter-spacing: 1px; }
.video-player { background: #000; }

.episodes-grid::-webkit-scrollbar-thumb { background: rgba(224,163,62,.45); border-radius: 0; }
.episode-btn {
  background: #131315;
  border: 1px solid rgba(224,163,62,.18);
  color: #ded8cd;
  border-radius: 3px;
}
.episode-btn:hover { border-color: var(--cine-amber); color: var(--cine-amber); }
.episode-btn.active { background: rgba(224,163,62,.16); border-color: var(--cine-amber); color: #fff3dd; }

.empty { color: var(--cine-dim); }
