/* 光影集 - 仿参考站版式（深色为主，支持浅色主题）
   布局：左侧 200px 固定导航 / 顶部 64px 搜索 / 右侧内容区
   所有代码为原创实现，未引用参考站的图片、字体与样式表 */

:root,
html[data-theme="dark"] {
  --bg: #1a1c1f;
  --side: #16161a;
  --panel: #212429;
  --panel-2: #2a2d33;
  --text: #e1e3e5;
  --muted: #8a9099;
  --line: #2a2d33;
  --field: rgba(255, 255, 255, .08);
  --accent: #ff3b22;
  --accent-2: #ff7a2f;
  --accent-soft: rgba(255, 59, 34, .13);
  --shadow: 0 18px 40px rgba(0, 0, 0, .38);
  --glass: rgba(20, 21, 25, .72);
}

html[data-theme="light"] {
  --bg: #f7f8f9;
  --side: #ffffff;
  --panel: #ffffff;
  --panel-2: #e9ecef;
  --text: #282828;
  --muted: #7a7f87;
  --line: #e5e8ec;
  --field: #e9ecef;
  --accent: #e50914;
  --accent-2: #ff711f;
  --accent-soft: rgba(229, 9, 20, .09);
  --shadow: 0 14px 34px rgba(20, 24, 30, .12);
  --glass: rgba(255, 255, 255, .86);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
ul, li { list-style: none; }
img { display: block; border: 0; }
.icon { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
::selection { background: var(--accent); color: #fff; }

/* ---------------- 左侧固定导航 ---------------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 200px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  background: var(--side);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 14px rgba(255, 59, 34, .3);
}
.brand-mark .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: var(--accent); line-height: 1.1; }
.brand-name small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .32em; color: var(--muted); }
.nav { flex: 1; overflow-y: auto; padding-top: 8px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 14px; margin-bottom: 2px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition: background .18s, color .18s;
}
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover { color: var(--text); background: var(--panel-2); }
.nav-item.active {
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(90deg, var(--panel-2), transparent);
}
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent-2), var(--accent));
}
.nav-badge {
  margin-left: auto; padding: 1px 6px; border-radius: 8px;
  font-size: 10px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.nav-hr { height: 1px; margin: 10px 8px; background: var(--line); }
.side-foot { padding: 14px 8px 18px; border-top: 1px solid var(--line); flex: none; }
.side-theme { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-size: 13px; color: var(--muted); }
.side-theme:hover { color: var(--accent); }
.side-tip { margin-top: 6px; font-size: 11px; color: var(--muted); opacity: .65; line-height: 1.5; }

/* ---------------- 顶部搜索栏 ---------------- */
.topbar {
  position: fixed; top: 0; left: 200px; right: 0;
  height: 64px; z-index: 25;
  background: var(--bg);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 40px; }
.search-wrap { position: relative; flex: 1; max-width: 580px; }
.searchbar {
  display: flex; align-items: center; height: 40px;
  border-radius: 8px; background: var(--field);
  transition: background .2s, box-shadow .2s;
}
.searchbar:hover, .searchbar:focus-within { background: var(--panel-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.search-input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-input::placeholder { color: var(--muted); opacity: .85; }
.search-btn { display: grid; place-items: center; width: 46px; height: 100%; color: var(--muted); }
.search-btn:hover { color: var(--accent); }
.search-pop {
  display: none; position: absolute; top: 48px; left: 0; right: 0; z-index: 40;
  padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow);
}
.search-wrap.open .search-pop { display: block; }
.pop-title { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.pop-title .icon { width: 15px; height: 15px; color: var(--accent); }
.pop-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag { padding: 5px 12px; border-radius: 20px; font-size: 12px; color: var(--muted); background: var(--panel-2); }
.hot-tag:hover, .hot-tag.hot { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.top-btn {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border-radius: 8px; font-size: 13px; color: var(--muted);
  transition: color .18s, background .18s;
}
.top-btn:hover { color: var(--accent); background: var(--field); }
.top-btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.drop { position: relative; }
.drop-panel {
  display: none; position: absolute; top: 44px; right: 0; z-index: 45;
  width: 290px; padding: 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow);
}
.drop.open .drop-panel { display: block; }
.drop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.drop-head button { font-size: 12px; color: var(--muted); }
.drop-head button:hover { color: var(--accent); }
.history-list { max-height: 300px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.history-item .idx { width: 18px; color: var(--accent); font-weight: 700; }
.history-item a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item a:hover { color: var(--accent); }
.history-item .note { font-size: 11px; color: var(--muted); }
.history-empty { padding: 18px 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------- 主内容容器 ---------------- */
.main { margin-left: 200px; padding: 88px 40px 30px; min-height: calc(100vh - 180px); }

/* ---------------- 焦点轮播 ---------------- */
.hero {
  position: relative; height: clamp(260px, 28vw, 420px);
  margin-bottom: 34px; border-radius: 10px; overflow: hidden;
  background: var(--panel); box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cover-1 { background: radial-gradient(circle at 72% 30%, #7a4d2d 0%, transparent 55%), linear-gradient(120deg, #17212e, #3e2c22 55%, #8a6034); }
.cover-2 { background: radial-gradient(circle at 20% 20%, #365a7d 0%, transparent 55%), linear-gradient(120deg, #0d1b2a, #1d3a52 55%, #47708c); }
.cover-3 { background: radial-gradient(circle at 70% 70%, #6b3560 0%, transparent 55%), linear-gradient(120deg, #1a1330, #40234a 55%, #7a3f6e); }
.cover-4 { background: radial-gradient(circle at 30% 60%, #2f6b5e 0%, transparent 55%), linear-gradient(120deg, #0f2622, #1d4a41 55%, #3d8a76); }
.cover-5 { background: radial-gradient(circle at 75% 35%, #7d3b3b 0%, transparent 55%), linear-gradient(120deg, #251316, #54272b 55%, #944b48); }
.cover-6 { background: radial-gradient(circle at 25% 30%, #4b4a7d 0%, transparent 55%), linear-gradient(120deg, #15162b, #2b2c58 55%, #575a9c); }
.cover-7 { background: radial-gradient(circle at 70% 65%, #7a632c 0%, transparent 55%), linear-gradient(120deg, #1f1c10, #4b4020 55%, #8a7538); }
.cover-8 { background: radial-gradient(circle at 30% 35%, #2d5d7d 0%, transparent 55%), linear-gradient(120deg, #101d26, #22465a 55%, #3f7f96); }
.hero-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 46px);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .64) 38%, rgba(8, 9, 12, .08) 72%),
              linear-gradient(0deg, rgba(8, 9, 12, .58), transparent 55%);
}
.hero-text { position: absolute; left: 56px; bottom: 56px; z-index: 3; max-width: 46%; color: #fff; }
.hero-tagline { display: inline-block; padding: 4px 11px; margin-bottom: 12px; border-radius: 20px; font-size: 12px; letter-spacing: .08em; color: #fff; background: rgba(0, 0, 0, .36); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(4px); }
.hero-title { font-size: clamp(26px, 3vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
.hero-desc { margin-top: 10px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 20px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: transform .18s, box-shadow .18s, opacity .18s; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px rgba(255, 59, 34, .3); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.hero-side { position: absolute; right: 56px; bottom: 26px; z-index: 5; width: 292px; }
.hero-mini { display: none; }
.hero-mini.active {
  display: flex; align-items: center; gap: 15px; padding: 13px;
  border-radius: 14px; background: rgba(14, 16, 21, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
  animation: fadeUp .45s ease both;
}
.mini-thumb {
  width: 80px; height: 106px; flex: none; border-radius: 9px;
  background-color: #2a2d33; background-size: cover; background-position: center;
  background-image: linear-gradient(150deg, #3a2038, #6b3152 55%, #b06a5f);
  border: 1px solid rgba(255, 255, 255, .12);
}
.mini-body { min-width: 0; color: #fff; }
.mini-label { display: block; font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .58); }
.mini-label i { margin-left: 6px; font-style: normal; color: #ffb49f; }
.mini-title { display: block; margin-top: 6px; font-size: 18.5px; font-weight: 700; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-note { display: block; margin-top: 5px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.hero-arrow { position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .34); border: 1px solid rgba(255, 255, 255, .22); transition: background .18s, transform .18s; }
.hero-arrow:hover { background: var(--accent); transform: scale(1.08); }
.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }
.hero-dots { position: absolute; left: 56px; bottom: 18px; z-index: 6; display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: width .25s, background .25s; }
.dot.active { width: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- 内容模块 / 海报网格 ---------------- */
.block { margin-bottom: 36px; }
.block-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.block-title { display: flex; align-items: baseline; gap: 8px; font-size: 27px; font-weight: 800; line-height: 1.2; }
.block-emoji { font-size: 20px; }
.block-en { font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--muted); opacity: .35; text-transform: uppercase; }
.block-tabs { display: flex; gap: 6px; }
.tab { padding: 4px 12px; border-radius: 20px; font-size: 12px; color: var(--muted); background: var(--panel-2); }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; color: var(--muted); }
.more:hover { color: var(--accent); }
.more .icon { width: 13px; height: 13px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.card { display: block; min-width: 0; }
.card-cover { position: relative; width: 100%; padding-top: 140%; border-radius: 8px; overflow: hidden; background: var(--panel-2); transition: transform .22s, box-shadow .22s; }
.card:hover .card-cover { transform: translateY(-4px); box-shadow: 0 18px 26px -12px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent); }
.poster { position: absolute; inset: 0; }
.p-img { width: 100%; height: 100%; object-fit: cover; }
.ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; color: #fff; text-align: center; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.ph-ring { position: absolute; width: 150%; aspect-ratio: 1; top: -26%; left: -25%; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.ph-ring::after { content: ""; position: absolute; inset: 14%; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.ph-text { position: relative; z-index: 1; font-size: clamp(17px, 1.6vw, 25px); font-weight: 700; letter-spacing: .08em; text-indent: .08em; opacity: .94; text-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ph-line { position: relative; z-index: 1; width: 30px; height: 2px; margin: 12px 0 9px; background: rgba(255, 255, 255, .7); }
.ph-en { position: relative; z-index: 1; font-size: 10px; letter-spacing: .28em; opacity: .8; }
.ph-foot { position: absolute; bottom: 10px; z-index: 1; font-size: 9px; letter-spacing: .16em; opacity: .55; }
.ph-1 { background: linear-gradient(150deg, #20304a, #39577d 55%, #7d5c6c); }
.ph-2 { background: linear-gradient(150deg, #3a2038, #6b3152 55%, #b06a5f); }
.ph-3 { background: linear-gradient(150deg, #123a3b, #246a63 55%, #6fa58a); }
.ph-4 { background: linear-gradient(150deg, #33251a, #6b4a27 55%, #b58b4c); }
.ph-5 { background: linear-gradient(150deg, #1b2440, #333f78 55%, #6f78b5); }
.ph-6 { background: linear-gradient(150deg, #3b1d21, #753336 55%, #c07163); }
.ph-7 { background: linear-gradient(150deg, #1d3230, #356052 55%, #87a779); }
.ph-8 { background: linear-gradient(150deg, #262135, #4b3c69 55%, #8f78ad); }
.card-note { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 5px 9px; text-align: center; font-size: 12px; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.card-cover .ph-foot { display: none; }
.card-play { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; color: #fff; background: rgba(255, 59, 34, .9); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s; }
.card-play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-title { margin-top: 10px; overflow: hidden; text-align: center; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.card:hover .card-title { color: var(--accent); }
.card-sub { margin-top: 2px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------- 热榜 ---------------- */
.rank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rank-col { padding: 16px 16px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.rank-title { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-num { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--panel-2); }
.rank-num.n1, .rank-num.n2, .rank-num.n3 { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.rank-info { flex: 1; min-width: 0; }
.rank-info b { display: block; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.rank-info small { font-size: 11px; color: var(--muted); }
.rank-item .icon { width: 13px; height: 13px; color: var(--muted); }
.rank-item:hover .rank-info b { color: var(--accent); }

/* ---------------- 列表页 ---------------- */
.page-head { margin-bottom: 22px; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.page-title { font-size: 28px; font-weight: 800; }
.page-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.filters { padding: 14px 18px; margin-bottom: 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.filter-row { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; }
.filter-label { width: 40px; flex: none; padding-top: 4px; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 4px 12px; border-radius: 20px; font-size: 12px; color: var(--muted); }
.chip:hover { color: var(--text); background: var(--panel-2); }
.chip.active { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.result-bar { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); border-radius: 10px; background: var(--panel); }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.page-num { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; color: var(--muted); background: var(--panel); }
.page-num:hover { color: var(--text); background: var(--panel-2); }
.page-num.active { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.page-info { margin-left: 8px; font-size: 12px; color: var(--muted); }

/* ---------------- 详情页 ---------------- */
.detail-card { display: flex; gap: 30px; padding: 26px; margin: 14px 0 26px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(125deg,rgba(255,59,34,.06),transparent 46%), var(--panel); box-shadow: 0 20px 48px rgba(0, 0, 0, .2); }
.detail-poster { position: relative; width: 200px; flex: none; padding-top: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 36px rgba(0, 0, 0, .38); }
.detail-poster .poster { border-radius: 10px; }
.detail-info { flex: 1; min-width: 0; }
.detail-title { font-size: 30px; font-weight: 800; line-height: 1.3; }
.detail-score { display: inline-flex; align-items: baseline; gap: 4px; margin-left: 12px; font-size: 20px; font-weight: 800; color: var(--accent); }
.detail-score small { font-size: 11px; font-weight: 500; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { padding: 3px 10px; border-radius: 20px; font-size: 12px; color: var(--muted); background: var(--panel-2); }
.detail-extra { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-top: 13px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.detail-extra > span { display: flex; gap: 7px; min-width: 0; }
.detail-extra em { flex: none; font-style: normal; color: var(--dim); }
.detail-extra .actors { flex-basis: 100%; }
.detail-desc { margin-top: 16px; max-width: 760px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.resume-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 11px 14px; border: 1px solid rgba(255, 59, 34, .22); border-radius: 10px; background: rgba(255, 59, 34, .07); }
.resume-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(255, 59, 34, .6); }
.resume-text { flex: 1; min-width: 150px; }
.resume-text strong { display: block; font-size: 13px; font-weight: 600; }
.resume-text small { display: block; font-size: 11.5px; color: var(--muted); }
.resume-go { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.resume-go:hover { filter: brightness(1.08); }
.resume-clear { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.resume-clear:hover { color: var(--accent); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-plain { color: var(--text); background: var(--panel-2); }
.btn-plain:hover { color: var(--accent); }
.ep-block { margin-bottom: 26px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }
.ep-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ep-head h2 { font-size: 19px; font-weight: 800; }
.ep-head span { font-size: 12px; color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ep-item { display: grid; place-items: center; height: 42px; border-radius: 9px; font-size: 13px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); transition: color .18s, background .18s, transform .18s; }
.ep-item:hover { transform: translateY(-1px); border-color: var(--accent); }
.ep-item:hover, .ep-item.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
/* 播放弹层：沉浸式影院模式，背景虚化避免与页面内容互相干扰 */
.player-mask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6, 7, 9, .86); backdrop-filter: blur(12px) saturate(.8); -webkit-backdrop-filter: blur(12px) saturate(.8); animation: gyFade .2s ease; }
@keyframes gyFade { from { opacity: 0; } to { opacity: 1; } }
.player-box { position: relative; display: flex; flex-direction: column; width: min(1080px, 100%); max-height: calc(100vh - 48px); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; overflow: hidden; background: #08090c; box-shadow: 0 36px 100px rgba(0, 0, 0, .72); animation: gyRise .24s ease; }
@keyframes gyRise { from { opacity: .5; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 64px 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(180deg, #191d24, #111318); font-size: 13px; }
.player-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; letter-spacing: .01em; }
.player-name::before { content: ''; display: inline-block; width: 4px; height: 14px; margin-right: 10px; border-radius: 3px; vertical-align: -2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.player-bar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.player-auto { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px; font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .03); cursor: pointer; white-space: nowrap; }
.player-auto:hover { color: var(--text); }
.player-auto input { width: 13px; height: 13px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.player-close { position: absolute; top: 10px; right: 14px; z-index: 3; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; color: #fff; font-size: 22px; line-height: 1; background: rgba(255, 255, 255, .07); transition: background .18s, transform .18s, border-color .18s; }
.player-close:hover { background: var(--accent); border-color: transparent; transform: rotate(90deg); }
.player-screen { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 160px); overflow: hidden; background: #000; color: #fff; }
.player-screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-tip { padding: 36px; text-align: center; line-height: 2; }
.player-tip strong { display: block; font-size: 17px; }
.player-tip span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.player-status { padding: 28px; text-align: center; line-height: 1.9; }
.player-status strong { display: block; font-size: 16px; }
.player-status span { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.player-status.error strong { color: #ff8b7a; }
@media (max-width: 700px) {
  .player-mask { padding: 10px; }
  .player-box { width: 100%; max-height: calc(100vh - 20px); border-radius: 12px; }
  .player-bar { min-height: 46px; padding: 0 52px 0 12px; font-size: 12px; }
  .player-auto { padding: 4px 8px; gap: 4px; }
  .player-auto span { display: none; }
  .player-screen { max-height: none; }
  .resume-wrap { gap: 8px; }
  .ep-block { padding: 14px; }
}

/* ---------------- 页脚 / 悬浮工具 / 提示 ---------------- */
.footer { margin-left: 200px; padding: 0 40px 40px; }
.friend-links { padding: 18px 0; border-top: 1px solid var(--line); }
.friend-links h3 { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.friend-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; color: var(--muted); }
.friend-tags a:hover, .foot-links a:hover { color: var(--accent); }
.footer-content { display: flex; gap: 30px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.foot-copy { font-size: 12px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.foot-notice { margin-top: 4px; opacity: .65; }
.float-tools { position: fixed; right: 22px; bottom: 26px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.float-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.float-btn:hover { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.toast { position: fixed; left: 50%; bottom: 42px; z-index: 100; padding: 10px 20px; border-radius: 24px; color: #fff; font-size: 13px; background: rgba(20, 21, 25, .92); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1300px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .topbar-inner { padding: 0 24px; }
  .main { padding: 88px 24px 30px; }
  .footer { padding: 0 24px 34px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-side { right: 40px; bottom: 20px; width: 248px; }
  .mini-thumb { width: 66px; height: 88px; }
  .hero-text { max-width: 55%; }
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: relative; width: 100%; height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 54px; padding: 0 16px; }
  .nav { display: flex; gap: 4px; padding: 0 12px 10px; overflow-x: auto; }
  .nav-item { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .nav-item.active::before { display: none; }
  .nav-hr, .side-foot { display: none; }
  .topbar { position: relative; left: 0; height: auto; }
  .topbar-inner { height: auto; padding: 0 16px 14px; }
  .search-wrap { max-width: none; }
  .main { margin-left: 0; padding: 20px 16px 30px; }
  .footer { margin-left: 0; padding: 0 16px 30px; }
  .hero { height: 260px; }
  .hero-arrow { display: none; }
  .hero-side { display: none; }
  .hero-text { left: 24px; bottom: 44px; max-width: 70%; }
  .hero-dots { left: 24px; }
  .block-title { font-size: 23px; }
  .block-tabs { display: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .rank-grid { grid-template-columns: 1fr; }
  .top-btn span { display: none; }
  .top-btn { padding: 0 9px; }
  .hero { height: 220px; margin-bottom: 24px; }
  .hero-arrow { display: none; }
  .hero-text { left: 16px; bottom: 40px; max-width: 82%; }
  .hero-tagline { margin-bottom: 6px; font-size: 10px; }
  .hero-title { font-size: 24px; }
  .hero-desc { display: none; }
  .hero-btns { margin-top: 12px; }
  .btn { height: 32px; padding: 0 14px; font-size: 12px; }
  .hero-dots { left: 16px; bottom: 12px; }
  .block-title { font-size: 20px; }
  .block-en { font-size: 12px; }
  .card-title { font-size: 12px; }
  .card-note { font-size: 10px; padding-bottom: 6px; }
  .filters { padding: 10px 12px; }
  .filter-row { gap: 8px; }
  .filter-label { width: 34px; font-size: 12px; }
  .detail-card { flex-direction: column; gap: 18px; padding: 16px; }
  .detail-poster { width: 140px; padding-top: 196px; }
  .detail-title { font-size: 23px; }
  .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-content { flex-direction: column; gap: 16px; }
  .float-tools { right: 12px; bottom: 14px; }
}
