/* ============================================================
   全新影视站主题 theme.css
   深色优先 · 左侧导航 · 满屏内容 · 响应式
   ============================================================ */

:root {
  --bg: #141414;
  --bg-card: #1e1e1e;
  --bg-hover: #2a2a2a;
  --bg-side: #0f0f0f;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-sub: #b0b0b0;
  --text-mute: #888;
  --accent: #e50914;
  --accent-hover: #b0060f;
  --radius: 10px;
  --radius-sm: 6px;
  --side-w: 232px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ 布局 ============ */
.layout {
  display: flex;
  min-height: 100vh;
}
.main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 40px;
}

/* ============ 左侧侧边栏 ============ */
.sidebar {
  width: var(--side-w);
  flex-shrink: 0;
  background: var(--bg-side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
}
.sidebar-logo img { height: 38px; width: auto; }
.sidebar-search {
  margin: 0 14px 12px;
}
.sidebar-search form {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.sidebar-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
  min-width: 0;
}
.sidebar-search button {
  background: var(--accent);
  border: 0;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
}
.sidebar-nav { flex: 1; padding: 4px 10px; }
.sidebar-group-title {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 10px 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-sub);
  transition: background .15s, color .15s;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-item.active { background: rgba(229,9,20,.14); color: var(--accent); font-weight: 600; }
.sidebar-item .ico {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 5px; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-style: normal;
}
.sidebar-item .ico.sub { background: #3a3a3a; }
.sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
}

/* ============ 页面头部（标题行） ============ */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 22px;
  font-weight: 700;
}
.page-head .sort {
  display: flex;
  gap: 6px;
}
.page-head .sort a {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .15s;
}
.page-head .sort a.active,
.page-head .sort a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============ 视频网格（桌面每排8个） ============ */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 14px;
}
@media (min-width: 1400px) { .vod-grid { grid-template-columns: repeat(8, 1fr); gap: 20px 14px; } }
@media (min-width: 900px) and (max-width: 1399px) { .vod-grid { grid-template-columns: repeat(6, 1fr); gap: 20px 14px; } }
.vod-card { min-width: 0; }
.vod-thumb {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.vod-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}
.vod-card:hover .vod-thumb img { transform: scale(1.07); }
.vod-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
}
.vod-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: all .2s;
  z-index: 2;
}
.vod-play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}
.vod-card:hover .vod-thumb::after { background: rgba(0,0,0,.28); }
.vod-card:hover .vod-play { opacity: 1; transform: scale(1); }
.vod-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 1;
}
.vod-local {
  position: absolute;
  top: 8px; left: 8px;
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.vod-info { padding: 8px 2px 0; }
.vod-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vod-name a:hover { color: var(--accent); }
.vod-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 首页 banner（模糊背景 + 封面卡片） ============ */
.hero-banner {
  position: relative;
  margin-bottom: 26px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21/9;
  min-height: 260px;
  background: #14151a;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-banner .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(14px) brightness(.55);
  transition: opacity .8s ease, transform 4s ease;
}
.hero-banner .slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-banner .mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.5) 50%, rgba(10,10,12,.2) 100%),
    linear-gradient(0deg, rgba(10,10,12,.6) 0%, rgba(10,10,12,.1) 60%);
}
/* 右侧封面卡片 */
.hero-banner .hero-poster {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 17%;
  max-width: 180px;
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 2;
}
.hero-banner .info {
  position: absolute;
  left: 4%; bottom: 12%;
  right: 30%;
  z-index: 2;
  text-align: left;
}
.hero-banner .info .hero-tag {
  display: inline-block;
  background: rgba(229,9,20,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.hero-banner .info h2 {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
  letter-spacing: .5px;
}
.hero-banner .info p {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.7;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero-banner .info .hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-banner .info .hero-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
  color: #ffd54f;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.hero-banner .info .hero-remark {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
}
.hero-banner .btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 11px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(229,9,20,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-banner .btn-play:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229,9,20,.55);
}
.hero-banner .btn-play .play-arrow { font-size: 16px; }
/* 左右箭头 */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease, background .2s ease;
  backdrop-filter: blur(4px);
}
.hero-nav:hover { background: rgba(0,0,0,.6); }
.hero-nav.hero-prev { left: 14px; }
.hero-nav.hero-next { right: 14px; }
.hero-banner:hover .hero-nav { opacity: 1; }
/* 圆点 */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-dots span:hover { background: rgba(255,255,255,.7); }
.hero-dots span.active {
  background: var(--accent);
  width: 28px;
  border-radius: 6px;
  border-color: var(--accent);
}

/* ============ 区块标题 ============ */
.section { margin-bottom: 30px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: "";
  width: 4px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: var(--text-mute);
}
.section-more:hover { color: var(--accent); }

/* ============ 详情页 ============ */
.detail-wrap {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.detail-poster {
  width: 240px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 24px; margin-bottom: 8px; }
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.detail-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-sub);
}
.detail-actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-hover); }
.detail-desc {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ 播放页 ============ */
.play-wrap {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.play-main { flex: 1; min-width: 0; }
.player-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  margin-bottom: 18px;
}
.player-box iframe { width: 100%; height: 100%; border: 0; }
.play-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.src-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 10px;
  vertical-align: middle;
}
.src-local { background: rgba(34,197,94,.15); color: #22c55e; }
.src-remote { background: var(--bg-hover, #2a2a2a); color: var(--text-mute, #888); }
.play-toolbar { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.play-toolbar .btn { padding: 8px 16px; font-size: 13px; }
/* 播放器顶部的上一集/下一集悬浮按钮（避开左右进退热区） */
.play-nav-btn {
  position: absolute;
  top: 12px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.play-nav-btn:hover { background: rgba(0,0,0,0.72); text-decoration: none; color: #fff; }
.play-nav-btn .nav-ico { font-size: 12px; line-height: 1; }
.play-nav-btn.nav-prev { left: 12px; }
.play-nav-btn.nav-next { right: 12px; }
.player-box:hover .play-nav-btn { opacity: 1; }
.play-nav-btn:active { transform: scale(0.95); }
.play-lines { margin-bottom: 20px; }
.play-lines-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-sub); }
.line-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.line-tabs a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
}
.line-tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-list a {
  min-width: 44px;
  text-align: center;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.ep-list a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.play-side {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #1c1c1e);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border, #2c2c2e);
}
.play-side .play-lines { margin-bottom: 0; }
.play-side .line-tabs { flex-shrink: 0; }
.play-side .ep-list {
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding-right: 4px;
}
.play-side .ep-list::-webkit-scrollbar { width: 5px; }
.play-side .ep-list::-webkit-scrollbar-thumb { background: rgba(128,128,128,.35); border-radius: 3px; }
.rel-list { display: flex; flex-direction: column; gap: 12px; }
.rel-item { display: flex; gap: 10px; }
.rel-item .thumb {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}
.rel-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-item .meta { min-width: 0; }
.rel-item .name {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-item .name a:hover { color: var(--accent); }
.rel-item .info { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ============ 详情页 YouTube 风格（播放器+播放列表平齐） ============ */
.detail-play-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.detail-player-col {
  flex: 1;
  min-width: 0;
}
.detail-player-col .player-box {
  aspect-ratio: 16/9;
}
.detail-ep-side {
  width: 330px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #1c1c1e);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border, #2c2c2e);
}
.detail-ep-side h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.detail-ep-side .line-tabs {
  flex-shrink: 0;
}
.detail-ep-side .ep-list {
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding-right: 4px;
}
.detail-ep-side .ep-list::-webkit-scrollbar { width: 5px; }
.detail-ep-side .ep-list::-webkit-scrollbar-thumb { background: rgba(128,128,128,.35); border-radius: 3px; }
/* 详情页视频信息（YouTube：播放器下方） */
.detail-video-meta {
  margin: 14px 0 22px;
}
.detail-video-meta h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
@media (max-width: 820px) {
  .detail-play-row { flex-direction: column; }
  .detail-ep-side { width: 100%; position: static; max-height: 320px; }
  .detail-ep-side .ep-list { max-height: 220px; }
}

/* ============ 分页 ============ */
.paging {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.paging a, .paging span {
  min-width: 36px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
}
.paging a:hover { background: var(--bg-hover); color: var(--text); }
.paging .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.paging .disabled { opacity: .4; pointer-events: none; }

/* ============ 页脚 ============ */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-mute);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ============ 移动端 ============ */
.mobile-bar {
  display: none;
}
.sidebar-overlay { display: none; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    z-index: 1000;
    transition: left .25s ease;
    width: 250px;
  }
  .sidebar.open { left: 0; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-side);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .mobile-bar .hamburger {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 22px;
    padding: 4px;
  }
  .mobile-bar .logo img { height: 30px; }
  .mobile-bar .search-icon {
    margin-left: auto;
    color: var(--text);
    font-size: 18px;
  }
  .main { padding: 14px 12px 30px; }
  .detail-wrap { flex-direction: column; padding: 16px; }
  .detail-poster { width: 150px; margin: 0 auto; }
  .play-wrap { flex-direction: column; }
  .play-side { width: 100%; position: static; max-height: 320px; }
  .play-side .ep-list { max-height: 220px; }
  .hero-banner .info p { max-width: 100%; }

  /* ===== 手机端体验优化 ===== */
  .hero-banner { aspect-ratio: 16/10; min-height: 190px; }
  .hero-banner .info { right: 42%; bottom: 8%; }
  .hero-banner .hero-poster { right: 4%; width: 32%; }
  .hero-banner .info .hero-tag { font-size: 10px; padding: 2px 10px; margin-bottom: 6px; }
  .hero-banner .info h2 { font-size: 16px; margin-bottom: 4px; }
  .hero-banner .info p { display: none; }
  .hero-banner .info .hero-meta { margin-top: 8px; gap: 6px; }
  .hero-banner .info .hero-score, .hero-banner .info .hero-remark { font-size: 10px; padding: 2px 8px; }
  .hero-banner .btn-play { padding: 7px 14px; font-size: 12px; margin-top: 8px; }
  .hero-nav { width: 32px; height: 32px; font-size: 16px; }
  .hero-dots { bottom: 8px; gap: 6px; }
  .hero-dots span { width: 7px; height: 7px; }
  .hero-dots span.active { width: 18px; }
  .vod-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
  .vod-name { font-size: 13px; }
  .vod-meta { font-size: 11px; }
  .vod-badge { font-size: 10px; padding: 1px 6px; top: 6px; right: 6px; }
  .page-head h1 { font-size: 18px; }
  .section-head h2 { font-size: 16px; }
  .section { margin-bottom: 22px; }
  .play-title { font-size: 16px; }
  .play-toolbar .btn { padding: 7px 12px; font-size: 12px; }
  .ep-list a { min-width: 38px; padding: 6px 10px; font-size: 12px; }
  .line-tabs a { padding: 5px 12px; font-size: 12px; }
  .main { padding-bottom: 70px; }
  .detail-info h1 { font-size: 19px; }
  .detail-tags span { font-size: 11px; padding: 2px 8px; }
  .paging a, .paging span { min-width: 32px; padding: 6px 9px; font-size: 12px; }
}

/* 浅色模式（可选切换） */
body:not(.bstem) {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-hover: #e8e8ea;
  --bg-side: #ffffff;
  --border: #e2e2e5;
  --text: #1a1a1a;
  --text-sub: #555;
  --text-mute: #999;
}

/* ===== 顶部广告遮罩条(固定遮挡量子源上方字幕广告) ===== */
.ad-mask-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8%;
  min-height: 30px;
  max-height: 48px;
  background: #000;
  z-index: 30;
  pointer-events: none;
}

/* ===== 站点统计栏 ===== */
.site-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 6px;
}
.site-stats .stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.site-stats .stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.site-stats .stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.site-stats .stat-num.stat-accent {
  color: #e50914;
}
.site-stats .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-mute);
}
@media (max-width: 640px) {
  .site-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .site-stats .stat-item { padding: 14px 8px; }
  .site-stats .stat-num { font-size: 22px; }
}

/* ===== 移动端播放器增强 ===== */
@media (max-width: 900px) {
  /* 播放器占满可用宽度, 消除侧边留白 */
  .play-main { width: 100%; }
  .player-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
  }
  /* 播放器容器内 artplayer 强制铺满 */
  .player-box .artplayer-app,
  .player-box #artplayer {
    width: 100% !important;
    height: 100% !important;
  }
  /* 播放页左右留白收窄, 让播放器更大 */
  .main { padding-left: 10px; padding-right: 10px; }
  .play-title { font-size: 16px; }
}
/* 横屏时播放器最大化(全屏体验) */
@media (max-width: 900px) and (orientation: landscape) {
  .player-box {
    aspect-ratio: auto;
    height: calc(100vh - 90px);
    max-height: 100vh;
  }
}


