/* ================= 帆影 · 爱壹帆 1:1 复刻模板 ================= */
:root {
  --bg-pc: #090b21;        /* 电脑版底色 */
  --bg-m: #101012;         /* 移动版底色 */
  --card: #151830;
  --card-2: #1b1e3a;
  --accent: #ff743d;       /* 品牌橙（评分/热点） */
  --gold: #ffad7e;
  --text: #ffffff;
  --muted: #9aa0b5;
  --line: rgba(255,255,255,.08);
  --nav-h: 62px;
  --tabbar-h: 57px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-pc); color: var(--text); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }
/* 正文布局（真实站: .outer 左侧 200px 让位竖导航, 内容区 1247 左对齐） */
.container { max-width: min(1247px, calc(100vw - 232px)); margin-left: 200px; margin-right: auto; padding: 0 16px; }

/* ---------------- 顶部导航（真实站: fixed 透明悬浮, 内容宽1275居中, 链接13px） ---------------- */
.top-nav { height: var(--nav-h); position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: linear-gradient(to bottom, rgba(9,11,33,.55), rgba(9,11,33,0)); transition: background .25s; }
.top-nav.solid { background: rgba(10,12,32,.97); border-bottom: 1px solid var(--line); }
body:not(.has-hero) .top-nav { background: rgba(10,12,32,.97); border-bottom: 1px solid var(--line); }
body:not(.has-hero) { padding-top: var(--nav-h); }
.top-nav .inner { max-width: 1275px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 20px; }
.top-nav .logo img { height: 35px; width: auto; }
.top-nav .menu { display: flex; align-items: center; flex: 1; }
.top-nav .menu > a { padding: 10px 12px; color: rgba(255,255,255,.75); font-size: 13px; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.top-nav .menu > a:hover { color: #fff; }
.top-nav .menu > a.active { color: #00c0ff; }
.top-nav .menu > a.new::after { content: "NEW"; font-size: 9px; color: var(--accent); margin-left: 3px; vertical-align: top; }
.top-nav .right { display: flex; align-items: center; gap: 14px; }
.top-nav .search { display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 20px; padding: 0 16px; width: 315px; height: 40px; }
.top-nav .search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font-size: 13px; min-width: 0; }
.top-nav .search input::placeholder { color: #8b91a8; }
.top-nav .search svg { opacity: .6; margin-right: 8px; flex: 0 0 auto; }
.top-nav .avatar { width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(135deg, #3a4170, #22264a); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gold); }

/* ---------------- 海报卡片（真实站: 5列/间距24/卡宽235） ---------------- */
.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 24px; }
.v-item { position: relative; min-width: 0; }
.v-item .poster-box { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 238/340; background: #1c2038; width: 100%; }
.v-item .poster-box img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; transition: transform .25s; }
.v-item:hover .poster-box img { transform: scale(1.05); }
.v-item .rating { position: absolute; right: 6px; top: 6px; font-size: 12px; color: var(--accent); font-weight: 600; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 4px; }
.v-item .corner { position: absolute; left: 6px; top: 6px; font-size: 11px; background: rgba(255,116,61,.9); padding: 1px 6px; border-radius: 4px; }
.v-item .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; font-size: 12px; color: #e7e9f5; background: linear-gradient(transparent, rgba(0,0,0,.82)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-item .title-box { margin-top: 10px; }
.v-item .v-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-item .v-title a:hover { color: var(--accent); }
.v-item .tag-text { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 区块标题（真实站: 图标+22px标题+12px子分类+更多） ---------------- */
.sec { margin: 40px 0 20px; }
.sec-head { display: flex; align-items: center; margin-bottom: 20px; }
.sec-head .logo-icon { width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(to bottom, #ff743d, #ffb74d); margin-right: 10px; }
.sec-head h2, .sec-head h3 { font-size: 22px; font-weight: 500; }
.sec-head h2 a, .sec-head h3 a { color: #fff; }
.sec-head .chips { display: flex; align-items: center; margin-left: 16px; flex: 1; overflow: hidden; }
.sec-head .chips a { font-size: 12px; color: rgba(255,255,255,.7); margin-right: 14px; white-space: nowrap; }
.sec-head .chips a:hover { color: #fff; }
.sec-head .more { font-size: 12px; color: rgba(255,255,255,.7); flex-shrink: 0; }
.sec-head .more::after { content: "›"; margin-left: 2px; font-size: 14px; }
.sec-head .more:hover { color: #fff; }

/* ---------------- 新闻/热点滑动条（真实站: 卡宽236, 高305） ---------------- */
.news-slider { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.news-slider::-webkit-scrollbar { display: none; }
.news-card { flex: 0 0 236px; }
.news-card .thumb { aspect-ratio: 236/148; border-radius: 6px; overflow: hidden; background: #1c2038; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card p { margin-top: 8px; font-size: 13px; line-height: 1.5; height: 40px; overflow: hidden; color: #d6d9e6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------------- 页脚 ---------------- */
app-footer, .site-footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 36px 0 30px; font-size: 13px; color: var(--muted); background: #0b0d26; }
.site-footer .cols { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer .col h4 { color: #cfd3e2; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.site-footer .col a { display: block; margin-bottom: 8px; }
.site-footer .col a:hover { color: #fff; }
.site-footer .regions { margin-bottom: 14px; line-height: 2; }
.site-footer .copyright { line-height: 1.9; font-size: 12px; }

/* ---------------- 列表页 ---------------- */
.filter-bar { background: var(--card); border-radius: 8px; padding: 6px 18px; margin: 22px 0; }
.filter-row { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.filter-row:last-child { border-bottom: 0; }
.filter-row .lab { color: var(--muted); width: 64px; flex: 0 0 64px; font-size: 13px; }
.filter-row .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-row .opts a { font-size: 13px; color: #c9cddd; padding: 3px 12px; border-radius: 4px; }
.filter-row .opts a:hover { color: #fff; }
.filter-row .opts a.on { color: #fff; background: var(--accent); }
.list-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 36px 0 10px; }
.list-pager a, .list-pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--card); color: #c9cddd; font-size: 13px; padding: 0 10px; }
.list-pager .on { background: var(--accent); color: #fff; }
.list-pager a:hover { color: #fff; }

/* ---------------- 播放页 ---------------- */
.play-wrap { display: flex; gap: 20px; margin-top: 18px; }
.player-main { flex: 1; min-width: 0; }
.player-box { background: #000; border-radius: 8px; overflow: hidden; position: relative; }
.player-box video { width: 100%; aspect-ratio: 16/9; display: block; }
.player-side { width: 320px; flex: 0 0 320px; background: var(--card); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; }
.player-side h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; }
.player-side h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-height: 380px; overflow-y: auto; }
.ep-grid a { height: 36px; display: flex; align-items: center; justify-content: center; background: var(--card-2); border-radius: 4px; font-size: 13px; color: #cfd3e2; }
.ep-grid a.on, .ep-grid a:hover { background: var(--accent); color: #fff; }
.quality-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.quality-row a { font-size: 12px; padding: 4px 12px; border-radius: 4px; background: var(--card-2); color: var(--muted); }
.quality-row a.on { color: #fff; background: var(--accent); }
.quality-row a.vip::after { content: "VIP"; font-size: 9px; color: var(--gold); margin-left: 3px; }
.v-info { background: var(--card); border-radius: 8px; padding: 20px; margin-top: 20px; }
.v-info .top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.v-info h1 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.v-info h1 small { font-size: 14px; color: var(--accent); margin-left: 8px; font-weight: 400; }
.v-info .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.v-info .tags span { background: var(--card-2); color: #c9cddd; font-size: 12px; padding: 3px 10px; border-radius: 4px; }
.v-info .stats { color: var(--muted); font-size: 13px; line-height: 2; }
.v-info .stats b { color: var(--accent); font-weight: 600; }
.v-info .actions { display: flex; gap: 10px; flex: 0 0 auto; }
.v-info .actions a { border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px; font-size: 13px; color: #cfd3e2; }
.v-info .actions a.liked { color: var(--accent); border-color: var(--accent); }
.v-info .desc { margin-top: 14px; color: #b9bdd0; line-height: 1.9; font-size: 13px; }
.v-info .desc b { color: #fff; }

/* ================= 首页幻灯片（真实站: 通屏100vw×541, 左竖导航200px, 下快捷栏105px） ================= */
.hero { position: relative; width: 100%; height: 541px; overflow: hidden; background: #0d1029; }
.hero .slides { position: relative; height: 100%; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero .slide.on { opacity: 1; pointer-events: auto; }
.hero .slide img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero .slide .shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(6,8,26,.72) 0%, rgba(6,8,26,.25) 45%, transparent 75%); }
.hero .slide .caption { position: absolute; left: 220px; bottom: 120px; max-width: 460px; }
.hero .slide .caption h2 { font-size: 25px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero .slide .caption .sub { margin: 12px 0 22px; font-size: 14px; color: rgba(255,255,255,.85); }
.hero .slide .caption .play-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); border-radius: 22px; padding: 10px 30px; font-size: 15px; color: #fff; }
.hero .slide .caption .play-btn:hover { background: #ff8a58; }
.hero .slide .caption .play-btn svg { width: 14px; height: 14px; }
/* 缩略图选择条 */
.hero .thumbs { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 8px; }
.hero .thumbs a { width: 74px; height: 100px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: all .2s; }
.hero .thumbs a img { width: 100%; height: 100%; object-fit: cover; }
.hero .thumbs a.on { border-color: var(--accent); opacity: 1; }
/* 左侧竖导航（真实站: paddingTop 62 从顶栏下开始, 7段渐变, 项高49/16px） */
.hero .side-nav { position: absolute; left: 0; top: 0; bottom: 0; width: 200px; background: linear-gradient(90deg, rgba(9,11,33,.9), rgba(9,11,33,.86) 18%, rgba(9,11,33,.72) 38%, rgba(9,11,33,.36) 62%, rgba(9,11,33,.08) 78%, rgba(9,11,33,0) 90%, rgba(9,11,33,0)); padding: 62px 0 8px; z-index: 5; display: flex; flex-direction: column; }
.hero .side-nav a { display: flex; align-items: center; padding: 12px 16px 12px 20px; font-size: 16px; color: #bdc8dc; height: 49px; }
.hero .side-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.hero .side-nav a.hot { color: #f7fbff; }
.hero .side-nav a.on { color: #00c0ff; }
.hero .side-nav a .num { margin-left: 6px; font-size: 12px; color: rgba(255,255,255,.4); }
.hero .side-nav .all { margin-top: auto; color: #f7fbff; }
/* 箭头 */
.hero .arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 40px; height: 64px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); color: #fff; font-size: 22px; border-radius: 4px; opacity: 0; transition: opacity .2s; }
.hero:hover .arr { opacity: 1; }
.hero .arr:hover { background: rgba(0,0,0,.55); }
.hero .arr.prev { left: 212px; }
.hero .arr.next { right: 16px; }
/* 下方快捷栏（真实站: 通屏, 纯文字链接 16px/70%白, 高105） */
.quick-nav { position: relative; width: 100%; margin: 14px 0 0; height: 105px; background: #10132e; border-radius: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; padding: 0 22px 0 200px; overflow: hidden; }
.quick-nav a { flex: 0 0 auto; font-size: 16px; color: rgba(255,255,255,.7); padding: 5px 12px; height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.quick-nav a:hover { color: #fff; }

/* ---------------- 移动版 ---------------- */
.m-only { display: none !important; }
#tabbar { display: none; }
.m-nav { display: none; }

@media (max-width: 768px) {
  body { background: var(--bg-m); font-size: 13px; }
  .pc-only { display: none !important; }
  .m-only { display: block !important; }
  .container { padding: 0 12px; margin-left: 0; max-width: none; }
  body:not(.has-hero) { padding-top: 0; }

  /* 移动版幻灯片（16:9 原生比例, 避免裁切变形） */
  .hero { margin: 0; height: auto; aspect-ratio: 16/9; }
  .hero.m-only { width: auto; }
  .hero .side-nav, .hero .arr, .quick-nav { display: none; }
  .hero .slide .caption { left: 14px; bottom: 26px; }
  .hero .slide .caption h2 { font-size: 20px; }
  .hero .slide .caption .sub { margin: 6px 0 10px; font-size: 12px; }
  .hero .slide .caption .play-btn { padding: 6px 18px; font-size: 13px; }
  /* 缩略图改为圆点指示器, 避免遮挡标题 */
  .hero .thumbs { bottom: 8px; left: 50%; right: auto; transform: translateX(-50%); gap: 6px; }
  .hero .thumbs a { width: 7px; height: 7px; border-radius: 50%; padding: 0; opacity: .45; border: 0; background: #fff; }
  .hero .thumbs a img { display: none; }
  .hero .thumbs a.on { opacity: 1; width: 18px; border-radius: 4px; background: var(--accent); }

  /* 顶部横向滚动导航 */
  .m-nav { display: block; position: sticky; top: 0; z-index: 100; height: 46px; background: #17171a; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 10px; gap: 2px; }
  .m-nav::-webkit-scrollbar { display: none; }
  .m-nav a { flex: 0 0 auto; padding: 6px 11px; color: #9a9aa2; font-size: 14px; }
  .m-nav a.on { color: #fff; font-weight: 600; }

  /* 底部 tabbar */
  /* tabbar（原站 vant 风格: 蓝色激活#1989fa/灰#646566/57px） */
  #tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); background: #17171a; border-top: 1px solid #2a2a2e; z-index: 200; padding-bottom: env(safe-area-inset-bottom); }
  #tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #646566; font-size: 12px; }
  #tabbar a.on { color: #1989fa; }
  #tabbar a img { width: 22px; height: 22px; object-fit: contain; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  /* 海报 3 列 */
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
  .v-item .v-title { font-size: 13px; }
  .sec { margin: 22px 0 12px; }
  .sec-head h2 { font-size: 17px; }
  .sec-head .chips { display: none; }

  /* 轮播 */
  .banner { border-radius: 8px; overflow: hidden; aspect-ratio: 2.2/1; background: #1c1c20; position: relative; }
  .banner img { width: 100%; height: 100%; object-fit: cover; }
  .banner .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 14px; }

  /* 播放页移动布局 */
  .play-wrap { display: block; }
  .player-side { width: auto; margin-top: 12px; }
  .ep-grid { grid-template-columns: repeat(5, 1fr); }
  .v-info .top { display: block; }
  .v-info .actions { margin-top: 12px; }

  /* 筛选 */
  .filter-row { flex-wrap: wrap; }
  .filter-row .lab { width: auto; flex: 0 0 auto; margin-right: 10px; }
  .news-card { flex: 0 0 148px; }

  .site-footer .cols { gap: 26px; }
}

@media (max-width: 768px) {
  /* 手机端播放器紧凑化（控制栏不再与工具条/系统菜单重叠） */
  .ck-scrub { height: 14px; padding: 0 8px; }
  .ck-row { height: 40px; padding: 0 4px; }
  .ck-item { height: 40px; padding: 0 7px; font-size: 13px; }
  .ck-item svg { width: 18px; height: 18px; }
  .ck-time { font-size: 12px; padding: 0 4px; }
  .ck-btn-pill { font-size: 12px; padding: 3px 10px; margin-left: 4px; }
  .ck-cast, .ck-set { display: none; }
  .ck-title { font-size: 16px; }
  .ck-bar { height: 60px; bottom: 42px; }
  .ck-menu { bottom: 105px; min-width: 120px; }
  /* 工具条手机端: 精简按钮 + 弹幕输入缩短 */
  .ck-tools { height: 42px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .ck-tools::-webkit-scrollbar { display: none; }
  .ck-tools .ck-comment, .ck-tools .ck-dislike, .ck-tools .ck-share, .ck-tools .ck-report, .ck-tools .ck-dl { display: none; }
  .ck-tools .t { padding: 0 8px; font-size: 11px; }
  .ck-tools .dm-input input { width: 110px; font-size: 11px; }
  .ck-tools .cnt { font-size: 11px; padding: 0 4px; }
}
