/* 哎呦疼追剧 - 全站样式 */
:root {
  --brand: #ff5a1f;
  --brand-2: #ffb020;
  --brand-dark: #e0430d;
  --ink: #1b1d21;
  --ink-2: #3d4149;
  --muted: #8a9099;
  --line: #ecedef;
  --bg: #f5f6f8;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 22, 26, .06);
  --shadow-hover: 0 10px 26px rgba(20, 22, 26, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #1b1d21 0%, #2a2320 60%, #33231c 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner {
  display: flex; align-items: center; gap: 20px; height: 62px;
}
.logo { display: flex; align-items: baseline; gap: 2px; flex: none; }
.logo-mark {
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-sub { font-size: 18px; font-weight: 700; color: #fff; }

.main-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.main-nav a {
  padding: 7px 12px; border-radius: 8px; color: #d7d9dd;
  font-size: 15px; white-space: nowrap; transition: .18s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav a.on { color: #fff; background: var(--brand); }

.search-box { display: flex; flex: none; }
.search-box input {
  width: 190px; height: 36px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16); border-right: 0;
  border-radius: 18px 0 0 18px; background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 14px; outline: none;
}
.search-box input::placeholder { color: #9aa0a6; }
.search-box input:focus { background: rgba(255, 255, 255, .16); }
.search-box button {
  height: 36px; padding: 0 18px; border: 0; cursor: pointer;
  border-radius: 0 18px 18px 0; background: var(--brand);
  color: #fff; font-size: 14px; font-weight: 600;
}
.search-box button:hover { background: var(--brand-dark); }

/* ---------------- Layout ---------------- */
main { padding: 22px 0 40px; }

.crumbs { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs i { margin: 0 6px; font-style: normal; color: #cfd2d6; }
.crumbs span { color: var(--ink-2); }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.layout-main { min-width: 0; }
.layout-side { position: sticky; top: 82px; display: grid; gap: 16px; }

/* ---------------- Slider（首页轮播） ---------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.slider { position: relative; margin-bottom: 18px; }
.slider-track { position: relative; height: 368px; }

.slide {
  position: absolute; left: 50%; top: 16px; width: 740px; height: 320px;
  display: flex; gap: 30px; padding: 26px 32px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transform: translateX(-50%);
  opacity: 0; visibility: hidden; z-index: 10;
  transition: transform .6s cubic-bezier(.25,.72,.28,1), opacity .55s ease, visibility 0s linear .55s;
}
/* 堆叠轮播：中间一项完整展开，两侧依次缩小并向外、向下堆叠 */
.slide.pos-0 {
  opacity: 1; visibility: visible; z-index: 60;
  transition: transform .6s cubic-bezier(.25,.72,.28,1), opacity .55s ease, visibility 0s;
}
.slide.pos-m1, .slide.pos-p1 { visibility: visible; opacity: .98; z-index: 50; }
.slide.pos-m2, .slide.pos-p2 { visibility: visible; opacity: .85; z-index: 40; }
.slide.pos-far { z-index: 30; }

.slide.pos-m1 { transform: translateX(calc(-50% - 100px)) translateY(26px) scale(.9) rotate(-2.5deg); }
.slide.pos-p1 { transform: translateX(calc(-50% + 100px)) translateY(26px) scale(.9) rotate(2.5deg); }
.slide.pos-m2 { transform: translateX(calc(-50% - 205px)) translateY(54px) scale(.78) rotate(-4.5deg); }
.slide.pos-p2 { transform: translateX(calc(-50% + 205px)) translateY(54px) scale(.78) rotate(4.5deg); }
.slide.pos-far { transform: translateX(calc(-50% - 330px)) translateY(74px) scale(.66); opacity: 0; }

.slide.is-active { opacity: 1; visibility: visible; }
.slide::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .12), transparent 68%);
}

.slide-bg {
  position: relative; flex: none; width: 210px; height: 280px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: linear-gradient(135deg, hsl(var(--h, 20) 72% 58%), hsl(calc(var(--h, 20) + 42) 68% 42%));
}
.slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide-bg em {
  font-style: normal; font-size: 60px; font-weight: 800; letter-spacing: 3px;
  color: rgba(255, 255, 255, .94); text-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.slide-body { display: flex; flex-direction: column; min-width: 0; padding: 4px 0; transition: opacity .35s ease; }
.slide:not(.pos-0) .slide-body { opacity: 0; pointer-events: none; }
.slide-kicker { margin: 0 0 8px; font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.slide-title { font-size: 30px; }
.slide-title a:hover { color: var(--brand-dark); }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 10px; font-size: 13px; color: var(--ink-2); }
.slide-meta .ep { color: var(--ink-2); }
.slide-score { color: var(--brand); font-weight: 700; }
.slide-note { padding: 2px 9px; border-radius: 14px; background: #fff3ec; color: var(--brand-dark); font-size: 12px; }
.slide-desc {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 720px; margin: 0 0 auto;
  color: var(--ink-2); font-size: 14px; line-height: 1.85;
}
.slide-actions { display: flex; gap: 10px; margin-top: 18px; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 90;
  width: 38px; height: 38px; border: 0; cursor: pointer; border-radius: 50%;
  background: rgba(27, 29, 33, .42); color: #fff; font-size: 24px; line-height: 1;
  opacity: 0; transition: .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--brand); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots { position: absolute; right: 28px; bottom: 22px; z-index: 90; display: flex; gap: 7px; }
.slider-dots .dot {
  width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer; border-radius: 50%;
  background: #d8dbe0; transition: .2s;
}
.slider-dots .dot.on { width: 24px; border-radius: 5px; background: var(--brand); }

/* ---------------- 快捷数据条 ---------------- */
.quick-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 14px 20px; margin-bottom: 26px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quick-stats { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.quick-stats b { margin-right: 5px; font-size: 20px; color: var(--brand); }
.quick-platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-platforms a {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 18px; font-size: 14px; transition: .18s;
}
.quick-platforms a:hover { border-color: var(--brand); color: var(--brand); }
.quick-platforms i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------------- Block / Grid ---------------- */
.block { margin-bottom: 30px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.block-head h1 { font-size: 20px; }
.block-head h2 { font-size: 19px; position: relative; padding-left: 12px; }
.block-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(var(--brand-2), var(--brand));
}
.block-count { font-size: 13px; color: var(--muted); }
.more { font-size: 13px; color: var(--brand); }
.more:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------------- Card ---------------- */
.card { display: block; }
.card-poster {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: #e9ecef;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow); transition: .22s;
}
.card:hover .card-poster { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.poster-img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, hsl(var(--h, 20) 72% 58%), hsl(calc(var(--h, 20) + 42) 68% 42%));
}
.poster-ph em {
  font-style: normal; font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .92);
  letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.poster-lg { border-radius: var(--radius); }
.poster-lg em { font-size: 64px; }

.card-mask {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  font-size: 11px; color: #fff;
}
.badge { padding: 2px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-ongoing { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.badge-finished { background: rgba(255, 255, 255, .9); color: #333; }
.card-score {
  position: absolute; top: 7px; right: 7px; padding: 2px 7px; border-radius: 20px;
  background: rgba(0, 0, 0, .6); color: #ffcf3d; font-size: 12px; font-weight: 700;
}
.card-title {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 8px; font-size: 14px; font-weight: 600;
}
.card:hover .card-title { color: var(--brand-dark); }
.card-meta {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; color: var(--muted);
}

/* ---------------- Filter ---------------- */
.filter-bar {
  padding: 6px 16px 14px; margin-bottom: 22px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.filter-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.filter-row:last-child { border-bottom: 0; }
.filter-name { flex: none; width: 42px; padding-top: 3px; font-size: 13px; color: var(--muted); }
.filter-items { display: flex; flex-wrap: wrap; gap: 6px; }
.fi { padding: 3px 11px; border-radius: 14px; font-size: 13px; color: var(--ink-2); transition: .16s; }
.fi:hover { background: #fff1e9; color: var(--brand); }
.fi.on { background: var(--brand); color: #fff; }

/* ---------------- Panel / Rank ---------------- */
.panel { padding: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-title { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 16px; }
.rank li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank li:last-child { border-bottom: 0; }
.rk {
  grid-row: span 2; align-self: center; width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 6px; background: #eef0f2; color: var(--muted);
  font-size: 12px; font-style: normal; font-weight: 700;
}
.rk.top { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.rank a { font-size: 14px; }
.rank a:hover { color: var(--brand); }
.rk-meta { font-size: 12px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 4px 12px; border-radius: 14px; background: #f2f4f6;
  font-size: 13px; color: var(--ink-2);
}
.tag-cloud a:hover { background: var(--brand); color: #fff; }
.tag-cloud a.ghost { padding-left: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.tag-cloud a.ghost:hover { color: var(--brand); background: transparent; }

/* ---------------- Pager ---------------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0 4px; }
.pg {
  min-width: 34px; height: 34px; padding: 0 11px; line-height: 34px; text-align: center;
  border-radius: 8px; background: var(--card); box-shadow: var(--shadow);
  font-size: 14px; color: var(--ink-2);
}
.pg:hover { color: var(--brand); }
.pg.on { background: var(--brand); color: #fff; }
.pg.gap, .pg.total { box-shadow: none; background: transparent; color: var(--muted); font-size: 13px; }

/* ---------------- Detail ---------------- */
.detail-top {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px;
  padding: 22px; margin-bottom: 28px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.detail-poster .poster-img, .detail-poster .poster-ph { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.detail-info h1 { font-size: 27px; }
.detail-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip { padding: 3px 10px; border-radius: 6px; background: #f2f4f6; font-size: 12px; color: var(--ink-2); }
.detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.detail-meta div { display: flex; gap: 10px; font-size: 14px; }
.detail-meta dt { flex: none; width: 62px; color: var(--muted); font-size: 13px; }
.detail-meta dd { color: var(--ink-2); }
.detail-meta dd a { color: #2b6cb0; }
.detail-meta dd a:hover { color: var(--brand); }

.detail-score {
  display: flex; align-items: baseline; gap: 10px; margin: 18px 0;
  padding: 12px 16px; border-radius: var(--radius); background: linear-gradient(120deg, #fff7f2, #fff);
  border: 1px dashed #ffd7c2;
}
.detail-score b { font-size: 32px; color: var(--brand); line-height: 1; }
.detail-score span { font-size: 13px; color: var(--muted); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 0 18px; height: 40px; line-height: 40px;
  border-radius: 20px; background: #f2f4f6; color: var(--ink-2); font-size: 14px; transition: .18s;
}
.btn:hover { background: #e6e9ec; }
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(255, 90, 31, .28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--brand); color: var(--brand); background: transparent; }

.intro { padding: 4px 2px; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }

/* 多平台：播放源切换 */
.source-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stab {
  display: flex; align-items: baseline; gap: 6px; padding: 7px 16px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  font-size: 14px; color: var(--ink-2); transition: .18s;
}
.stab i { font-style: normal; font-size: 12px; color: var(--muted); }
.stab:hover { border-color: var(--brand); color: var(--brand); }
.stab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.stab.on i { color: rgba(255, 255, 255, .85); }
.source-panel { display: none; }
.source-panel.on { display: block; }
.source-note {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  margin: 0 0 12px; font-size: 13px; color: var(--muted);
}
.source-note a { color: var(--brand); }
.src-status { padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.src-ongoing { background: #fff1e8; color: var(--brand-dark); }
.src-finished { background: #f1f3f5; color: var(--muted); }
.chip-multi { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.ep-multi { cursor: help; }

.ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ep-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow);
  font-size: 14px; transition: .18s;
}
.ep-list a:hover { background: var(--brand); color: #fff; }
.ep-no {
  flex: none; width: 30px; height: 30px; line-height: 30px; text-align: center;
  border-radius: 8px; background: #f2f4f6; font-size: 13px; font-weight: 700;
}
.ep-list a:hover .ep-no { background: rgba(255, 255, 255, .22); color: #fff; }
.ep-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-vip { padding: 1px 6px; border-radius: 4px; background: #ffcf3d; color: #6b4b00; font-size: 11px; font-weight: 700; }
.ep-date { font-size: 12px; color: var(--muted); }
.ep-list a:hover .ep-date { color: rgba(255, 255, 255, .85); }

/* 详情页两栏：分集列表置于右侧 */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.detail-layout.has-side { grid-template-columns: minmax(0, 1fr) 310px; }
.detail-main { min-width: 0; }
.detail-side { position: sticky; top: 82px; min-width: 0; }
.detail-side .block { margin-bottom: 0; }
.detail-side .ep-list, .player-side .ep-list {
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  max-height: 660px; overflow-y: auto; padding-right: 4px;
}
.detail-side .ep-list a, .player-side .ep-list a {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 5px 2px; text-align: center; font-size: 11.5px;
  border-radius: 6px;
}
.detail-side .ep-list::-webkit-scrollbar, .player-side .ep-list::-webkit-scrollbar { width: 6px; }
.detail-side .ep-list::-webkit-scrollbar-thumb, .player-side .ep-list::-webkit-scrollbar-thumb { background: #d3d6da; border-radius: 3px; }

/* ---------------- Platform / Search ---------------- */
.platform-hero {
  padding: 26px; margin-bottom: 22px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #2a2320, #4a2c1c 70%, var(--brand-dark));
}
.platform-hero h1 { font-size: 24px; }
.platform-hero p { margin: 8px 0 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.platform-hero .btn-ghost { background: #fff; border-color: #fff; color: var(--brand-dark); font-weight: 600; }

.big-search { display: flex; margin-bottom: 22px; }
.big-search input {
  flex: 1; height: 46px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 23px 0 0 23px; background: #fff; font-size: 15px; outline: none;
}
.big-search input:focus { border-color: var(--brand); }
.big-search button {
  width: 110px; height: 46px; border: 0; cursor: pointer;
  border-radius: 0 23px 23px 0; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600;
}

.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty a { color: var(--brand); }
.empty-page { padding: 60px 0; text-align: center; }
.empty-page h1 { font-size: 30px; }
.empty-page p { color: var(--muted); }
.empty-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

.sm-section { margin-bottom: 22px; }
.sm-section h2 { margin-bottom: 10px; font-size: 16px; }
.sm-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.sm-links li { padding: 8px 12px; background: var(--card); border-radius: 8px; }
.sm-links a:hover { color: var(--brand); }
.sm-meta { margin-left: 8px; font-size: 12px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 20px; background: #1b1d21; color: #b9bdc4; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px;
  padding: 30px 0 20px;
}
.footer-logo { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #fff; }
.footer-slogan { margin: 0 0 8px; font-size: 13px; }
.footer-tip { margin: 0; font-size: 12px; color: #7b8189; }
.footer-links h2 { margin-bottom: 10px; font-size: 14px; color: #fff; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { padding: 3px 0; font-size: 13px; }
.footer-links a:hover { color: var(--brand-2); }
.copyright { padding: 14px 0 24px; border-top: 1px solid #2b2e33; font-size: 12px; color: #6f757d; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .layout-side { position: static; }
  .detail-layout.has-side { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .player-layout.has-side { grid-template-columns: 1fr; }
  .player-side { position: static; }

  /* 窄屏下堆叠轮播退化为单卡轮播 */
  .slider { margin-bottom: 14px; }
  .slider-track { height: 300px; }
  .slide {
    left: 0; top: 0; width: 100%; height: 300px; padding: 20px 24px;
    transform: none !important; opacity: 0; visibility: hidden;
  }
  .slide:not(.is-active) { opacity: 0; visibility: hidden; }
  .slide.is-active { opacity: 1; visibility: visible; z-index: 60; }
  .slide .slide-body { opacity: 1; pointer-events: auto; }
  .slide .slide-bg { width: 132px; height: 176px; }
  .slider-arrow { opacity: 1; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .main-nav { order: 3; width: 100%; }
  .search-box { margin-left: auto; }
  .search-box input { width: 150px; }
  .detail-top { grid-template-columns: 180px 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .slide-bg em { font-size: 40px; }
  .slide-title { font-size: 23px; }
  .slide-desc { -webkit-line-clamp: 3; font-size: 13.5px; }
}
@media (max-width: 640px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .detail-top { grid-template-columns: 1fr; padding: 16px; }
  .detail-poster { width: 165px; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-info h1 { font-size: 22px; }
  .ep-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .slider-track { height: 252px; }
  .slide { padding: 18px; }
  .slide-bg { display: none; }
  .slide-title { font-size: 21px; }
  .slide-desc { -webkit-line-clamp: 4; font-size: 13px; line-height: 1.75; }
  .slide-actions .btn { height: 36px; line-height: 36px; padding: 0 14px; font-size: 13px; }
  .slider-dots { right: 18px; bottom: 14px; }
  .quick-stats { gap: 16px; font-size: 12px; }
  .quick-stats b { font-size: 17px; }
}

/* ===== 鍦ㄧ嚎鎾斁鍣?===== */
.player-block { margin-top: 18px; }
.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.player-box video { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-mask {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,8,12,.55);
  opacity: 0; visibility: hidden; transition: opacity .25s;
  z-index: 5;
}
.player-mask.on { opacity: 1; visibility: visible; }
.player-mask .player-loading { text-align: center; color: #fff; }
.player-mask .player-loading p { margin-top: 12px; font-size: 13.5px; opacity: .85; }
.player-mask .player-error { text-align: center; color: #fff; max-width: 420px; padding: 0 20px; }
.player-mask .player-error .perr { margin-bottom: 16px; font-size: 14px; opacity: .92; }
.spinner {
  display: inline-block; width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: var(--accent, #e53935);
  border-radius: 50%;
  animation: player-spin .8s linear infinite;
}
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-info {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.player-info h3 { font-size: 17px; margin: 0; }
.chip-play { background: var(--accent, #e53935); color: #fff; }
.player-hint { margin-left: auto; font-size: 12.5px; color: var(--muted, #8a93a6); }
.side-toggle {
  flex: none; margin-left: 8px;
  border: 1px solid var(--line, #e6e8eb); background: #fff;
  color: var(--ink, #1f2937); padding: 1px 9px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.7; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: background .2s, border-color .2s, color .2s;
}
.side-toggle:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.side-toggle .t-hide { display: none; }
.player-layout.side-hidden .side-toggle .t-show { display: none; }
.player-layout.side-hidden .side-toggle .t-hide { display: inline; }

/* 播放器 + 右侧分集列表 */
.player-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.player-layout.has-side { grid-template-columns: minmax(0, 1fr) 290px; }
.player-main { min-width: 0; }
.player-side { position: sticky; top: 82px; min-width: 0; }
.player-side .block { margin-bottom: 0; }
.player-layout.side-hidden { grid-template-columns: 1fr; }
.player-layout.side-hidden .player-side { display: none; }
.ep-link.on {
  box-shadow: inset 0 0 0 2px var(--accent, #e53935);
  color: var(--accent, #e53935);
  font-weight: 700;
}
.ep-link.on:hover { background: var(--brand); color: #fff; }
.ep-online {
  font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 4px;
  background: rgba(46,204,113,.15); color: #2ecc71;
  border: 1px solid rgba(46,204,113,.4);
  margin-left: auto;
}
